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

step-issuer: Allow to set deployment strategy #207

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions step-issuer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ and their default values.
| `image.pullPolicy` | Step Issuer image pull policy | `IfNotPresent` |
| `deployment.args.enableLeaderElection` | Enable k8s controller leader election. | `true` |
| `deployment.args.disableApprovalCheck` | To disable cert-manager approvals on old version of cert-manager. | `false` |
| `deployment.strategy` | To change the deployment strategy. | `{}` |
| `stepIssuer.create` | If we should automatically create a StepIssuer | `false` |
| `stepIssuer.caUrl` | Step Certificates CA URL. This is usually the step certificates service FQDN. | `""` |
| `stepIssuer.caBundle` | Step Certificates root certificate in a single-line base64 string. | `""` |
Expand Down
3 changes: 3 additions & 0 deletions step-issuer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
control-plane: {{ .Values.service.controlPlane }}
{{- include "step-issuer.labels" . | nindent 4 }}
spec:
{{- if .Values.deployment.strategy }}
strategy: {{ toYaml .Values.deployment.strategy | nindent 4 }}
{{- end }}
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
Expand Down
2 changes: 2 additions & 0 deletions step-issuer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ deployment:
enableLeaderElection: true
disableApprovalCheck: false
terminationGracePeriodSeconds: 10
# Strategy used for the deployment
strategy: {}

resources:
limits:
Expand Down