-
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
[Bug] Can't get jqPathExpressions
based ignoreDifferences
to work with various WebhookConfigurations
#9323
Comments
I also have set this in the ArgoCD ConfigMap and it does not work either. data:
application.instanceLabelKey: argocd.argoproj.io/instance
resource.compareoptions: |
ignoreAggregatedRoles: true
admissionregistration.k8s.io/MutatingWebhookConfiguration:
ignoreDifferences: |
jqPathExpressions:
- '.webhooks[]?.clientConfig.caBundle' |
jqPathExpressions
based ignoreDifferences
to work with various WebhookConfigurationsjqPathExpressions
based ignoreDifferences
to work with various WebhookConfigurations
I had some difficulty with this as well. I suspect it came down to the namespace setting. I haven't dug into the code for argocd, but based on behavior, I'd guess that all/most fields in the spec have to be given. I was specifically struggling to find a way to ignore the ignoreDifferences:
- group: admissionregistration.k8s.io
jqPathExpressions:
- .webhooks[].failurePolicy
kind: ValidatingWebhookConfiguration
name: istio-validator-istio-system I explicitly set |
I use below to fix
|
To keep istio-sidecar-injector in sync here is what you would need.
|
Seems like a duplicate of #9678? |
Well officially, this one came first, but if the problem is being worked on via the other issue that is good to hear. |
Checklist:
argocd version
.Describe the bug
Setting this
ignoreDifferences
block applies fine, but doesn't do anything.To Reproduce
Applying this ArgoCD application:
Should install istio and then you get two webhook configs which show diffs that aren't ignored.
Expected behavior
I can ignore these expected diffs from the application manifest level.
Screenshots
Version
cc/ aws-samples/eks-blueprints-add-ons#37
The text was updated successfully, but these errors were encountered: