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

Image digest overrides are ignored in kustomization #652

Closed
abth opened this issue May 13, 2022 · 1 comment · Fixed by #655
Closed

Image digest overrides are ignored in kustomization #652

abth opened this issue May 13, 2022 · 1 comment · Fixed by #655
Labels
area/kustomize Kustomize related issues and pull requests

Comments

@abth
Copy link

abth commented May 13, 2022

I have a Flux Kustomization in which I want to override an image digest:

apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: myenv
  namespace: flux-system
spec:
  interval: 5m0s
  path: ./environments/myenv
  prune: true
  sourceRef:
    kind: GitRepository
    name: myenv
  images:
  - name: myregistry/myimage
    digest: "sha256:12345"

Overriding the image tag via newTag works, but overriding the digest does not.

Overriding the digest should work according to the documentation here:
https://fluxcd.io/docs/components/kustomize/kustomization/#images
The implementation was done within this ticket:
#193

I adapted an existing test to reproduce this issue:
https://github.com/abth/flux2/tree/override-image-digest

@kingdonb kingdonb added the area/kustomize Kustomize related issues and pull requests label May 18, 2022
@kingdonb
Copy link
Member

@somtochiama could you please take a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kustomize Kustomize related issues and pull requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants