Skip to content

sops error on validation #1430

Answered by cpressler
cpressler asked this question in Q&A
Discussion options

You must be logged in to vote

If you get this error in the logs

validation failed: error: error validating "ff694d6f-167b-43a7-9dac-992072371acf.yaml": error validating data: ValidationError(Secret): unknown field "sops" in io.k8s.api.core.v1.Secret; if you choose to ignore these errors, turn validation off with --validate=false

My issue that I found had to do with a manual edit to gotk-sync.yaml that was overwritten on a new flux bootstrap cli

spec:
  interval: 10m0s
  decryption:
    provider: sops
    secretRef:
      name: sops-gpg

Solution: create a sops-config.yaml

apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
  name: flux-system
  namespace: flux-system
spec:
  interval: 10m0s
  d…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by stefanprodan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant