From 97b2dc2d918b4f6a0e7b3e3d8998110adea45d2d Mon Sep 17 00:00:00 2001 From: Hiroshi Fukada Date: Fri, 26 Jul 2019 14:51:19 -0400 Subject: [PATCH] stable/superset: Add deployment level annotations in superset (#15328) - I would like to add deployment level annotations. I am currently using this patch along side kube2iam to apply aws instance credentials to the pods. Signed-off-by: Hiroshi Fukada --- stable/superset/Chart.yaml | 2 +- stable/superset/README.md | 1 + stable/superset/templates/deployment.yaml | 3 +++ stable/superset/values.yaml | 4 ++++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stable/superset/Chart.yaml b/stable/superset/Chart.yaml index 6aa54f4008..64a27c9ef0 100644 --- a/stable/superset/Chart.yaml +++ b/stable/superset/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Apache Superset (incubating) is a modern, enterprise-ready business intelligence web application name: superset -version: 1.1.6 +version: 1.1.7 appVersion: "0.28.1" keywords: - bi diff --git a/stable/superset/README.md b/stable/superset/README.md index 6abb027504..c055c54e97 100644 --- a/stable/superset/README.md +++ b/stable/superset/README.md @@ -51,6 +51,7 @@ The command removes all the Kubernetes components associated with the chart and | `replicas` | Number of replicas of superset | `1` | | `extraEnv` | Extra environment variables passed to pods | `{}` | | `extraEnvFromSecret` | The name of a Kubernetes secret (must be manually created in the same namespace) containing values to be added to the environment | `""` | +| `deploymentAnnotations` | Key Value pairs of deployment level annotations. Useful for 3rd party integrations | `{}` | | `persistence.enabled` | Enable persistence | `false` | | `persistence.existingClaim`| Provide an existing PersistentVolumeClaim | `""` | | `persistence.storageClass` | Storage class of backing PVC | `nil` (uses alpha storage class annotation) | diff --git a/stable/superset/templates/deployment.yaml b/stable/superset/templates/deployment.yaml index d8a538bb89..949e1f864e 100644 --- a/stable/superset/templates/deployment.yaml +++ b/stable/superset/templates/deployment.yaml @@ -23,6 +23,9 @@ spec: heritage: {{ .Release.Service }} annotations: checksum/secrets: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} + {{- with .Values.deploymentAnnotations }} + {{- . | toYaml | nindent 8 }} + {{- end }} spec: securityContext: runAsUser: 1000 diff --git a/stable/superset/values.yaml b/stable/superset/values.yaml index 47e222d10f..14a645d8f0 100644 --- a/stable/superset/values.yaml +++ b/stable/superset/values.yaml @@ -63,6 +63,10 @@ extraEnv: {} ## extraEnvFromSecret: "" +## Deployment level annotations +## Useful for passing other third party annotations to interact with eg. kube2iam. +deploymentAnnotations: {} + persistence: ## If true, superset server will create/use a Persistent Volume Claim