I ran into this problem. I have metadata.name. But I have no more ideas how to solve this problem. This kustomize used to work, but lately it just refuses to work. Can you please advise me
Client Version: v1.25.2
Kustomize Version: v4.5.7
This is what the error is displayed on the command line
Error: trouble configuring builtin PatchTransformer with config: `
patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: core-keycloak
spec:
template:
spec:
containers:
- name: core-keycloak
resources:
requests:
cpu: '4'
memory: '4Gi'
startupProbe:
initialDelaySeconds: 10
timeoutSeconds: 30
failureThreshold: 2
exec:
command:
- 'sh'
- '-cx'
- 'postStart.sh >> /proc/1/fd/1 2>&1'
volumeMounts:
- mountPath: /etc/x509/https
name: tls-mount
lifecycle:
: delete
volumes:
- name: tls-mount
secret:
secretName: internal-cert
`: unable to parse SM or JSON patch from [apiVersion: apps/v1
kind: Deployment
metadata:
name: core-keycloak
spec:
template:
spec:
containers:
- name: core-keycloak
resources:
requests:
cpu: '4'
memory: '4Gi'
startupProbe:
initialDelaySeconds: 10
timeoutSeconds: 30
failureThreshold: 2
exec:
command:
- 'sh'
- '-cx'
- 'postStart.sh >> /proc/1/fd/1 2>&1'
volumeMounts:
- mountPath: /etc/x509/https
name: tls-mount
lifecycle:
: delete
volumes:
- name: tls-mount
secret:
secretName: internal-cert]
I tried different options and without metadata, but nothing worked.