Skip to content

✨ Add a disable-default-addon-namespace flag #484

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

Conversation

qiujian16
Copy link
Member

@qiujian16 qiujian16 commented May 30, 2024

if the flag is set, default addon ns will not be created by the operator.

Summary

Related issue(s)

Fixes #474

@openshift-ci openshift-ci bot requested review from xuezhaojun and zhujian7 May 30, 2024 08:30
Copy link
Contributor

openshift-ci bot commented May 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16

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

@qiujian16 qiujian16 changed the title ✨ Add a disable-default-addo-namespace flag ✨ Add a disable-default-addon-namespace flag May 30, 2024
@qiujian16 qiujian16 force-pushed the disable-addon-ns branch 2 times, most recently from 31e7e76 to 580430b Compare May 31, 2024 01:48
Copy link

codecov bot commented May 31, 2024

Codecov Report

Attention: Patch coverage is 69.23077% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 62.74%. Comparing base (c61895c) to head (8d6ef2a).
Report is 4 commits behind head on main.

Files Patch % Lines
...usterletcontroller/klusterlet_managed_reconcile.go 70.58% 2 Missing and 3 partials ⚠️
...lers/klusterletcontroller/klusterlet_controller.go 33.33% 2 Missing ⚠️
...sterletcontroller/klusterlet_cleanup_controller.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #484      +/-   ##
==========================================
+ Coverage   62.71%   62.74%   +0.03%     
==========================================
  Files         136      136              
  Lines       11580    11593      +13     
==========================================
+ Hits         7262     7274      +12     
- Misses       3550     3551       +1     
  Partials      768      768              
Flag Coverage Δ
unit 62.74% <69.23%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

if the flag is set, default addon ns will not be created
by the operator.

Signed-off-by: Jian Qiu <[email protected]>
Copy link
Contributor

@clyang82 clyang82 left a comment

Choose a reason for hiding this comment

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

what is behaviour if the disable-default-addon-namespace is set as false at the beginning, then update to true?

@elgnay
Copy link
Contributor

elgnay commented May 31, 2024

Signed-off-by: Jian Qiu <[email protected]>
@qiujian16
Copy link
Member Author

qiujian16 commented May 31, 2024

what is behaviour if the disable-default-addon-namespace is set as false at the beginning, then update to true?

the namespace will be leftover, it actually is safer.

@qiujian16
Copy link
Member Author

@elgnay
Copy link
Contributor

elgnay commented Jun 3, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jun 3, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit c056181 into open-cluster-management-io:main Jun 3, 2024
14 checks passed
@qiujian16 qiujian16 deleted the disable-addon-ns branch June 3, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

open-cluster-management-addon namespace should be optionally created
3 participants