kubernetes / k8s.io

Code and configuration to manage Kubernetes project infrastructure, including various *.k8s.io sites
https://git.k8s.io/community/sig-k8s-infra
Apache License 2.0
714 stars 796 forks source link

Tags immutability should be enforced by PR tests #5221

Open danielvegamyhre opened 1 year ago

danielvegamyhre commented 1 year ago

I recently submitted a PR updating the image digest for a tag: https://github.com/kubernetes/k8s.io/pull/5220

However, I noticed the image digest for registry.k8s.io/jobset/jobset:v0.1.1 never updated, and after discussion with @BenTheElder I learned tags are immutable.

I think this should be enforced on PRs via tests, rather than silently failing in the image promotion process, in order to avoid confusion.

/kind bug

BenTheElder commented 1 year ago

cc @kubernetes/release-engineering

/sig release

BenTheElder commented 1 year ago

This also means that we have manifests that don't match reality and will never be fixed (!)

We should probably revert any tag mutations once we prevent introducing new ones.

I think the only robust way to do this is to parse the full config before and after the PR commits and diff the config in memory, git diff can be misleading so just grepping the diff will cause false positives when config is modified in otherwise acceptable ways (e.g. inserting a new image into a file).

k8s-triage-robot commented 7 months ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

xmudrii commented 7 months ago

/remove-lifecycle stale

BenTheElder commented 4 months ago

/lifecycle frozen