[release-1.1] ESO-566: Allow overriding operand container args outside the ExternalSecretsConfig API - #175
Conversation
|
@bharath-b-rh: This pull request references ESO-566 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bharath-b-rh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…SecretsConfig API Signed-off-by: Bharath B <bhb@redhat.com>
a069117 to
5e363ea
Compare
|
@bharath-b-rh: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary
Manual cherrypick of #174: allow override of operand Deployment container args as comma-separated
--key=valueflags (OPERAND_EXTERNAL_SECRETS_ARGS,OPERAND_WEBHOOK_ARGS,OPERAND_CERT_CONTROLLER_ARGS,OPERAND_BITWARDEN_SDK_SERVER_ARGS) via operator Subscription CR.Invalid overrides mark ExternalSecretsConfig
Degraded; correcting or clearing the env recovers Ready / default args.Differences from
mainThis is an adapted backport, not a straight cherry-pick:
mainrelease-1.1UserConfigurationErrorIrrecoverableError(no user-config error type on 1.1)operator-framework/api+ scheme registrationgo.modgithub.com/operator-framework/apiensureExternalSecretsConfigReady, typed ESC degraded checks, etc.)ensureBitwardenOperandReady; degraded helpers live inhelpers_test.goDegraded=Falsefirst (WaitForExternalSecretsConfigReadyfail-fasts on Degraded)Vendor / OLM API dependency
Intentionally not introducing
github.com/operator-framework/apior a vendor update on this maintenance branch. Typed OLM clients are not required for the feature; dynamic Subscription/config.envupdates are enough for the current e2e. Further OLM-focused e2e expansion on 1.1 is unlikely, so the dep cost is not justified here.Test plan
go test ./pkg/controller/external_secrets/ -count=1 -run 'TestParseOperandArgsEnv|TestMergeContainerArgs|TestApplyOperandArgsFromEnv'make test-e2e E2E_GINKGO_LABEL_FILTER="Feature:OverrideOperandArgs"