apiVersion: v1
data:
  foo: YmFy
kind: Secret
metadata:
  name: regcred
  namespace: default
type: Opaque
---
apiVersion: kyverno.io/v2beta1
kind: Policy
metadata:
  name: pol-clone-nosync-modify-downstream
  namespace: default
spec:
  rules:
  - name: pol-clone-nosync-modify-downstream-rule
    match:
      any:
      - resources:
          kinds:
          - ConfigMap
    generate:
      apiVersion: v1
      kind: Secret
      name: newsecret
      namespace: default
      synchronize: false
      clone:
        name: regcred
        namespace: default
