Skip to content

Commit

Permalink
Fix comparsion error when using server-side apply
Browse files Browse the repository at this point in the history
  • Loading branch information
DebakelOrakel committed Nov 27, 2024
1 parent 4543443 commit 3d6ff50
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions component/app.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ local argocd = import 'lib/argocd.libjsonnet';

local syn_project = argocd.Project('syn');
local default_project = argocd.Project('default') {
metadata: {
annotations: {
'argocd.argoproj.io/compare-options': 'ServerSideDiff=true',
},
},
spec: {
destinations: [ {
namespace: '*',
Expand Down
4 changes: 2 additions & 2 deletions tests/golden/defaults/argocd/apps/00_default-project.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: default
namespace: syn
annotations:
argocd.argoproj.io/compare-options: ServerSideDiff=true
spec:
clusterResourceWhitelist:
- group: '*'
Expand Down
4 changes: 2 additions & 2 deletions tests/golden/openshift/argocd/apps/00_default-project.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: default
namespace: syn
annotations:
argocd.argoproj.io/compare-options: ServerSideDiff=true
spec:
clusterResourceWhitelist:
- group: '*'
Expand Down
4 changes: 2 additions & 2 deletions tests/golden/params/argocd/apps/00_default-project.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: default
namespace: syn
annotations:
argocd.argoproj.io/compare-options: ServerSideDiff=true
spec:
clusterResourceWhitelist:
- group: '*'
Expand Down
4 changes: 2 additions & 2 deletions tests/golden/prometheus/argocd/apps/00_default-project.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: default
namespace: syn
annotations:
argocd.argoproj.io/compare-options: ServerSideDiff=true
spec:
clusterResourceWhitelist:
- group: '*'
Expand Down

0 comments on commit 3d6ff50

Please sign in to comment.