Add helm param to disable namespace creation (#9719)

Will only create namespace if namespace.create == true
This commit is contained in:
gokuatkai 2021-12-15 03:31:48 +01:00 committed by GitHub
parent 2821ac2d75
commit 0edd50f6b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 16 deletions

View File

@ -17,4 +17,4 @@ maintainer:
sources: sources:
- https://github.com/appsmithorg/appsmith - https://github.com/appsmithorg/appsmith
- https://www.appsmith.com/ - https://www.appsmith.com/
version: 1.3.0 version: 1.4.0

View File

@ -96,6 +96,12 @@ The command uninstalls the release and removes all Kubernetes resources associat
| `tolerations` | Tolerations for pod assignment | `[]` | | `tolerations` | Tolerations for pod assignment | `[]` |
| `affinity` | Affinity fod pod assignment | `{}` | | `affinity` | Affinity fod pod assignment | `{}` |
### Appsmith namespace parameters
| Name | Description | Value |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------- | ------- |
| `namespace.create` | Enable creation of `Namespace` | `true` |
### Appsmith service account parameters ### Appsmith service account parameters
| Name | Description | Value | | Name | Description | Value |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------- | ------- | | ----------------------------- | ----------------------------------------------------------------------------------------------------------- | ------- |

View File

@ -1,4 +1,6 @@
{{- if .Values.namespace.create }}
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: {{ include "appsmith.namespace" . }} name: {{ include "appsmith.namespace" . }}
{{- end }}

View File

@ -43,6 +43,10 @@ image:
pullPolicy: Always pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: "latest" tag: "latest"
## Namespace
##
namespace:
create: true
## ServiceAccount ## ServiceAccount
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
## ##