From 70a010543763c84c7942c8f5424e8248e3054536 Mon Sep 17 00:00:00 2001 From: Tomas Pereira de Vasconcelos Date: Fri, 11 Feb 2022 19:51:05 +0100 Subject: [PATCH] podAnnotations Values in the feature-server chart Signed-off-by: Tomas Pereira de Vasconcelos --- infra/charts/feast/charts/feature-server/README.md | 1 + .../feast/charts/feature-server/templates/deployment.yaml | 3 +++ infra/charts/feast/charts/feature-server/values.yaml | 3 +++ 3 files changed, 7 insertions(+) diff --git a/infra/charts/feast/charts/feature-server/README.md b/infra/charts/feast/charts/feature-server/README.md index 23ed4102b85..313bb2af2af 100644 --- a/infra/charts/feast/charts/feature-server/README.md +++ b/infra/charts/feast/charts/feature-server/README.md @@ -45,6 +45,7 @@ Feast Feature Server: Online feature serving service for Feast | logLevel | string | `"WARN"` | Default log level, use either one of `DEBUG`, `INFO`, `WARN` or `ERROR` | | logType | string | `"Console"` | Log format, either `JSON` or `Console` | | nodeSelector | object | `{}` | Node labels for pod assignment | +| podAnnotations | object | `{}` | Annotations to be added to Feast Serving pods | | podLabels | object | `{}` | Labels to be added to Feast Serving pods | | readinessProbe.enabled | bool | `true` | Flag to enabled the probe | | readinessProbe.failureThreshold | int | `5` | Min consecutive failures for the probe to be considered failed | diff --git a/infra/charts/feast/charts/feature-server/templates/deployment.yaml b/infra/charts/feast/charts/feature-server/templates/deployment.yaml index 02323cbffc6..1d1bc400292 100644 --- a/infra/charts/feast/charts/feature-server/templates/deployment.yaml +++ b/infra/charts/feast/charts/feature-server/templates/deployment.yaml @@ -21,6 +21,9 @@ spec: annotations: checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} + {{- if .Values.podAnnotations }} + {{ toYaml .Values.podAnnotations | nindent 8 }} + {{- end }} labels: app: {{ template "feature-server.name" . }} component: serving diff --git a/infra/charts/feast/charts/feature-server/values.yaml b/infra/charts/feast/charts/feature-server/values.yaml index a6cf0f41b7c..14b881796fd 100644 --- a/infra/charts/feast/charts/feature-server/values.yaml +++ b/infra/charts/feast/charts/feature-server/values.yaml @@ -140,5 +140,8 @@ envOverrides: {} # secrets -- List of Kubernetes secrets to be mounted. These secrets will be mounted on /etc/secrets/. secrets: [] +# podAnnotations -- Annotations to be added to Feast Serving pods +podAnnotations: {} + # podLabels -- Labels to be added to Feast Serving pods podLabels: {}