Skip to content

Commit 8e9d783

Browse files
committed
Helm Charts - Added support for OKE Virtual Nodes
Signed-off-by: junior <[email protected]>
1 parent 8cce58b commit 8e9d783

File tree

13 files changed

+24
-4
lines changed

13 files changed

+24
-4
lines changed

deploy/complete/helm-chart/mushop/charts/api/templates/api-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,7 @@ spec:
5757
port: http
5858
resources:
5959
{{- toYaml .Values.resources | nindent 12 }}
60+
{{- if not .Values.global.okeVirtualNodesSupport }}
6061
securityContext:
6162
{{- toYaml .Values.securityContext | nindent 12 }}
63+
{{- end }}

deploy/complete/helm-chart/mushop/charts/assets/templates/assets-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,7 @@ spec:
3838
port: http
3939
resources:
4040
{{- toYaml .Values.resources | nindent 12 }}
41+
{{- if not .Values.global.okeVirtualNodesSupport }}
4142
securityContext:
4243
{{- toYaml .Values.securityContext | nindent 12 }}
44+
{{- end }}

deploy/complete/helm-chart/mushop/charts/carts/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
137137
- name: wallet
138138
secret:
139139
secretName: {{ $wallet }}
140-
{{- if ne .Values.global.mock.service "all" }}
140+
{{- if ne .Values.global.mock.service "all" }}
141141
defaultMode: 256
142142
{{- end }}
143143
{{- end }}

deploy/complete/helm-chart/mushop/charts/catalogue/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
137137
- name: wallet
138138
secret:
139139
secretName: {{ $wallet }}
140-
{{- if ne .Values.global.mock.service "all" }}
140+
{{- if ne .Values.global.mock.service "all" }}
141141
defaultMode: 256
142142
{{- end }}
143143
{{- end }}

deploy/complete/helm-chart/mushop/charts/catalogue/templates/catalogue-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,12 @@ spec:
5454
periodSeconds: 5
5555
resources:
5656
{{- toYaml .Values.resources | nindent 12 }}
57+
{{- if not .Values.global.okeVirtualNodesSupport }}
5758
securityContext:
5859
{{- toYaml .Values.securityContext | nindent 12 }}
60+
{{- end }}
5961
volumes: {{- include "catalogue.volumes" . | nindent 8 }}
62+
{{- if not .Values.global.okeVirtualNodesSupport }}
6063
securityContext:
6164
fsGroup: 687467
65+
{{- end }}

deploy/complete/helm-chart/mushop/charts/edge/templates/edge-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ spec:
4343
port: http
4444
resources:
4545
{{- toYaml .Values.resources | nindent 12 }}
46+
{{- if not .Values.global.okeVirtualNodesSupport }}
4647
securityContext:
4748
{{- toYaml .Values.securityContext | nindent 12 }}
49+
{{- end }}
4850
volumes:
4951
- name: config
5052
configMap:

deploy/complete/helm-chart/mushop/charts/events/templates/events-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,7 @@ spec:
4545
port: http
4646
resources:
4747
{{- toYaml .Values.resources | nindent 12 }}
48+
{{- if not .Values.global.okeVirtualNodesSupport }}
4849
securityContext:
4950
{{- toYaml .Values.securityContext | nindent 12 }}
51+
{{- end }}

deploy/complete/helm-chart/mushop/charts/orders/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
144144
- name: wallet
145145
secret:
146146
secretName: {{ $wallet }}
147-
{{- if ne .Values.global.mock.service "all" }}
147+
{{- if ne .Values.global.mock.service "all" }}
148148
defaultMode: 256
149149
{{- end }}
150150
{{- end }}

deploy/complete/helm-chart/mushop/charts/payment/templates/payment-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ spec:
4242
periodSeconds: 5
4343
resources:
4444
{{- toYaml .Values.resources | nindent 12 }}
45+
{{- if not .Values.global.okeVirtualNodesSupport }}
4546
securityContext:
4647
{{- toYaml .Values.securityContext | nindent 12 }}
48+
{{- end }}
4749
nodeSelector:
4850
kubernetes.io/os: linux

deploy/complete/helm-chart/mushop/charts/session/templates/session-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ spec:
2828
ports:
2929
- name: redis
3030
containerPort: 6379
31+
{{- if not .Values.global.okeVirtualNodesSupport }}
3132
securityContext:
3233
{{- toYaml .Values.securityContext | nindent 12 }}
34+
{{- end }}
3335
nodeSelector:
3436
kubernetes.io/os: linux

0 commit comments

Comments
 (0)