Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/espejote.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ local jsonnetLibrary(name, namespace) = {
labels: {
'app.kubernetes.io/name': name,
},
annotations: {
'argocd.argoproj.io/sync-options': 'SkipDryRunOnMissingResource=true',
},
name: name,
namespace: namespace,
},
Expand All @@ -42,6 +45,9 @@ local admission(name, namespace) = {
labels: {
'app.kubernetes.io/name': name,
},
annotations: {
'argocd.argoproj.io/sync-options': 'SkipDryRunOnMissingResource=true',
},
name: name,
namespace: namespace,
},
Expand All @@ -60,6 +66,9 @@ local clusterAdmission(name) = {
labels: {
'app.kubernetes.io/name': name,
},
annotations: {
'argocd.argoproj.io/sync-options': 'SkipDryRunOnMissingResource=true',
},
name: name,
},
};
Expand All @@ -78,6 +87,9 @@ local managedResource(name, namespace) = {
labels: {
'app.kubernetes.io/name': name,
},
annotations: {
'argocd.argoproj.io/sync-options': 'SkipDryRunOnMissingResource=true',
},
name: name,
namespace: namespace,
},
Expand Down
2 changes: 2 additions & 0 deletions tests/golden/lib/espejote/tests/image_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ subjects:
apiVersion: espejote.io/v1alpha1
kind: ManagedResource
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: config-openshift-io-images-cluster-manager
name: config-openshift-io-images-cluster-manager
Expand Down
2 changes: 2 additions & 0 deletions tests/golden/lib/espejote/tests/image_config_override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ subjects:
apiVersion: espejote.io/v1alpha1
kind: ManagedResource
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: image-config-openshift-io-mgr
name: image-config-openshift-io-mgr
Expand Down
2 changes: 2 additions & 0 deletions tests/golden/resources/espejote/espejote/50_jl_a_my-lib.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: espejote.io/v1alpha1
kind: JsonnetLibrary
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: my-lib
name: my-lib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: espejote.io/v1alpha1
kind: JsonnetLibrary
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: my-lib
name: my-lib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ metadata:
apiVersion: espejote.io/v1alpha1
kind: ManagedResource
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: auto-roles-1
name: auto-roles-1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ metadata:
apiVersion: espejote.io/v1alpha1
kind: ManagedResource
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: auto-roles-2
name: auto-roles-2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ metadata:
apiVersion: espejote.io/v1alpha1
kind: ManagedResource
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: copy-configmap
name: copy-configmap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ metadata:
apiVersion: espejote.io/v1alpha1
kind: ManagedResource
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: copy-secret
name: copy-secret
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ metadata:
apiVersion: espejote.io/v1alpha1
kind: ManagedResource
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: with-sa-in-spec
name: with-sa-in-spec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ metadata:
apiVersion: espejote.io/v1alpha1
kind: ManagedResource
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: with-sa
name: with-sa
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ metadata:
apiVersion: espejote.io/v1alpha1
kind: ManagedResource
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: without-sa
name: without-sa
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: espejote.io/v1alpha1
kind: Admission
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: test-admission
name: test-admission
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: espejote.io/v1alpha1
kind: Admission
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: test-admission
name: test-admission
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: espejote.io/v1alpha1
kind: ClusterAdmission
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
app.kubernetes.io/name: test-cluster-admission
name: test-cluster-admission
Expand Down
Loading