Skip to content

Commit

Permalink
Merge pull request #102 from projectsyn/fix/egress-gateway-policy-sync
Browse files Browse the repository at this point in the history
Set `SkipDryRunOnMissingResource=true` on egress gateway policies
  • Loading branch information
simu authored Jan 31, 2024
2 parents f057e02 + 51d0fcc commit f3ab279
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion component/egress-gateway-policies.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ local inv = kap.inventory();
local params = inv.parameters.cilium;

local CiliumEgressGatewayPolicy(name) =
kube._Object('cilium.io/v2', 'CiliumEgressGatewayPolicy', name);
kube._Object('cilium.io/v2', 'CiliumEgressGatewayPolicy', name) {
metadata+: {
annotations+: {
'argocd.argoproj.io/sync-options': 'SkipDryRunOnMissingResource=true',
},
},
};


local policies = com.generateResources(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
apiVersion: cilium.io/v2
kind: CiliumEgressGatewayPolicy
metadata:
annotations: {}
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
name: all-example-namespace
name: all-example-namespace
Expand Down

0 comments on commit f3ab279

Please sign in to comment.