Skip to content

Conversation

@jianzhangbjz
Copy link
Contributor

@jianzhangbjz jianzhangbjz commented Oct 28, 2025

Fix Conflicting Feature Gate Settings in Catalogd

Problem

APIV1MetasHandler was set to both true and false due to helm values
files conflicting with cluster feature gate configuration.

    jiazha-mac:cluster-olm-operator jiazha$ oc get deploy catalogd-controller-manager -o yaml |grep APIV1MetasHandler
        - --feature-gates=APIV1MetasHandler=true
        - --feature-gates=APIV1MetasHandler=false    

Solution

Clear helm values file feature gates before applying cluster configuration.
This ensures cluster-driven settings take precedence.

Changes

  • Add ClearFeatureGates() to helmvalues package
  • Call ClearFeatureGates() before merging cluster config in helm.go
  • Add comprehensive unit tests

Result

Feature gates are now set correctly based on cluster configuration:

  • Standard: --feature-gates=APIV1MetasHandler=false
  • TechPreview: --feature-gates=APIV1MetasHandler=true

Assisted-by: Claude Code

@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Oct 28, 2025
@openshift-ci-robot
Copy link

@jianzhangbjz: This pull request references Jira Issue OCPBUGS-63617, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.21.0) matches configured target version for branch (4.21.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (jiazha@redhat.com), skipping review request.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Fix Conflicting Feature Gate Settings in Catalogd

Problem

APIV1MetasHandler was set to both true and false due to helm values
files conflicting with cluster feature gate configuration.

Solution

Clear helm values file feature gates before applying cluster configuration.
This ensures cluster-driven settings take precedence.

Changes

  • Add ClearFeatureGates() to helmvalues package
  • Call ClearFeatureGates() before merging cluster config in helm.go
  • Add comprehensive unit tests

Result

Feature gates are now set correctly based on cluster configuration:

  • Standard: --feature-gates=APIV1MetasHandler=false
  • TechPreview: --feature-gates=APIV1MetasHandler=true

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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 28, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jianzhangbjz
Once this PR has been reviewed and has the lgtm label, please assign lalatendumohanty for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot
Copy link

@jianzhangbjz: This pull request references Jira Issue OCPBUGS-63617, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.21.0) matches configured target version for branch (4.21.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (jiazha@redhat.com), skipping review request.

In response to this:

Fix Conflicting Feature Gate Settings in Catalogd

Problem

APIV1MetasHandler was set to both true and false due to helm values
files conflicting with cluster feature gate configuration.

   jiazha-mac:cluster-olm-operator jiazha$ oc get deploy catalogd-controller-manager -o yaml |grep APIV1MetasHandler
       - --feature-gates=APIV1MetasHandler=true
       - --feature-gates=APIV1MetasHandler=false    

Solution

Clear helm values file feature gates before applying cluster configuration.
This ensures cluster-driven settings take precedence.

Changes

  • Add ClearFeatureGates() to helmvalues package
  • Call ClearFeatureGates() before merging cluster config in helm.go
  • Add comprehensive unit tests

Result

Feature gates are now set correctly based on cluster configuration:

  • Standard: --feature-gates=APIV1MetasHandler=false
  • TechPreview: --feature-gates=APIV1MetasHandler=true

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.

@jianzhangbjz
Copy link
Contributor Author

Hi @tmshort , could you help take a look when you get a chance? Thanks!

@jianzhangbjz
Copy link
Contributor Author

@grokspawn
Copy link
Contributor

/retest-required

1 similar comment
@jianzhangbjz
Copy link
Contributor Author

/retest-required

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 29, 2025

@jianzhangbjz: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/okd-scos-e2e-aws-ovn b0ce393 link false /test okd-scos-e2e-aws-ovn

Full PR test history. Your PR dashboard.

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

@jianzhangbjz
Copy link
Contributor Author

Test passed, details: https://issues.redhat.com/browse/OCPBUGS-63617
/verified by @jianzhangbjz

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Oct 29, 2025
@openshift-ci-robot
Copy link

@jianzhangbjz: This PR has been marked as verified by @jianzhangbjz.

In response to this:

Test passed, details: https://issues.redhat.com/browse/OCPBUGS-63617
/verified by @jianzhangbjz

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants