-
Notifications
You must be signed in to change notification settings - Fork 192
Removes requirement adddon configs match cluster name #3652
Conversation
a3cee36
to
9cd4948
Compare
f5e2591
to
efd4d30
Compare
Codecov Report
@@ Coverage Diff @@
## main #3652 +/- ##
==========================================
- Coverage 46.55% 45.64% -0.92%
==========================================
Files 400 426 +26
Lines 39797 41630 +1833
==========================================
+ Hits 18529 19002 +473
- Misses 19571 20898 +1327
- Partials 1697 1730 +33
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
e155b51
to
a3db048
Compare
addons/controllers/kapp-controller/kappcontrollerconfig_controller.go
Outdated
Show resolved
Hide resolved
c7a8cc1
to
84cc150
Compare
20bd5db
to
9aceb35
Compare
0bcd551
to
a1c8c57
Compare
/test install-vc7 |
Build failed! Build no: 3097 |
/test install-vc7 |
1 similar comment
/test install-vc7 |
a94dde3
to
00603ab
Compare
83053ca
to
5024131
Compare
b10069b
to
c7310e6
Compare
if cbPackage != nil && cbPackage.ValuesFrom != nil && cbPackage.ValuesFrom.Inline != nil { | ||
nonEmptyInlinePackages = append(nonEmptyInlinePackages, cbPackage) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why codecov is reporting that no test is covering this. I thought you have added a test case for this ? Could you please ensure this is covered as part of the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do
allowing the name of addons config to be anything controllers changed in this patch - Calico CNI - Antrea CNI - Kapp controller - CPI - CSI
c7310e6
to
04c568d
Compare
removed unecessary if statement which was causing all nonanotated cbs to be skipped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
allowing the name of addons config to be anything
controllers changed in this patch
scenario logic:
no customization
user does nothing
addonsNS/config-template is cloned to clusterNS/{CLUSTER_NAME}-{pacakge-short-name}-package
CLUSTER_NAME will be added the owner references of clusterNS/{CLUSTER_NAME}-{pacakge-short-name}-package
data value secrets is created
customize based on template:
create clusterNS/addonconfig withname clusterNS/{CLUSTER_NAMEW}-{package-short-name}-pacakge
then
clusterNS/{CLUSTER_NAME}-{pacakge-short-name}-package += addonsNS/config-template
The resulting addon config is a merged of template with user defined config addon
The values from user defined addon config take precedence over the values from template config
and CLUSTER_NAME will be added the owner references of clusterNS/{CLUSTER_NAME}-{pacakge-short-name}-
package
data value secrets is created
customized based custom clusterboostrap and custom addonconfig:
create clusterNS/addonconfig withname clusterNS/{Any-name-for-addon-config}
webhook adds all undefined necessary fields.
create clusterbootsrap clusterNS/{CLUSTER_NAME} pointing to clusterNS/{Any-name-for-addon-config}
CLUSTER_NAME will be added the owner references of clusterNS/{Any-name-for-addon-config}
data value secrets is created
customized based custom clusterboostrap and custom addonconfig with wildcard:
create clusterNS/addonconfig withname clusterNS/{Any-name-for-addon-config}
webhook adds all undefined necessary fields.
create clusterbootsrap clusterNS/{CLUSTER_NAME} pointing to clusterNS/{Any-name-for-addon-config}
CLUSTER_NAME will be added the owner references of clusterNS/{Any-name-for-addon-config}
data value secrets is created
Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
scenarios described have been added as tests using eventest library
unit tests defined
Release note
Additional information
Special notes for your reviewer