Skip to content

Commit

Permalink
adjusted the yaml files
Browse files Browse the repository at this point in the history
  • Loading branch information
facchettos committed Nov 28, 2023
1 parent 99a2d15 commit 8ebf06b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
21 changes: 8 additions & 13 deletions charts/k0s/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ spec:
{{- end }}
initContainers:
- image: {{ .Values.defaultImageRegistry }}{{ .Values.vcluster.image }}
name: init
name: vcluster
command:
- /bin/sh
args:
Expand All @@ -129,8 +129,6 @@ spec:
volumeMounts:
- name: k0s-binary
mountPath: /k0s-binary
- name: k0s-config
mountPath: /k0s-config
containers:
{{- if not .Values.syncer.disabled }}
- name: syncer
Expand Down Expand Up @@ -258,11 +256,6 @@ spec:
{{- end }}
- name: ETCD_UNSUPPORTED_ARCH
value: arm64
- name: CONFIG_READY
valueFrom:
secretKeyRef:
name: "vc-{{ .Release.Name }}-config"
key: CONFIG_READY
- name: VCLUSTER_COMMAND
value: |-
command:
Expand Down Expand Up @@ -297,6 +290,10 @@ spec:
mountPath: /.cache/helm
- name: k0s-binary
mountPath: /k0s-binary
- name: k0s-config
mountPath: /etc/k0s
- mountPath: /data
name: data
- name: run-k0s
mountPath: /run/k0s
- name: tmp
Expand All @@ -306,7 +303,9 @@ spec:
mountPath: /manifests/coredns
readOnly: true
{{- end }}
{{ toYaml .Values.syncer.volumeMounts | indent 10 }}
{{- if .Values.vcluster.volumeMounts }}
{{ toYaml .Values.vcluster.volumeMounts | indent 10 }}
{{- end }}
{{- if .Values.syncer.extraVolumeMounts }}
{{ toYaml .Values.syncer.extraVolumeMounts | indent 10 }}
{{- end }}
Expand Down Expand Up @@ -369,10 +368,6 @@ spec:
volumeDevices:
{{ toYaml $container.volumeDevices | indent 10 }}
volumeMounts:
- name: run-k0s
mountPath: /run/k0s
- name: k0s-binary
mountPath: /k0s-binary
{{ toYaml $container.volumeMounts | indent 10 }}
{{- if $container.resources }}
resources:
Expand Down
5 changes: 0 additions & 5 deletions charts/k0s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ syncer:
enabled: true
readinessProbe:
enabled: true
volumeMounts:
- mountPath: /data
name: data
- mountPath: /etc/k0s
name: k0s-config
extraVolumeMounts: []
resources:
limits:
Expand Down

0 comments on commit 8ebf06b

Please sign in to comment.