Code Monkey home page Code Monkey logo

Comments (4)

ibrunotome avatar ibrunotome commented on June 3, 2024 3

@sethvargo This happened with me too, grace: 720h and allow_tagged: true and it deleted everything 😅

An option to not delete the image with latest tag will be really good.

from gcr-cleaner.

sethvargo avatar sethvargo commented on June 3, 2024

Hi @mavrick

Can you tell me a bit more about your setup? What values did you use for grace and allow_tagged?

from gcr-cleaner.

mavrick avatar mavrick commented on June 3, 2024

i tag the images with a SHORT_SHA. apart of my cloudbuild script is to update the deployment image in my kubernetes cluster.

kubectl set image deployment my-service my-container=gcr.io/textures-1204/my-service:$SHORT_SHA

so all my images in the container registery contain a tag, even the latest image.

gcloud scheduler jobs create http "gcrclean" --project ${PROJECT_ID} --description "Cleanup ${REPO}" --uri "${SERVICE_URL}/http" --message-body "{\"repo\":\"${REPO}\",\"grace\":\"720h\",\"allow_tagged\":true}" --oidc-service-account-email "gcr-cleaner-invoker@${PROJECT_ID}.iam.gserviceaccount.com" --schedule "every monday 09:00"

from gcr-cleaner.

stale avatar stale commented on June 3, 2024

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

from gcr-cleaner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.