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

controllers: Ensure console plugin creation after CSV verification #511

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iamniting
Copy link
Member

Delay the creation of the console plugin until after verifying that the required CSVs are in the Succeeded phase. This ensures the necessary CRDs are present in the cluster, preventing UI errors like "Model does not exist."

Signed-off-by: Nitin Goyal [email protected]

Copy link
Contributor

openshift-ci bot commented Nov 21, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: iamniting

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 21, 2024
Comment on lines 71 to 82
err := mgr.Add(manager.RunnableFunc(func(context.Context) error {
clusterVersion, err := util.DetermineOpenShiftVersion(r.Client)
if err != nil {
return err
}

return r.ensureConsolePlugin(clusterVersion)
}))
if err != nil {
return err
}

Copy link
Contributor

Choose a reason for hiding this comment

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

@bipuladh u remember why this custom runnable was added ?? Removing it seems reasonable, but double checking.

Delay the creation of the console plugin until after verifying that the
required CSVs are in the Succeeded phase. This ensures the necessary
CRDs are present in the cluster, preventing UI errors like
"Model does not exist."

Signed-off-by: Nitin Goyal <[email protected]>
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants