Skip to content

Commit

Permalink
Ignore changes to CRD conversion webhook CA bundles
Browse files Browse the repository at this point in the history
The metallb controller manages that field, so we need to ensure
that those changes aren't reverted by ArgoCD.

This commit configures ArgoCD to ignore changes to the conversion
webhook CA bundles.
  • Loading branch information
simu committed Jul 12, 2024
1 parent cdaaacc commit 3c17de8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion component/app.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,19 @@ local inv = kap.inventory();
local params = inv.parameters.metallb;
local argocd = import 'lib/argocd.libjsonnet';

local app = argocd.App('metallb', params.namespace);
local app = argocd.App('metallb', params.namespace) {
spec+: {
ignoreDifferences: [
{
group: 'apiextensions.k8s.io',
kind: 'CustomResourceDefinition',
jsonPointers: [
'/spec/conversion/webhook/clientConfig/caBundle',
],
},
],
},
};

{
metallb: app,
Expand Down

0 comments on commit 3c17de8

Please sign in to comment.