Skip to content

Commit df052e3

Browse files
fix: sync the Helm chart with the source of truth in the UI repo (#56)
Signed-off-by: Harikrishnan Balagopal <[email protected]>
1 parent 027c483 commit df052e3

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

helm-charts/move2kube/templates/auth-server-service.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.deployment.authServer.enable }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -12,3 +13,4 @@ spec:
1213
targetPort: 8080
1314
selector:
1415
move2kube.konveyor.io/service: "{{ .Release.Name }}-auth-server"
16+
{{- end }}

helm-charts/move2kube/templates/database-service.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.deployment.database.enable }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -10,3 +11,4 @@ spec:
1011
targetPort: 5432
1112
selector:
1213
move2kube.konveyor.io/service: "{{ .Release.Name }}-database"
14+
{{- end }}

helm-charts/move2kube/templates/move2kube-api-stateful-set.yaml

+18-4
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,45 @@ spec:
2121
image: quay.io/konveyor/busybox
2222
command: ["/bin/sh", "-c"]
2323
args:
24-
- chown -R 12345:root /move2kube-api/data && chmod -R 770 /move2kube-api/data
24+
- 'chown -R "$(id -u)":root /move2kube-api/data && chmod -R 770 /move2kube-api/data'
2525
volumeMounts:
2626
- name: common-volume
2727
mountPath: /move2kube-api/data
2828
subPath: move2kube-api/data
2929
containers:
30-
- image: "quay.io/konveyor/move2kube-ui:{{ .Values.deployment.api.imageTag | default .Chart.AppVersion }}"
30+
- name: move2kubeapi
31+
image: "quay.io/konveyor/move2kube-ui:{{ .Values.deployment.api.imageTag | default .Chart.AppVersion }}"
3132
command:
3233
- move2kube-api
3334
args:
34-
- --config=config.yaml
35+
- '--log-level=trace'
36+
- '--static-files-dir=build'
37+
{{- if .Values.secret.api.enable }}
38+
- '--config=config.yaml'
39+
{{- end }}
40+
- '--host=$(MY_POD).$(MY_SERVICE)'
3541
imagePullPolicy: Always
36-
name: move2kubeapi
3742
ports:
3843
- containerPort: 8080
3944
protocol: TCP
45+
env:
46+
- name: MY_POD
47+
valueFrom:
48+
fieldRef:
49+
fieldPath: metadata.name
50+
- name: MY_SERVICE
51+
value: "{{ .Release.Name }}-move2kubeapiheadless"
4052
{{- if .Values.deployment.api.privilegedPods }}
4153
securityContext:
4254
privileged: true
4355
{{- end }}
4456
volumeMounts:
57+
{{- if .Values.secret.api.enable }}
4558
- name: api-config
4659
mountPath: /move2kube-api/config.yaml
4760
subPath: config.yaml
4861
readOnly: true
62+
{{- end }}
4963
- name: common-volume
5064
mountPath: /move2kube-api/data
5165
subPath: move2kube-api/data

helm-charts/move2kube/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ingress:
2020
enable: true
2121
preferRoute: false # if true we will use an Openshift Route instead of an K8s Ingress
2222
host: mydomain.com
23-
tlsSecretName: myTLSSecret # not necessary when using Openshift Route
23+
tlsSecretName: "" # not necessary when using Openshift Route
2424
persistentVolumeClaim:
2525
enable: false # set this to true to get persistent storage
2626
createNew: true

0 commit comments

Comments
 (0)