diff --git a/clients/harbor-client/charts/templates/configmap.yaml b/clients/harbor-client/charts/templates/configmap.yaml new file mode 100644 index 0000000..59d7403 --- /dev/null +++ b/clients/harbor-client/charts/templates/configmap.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ .Values.configMapName }} + namespace: {{ .Release.Namespace }} +data: + IMAGE_REFERENCE: "{{ .Values.imageReference }}" diff --git a/clients/harbor-client/charts/templates/deployment.yaml b/clients/harbor-client/charts/templates/deployment.yaml index 1660ddf..a61fced 100644 --- a/clients/harbor-client/charts/templates/deployment.yaml +++ b/clients/harbor-client/charts/templates/deployment.yaml @@ -29,8 +29,8 @@ spec: env: - name: IMAGE_REFERENCE valueFrom: - secretKeyRef: - name: {{ .Values.configSecretName }} + configMapKeyRef: + name: {{ .Values.configMapName }} key: IMAGE_REFERENCE resources: {{- toYaml .Values.resources | nindent 12 }} diff --git a/clients/harbor-client/charts/templates/secret.yaml b/clients/harbor-client/charts/templates/secret.yaml deleted file mode 100644 index 1ad7107..0000000 --- a/clients/harbor-client/charts/templates/secret.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: {{ .Values.configSecretName }} -type: Opaque -stringData: - IMAGE_REFERENCE: "The image reference URL starts with //." diff --git a/clients/harbor-client/charts/values.yaml b/clients/harbor-client/charts/values.yaml index 215eb6e..a37d518 100644 --- a/clients/harbor-client/charts/values.yaml +++ b/clients/harbor-client/charts/values.yaml @@ -30,4 +30,6 @@ autoscaling: maxReplicas: 100 targetCPUUtilizationPercentage: 80 -configSecretName: spcld-harbor-health-client +configMapName: spcld-harbor-health-client + +imageReference: registry.com/repo/image:latest diff --git a/clients/proxy-client/charts/templates/configmap.yaml b/clients/proxy-client/charts/templates/configmap.yaml new file mode 100644 index 0000000..60aa1aa --- /dev/null +++ b/clients/proxy-client/charts/templates/configmap.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ .Values.configMapName }} +data: + PROXY_URL: "{{ .Values.proxyUrl }}" diff --git a/clients/proxy-client/charts/templates/deployment.yaml b/clients/proxy-client/charts/templates/deployment.yaml index 5ff10e0..adc7be3 100644 --- a/clients/proxy-client/charts/templates/deployment.yaml +++ b/clients/proxy-client/charts/templates/deployment.yaml @@ -29,8 +29,8 @@ spec: env: - name: PROXY_URL valueFrom: - secretKeyRef: - name: {{ .Values.configSecretName }} + configMapKeyRef: + name: {{ .Values.configMapName }} key: PROXY_URL resources: {{- toYaml .Values.resources | nindent 12 }} diff --git a/clients/proxy-client/charts/templates/secret.yaml b/clients/proxy-client/charts/templates/secret.yaml deleted file mode 100644 index 223d19e..0000000 --- a/clients/proxy-client/charts/templates/secret.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: {{ .Values.configSecretName }} -type: Opaque -stringData: - PROXY_URL: "The proxy address." diff --git a/clients/proxy-client/charts/values.yaml b/clients/proxy-client/charts/values.yaml index 9ccdd91..538d257 100644 --- a/clients/proxy-client/charts/values.yaml +++ b/clients/proxy-client/charts/values.yaml @@ -5,12 +5,12 @@ image: pullPolicy: Always tag: "0.1.0" -imagePullSecrets: [] +imagePullSecrets: [ ] nameOverride: "" fullnameOverride: "" -podAnnotations: {} -podLabels: {} +podAnnotations: { } +podLabels: { } service: type: ClusterIP @@ -30,4 +30,6 @@ autoscaling: maxReplicas: 100 targetCPUUtilizationPercentage: 80 -configSecretName: spcld-proxy-health-client +configMapName: spcld-proxy-health-client + +proxyUrl: proxy.url