-
Notifications
You must be signed in to change notification settings - Fork 228
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
Add OutBound Type to aks_config_v2 #1439
Conversation
) | ||
|
||
const ( | ||
clusterAKSV2Kind = "aksV2" | ||
clusterDriverAKSV2 = "AKS" | ||
) | ||
|
||
var ( | ||
clusterAKSOutboundType = []string{"loadBalancer", "managedNATGateway", "userAssignedNATGateway", "userDefinedRouting"} |
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.
Optional suggestion: Not sure if these are case sensitive (probably not) but maybe we should match these to how they appear in the Azure docs i.e. managedNatGateway
and userAssignedNatGateway
.
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.
it is non case sensitive
Optional: true, | ||
Default: "loadBalancer", | ||
Description: "The AKS outbound type for the egress traffic", | ||
ValidateFunc: validation.StringInSlice(clusterAKSOutboundType, 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.
TIL about validation.StringInSlice
👍
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.
validation function has already non case sensitive flag enabled
eb769cb
to
0a6ffb3
Compare
edb1e9f
to
dc9f154
Compare
Issue: rancher/aks-operator#721 Signed-off-by: Michal Jura <[email protected]>
dc9f154
to
836cda8
Compare
Signed-off-by: Michal Jura <[email protected]> (cherry picked from commit 51db8c5)
Co-authored-by: Michal Jura <[email protected]>
Issue: rancher/aks-operator#721
Issue:
Problem
Solution
Testing
Engineering Testing
Manual Testing
Automated Testing
QA Testing Considerations
Regressions Considerations