Skip to content

Commit 8e9dde4

Browse files
committed
move ui.yaml to frontends at root dir
1 parent 3ef84fc commit 8e9dde4

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

starship/charts/devnet/templates/ui/ui.yaml renamed to starship/charts/devnet/templates/frontends.yaml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ spec:
5050
- name: {{ $frontend.name }}
5151
image: {{ $frontend.image }}
5252
imagePullPolicy: {{ $.Values.images.imagePullPolicy }}
53+
env:
54+
- name: NAMESPACE
55+
valueFrom:
56+
fieldRef:
57+
fieldPath: metadata.namespace
58+
{{- if $frontend.env }}
59+
{{- range $key, $value := $frontend.env }}
60+
- name: {{ $key }}
61+
value: {{ $value | quote }}
62+
{{- end }}
63+
{{- end }}
5364
{{- if $frontend.ports }}
5465
ports:
5566
{{- if $frontend.ports.rest }}
@@ -58,22 +69,20 @@ spec:
5869
protocol: TCP
5970
{{- end }}
6071
{{- end }}
61-
{{- if $frontend.env }}
62-
env:
63-
{{- range $key, $value := $frontend.env }}
64-
- name: {{ $key }}
65-
value: {{ $value | quote }}
66-
{{- end }}
67-
{{- end }}
68-
resources: {{- include "getResourceObject" $frontend.resources | trim | nindent 12 }}
72+
resources:
73+
{{- include "getResourceObject" $frontend.resources | indent 12 }}
6974
readinessProbe:
7075
tcpSocket:
7176
port: http
7277
initialDelaySeconds: 20
7378
periodSeconds: 10
79+
timeoutSeconds: 5
80+
failureThreshold: 3
7481
livenessProbe:
7582
tcpSocket:
7683
port: http
7784
initialDelaySeconds: 20
7885
periodSeconds: 10
79-
{{- end }}
86+
timeoutSeconds: 5
87+
failureThreshold: 3
88+
{{- end }}

0 commit comments

Comments
 (0)