Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--mutation-annotations mutation-id is not correct #3762

Open
yiraeChristineKim opened this issue Jan 7, 2025 · 1 comment
Open

--mutation-annotations mutation-id is not correct #3762

yiraeChristineKim opened this issue Jan 7, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@yiraeChristineKim
Copy link
Contributor

What steps did you take and what happened:
Add --mutation-annotations
and check the mutated resource's annotation
the "gatekeeper.sh/mutation-id" is not matching with actual mutation(Assign, AssignImage)

What did you expect to happen:
Should be match with the mutation resource uid

  • Gatekeeper version: latest 3.17
  • Kubernetes version: Client Version: v1.31.3
    Kustomize Version: v5.4.2
    Server Version: v1.30.6
@yiraeChristineKim yiraeChristineKim added the bug Something isn't working label Jan 7, 2025
@JaydipGabani
Copy link
Contributor

As far as I can tell, this has always been the case - #1545.

func (s *System) mutate(obj *unstructured.Unstructured, ns *corev1.Namespace) (int, error) {
	mutationUUID := s.newUUID()
	original := obj.DeepCopy()

I am not familiar with the intention behind this. @maxsmythe @ritazh @sozercan Feel free to share details if you recall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants