Skip to content
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

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

mjura
Copy link
Contributor

@mjura mjura commented Nov 8, 2024

Issue: rancher/aks-operator#721

Issue:

Problem

Solution

Testing

Engineering Testing

Manual Testing

Automated Testing

QA Testing Considerations

Regressions Considerations

)

const (
clusterAKSV2Kind = "aksV2"
clusterDriverAKSV2 = "AKS"
)

var (
clusterAKSOutboundType = []string{"loadBalancer", "managedNATGateway", "userAssignedNATGateway", "userDefinedRouting"}

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.

Copy link
Contributor Author

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),

Choose a reason for hiding this comment

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

TIL about validation.StringInSlice 👍

Copy link
Contributor Author

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

@mjura mjura force-pushed the aks-outboundtype branch 2 times, most recently from edb1e9f to dc9f154 Compare November 14, 2024 08:58
@mjura mjura merged commit 51db8c5 into rancher:master Nov 14, 2024
1 check passed
matttrach pushed a commit to matttrach/terraform-provider-rancher2 that referenced this pull request Nov 15, 2024
Signed-off-by: Michal Jura <[email protected]>
(cherry picked from commit 51db8c5)
matttrach added a commit that referenced this pull request Nov 15, 2024
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.

3 participants