This commit is contained in:
Danijel Simeunovic
2026-03-13 12:33:14 +01:00
parent 0a803cda11
commit edbbb52bc6

View File

@@ -85,6 +85,7 @@ spec:
- name: auth-tokens
secret:
secretName: auth-tokens
optional: true
- name: generate-auth-tokens-secret
skipBackgroundRequests: true
match:
@@ -103,21 +104,12 @@ spec:
- argocd
- cert-manager
- monitoring
context:
- name: secretCount
apiCall:
method: GET
urlPath: /api/v1/namespaces/{{request.namespace}}/secrets
jmesPath: "items[?metadata.name == 'auth-tokens'] | length(@)"
preconditions:
all:
- key: "{{ request.operation }}"
operator: In
value:
- CREATE
- key: "{{ secretCount }}"
operator: Equals
value: 0
generate:
synchronize: false
apiVersion: v1