apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
  name: post-renderer-kustomize
spec:
  interval: 5m
  chart:
    spec:
      chart: podinfo
      version: '>=6.0.0 <7.0.0'
      sourceRef:
        kind: HelmRepository
        name: podinfo
      interval: 1m
  values:
    fullnameOverride: mypodinfo
  postRenderers:
  - kustomize: 
      patches:
      - patch: |
          kind: Deployment
          apiVersion: apps/v1
          metadata:
            name: mypodinfo
            labels:
              xxxx: yyyy
      - target:
          group: apps
          version: v1
          kind: Deployment
          name: mypodinfo
        patch: |
          - op: add
            path: /metadata/labels/yyyy
            value: xxxx
