Closed biohazd closed 9 months ago
Since the kustomize build
process happens within the sas-deployment-operator-reconcile-*
pod that's the place were any build errors would be exposed.
You could run
kubectl \
get sasdeployments \
-n name-of-SAS-Viya-namespace \
-o yaml
Which is formatted and a little easier to view than the logs.
Troubleshooting doc: https://go.documentation.sas.com/doc/en/itopscdc/default/dplyml0phy0dkr/p127f6y30iimr6n17x2xe9vlt54q.htm#p11o2ghzdkqm6kn1qkxqr2wr3nkh
Alternatively and a little more involved, you could do the following:
DEPLOY: false
viya,install
task, since DEPLOY is false only the kustomization and CRD will be generated and not applied into the cluster.kustomization build
and catch without having to go through the sas-deployment-operator-reconcile
pod DEPLOY: true
and rerun the viya,install
tasks
Running the deploy/ansible all works, and does not show any errros. is there a better way to catch errors from Kustomize ?
I have this error in pod "sas-deployment-operator-reconcile-xxxxxx".
The error is:
"[EXPERIMENTAL] Run 'kustomize edit fix' to update your Kustomization automatically.\nError: accumulating resources: accumulation err='accumulating resources from 'generation': '/work/deploy/resources/generation' must resolve to a file': recursed accumulation of path '/work/deploy/resources/generation': add operation does not apply: doc is missing path: \"/template/spec/containers/0/volumeMounts/-\": missing value]"}"
I was trying to add the file "data-mounts-deployment.yaml" to my deploy and it dfoesnt like the "/template/spec/containers/0/volumeMounts/-"