Skip to content

Commit

Permalink
wormhole kubeconfig path when using seedVirtual (#925)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandru Mihai <alexandru.mihai@sap.com>
  • Loading branch information
xsen84 and Alexandru Mihai authored Jun 19, 2024
1 parent 271a6c7 commit d2e3149
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/seed/templates/wormhole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ spec:
args:
- |
cp ${KUBE_CLIENT_CERT} /tmp/client-cert.livenessprobe
exec wormhole client --listen {{ .Values.advertiseAddress }}:{{ .Values.advertisePort }} --health-check=false --kubeconfig= {{- if .Values.seedKubeadm -}} /etc/kubernetes/kubelet.conf {{- else -}} /var/lib/kubelet/kubeconfig {{- end }}
exec wormhole client --listen {{ .Values.advertiseAddress }}:{{ .Values.advertisePort }} --health-check=false --kubeconfig= {{- if or .Values.seedKubeadm .Values.seedVirtual -}} /etc/kubernetes/kubelet.conf {{- else -}} /var/lib/kubelet/kubeconfig {{- end }}
env:
- name: KUBE_CLIENT_CERT
value: /var/lib/kubelet/pki/kubelet-client-current.pem
Expand All @@ -108,7 +108,7 @@ spec:
- name: config
mountPath: /var/lib/kubelet
readOnly: true
{{- if .Values.seedKubeadm }}
{{- if or .Values.seedKubeadm .Values.seedVirtual }}
- name: etc-kubernetes
mountPath: /etc/kubernetes
readOnly: true
Expand All @@ -117,7 +117,7 @@ spec:
- name: config
hostPath:
path: /var/lib/kubelet
{{- if .Values.seedKubeadm }}
{{- if or .Values.seedKubeadm .Values.seedVirtual }}
- name: etc-kubernetes
hostPath:
path: /etc/kubernetes
Expand Down

0 comments on commit d2e3149

Please sign in to comment.