Open HeshamMeneisi opened 2 years ago
I had the same problem using nodeSelector. As it is outside the block, the template is generated incorrectly by helm. I was recieving the following error while installing the operator.
[apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false
I identified the problem by generating the template and verifying that was incorrect:
helm template charts/spark-operator-chart
Generated template:
nodeSelector:
app: example
---
# Source: spark-operator/templates/webhook-cleanup-job.yaml
nodeSelector:
app: example
---
# Source: spark-operator/templates/webhook-init-job.yaml
nodeSelector:
app: example
---
Tolerations are placed outside the if block.
This is in both webhook-cleanup-job.yaml and webhook-init-job.yaml
When webhooks are disabled, the file will only contain tolerations which causes this error from
helm-operator
: