Remove unnecessary variables in Helm chart & refactor templates (#12011)
This commit is contained in:
parent
8b26bfc0c7
commit
95776e6454
|
|
@ -12,4 +12,4 @@ sources:
|
||||||
- https://github.com/appsmithorg/appsmith
|
- https://github.com/appsmithorg/appsmith
|
||||||
home: https://www.appsmith.com/
|
home: https://www.appsmith.com/
|
||||||
icon: https://assets.appsmith.com/appsmith-icon.png
|
icon: https://assets.appsmith.com/appsmith-icon.png
|
||||||
version: 1.5.2
|
version: 1.5.3
|
||||||
|
|
|
||||||
|
|
@ -96,12 +96,6 @@ 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 |
|
||||||
| ----------------------------- | ----------------------------------------------------------------------------------------------------------- | ------- |
|
| ----------------------------- | ----------------------------------------------------------------------------------------------------------- | ------- |
|
||||||
|
|
@ -121,6 +115,7 @@ The command uninstalls the release and removes all Kubernetes resources associat
|
||||||
| `service.loadBalancerSourceRanges` | Appsmith service Load Balancer sources | `[]` |
|
| `service.loadBalancerSourceRanges` | Appsmith service Load Balancer sources | `[]` |
|
||||||
| `service.annotations` | Additional custom annotations for Appsmith service | `{}` |
|
| `service.annotations` | Additional custom annotations for Appsmith service | `{}` |
|
||||||
| `ingress.enabled` | Enable ingress record generation for Appsmith | `false` |
|
| `ingress.enabled` | Enable ingress record generation for Appsmith | `false` |
|
||||||
|
| `ingress.annotations` | Additional custom annotations for Ingress | `{}` |
|
||||||
| `ingress.hosts` | An array of hosts to be covered with the ingress record | `[]` |
|
| `ingress.hosts` | An array of hosts to be covered with the ingress record | `[]` |
|
||||||
| `ingress.tls` | Enable TLS configuration for the hosts defined at `ingress.hosts` parameter | `false` |
|
| `ingress.tls` | Enable TLS configuration for the hosts defined at `ingress.hosts` parameter | `false` |
|
||||||
| `ingress.secrets` | Custom TLS certificates as secrets | `[]` |
|
| `ingress.secrets` | Custom TLS certificates as secrets | `[]` |
|
||||||
|
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
{{- if and .Values.persistence.enabled ( not .Values.useStatefulSet) }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: {{ include "appsmith.fullname" . }}
|
|
||||||
namespace: {{ include "appsmith.namespace" . }}
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
{{- range .Values.persistence.accessModes }}
|
|
||||||
- {{ . | quote }}
|
|
||||||
{{- end }}
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.persistence.size | quote }}
|
|
||||||
{{ include "storage.class" (dict "persistence" .Values.persistence "global" .Values.global) }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
@ -1,24 +1,15 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: {{ if .Values.useStatefulSet }}StatefulSet{{- else }}Deployment{{- end }}
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "appsmith.fullname" . }}
|
name: {{ include "appsmith.fullname" . }}
|
||||||
namespace: {{ include "appsmith.namespace" . }}
|
namespace: {{ include "appsmith.namespace" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "appsmith.labels" . | nindent 4 }}
|
{{- include "appsmith.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
{{- if not .Values.autoscaling.enabled }}
|
|
||||||
replicas: 1
|
replicas: 1
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.useStatefulSet }}
|
|
||||||
serviceName: {{ include "appsmith.fullname" . }}
|
serviceName: {{ include "appsmith.fullname" . }}
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
{{- else }}
|
|
||||||
strategy:
|
|
||||||
{{- end }}
|
|
||||||
type: {{ .Values.strategyType }}
|
type: {{ .Values.strategyType }}
|
||||||
{{- if or (and (not .Values.useStatefulSet) (eq "Recreate" .Values.strategyType)) (and .Values.useStatefulSet (eq "OnDelete" .Values.strategyType)) }}
|
|
||||||
rollingUpdate: null
|
|
||||||
{{- end }}
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "appsmith.selectorLabels" . | nindent 6 }}
|
{{- include "appsmith.selectorLabels" . | nindent 6 }}
|
||||||
|
|
@ -85,10 +76,6 @@ spec:
|
||||||
{{- if not .Values.persistence.enabled }}
|
{{- if not .Values.persistence.enabled }}
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- else if not .Values.useStatefulSet }}
|
|
||||||
- name: data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: {{ template "appsmith.fullname" . }}
|
|
||||||
{{- else }}
|
{{- else }}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
|
|
@ -104,8 +91,5 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.persistence.size | quote }}
|
storage: {{ .Values.persistence.size | quote }}
|
||||||
{{- if .Values.persistence.volumeClaimTemplates.selector }}
|
|
||||||
selector: {{- include "tplvalues.render" (dict "value" .Values.persistence.volumeClaimTemplates.selector "context" $) | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
{{ include "storage.class" (dict "persistence" .Values.persistence "global" .Values.global) }}
|
{{ include "storage.class" (dict "persistence" .Values.persistence "global" .Values.global) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
@ -22,9 +22,6 @@ commonLabels: {}
|
||||||
## @param commonAnnotations Common annotations to add to all Appsmith resources (sub-charts are not considered). Evaluated as a template
|
## @param commonAnnotations Common annotations to add to all Appsmith resources (sub-charts are not considered). Evaluated as a template
|
||||||
##
|
##
|
||||||
commonAnnotations: {}
|
commonAnnotations: {}
|
||||||
## @param useStatefulSet Set to true to use a StatefulSet instead of a Deployment
|
|
||||||
##
|
|
||||||
useStatefulSet: true
|
|
||||||
## @param schedulerName Name of the scheduler (other than default) to dispatch pods
|
## @param schedulerName Name of the scheduler (other than default) to dispatch pods
|
||||||
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
|
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
|
||||||
##
|
##
|
||||||
|
|
@ -41,10 +38,6 @@ 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/
|
||||||
##
|
##
|
||||||
|
|
@ -174,13 +167,6 @@ resources:
|
||||||
limits: {}
|
limits: {}
|
||||||
requests: {}
|
requests: {}
|
||||||
|
|
||||||
autoscaling:
|
|
||||||
enabled: false
|
|
||||||
minReplicas: 1
|
|
||||||
maxReplicas: 100
|
|
||||||
targetCPUUtilizationPercentage: 80
|
|
||||||
# targetMemoryUtilizationPercentage: 80
|
|
||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
@ -214,22 +200,6 @@ persistence:
|
||||||
## @param persistence.size PVC Storage Request
|
## @param persistence.size PVC Storage Request
|
||||||
##
|
##
|
||||||
size: 10Gi
|
size: 10Gi
|
||||||
## Fine tuning for volumeClaimTemplates
|
|
||||||
##
|
|
||||||
volumeClaimTemplates:
|
|
||||||
## @param persistence.volumeClaimTemplates.selector A label query over volumes to consider for binding (e.g. when using local volumes)
|
|
||||||
## A label query over volumes to consider for binding (e.g. when using local volumes)
|
|
||||||
## See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#labelselector-v1-meta for more details
|
|
||||||
##
|
|
||||||
selector: {}
|
|
||||||
## @param persistence.volumeClaimTemplates.requests Custom PVC requests attributes
|
|
||||||
## Sometime cloud providers use additional requests attributes to provision custom storage instance
|
|
||||||
## See https://cloud.ibm.com/docs/containers?topic=containers-file_storage#file_dynamic_statefulset
|
|
||||||
##
|
|
||||||
requests: {}
|
|
||||||
## @param persistence.volumeClaimTemplates.dataSource Add dataSource to the VolumeClaimTemplate
|
|
||||||
##
|
|
||||||
dataSource: {}
|
|
||||||
# tags:
|
# tags:
|
||||||
# install-ingress-nginx: true
|
# install-ingress-nginx: true
|
||||||
storageClass:
|
storageClass:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user