Skip to content

Commit 0aa04e8

Browse files
authored
Merge pull request #43 from rhpds/revert-42-agonzalezrh-patch-2
Revert "Remove wetty terminal configuration"
2 parents c12e77f + 7e6ba86 commit 0aa04e8

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

charts/zerotouch/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type: application
77
# This is the chart version. This version number should be incremented each time you make changes
88
# to the chart and its templates, including the app version.
99
# Versions are expected to follow Semantic Versioning (https://semver.org/)
10-
version: 1.9.19
10+
version: 1.9.18
1111

1212
# This is the version number of the application being deployed. This version number should be
1313
# incremented each time you make changes to the application. Versions are not expected to

charts/zerotouch/templates/deployment.yaml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,36 @@ spec:
410410
{{- toYaml $.Values.wetty.resources | nindent 10 }}
411411
{{- end }}
412412

413-
413+
{{- range $hostIndex, $host := .Values.wetty.ssh.terminals | default (list) }}
414+
{{- range $i, $terminal := $host.terminals | default (list) }}
415+
- name: wetty-{{ $terminal.name | replace "_" "-" }}
416+
image: {{ $.Values.wetty.image }}
417+
imagePullPolicy: IfNotPresent
418+
args:
419+
- --base="/{{ $.Values.wetty.base }}/"
420+
- --port={{ add $.Values.wetty.port ($.Values.wetty.ssh.sshOtherHosts | len) 1 $i }}
421+
{{- if eq $.Values.wetty.ssh.autoSshToBastion "true" }}
422+
- --ssh-host={{ $host.name }}
423+
- --ssh-port={{ $.Values.wetty.ssh.sshPort }}
424+
- --ssh-user={{ $.Values.wetty.ssh.sshUser }}
425+
- --ssh-auth={{ $.Values.wetty.ssh.sshAuth }}
426+
- --ssh-pass={{ $.Values.wetty.ssh.sshPass }}
427+
- --command="{{ $terminal.command }}"
428+
{{- end }}
429+
env:
430+
- name: NAMESPACE
431+
valueFrom:
432+
fieldRef:
433+
fieldPath: metadata.namespace
434+
- name: GUID
435+
value: "{{ $.Values.guid }}"
436+
ports:
437+
- containerPort: {{ add $.Values.wetty.port ($.Values.wetty.ssh.sshOtherHosts | len) 1 $i }}
438+
protocol: TCP
439+
resources:
440+
{{- toYaml $.Values.wetty.resources | nindent 10 }}
441+
{{- end }}
442+
{{- end }}
414443
{{- end }}
415444

416445
{{- if eq .Values.novnc.setup "true" }}

0 commit comments

Comments
 (0)