File tree 5 files changed +14
-5
lines changed
5 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ description: Tiny SSH based reverse-tunnel to expose services behind a firewall
4
4
5
5
type : application
6
6
7
- version : 0.0.4
7
+ version : 0.0.5
8
8
9
9
appVersion : " v2.3"
Original file line number Diff line number Diff line change @@ -58,10 +58,11 @@ The command removes all the Kubernetes components associated with the chart and
58
58
59
59
### SSH Credentials
60
60
61
- | Name | Description | Value |
62
- | ----------------- | ----------------------------------------------------------------------------------- | ----- |
63
- | ` data.privateKey ` | Passwordless OpenSSH Private Key authorized to login as ` SSH_USER ` on ` REMOTE_HOST ` | ` "" ` |
64
- | ` data.knownHosts ` | Used for OpenSSH HostKeyVerification. Output of ` ssh-keyscan ${REMOTE_HOST} ` . | ` "" ` |
61
+ | Name | Description | Value |
62
+ | --------------------- | ----------------------------------------------------------------------------------- | ----- |
63
+ | ` data.privateKey ` | Passwordless OpenSSH Private Key authorized to login as ` SSH_USER ` on ` REMOTE_HOST ` | ` "" ` |
64
+ | ` data.knownHosts ` | Used for OpenSSH HostKeyVerification. Output of ` ssh-keyscan ${REMOTE_HOST} ` . | ` "" ` |
65
+ | ` data.existingSecret ` | Name of secret containing keys ` id_rsa ` and ` known_hosts ` . | ` "" ` |
65
66
66
67
67
68
## License
Original file line number Diff line number Diff line change 80
80
- name : ssh-data
81
81
secret :
82
82
defaultMode : 0600
83
+ {{- if not $.Values.data.existingSecret }}
83
84
secretName : {{ include "charts.fullname" $ }}-data
85
+ {{- else }}
86
+ secretName : {{ $.Values.data.existingSecret }}
87
+ {{- end }}
84
88
{{- end }}
Original file line number Diff line number Diff line change
1
+ {{- if not $.Values.data.existingSecret }}
1
2
apiVersion : v1
2
3
kind : Secret
3
4
type : Opaque
@@ -8,3 +9,4 @@ metadata:
8
9
data :
9
10
id_rsa : {{ required "data.privateKey is required" .Values.data.privateKey | b64enc | quote }}
10
11
known_hosts : {{ required "data.knownHosts is required" .Values.data.knownHosts | b64enc | quote }}
12
+ {{- end }}
Original file line number Diff line number Diff line change @@ -57,9 +57,11 @@ configuration:
57
57
# # @section SSH Credentials
58
58
# # @param data.privateKey Passwordless OpenSSH Private Key authorized to login as `SSH_USER` on `REMOTE_HOST`
59
59
# # @param data.knownHosts Used for OpenSSH HostKeyVerification. Output of `ssh-keyscan ${REMOTE_HOST}`.
60
+ # # @param data.existingSecret The name of a secret containing keys `id_rsa` and `known_hosts`.
60
61
data :
61
62
privateKey : " "
62
63
knownHosts : " "
64
+ existingSecret : " "
63
65
64
66
podSecurityContext :
65
67
fsGroup : 65534
You can’t perform that action at this time.
0 commit comments