rancher-charts/charts/rancher-vsphere-cpi/100.5.0+up1.4.1/templates/configmap.yaml

32 lines
913 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: vsphere-cloud-config
labels:
vsphere-cpi-infra: config
component: {{ .Chart.Name }}-cloud-controller-manager
namespace: {{ .Release.Namespace }}
data:
vsphere.yaml: |
# Global properties in this section will be used for all specified vCenters unless overriden in VirtualCenter section.
{{ with .Values.vCenter }}
global:
secretName: {{ .credentialsSecret.name | quote }}
secretNamespace: {{ $.Release.Namespace | quote }}
port: {{ .port }}
insecureFlag: {{ .insecureFlag }}
vcenter:
{{ .host | quote }}:
server: {{ .host | quote }}
user: {{ .username }}
password: {{ .password }}
datacenters:
- {{ .datacenters | quote }}
{{- if .labels.generate }}
labels:
region: {{ .labels.region }}
zone: {{ .labels.zone }}
{{- end }}
{{- end }}