-
Notifications
You must be signed in to change notification settings - Fork 631
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
kustomize controller is confused when it encounters SOPS masked data. #2690
Comments
FWIW,
|
I expect this to be solved if you update to Flux |
Yup.
|
I faced this issue today as well until i realized i just put the decryption on the wrong kustomization object. |
for me, I got the same error because I use |
Describe the bug
I was figuring out how to use SOPS and encountered this issue. When trying to verify that the data was getting set I used
flux build
to recreate the secret. I checked in and pushed the generated yamlI didn't quite realize the string "KipTT1BTKio" wasn't what I really wanted.
echo -n "KipTT1BTKio=" | base64 -d
SOPS
Kustomization shows this ambigious error.
kustomization/flux-system main/6880a19b0498c578b263432a0061bf213d391fef False False Secret/flux-system/basic-auth2 validation error: error decoding from json: illegal base64 data at input byte 3
Steps to reproduce
Try to create a secret with invalid JSON data.
Expected behavior
My silly mistake aside, could there be a more helpful error message describing what it encountered and why it is refusing to continue?
If reconciliation didn't fail and applied the "SOPS" value I would be able to see my problem sooner.
Thanks.
Screenshots and recordings
No response
OS / Distro
Ubuntu 20.04 LTS
Flux version
flux: v0.29.3
Flux check
► checking prerequisites
✗ flux 0.29.3 <0.29.5 (new version is available, please upgrade)
✔ Kubernetes 1.22.8+rke2r1 >=1.20.6-0
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.20.1
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v0.24.3
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v0.23.4
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v0.24.1
✔ all checks passed
Git provider
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: