-
Notifications
You must be signed in to change notification settings - Fork 87
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
ArgoCD is trying to create a KSOPS Kubernete resource #136
Comments
|
Does this help? secrets.yaml apiVersion: v1
data:
one: ++++++++
kind: Secret
metadata:
labels:
app.kubernetes.io/instance: demo
name: my-secret
namespace: demo
sops:
age: []
azure_kv: []
encrypted_regex: ^(data|stringData)$
gcp_kms: []
hc_vault: []
kms:
- arn: 'redacted'
aws_profile: ''
created_at: '2021-09-23T15:20:35Z'
enc: >-
AQICAHiO4gFkYTvHhAZ5pzQfT6mZ/jBfGjZk/V3LIcBHK+SmmAHvIkFFLvpPZ87aqJPEd8gcAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMUl3ya7FYfUkfXvT9AgEQgDuZxzGOn/VCcPz9NAdxFvLYABS7APYLXoBRoFgWXR/6BNeig25ZC0rvv66yHAWbALvI3eqg38QAXmx/eg==
lastmodified: '2021-09-23T15:20:35Z'
mac: >-
ENC[AES256_GCM,data:tURY4SuISWToV28vU90y77HGc5fpKdfDyIDJ61O8aoghMQ/8dgGPO2TWIzT36t4fSp1p5YY6k853AcwDdo+IcwDS9bLGsYYfm2s/4SG9zugoaRZmzSkujFTmcWDSK1OVibtk9z2NxwdSl+Tu+ssDYvR2Zr1z4EwQVcA7cg9bNQc=,iv:3TuU2O37IJULKJXiXSrq7v0xHS5/QMD6YDAI904bh5M=,tag:ASkRnwIRd9yLLvV4+864+A==,type:str]
pgp: []
version: 3.7.1 |
Thanks that is helpful, something is not correctly configured. My guess would have been that you are using Can you share the redacted diff shown when you click the |
Interesting @dalekurt looking at that diff there must be something incorrect in either the |
@devstein Thank you for the help so far. Just to cover all the bases the manifest for the Argo CD project: demo
source:
repoURL: 'https://github.com/redacted.git'
path: >-
path/to/demo
targetRevision: dm/demo
directory:
recurse: true
jsonnet: {}
destination:
namespace: '*'
name: sandbox
syncPolicy:
automated:
prune: true
selfHeal: true I will review the configuration as per your suggestion. |
@dalekurt Two suggestions
directory:
recurse: true
jsonnet: {}
kubectl -n argocd get apps demo -o yaml | grep -i sourceType |
@devstein An update, I was able to resolve this issue. Apparently, the cluster had permission to access AWS KMS resources however the deployment(and pod) required a service account and annotation in order to use the KMS decrypt keys. Once that was done, KSOPS worked perfectly. Thank you for the assist. |
For future debuggers: removing
fixed this issue for me |
Version
Argo CD
v2.1.2
kustomizs-sops
{Version:v4.3.0+ksops.v3.0.1 GitCommit:[email protected] BuildDate:2021-09-01T20:13:35Z GoOs:linux GoArch:amd64
What I've done so far
.sops.yaml
Using a custom Argo CD container image with the kustomize-sops
Custom Dockerfile
The updated
argocd-cm
ConfigMap with the following:Additionally, the following files are in the repo (and path)
kustomization.yaml
secret-generator.yaml
secrets.yaml
Issue
Is this an expected result from ArgoCD attempting to create the KSOPS resource ?
The text was updated successfully, but these errors were encountered: