Skip to content

Commit

Permalink
build: make the revisionHistoryLimit available in the helm chart
Browse files Browse the repository at this point in the history
Signed-off-by: Rory Z <[email protected]>
  • Loading branch information
Rory-Z committed Jan 9, 2024
1 parent c3cc0d5 commit 556f801
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/charts/emqx-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ The following table lists the configurable parameters of the cert-manager chart
| `imagePullSecrets` | Image pull secrets| `[]` |
| `nameOverride` | Override chart name | `""` |
| `fullnameOverride` | Default fully qualified app name. | `""` |
| `replicaCount` | Number of cert-manager replicas | `1` |
| `replicaCount` | Number of EMQX operator replicas | `1` |
| `revisionHistoryLimit` | The number of old history to retain to allow rollback | `1` |
| `serviceAccount.create` | If `true`, create a new service account | `true` |
| `serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the fullname template | |
| `serviceAccount.annotations` | Annotations to add to the service account | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
selector:
matchLabels:
control-plane: controller-manager
Expand Down
3 changes: 3 additions & 0 deletions deploy/charts/emqx-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ development: false

replicaCount: 1

# The number of old history to retain to allow rollback
revisionHistoryLimit: 10

image:
repository: emqx/emqx-operator-controller
pullPolicy: IfNotPresent
Expand Down

0 comments on commit 556f801

Please sign in to comment.