Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-13547: read featuregates from the shared API value #779

Merged
merged 3 commits into from
Jun 1, 2023

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented May 19, 2023

This brings featuregate access up to the 4.14 standard.

/hold

I need to locate the version

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 19, 2023
}
configInformers := configv1informers.NewSharedInformerFactory(configClient, 10*time.Minute)

desiredVersion := config.OperatorReleaseVersion
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be teh version that we're going to write into the clusteroperator.

The gather command needs to know the version too.

@openshift-ci openshift-ci bot requested review from rhrmo and tremes May 19, 2023 19:01
}
configInformers := configv1informers.NewSharedInformerFactory(configClient, 10*time.Minute)

desiredVersion := os.Getenv("RELEASE_VERSION")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What launches the gather job? Having this match is important to get consistent feature gate behavior.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be launched "manually" by the user (kubeadmin). Basically as an one-off operation - see https://docs.openshift.com/container-platform/4.12/support/remote_health_monitoring/remote-health-reporting-from-restricted-network.html. I think this is very edge case and I plan to remove it once the on-demand gathering is GA.

@deads2k
Copy link
Contributor Author

deads2k commented May 23, 2023

I think this is updated enough to be functional

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 23, 2023
@@ -82,24 +84,45 @@ func (s *Operator) Run(ctx context.Context, controller *controllercmd.Controller
return err
}

desiredVersion := os.Getenv("RELEASE_VERSION")
missingVersion := "0.0.1-snapshot"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tremes
Copy link
Contributor

tremes commented May 25, 2023

/retest

1 similar comment
@tremes
Copy link
Contributor

tremes commented May 26, 2023

/retest

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 26, 2023
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 30, 2023
@deads2k deads2k changed the title read featuregates from the shared API value OCPBUGS-13547: read featuregates from the shared API value May 30, 2023
@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 May 30, 2023
@openshift-ci-robot
Copy link
Contributor

@deads2k: This pull request references Jira Issue OCPBUGS-13547, which is valid.

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

Requesting review from QA contact:
/cc @sunzhaohua2

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

In response to this:

This brings featuregate access up to the 4.14 standard.

/hold

I need to locate the version

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/test-infra repository.

@openshift-ci openshift-ci bot requested a review from sunzhaohua2 May 30, 2023 17:42
@deads2k
Copy link
Contributor Author

deads2k commented May 30, 2023

finishing off the external cloud provider featuregate shift.

// ensure the insight snapshot directory exists
if _, err = os.Stat(s.StoragePath); err != nil && os.IsNotExist(err) {
if err = os.MkdirAll(s.StoragePath, 0777); err != nil {
return fmt.Errorf("can't create --path: %v", err)
}
}
tpEnabled, err := isTechPreviewEnabled(ctx, configClient)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please also remove the function isTechPreviewEnabled definition?

@tremes
Copy link
Contributor

tremes commented May 31, 2023

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 31, 2023
@openshift-ci
Copy link

openshift-ci bot commented May 31, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, tremes

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

The pull request process is described 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 openshift-ci bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed lgtm Indicates that a PR is ready to be merged. labels May 31, 2023
@deads2k deads2k force-pushed the render-fe branch 2 times, most recently from 74b4bcb to 3fc2172 Compare May 31, 2023 20:01
@tremes
Copy link
Contributor

tremes commented Jun 1, 2023

@deads2k I think we need to update the permissions for the operator role, because I wasn't able to get a cluster (from your PR):

E0601 07:52:41.026679       1 reflector.go:148] github.com/openshift/client-go/config/informers/externalversions/factory.go:101: Failed to watch *v1.ClusterVersion: failed to list *v1.ClusterVersion: clusterversions.config.openshift.io is forbidden: User "system:serviceaccount:openshift-insights:operator" cannot list resource "clusterversions" in API group "config.openshift.io" at the cluster scope

you can see https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/release-openshift-origin-installer-launch-aws-modern/1664160810571665408

@tremes
Copy link
Contributor

tremes commented Jun 1, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 1, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 553363d and 2 for PR HEAD 7cbd210 in total

@deads2k
Copy link
Contributor Author

deads2k commented Jun 1, 2023

/override ci/prow/e2e-agnostic-upgrade

@openshift-ci
Copy link

openshift-ci bot commented Jun 1, 2023

@deads2k: Overrode contexts on behalf of deads2k: ci/prow/e2e-agnostic-upgrade

In response to this:

/override ci/prow/e2e-agnostic-upgrade

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/test-infra repository.

@openshift-ci
Copy link

openshift-ci bot commented Jun 1, 2023

@deads2k: all tests passed!

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/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 3ee604b into openshift:master Jun 1, 2023
@openshift-ci-robot
Copy link
Contributor

@deads2k: Jira Issue OCPBUGS-13547: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh.

Jira Issue OCPBUGS-13547 has not been moved to the MODIFIED state.

In response to this:

This brings featuregate access up to the 4.14 standard.

/hold

I need to locate the version

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/test-infra repository.

JoaoFula pushed a commit to JoaoFula/insights-operator that referenced this pull request Jan 23, 2024
…#779)

* update library-go to get new featuregate reading method

* read featuregates from the shared API value

* default the job to match latest featuregates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. 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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants