This commit is contained in:
V
2025-11-15 19:09:30 +00:00
parent e8c5beed49
commit 9476903aac
3 changed files with 0 additions and 0 deletions
@@ -0,0 +1,27 @@
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: sync-git-token
spec:
mutateExistingOnPolicyUpdate: true
rules:
- name: copy-token-from-password
match:
any:
- resources:
kinds:
- Secret
names:
- flux-system
namespaces:
- flux-system
mutate:
targets:
- apiVersion: v1
kind: Secret
name: flux-system
namespace: flux-system
patchesJson6902: |-
- op: add
path: "/data/token"
value: "{{ request.object.data.password }}"