diff --git a/infra/charts/feast/Chart.yaml b/infra/charts/feast/Chart.yaml index f526e0a738..a45c278462 100644 --- a/infra/charts/feast/Chart.yaml +++ b/infra/charts/feast/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Feature store for machine learning name: feast -version: 0.20.0 +version: 0.20.1 keywords: - machine learning - big data diff --git a/infra/charts/feast/charts/transformation-service/templates/deployment.yaml b/infra/charts/feast/charts/transformation-service/templates/deployment.yaml index 1b2172c305..ac3e0c1f70 100644 --- a/infra/charts/feast/charts/transformation-service/templates/deployment.yaml +++ b/infra/charts/feast/charts/transformation-service/templates/deployment.yaml @@ -30,6 +30,14 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} + + volumes: + {{- range $secret := .Values.secrets }} + - name: {{ $secret }} + secret: + secretName: {{ $secret }} + {{- end }} + containers: - name: {{ .Chart.Name }} image: {{ .Values.image.repository }}:{{ .Values.image.tag }} @@ -37,12 +45,29 @@ spec: ports: - name: grpc containerPort: {{ .Values.service.grpc.targetPort }} - + + volumeMounts: + {{- range $secret := .Values.secrets }} + - name: {{ $secret }} + mountPath: "/etc/secrets/{{ $secret }}" + readOnly: true + {{- end }} + env: - name: FEATURE_TRANSFORMATION_SERVER_PORT value: {{ .Values.service.grpc.targetPort | quote }} - name: FEATURE_STORE_YAML_BASE64 value: {{ tpl (.Files.Get "config/feature_store.yaml") . | b64enc | quote }} - + + {{- range $key, $value := .Values.envOverrides }} + - name: {{ printf "%s" $key | replace "." "_" | upper | quote }} + {{- if eq (kindOf $value) "map" }} + valueFrom: + {{- toYaml $value | nindent 12 }} + {{- else }} + value: {{ $value | quote }} + {{- end }} + {{- end }} + resources: {{- toYaml .Values.resources | nindent 10 }} diff --git a/infra/charts/feast/charts/transformation-service/values.yaml b/infra/charts/feast/charts/transformation-service/values.yaml index 248f9faac3..55f98f92ca 100644 --- a/infra/charts/feast/charts/transformation-service/values.yaml +++ b/infra/charts/feast/charts/transformation-service/values.yaml @@ -30,5 +30,8 @@ nodeSelector: {} # envOverrides -- Extra environment variables to set envOverrides: {} +# secrets -- List of Kubernetes secrets to be mounted. These secrets will be mounted on /etc/secrets/. +secrets: [] + # podLabels -- Labels to be added to Feast Serving pods podLabels: {} \ No newline at end of file