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

The addonProcessController should consider the hosting case. #461

Closed
xuezhaojun opened this issue May 14, 2024 · 5 comments · Fixed by #464
Closed

The addonProcessController should consider the hosting case. #461

xuezhaojun opened this issue May 14, 2024 · 5 comments · Fixed by #464
Assignees
Labels
bug Something isn't working

Comments

@xuezhaojun
Copy link
Member

Describe the bug

There are mainly 2 place not considering the hosted mode in the addonProcessController:

1

https://github.com/stolostron/ocm/blob/6430b333e7f19c9faeab78c1e6aa41f9b4d64c26/pkg/addon/controllers/addonprogressing/controller.go#L135

The controller will wait for ManagedClusterAddOnManifestApplied but for hosted mode, there will only be a HostingManifestApplied .

As a result the there will always be Waiting condition for the addon.
image

2

https://github.com/stolostron/ocm/blob/6430b333e7f19c9faeab78c1e6aa41f9b4d64c26/pkg/addon/controllers/addonprogressing/controller.go#L155

From the comment we can see there is a TODO to consider hosted manifestwork.

The hosted addon will always show "no addon works" and hang in Processing is true state: https://github.com/stolostron/ocm/blob/6430b333e7f19c9faeab78c1e6aa41f9b4d64c26/pkg/addon/controllers/addonprogressing/controller.go#L165

@xuezhaojun xuezhaojun added the bug Something isn't working label May 14, 2024
@qiujian16
Copy link
Member

@zhujian7 I think we have fixed this?

@zhujian7
Copy link
Member

yes, #464

@xuezhaojun
Copy link
Member Author

add addon-framework PR open-cluster-management-io/addon-framework#267

@xuezhaojun
Copy link
Member Author

/close

@openshift-ci openshift-ci bot closed this as completed May 23, 2024
Copy link
Contributor

openshift-ci bot commented May 23, 2024

@xuezhaojun: Closing this issue.

In response to this:

/close

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.

@zhujian7 zhujian7 self-assigned this Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants