talos icon indicating copy to clipboard operation
talos copied to clipboard

Provide a way to delete keys and sequence elements during config strategic merge

Open DmitriyMV opened this issue 1 year ago • 0 comments

Given:

cluster:
  apiServer:
    auditPolicy:
      apiVersion: audit.k8s.io/v1
      kind: Policy
      rules:
  controlPlane:
    endpoint: https://localhost:6443

This:

cluster:
  apiServer:
    auditPolicy:
      rules:
        - $patch: delete
          level: Metadata

Should work and result in

cluster:
  apiServer:
    auditPolicy:
      apiVersion: audit.k8s.io/v1
      kind: Policy
      rules: []
  controlPlane:
    endpoint: https://localhost:6443

DmitriyMV avatar Aug 26 '24 11:08 DmitriyMV