-
Notifications
You must be signed in to change notification settings - Fork 192
Configure avi node network list in Cluster Class #4156
Conversation
/test install-vc7 |
Cluster Generation A/B Results: |
Tests failed! Build no: 3573 |
603248a
to
654c284
Compare
Cluster Generation A/B Results: |
Codecov Report
@@ Coverage Diff @@
## main #4156 +/- ##
==========================================
- Coverage 49.31% 48.43% -0.88%
==========================================
Files 451 481 +30
Lines 44602 46749 +2147
==========================================
+ Hits 21996 22644 +648
- Misses 20530 21978 +1448
- Partials 2076 2127 +51
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
b445a3f
to
3fbd9f4
Compare
Cluster Generation A/B Results: |
3fbd9f4
to
1e0dd92
Compare
Cluster Generation A/B Results: |
Cluster Generation A/B Results: |
1e0dd92
to
10491f6
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.
Generally LGTM, thx @chenlin07
tkg/managementcomponents/helper.go
Outdated
}, | ||
} | ||
} | ||
return nodeNetworkList, nil |
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.
nit: could we move this return line to line 153 above?
else {
// return vsphere network if node network list is not set
network_pathes := strings.Split(convertToString(userProviderConfigValues[constants.ConfigVariableVsphereNetwork]), "/")
network := network_pathes[len(network_pathes)-1]
nodeNetworkList = []NodeNetwork{
NodeNetwork{
NetworkName: network,
},
}
return nodeNetworkList, nil
}
}
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.
there will be error if we don't have one return line outside of if else
10491f6
to
260a18f
Compare
Cluster Generation A/B Results: |
260a18f
to
17c9a05
Compare
Cluster Generation A/B Results: |
Cluster Generation A/B Results: |
486e20c
to
1e4905d
Compare
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, thanks @chenlin07
Cluster Generation A/B Results: |
What this PR does / why we need it
In Cluster Class, we need to support to configure the required avi node network list var.
Previously we support this using ytt template: https://github.com/vmware-tanzu/tanzu-framework/blob/main/providers/ytt/02_addons/avi/ako_operator_secret.yaml#L6-L14
Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
Manual test. The
avi_ingress_node_network_list
will be auto-filled if the value is emptyRelease note
Additional information
Special notes for your reviewer