Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set terminationGracePeriodSeconds for HelmCharts #520

Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deploy/helm/pulumi-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ icon: https://www.pulumi.com/logos/brand/twitter-card.png

type: application

version: 0.4.0
version: 0.5.0
appVersion: 1.14.0

keywords:
Expand All @@ -25,7 +25,7 @@ maintainers:
annotations:
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/changes: |
- v1.14.0 release
- set terminationGracePeriodSeconds for HelmCharts (#520)
artifacthub.io/images: |
- name: pulumi-kubernetes-operator
image: docker.io/pulumi-kubernetes-operator:v1.14.0
Expand Down
1 change: 1 addition & 0 deletions deploy/helm/pulumi-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ The command removes all the Kubernetes components associated with the chart and
| podSecurityContext.fsGroup | int | `1000` | pulumi-kubernetes-operator group is 1000 |
| podSecurityContext.runAsUser | int | `1000` | pulumi-kubernetes-operator user is 1000 |
| replicaCount | int | `1` | Specifies the replica count for the deployment |
| terminationGracePeriodSeconds | int | `300` | Specifies termination grace period |
| resources | object | `{"limits":{"cpu":"500m","memory":"5123Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}` | CPU/Memory resource requests/limits |
| securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"runAsGroup":10003,"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}` | Security Context see [values.yaml](values.yaml) |
| serviceAccount.annotations | object | `{}` | Additional ServiceAccount annotations |
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/pulumi-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "pulumi-kubernetes-operator.serviceAccountName" . }}
{{- if .Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
{{- end }}
{{- if .Values.podSecurityContext }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/pulumi-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ deploymentStrategy: ""
# -- Specifies the replica count for the deployment
replicaCount: 1

# -- Specifies termination grace period, default: `300`
terminationGracePeriodSeconds: 300

image:
# -- The image registry to pull from
registry: docker.io
Expand Down
Loading