Skip to content

Commit

Permalink
Fix templating errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Kulhanek authored and Wolfgang Kulhanek committed Dec 11, 2023
1 parent 794efff commit 313ab39
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
15 changes: 7 additions & 8 deletions charts/showroom-single-pod/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,28 @@
<div class="content">
<div class="split left">
{{- if .Values.content.url }}
<iframe id="doc" src="{{ .Values.content.url }}" width="100%" style="border:none;"></iframe>
<iframe id="doc" src="{{ .Values.content.url }}" width="100%" style="border:none;"></iframe>
{{- else }}
<!-- make this the content service -->
<iframe id="doc" src="{{ include "showroom-deployer.showroom.route" (list "content" .Values) }}" width="100%" style="border:none;"></iframe>
<iframe id="doc" src="https://showroom.{{ .Release.Namespace }}.{{ .Values.deployer.domain }}/content" width="100%" style="border:none;"></iframe>
{{- end }}
</div>
<div class="split right">
<div class="tab">
<button class="tablinks" onclick="openTerminal(event, 'terminal_tab')" id="defaultOpen" tabindex="0">Terminal</button>
{{- if .Values.codeserver }}
{{- if .Values.codeserver.setup }}
<button class="tablinks" onclick="openTerminal(event, 'codeserver_tab')">VS Code</button>
{{- end }}
{{- range .Values.services }}
<!-- {{- range .Values.services }}
<button class="tablinks" onclick="openTerminal(event, 'svc_{{ .name }}_tab')">{{ .name }}</button>
{{- end }}
{{- end }} -->
</div>
<div id="terminal_tab" class="tabcontent">
<iframe id="terminal_01" src="{{ include "showroom-deployer.showroom.route" (list "wetty" .Values) }}" width="100%" style="border:none;"></iframe>
<!-- <iframe id="terminal_01" src="http://localhost:8081/wetty" width="100%" style="border:none;"></iframe> -->
<iframe id="terminal_01" src="https://showroom.{{ .Release.Namespace }}.{{ .Values.deployer.domain }}/terminal" width="100%" style="border:none;"></iframe>
</div>
{{- if .Values.codeserver.setup }}
<div id="codeserver_tab" class="tabcontent">
<iframe id="codeserver" src="{{ include "showroom-deployer.showroom.route" (list "codeserver" .Values) }}" width="100%" style="border:none;"></iframe>
<iframe id="codeserver" src="https://showroom.{{ .Release.Namespace }}.{{ .Values.deployer.domain }}/codeserver" width="100%" style="border:none;"></iframe>
</div>
{{- end }}
{{- range .Values.services }}
Expand Down
5 changes: 0 additions & 5 deletions charts/showroom-single-pod/templates/_helpers.tpl

This file was deleted.

2 changes: 1 addition & 1 deletion charts/showroom-single-pod/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ spec:
- name: nginx-cache
emptyDir: {}
- name: lab-user-home
{{- if .Values.storage.setup }}
{{- if .Values.terminal.storage.setup }}
persistentVolumeClaim:
claimName: lab-user-home
{{- else }}
Expand Down
2 changes: 1 addition & 1 deletion charts/showroom-single-pod/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.storage.setup }}
{{- if .Values.terminal.storage.setup }}
---
apiVersion: v1
kind: PersistentVolumeClaim
Expand Down

0 comments on commit 313ab39

Please sign in to comment.