Skip to content

Commit

Permalink
fix: ensure vsphere password is quoted (#342)
Browse files Browse the repository at this point in the history
## Description
ensure the vsphere password is quoted to avoid any yaml to json
conversion errors like the following:
```
Error: YAML parse error on validator/templates/plugin-secret-vsphere.yaml: error converting YAML to JSON: yaml: line 7: did not find expected comment or line break
```
  • Loading branch information
ahmad-ibra authored Jul 23, 2024
1 parent 5f57fb8 commit 3f297de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chart/validator/templates/plugin-secret-vsphere.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ kind: Secret
metadata:
name: {{ required ".Values.pluginSecrets.vSphere.secretName is required!" .Values.pluginSecrets.vSphere.secretName }}
stringData:
username: {{ required ".Values.pluginSecrets.vSphere.username is required!" .Values.pluginSecrets.vSphere.username }}
password: {{ required ".Values.pluginSecrets.vSphere.password is required!" .Values.pluginSecrets.vSphere.password }}
vcenterServer: {{ required ".Values.pluginSecrets.vSphere.vcenterServer is required!" .Values.pluginSecrets.vSphere.vcenterServer }}
username: {{ required ".Values.pluginSecrets.vSphere.username is required!" .Values.pluginSecrets.vSphere.username | quote }}
password: {{ required ".Values.pluginSecrets.vSphere.password is required!" .Values.pluginSecrets.vSphere.password | quote }}
vcenterServer: {{ required ".Values.pluginSecrets.vSphere.vcenterServer is required!" .Values.pluginSecrets.vSphere.vcenterServer | quote }}
insecureSkipVerify: {{ required ".Values.pluginSecrets.vSphere.insecureSkipVerify is required!" .Values.pluginSecrets.vSphere.insecureSkipVerify | quote }}
{{- end }}
{{- end }}

0 comments on commit 3f297de

Please sign in to comment.