-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Diffing with slash in field name #2795
Comments
These are JSON pointers. I believe you can use tilde character. |
ok thanx @alexec and the resource name under resource customizations does it follow a format. Is the format: APIGROUP/KIND? |
So for example if I want to reference annotation metadata:
annotations:
checksum/certs: "CHECKSUM" RFC says that |
I'm having issues ignoring a label in a CRD. It appears that K8S is automatically removing it for some reason and I'd like to just ignore it if the label is there in source control, but not showing up in K8S. The CRD looks like this
Here is my application spec...
Does this not work with the custom plugin? |
You can escape it by replacing the slash Example of slash escaping an annotation named # argocd application resource yaml
spec:
ignoreDifferences:
- kind: Secret
name: datadog-cluster-agent
jsonPointers:
- /data/token
- group: apps
kind: Deployment
name: datadog-cluster-agent
jsonPointers:
- /spec/template/metadata/annotations/checksum~1clusteragent_token
- group: apps
kind: Deployment
name: datadog-clusterchecks
jsonPointers:
- /spec/template/metadata/annotations/checksum~1clusteragent_token Other slash escape example in argocd docs: If you have a slash spec:
ignoreDifferences:
- kind: Node
jsonPointers: /metadata/labels/node-role.kubernetes.io~1worker References |
Hi
I want to use ignoreDifferences for a annotation field in all services.
In order to set it up as a system level configuration, I am modifying the argo-cm configmap.
Qs 1) What would be the resource name that I need to use for services?
Qs 2) In the ignoreDifferences section, can I provide a fieldname with a slash in it? suppose field name is "string1/string2"
data:
resource.customizations: |
<what is this for services????>:
ignoreDifferences: |
jsonPointers:
- /metadata/annotations/string1/string2
The text was updated successfully, but these errors were encountered: