diff --git a/charts/baserow/Chart.yaml b/charts/baserow/Chart.yaml index f422cdac..fe285607 100644 --- a/charts/baserow/Chart.yaml +++ b/charts/baserow/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: baserow description: Baserow is an open source no-code database and Airtable alternative. type: application -version: 2.1.3 +version: 2.1.4 appVersion: "1.22.3" home: https://github.com/christianknell/helm-charts icon: https://baserow.io/img/favicon_192.png @@ -25,7 +25,7 @@ annotations: artifacthub.io/category: database artifacthub.io/changes: | - kind: added - description: priorityClassName to deployments + description: option to define additional selector labels artifacthub.io/screenshots: | - title: Create your own online database without technical experience. url: https://baserow.io/_nuxt/img/home_intro_screenshot.194c66b.png diff --git a/charts/baserow/README.md b/charts/baserow/README.md index d1e2b9eb..ebe9d191 100644 --- a/charts/baserow/README.md +++ b/charts/baserow/README.md @@ -67,6 +67,7 @@ The command removes all the Kubernetes components associated with the chart and | backend.asgi.resources | object | `{}` | Resource limits and requests for the controller pods. | | backend.asgi.revisionHistoryLimit | int | `10` | The number of old ReplicaSets to retain | | backend.asgi.securityContext | object | `{"runAsGroup":9999,"runAsNonRoot":true,"runAsUser":9999}` | container-level security context | +| backend.asgi.selectorLabels | object | `{}` | Labels to add to the pod | | backend.asgi.service.port | int | `8000` | Kubernetes port where service is exposed | | backend.asgi.service.type | string | `"ClusterIP"` | Kubernetes service type | | backend.asgi.serviceAccount.annotations | object | `{}` | Annotations to add to the service account | @@ -92,6 +93,7 @@ The command removes all the Kubernetes components associated with the chart and | backend.celery.resources | object | `{}` | Resource limits and requests for the controller pods. | | backend.celery.revisionHistoryLimit | int | `10` | The number of old ReplicaSets to retain | | backend.celery.securityContext | object | `{"runAsGroup":9999,"runAsNonRoot":true,"runAsUser":9999}` | container-level security context | +| backend.celery.selectorLabels | object | `{}` | Labels to add to the pod | | backend.celery.serviceAccount.annotations | object | `{}` | Annotations to add to the service account | | backend.celery.serviceAccount.create | bool | `true` | Specifies whether a service account should be created | | backend.celery.serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | @@ -192,6 +194,7 @@ The command removes all the Kubernetes components associated with the chart and | backend.wsgi.resources | object | `{}` | Resource limits and requests for the controller pods. | | backend.wsgi.revisionHistoryLimit | int | `10` | The number of old ReplicaSets to retain | | backend.wsgi.securityContext | object | `{"runAsGroup":9999,"runAsNonRoot":true,"runAsUser":9999}` | container-level security context | +| backend.wsgi.selectorLabels | object | `{}` | Labels to add to the pod | | backend.wsgi.service.port | int | `8000` | Kubernetes port where service is exposed | | backend.wsgi.service.type | string | `"ClusterIP"` | Kubernetes service type | | backend.wsgi.serviceAccount.annotations | object | `{}` | Annotations to add to the service account | @@ -245,6 +248,7 @@ The command removes all the Kubernetes components associated with the chart and | frontend.resources | object | `{}` | Resource limits and requests for the controller pods. | | frontend.revisionHistoryLimit | int | `10` | The number of old ReplicaSets to retain | | frontend.securityContext | object | `{"runAsGroup":9999,"runAsNonRoot":true,"runAsUser":9999}` | container-level security context | +| frontend.selectorLabels | object | `{}` | Labels to add to the pod | | frontend.service.port | int | `3000` | Kubernetes port where service is exposed | | frontend.service.type | string | `"ClusterIP"` | Kubernetes service type | | frontend.serviceAccount.annotations | object | `{}` | Annotations to add to the service account | diff --git a/charts/baserow/templates/_helpers.tpl b/charts/baserow/templates/_helpers.tpl index 859a4286..16935d8e 100644 --- a/charts/baserow/templates/_helpers.tpl +++ b/charts/baserow/templates/_helpers.tpl @@ -77,6 +77,9 @@ Selector labels for the frontend pods and deployment {{- define "baserow.frontend.selectorLabels" -}} app.kubernetes.io/name: {{ include "baserow.frontend.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} +{{- range $k, $v := .Values.frontend.selectorLabels }} +{{ $k}}: {{ $v }} +{{- end }} {{- end }} {{/* @@ -130,6 +133,9 @@ Selector labels for the asgi backend {{- define "baserow.backend.asgi.selectorLabels" -}} app.kubernetes.io/name: {{ include "baserow.backend.asgi.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} +{{- range $k, $v := .Values.backend.asgi.selectorLabels }} +{{ $k}}: {{ $v }} +{{- end }} {{- end }} {{/* @@ -176,6 +182,9 @@ Selector labels for the wsgi backend {{- define "baserow.backend.wsgi.selectorLabels" -}} app.kubernetes.io/name: {{ include "baserow.backend.wsgi.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} +{{- range $k, $v := .Values.backend.wsgi.selectorLabels }} +{{ $k}}: {{ $v }} +{{- end }} {{- end }} {{/* @@ -280,6 +289,9 @@ Selector labels for the celery workers {{- define "baserow.backend.celery.selectorLabels" -}} app.kubernetes.io/name: {{ include "baserow.backend.celery.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} +{{- range $k, $v := .Values.backend.celery.selectorLabels }} +{{ $k}}: {{ $v }} +{{- end }} {{- end }} {{/* diff --git a/charts/baserow/values.schema.json b/charts/baserow/values.schema.json index 1c90313c..57de710e 100644 --- a/charts/baserow/values.schema.json +++ b/charts/baserow/values.schema.json @@ -97,6 +97,9 @@ } } }, + "selectorLabels": { + "type": "object" + }, "service": { "type": "object", "properties": { @@ -219,6 +222,9 @@ } } }, + "selectorLabels": { + "type": "object" + }, "serviceAccount": { "type": "object", "properties": { @@ -624,6 +630,9 @@ } } }, + "selectorLabels": { + "type": "object" + }, "service": { "type": "object", "properties": { @@ -867,6 +876,9 @@ } } }, + "selectorLabels": { + "type": "object" + }, "service": { "type": "object", "properties": { diff --git a/charts/baserow/values.yaml b/charts/baserow/values.yaml index 50bc6f0a..bd125002 100644 --- a/charts/baserow/values.yaml +++ b/charts/baserow/values.yaml @@ -112,6 +112,9 @@ frontend: # -- Affinity settings for pod assignment affinity: {} + # -- Additional labels to add to the pod + selectorLabels: {} + # -- additional environment variables to be added to the pods extraEnv: [] @@ -214,6 +217,9 @@ backend: # -- Affinity settings for pod assignment affinity: {} + # -- Additional labels to add to the pod + selectorLabels: {} + # -- additional environment variables to be added to the pods extraEnv: [] @@ -297,6 +303,9 @@ backend: # -- Affinity settings for pod assignment affinity: {} + # -- Additional labels to add to the pod + selectorLabels: {} + # -- additional environment variables to be added to the pods extraEnv: [] @@ -540,6 +549,9 @@ backend: # -- Affinity settings for pod assignment affinity: {} + # -- Additional labels to add to the pod + selectorLabels: {} + # -- additional environment variables to be added to the pods extraEnv: []