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

[v2.9] Fix logic for Authorized IP ranges #594

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

mjura
Copy link
Contributor

@mjura mjura commented Jul 19, 2024

Fix logic for updating Authorized IP ranges:

  • all settings should be overwrite for AKS clusters provisioned by Rancher
  • for imported clusters options should be merged with downstream cluster

Issue: #592

What this PR does / why we need it:

Which issue(s) this PR fixes
Issue #

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests
  • backport needed

Fix logic for updating Authorized IP ranges:
- all settings should be overwrite for AKS clusters provisioned by Rancher
- for imported clusters options should be merged with downstream cluster

Issue: rancher#592
@mjura mjura requested a review from a team as a code owner July 19, 2024 07:15
@@ -108,14 +108,23 @@ func updateCluster(desiredCluster armcontainerservice.ManagedCluster, actualClus
}
}

// If the cluster is imported, we may not have the authorized IP ranges set on the spec.
Copy link
Contributor

Choose a reason for hiding this comment

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

Q: is there a case where authorized IP ranges are set on the spec and if so what happens in that case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For imported clusters it is not possible, always this setting will be overwritten with downstream cluster

@yiannistri yiannistri self-requested a review July 24, 2024 14:25
@mjura mjura merged commit 5087484 into rancher:release-v2.9 Jul 25, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants