-
Notifications
You must be signed in to change notification settings - Fork 192
forbid calico mgmt cluster creation unless allowCalico env is set to true #4138
Conversation
Cluster Generation A/B Results: |
dfdf5b8
to
08c8255
Compare
Cluster Generation A/B Results: |
08c8255
to
c48e7e6
Compare
Cluster Generation A/B Results: |
Codecov Report
@@ Coverage Diff @@
## main #4138 +/- ##
==========================================
- Coverage 48.66% 48.17% -0.50%
==========================================
Files 446 469 +23
Lines 44279 45748 +1469
==========================================
+ Hits 21549 22039 +490
- Misses 20689 21631 +942
- Partials 2041 2078 +37
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
tkg/client/validate.go
Outdated
// _ALLOW_CALICO_ON_MANAGEMENT_CLUSTER must be true when cniType is calico | ||
if cniType == "calico" { | ||
allowCalicoType := os.Getenv("_ALLOW_CALICO_ON_MANAGEMENT_CLUSTER") | ||
if allowCalicoType != "true" { |
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.
Please double check the func ConfigureAndValidateCNIType
. I think this will block workload cluster and pacific cluster creation using calico as well
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.
As you can see all the calico related e2e tests in pr pipelines are failing due to not able to create calico workload clusters
c48e7e6
to
e972925
Compare
Cluster Generation A/B Results: |
e972925
to
c0e25b4
Compare
Cluster Generation A/B Results: |
c0e25b4
to
79f7be8
Compare
Cluster Generation A/B Results: |
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.
Changes LGTM. Let's wait for the pr pipeline results
79f7be8
to
5b595b8
Compare
Cluster Generation A/B Results: |
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
What this PR does / why we need it
We should forbid calico mgmt cluster creation, unless the user has set
_ALLOW_CALICO_ON_MANAGEMENT_CLUSTER
param to be true in advance.Which issue(s) this PR fixes
Fixes #4137
Describe testing done for PR
Release note
Additional information
Special notes for your reviewer