Skip to content

Commit 3e8a132

Browse files
authored
chore: update field comment on ArgoCDSpec cmdParams (#2146)
Signed-off-by: Jonathan West <jgwest@gmail.com>
1 parent da00ebd commit 3e8a132

5 files changed

Lines changed: 15 additions & 6 deletions

File tree

api/v1beta1/argocd_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,8 @@ type ArgoCDSpec struct {
10541054
AggregatedClusterRoles bool `json:"aggregatedClusterRoles,omitempty"`
10551055

10561056
// CmdParams specifies command-line parameters for the Argo CD components.
1057+
// The only keys currently supported for this parameter are:
1058+
// - controller.resource.health.persist
10571059
CmdParams map[string]string `json:"cmdParams,omitempty"`
10581060

10591061
// ArgoCDAgent defines configurations for the ArgoCD Agent component.

bundle/manifests/argoproj.io_argocds.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11948,8 +11948,10 @@ spec:
1194811948
cmdParams:
1194911949
additionalProperties:
1195011950
type: string
11951-
description: CmdParams specifies command-line parameters for the Argo
11952-
CD components.
11951+
description: |-
11952+
CmdParams specifies command-line parameters for the Argo CD components.
11953+
The only keys currently supported for this parameter are:
11954+
- controller.resource.health.persist
1195311955
type: object
1195411956
configManagementPlugins:
1195511957
description: 'Deprecated: ConfigManagementPlugins field is no longer

config/crd/bases/argoproj.io_argocds.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11937,8 +11937,10 @@ spec:
1193711937
cmdParams:
1193811938
additionalProperties:
1193911939
type: string
11940-
description: CmdParams specifies command-line parameters for the Argo
11941-
CD components.
11940+
description: |-
11941+
CmdParams specifies command-line parameters for the Argo CD components.
11942+
The only keys currently supported for this parameter are:
11943+
- controller.resource.health.persist
1194211944
type: object
1194311945
configManagementPlugins:
1194411946
description: 'Deprecated: ConfigManagementPlugins field is no longer

controllers/argocd/configmap.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,7 @@ func (r *ReconcileArgoCD) reconcileGPGKeysConfigMap(cr *argoproj.ArgoCD) error {
939939
}
940940

941941
// reconcileArgoCmdParamsConfigMap will ensure that the ConfigMap containing command line parameters for ArgoCD is present.
942+
// - NOTE: When updating this function (for example, adding a new supported field), update the method comment in argocd_types.go for the 'CmdParams' field of ArgoCDSpec.
942943
func (r *ReconcileArgoCD) reconcileArgoCmdParamsConfigMap(cr *argoproj.ArgoCD) error {
943944
cm := newConfigMapWithName(common.ArgoCDCmdParamsConfigMapName, cr)
944945
cm.Data = make(map[string]string)

deploy/olm-catalog/argocd-operator/0.19.0/argoproj.io_argocds.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11948,8 +11948,10 @@ spec:
1194811948
cmdParams:
1194911949
additionalProperties:
1195011950
type: string
11951-
description: CmdParams specifies command-line parameters for the Argo
11952-
CD components.
11951+
description: |-
11952+
CmdParams specifies command-line parameters for the Argo CD components.
11953+
The only keys currently supported for this parameter are:
11954+
- controller.resource.health.persist
1195311955
type: object
1195411956
configManagementPlugins:
1195511957
description: 'Deprecated: ConfigManagementPlugins field is no longer

0 commit comments

Comments
 (0)