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

don’t default to AKS networkPolicy=calico #2999

Merged

Conversation

jackfrancis
Copy link
Contributor

What type of PR is this?

/kind flake
/kind feature

What this PR does / why we need it:

This PR removes an opinionated default for AKS clusters to use the calico NetworkPolicy feature.

I was unaware that this default configuration enforcement existed. It is not documented anywhere I can see, and I'm not aware of any justification to include this opinionated cluster configuration for CAPZ-originating AKS clusters: we should let the user decide whether or not to include the installation of either calico or azure NetworkPolicy, as either requires additional operational overhead and other considerations that aren't suitable for choosing one or the other as a default (IMO).

Feature support for calico and azure NetworkPolicy remain unchanged.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

don’t default to AKS networkPolicy=calico

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/flake Categorizes issue or PR as related to a flaky test. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 9, 2023
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 9, 2023
@jackfrancis
Copy link
Contributor Author

@mtougeron @zmalik @dthorsen @primeroz @sonasingh46 @LochanRn @zioproto @austintackaberry @karthikbalasub @michalno1 @meixingdb Does anyone have any concerns about this change? I do have a medium-strong opinion that we CAPZ should not opinionate about calico for NetworkPolicy, but there is the fact that this is a behavioral change and user expectation may have acclimated to calico by default.

Please share any downsides to reverting this default, thank you!

@dthorsen
Copy link
Contributor

I agree. I think it makes sense to make this change now while AKS support is still in experimental. We should just ensure that the behavioral change is documented in the release notes.

@mtougeron
Copy link
Member

I agree. I think it makes sense to make this change now while AKS support is still in experimental. We should just ensure that the behavioral change is documented in the release notes.

+1 to this

@jackfrancis jackfrancis added this to the v1.7 milestone Jan 10, 2023
Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 10, 2023
@CecileRobertMichon
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 10, 2023
@jackfrancis
Copy link
Contributor Author

/retest

@kubernetes-sigs kubernetes-sigs deleted a comment from k8s-ci-robot Jan 10, 2023
@jackfrancis
Copy link
Contributor Author

/retest

@kubernetes-sigs kubernetes-sigs deleted a comment from k8s-ci-robot Jan 10, 2023
@k8s-ci-robot
Copy link
Contributor

@jackfrancis: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-azure-e2e 058a6e0 link true /test pull-cluster-api-provider-azure-e2e

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@jackfrancis
Copy link
Contributor Author

/retest

@k8s-ci-robot k8s-ci-robot merged commit baaa53e into kubernetes-sigs:main Jan 10, 2023
@jackfrancis jackfrancis deleted the aks-default-networkPolicy branch January 11, 2023 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. kind/flake Categorizes issue or PR as related to a flaky test. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants