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

KSOPS error on decrypting when integrate with ArgoCD #263

Open
PhamQuang-512 opened this issue Oct 17, 2024 · 2 comments
Open

KSOPS error on decrypting when integrate with ArgoCD #263

PhamQuang-512 opened this issue Oct 17, 2024 · 2 comments
Labels
kind:bug Something isn't working

Comments

@PhamQuang-512
Copy link

PhamQuang-512 commented Oct 17, 2024

i have follow the docs and create a test application to mange secret but i'm getting this error
failed to evaluate function: error decrypting file "test.yaml" from manifest.Files: trouble decrypting file: Error getting data key: 0 successful groups required, got 0unable to generate manifests: error decrypting file "test.yaml" from manifest.Files: trouble decrypting file: Error getting data key: 0 successful groups required, got 0Error: couldn't execute function: exit status 1
i have tried to exec into repo-server and clone my repo and decrypt using kustomize build --enable-alpha-plugins --enable-exec and it still ok
i'm using helm chart argo/argo-cd version 7.4.3 - argocd version v2.12.0

Copy link

dosubot bot commented Oct 17, 2024

Hey @PhamQuang-512! 👋 I'm here to help you with your KSOPS error. I'm a bot designed to assist with bug fixes, answer questions, and help you become a contributor. Let's tackle this together!

To resolve the KSOPS decryption error when integrating with ArgoCD, ensure that ArgoCD is configured to enable kustomize plugins. You need to add the --enable-alpha-plugins flag to the kustomize.buildOptions setting in the ArgoCD ConfigMap:

apiVersion: v1
kind: ConfigMap
metadata:
  name: argocd-cm
  labels:
    app.kubernetes.io/name: argocd-cm
    app.kubernetes.io/part-of: argocd
data:
  kustomize.buildOptions: "--enable-alpha-plugins"

Additionally, make sure the KSOPS executable is in your PATH or that the path to the executable in the generator manifest is correctly specified relative to the manifest files. Also, ensure that the XDG_CONFIG_HOME environment variable is set in your shell, as KSOPS relies on this configuration [1][2].

To continue talking to Dosu, mention @dosu.

@PhamQuang-512
Copy link
Author

i have added that option from the beginning

@dosubot dosubot bot added the kind:bug Something isn't working label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant