Configuring the revisionHistoryLimit for external-secrets components
Configure the number of old ReplicaSet objects retained for rollback by setting the revisionHistoryLimit parameter for external-secrets components.
The following components can be configured:
| Component name | Description |
|---|---|
|
The main |
|
The |
|
The certificate controller for webhook TLS. |
|
The Bitwarden SDK server plugin. |
Each component can only have one configuration entry. A maximum of 4 component configuration entries are allowed, one per component.
-
You have access to the cluster with
cluster-adminprivileges. -
You have created the
ExternalSecretsConfigcustom resource.
-
Edit the
ExternalSecretsConfigCR by running the following command:$ oc edit externalsecretsconfigs.operator.openshift.io cluster -
Add the
componentConfigsfield underspec.controllerConfigas follows:apiVersion: operator.openshift.io/v1alpha1 kind: ExternalSecretsConfig metadata: name: cluster spec: controllerConfig: componentConfigs: - componentName: ExternalSecretsCoreController deploymentConfigs: revisionHistoryLimit: 5 - componentName: Webhook deploymentConfigs: revisionHistoryLimit: 3where
spec.controllerConfig.componentConfigs.componentName.deploymentConfigs.revisionHistoryLimit-
Specifies the number of old
ReplicaSetobjects to retain for rollback. The value must be at least 1 to ensure rollback capability. The maximum value is 50. If not specified, the default is 10.
-
Verify that the
revisionHistoryLimitparameter is applied to the deployment by running the following command:$ oc get deployment external-secrets -n external-secrets -o jsonpath='{.spec.revisionHistoryLimit}'The output should display the value you configured.