Anyone have an example of how to add non-existing ...
# kubernetes
s
Anyone have an example of how to add non-existing keys and "sub-values" using a transformation? For example, let's say I have this YAML:
Copy code
apiVersion: <http://kustomize.config.k8s.io/v1beta1|kustomize.config.k8s.io/v1beta1>
kind: Kustomization
resources:
  - ../../base
and I'd like to add this to that YAML:
Copy code
patchesJson6902:
  - path: name.json
    target:
      group: <http://infrastructure.cluster.x-k8s.io|infrastructure.cluster.x-k8s.io>
      kind: AWSCluster
      name: base
      version: v1alpha3
Is this possible using a transformation?