Skip to content

Commit

Permalink
Add tolerations, affinity and nodeSelector to helm chart and bump ver…
Browse files Browse the repository at this point in the history
…sion to 4.0.3
  • Loading branch information
Jaydee94 committed Nov 11, 2022
1 parent 43d446f commit 9679f0b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
4 changes: 2 additions & 2 deletions chart/kubeseal-webgui/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
name: kubeseal-webgui
description: A Helm chart for installing kubeseal-webgui
version: 4.0.2
appVersion: 4.0.2
version: 4.0.3
appVersion: 4.0.3
3 changes: 3 additions & 0 deletions chart/kubeseal-webgui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ The command removes all the Kubernetes components associated with the chart and
| `nameOverride` | Name-Override for the objects | `""` |
| `fullnameOverride` | Fullname-Override for the objects | `""` |
| `serviceaccount.create` | Add serviceaccount for listing namespaces | `true` |
| `tolerations` | Add tolerations to the deployment. | `{}` |
| `affinity` | Add affinity rules to the deployment. | `[]` |
| `nodeSelector` | Add a nodeSelector to the deployment. | `{}` |
| `displayName` | Optional display name for the kubeseal instance | `""` |
| `resources.limits.cpu` | Limits CPU | `100m` |
| `resources.limits.memory` | Limits memory | `256Mi` |
Expand Down
12 changes: 12 additions & 0 deletions chart/kubeseal-webgui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ spec:
{{- if .Values.serviceaccount.create }}
serviceAccountName: kubeseal-webgui
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.sealedSecrets.autoFetchCert }}
initContainers:
- name: "fetch-cert"
Expand Down
10 changes: 8 additions & 2 deletions chart/kubeseal-webgui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ api:
url: http://localhost:8080
image:
repository: kubesealwebgui/api
tag: 4.0.2
tag: 4.0.3
environment: {}
ui:
image:
repository: kubesealwebgui/ui
tag: 4.0.2
tag: 4.0.3
image:
pullPolicy: Always

Expand All @@ -28,6 +28,12 @@ displayName: ""
serviceaccount:
create: true

affinity: {}

tolerations: []

nodeSelector: {}

# Setup resources for the pod
resources:
limits:
Expand Down

0 comments on commit 9679f0b

Please sign in to comment.