From 963149f5e7d86c6e33990f367c1341db8922c214 Mon Sep 17 00:00:00 2001 From: souleb Date: Tue, 26 Mar 2024 14:36:31 +0100 Subject: [PATCH] Delete tenants/apps/policies/sync-git-token.yaml --- tenants/apps/policies/sync-git-token.yaml | 26 ----------------------- 1 file changed, 26 deletions(-) delete mode 100644 tenants/apps/policies/sync-git-token.yaml diff --git a/tenants/apps/policies/sync-git-token.yaml b/tenants/apps/policies/sync-git-token.yaml deleted file mode 100644 index 793aa6c..0000000 --- a/tenants/apps/policies/sync-git-token.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: kyverno.io/v1 -kind: ClusterPolicy -metadata: - name: sync-git-token -spec: - mutateExistingOnPolicyUpdate: true - rules: - - name: copy-token-from-password - match: - any: - - resources: - kinds: - - v1/Namespace - selector: - matchLabels: - toolkit.fluxcd.io/tenant: "apps" - mutate: - targets: - - apiVersion: v1 - kind: Secret - name: flux-system - namespace: flux-system - patchesJson6902: |- - - op: add - path: "/data/token" - value: "{{ request.object.data.password }}"