From fd5d12800f4b4969bf6bd9058c7a5b7940c12e0b Mon Sep 17 00:00:00 2001 From: jeanmi <45998535+jeanmi151@users.noreply.github.com> Date: Wed, 17 Jan 2024 16:23:16 +0100 Subject: [PATCH] adding custom hostname for sftp (#18) * adding custom hostname for sftp --- sftp/templates/sftp-depl.yaml | 1 + sftp/values.yaml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sftp/templates/sftp-depl.yaml b/sftp/templates/sftp-depl.yaml index f00e812..72136e6 100644 --- a/sftp/templates/sftp-depl.yaml +++ b/sftp/templates/sftp-depl.yaml @@ -51,6 +51,7 @@ spec: chmod 600 /home/sftp/.ssh/authorized_keys ; chown sftp:sftp /home/sftp/.ssh/authorized_keys ; /usr/sbin/sshd -D -e ; + hostname: {{ tpl .Values.sftp.customHostname . }} volumes: - name: authorized-keys configMap: diff --git a/sftp/values.yaml b/sftp/values.yaml index cf04b30..5f4d1cf 100644 --- a/sftp/values.yaml +++ b/sftp/values.yaml @@ -15,7 +15,9 @@ sftp: #imagePullSecrets: #- name: secret - + + customHostname: "{{ .Release.Name }}-{{ .Release.Namespace }}" + extraVolumes: [] # - mountPath: /usr/share/nginx/html # name: volume-pvc