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

enable/disable AKS cluster add-ons #2095

Conversation

michalno1
Copy link
Contributor

@michalno1 michalno1 commented Feb 16, 2022

What type of PR is this?
/kind feature

What this PR does / why we need it:
This PR allows enabling/disabling AKS cluster add-ons.

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 #1145

Release note:

Support enabling and disabling AKS cluster add-ons.

@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/feature Categorizes issue or PR as related to a new feature. labels Feb 16, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @michalno1. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 16, 2022
@k8s-ci-robot k8s-ci-robot added the area/provider/azure Issues or PRs related to azure provider label Feb 16, 2022
@k8s-ci-robot k8s-ci-robot added the sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. label Feb 16, 2022
@zmalik
Copy link
Member

zmalik commented Feb 16, 2022

/area managedclusters

@k8s-ci-robot k8s-ci-robot added the area/managedclusters Issues related to managed AKS clusters created through the CAPZ ManagedCluster Type label Feb 16, 2022
@zmalik
Copy link
Member

zmalik commented Feb 16, 2022

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 16, 2022
@michalno1 michalno1 force-pushed the enable-disable-aks-cluster-addons branch from 4ce312d to 127f2dd Compare February 23, 2022 16:22
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 23, 2022
@michalno1 michalno1 force-pushed the enable-disable-aks-cluster-addons branch from 127f2dd to 98a3006 Compare February 23, 2022 16:26
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 23, 2022
@michalno1 michalno1 force-pushed the enable-disable-aks-cluster-addons branch from 98a3006 to e0cc92d Compare February 24, 2022 10:28
@jackfrancis
Copy link
Contributor

code lgtm

Can we add some test coverage to the AKS spec we run tests against at templates/flavors/aks-multi-tenancy/cluster-template.yaml?

Is there a "simple" addon we can enable in the AzureManagedControlPlane resource spec to test this new functionality that won't change any other functional aspects of the cluster?

After making that change run make generate-flavors to render the final template for prow CI to consume and be able to test.

Thanks!

@CecileRobertMichon
Copy link
Contributor

Can we add some test coverage to the AKS spec we run tests against at templates/flavors/aks-multi-tenancy/cluster-template.yaml?

Heads up I'm removing the multi-tenancy flavor in #2143 to replace it with the regular "aks" flavor since all templates have multi-tenancy now, it's redundant to have a separate "multi-tenancy" flavor. Going forward we'll be testing with https://github.com/kubernetes-sigs/cluster-api-provider-azure/tree/ab1aec6f47646a1f03839b4a4e1b3047cf3aea42/templates/test/ci/prow-aks.

@michalno1 michalno1 force-pushed the enable-disable-aks-cluster-addons branch 2 times, most recently from 9c32edb to 368c445 Compare March 3, 2022 10:59
@michalno1
Copy link
Contributor Author

michalno1 commented Mar 3, 2022

@jackfrancis From the addons that can be used I think a good one for testing is azurepolicy- it shouldn't interfere with functional aspects of the cluster. Another good one would be monitoring but it does require creating a Log Analytics Workspace first. I'll use azurepolicy for now.

@jackfrancis @CecileRobertMichon It seems to me existing e2e tests just check if everything started successfully. Shouldn't they also somehow verify flavor specific settings are really in effect?

@jackfrancis
Copy link
Contributor

@michalno1 I have a slight preference for not testing functional outcomes and instead relying upon the AKS API to do that if it accepts our requests. The only reason is that it would add test maintenance for outcomes outside of our control (i.e., AKS operational behaviors).

But it's not a simple issue, as the project would benefit having more coverage signal to add customer confidence that "this particular way of using AKS will have the desired effect".

@michalno1 michalno1 force-pushed the enable-disable-aks-cluster-addons branch from 368c445 to 4a1a830 Compare March 4, 2022 09:54
@michalno1 michalno1 force-pushed the enable-disable-aks-cluster-addons branch from 4a1a830 to 40b3fa8 Compare March 4, 2022 19:42
@@ -23,6 +23,9 @@ metadata:
name: ${CLUSTER_NAME}
namespace: default
spec:
addonProfiles:
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally we shouldn't enable features for tests directly in the flavors as those are also exposed as examples for users, but we can add patches in the test/ directory for that sort of stuff

since this is likely to merge before #2143 and I'm removing this template anyways, let's keep this for now and I'll do some cleanup in my PR.

Copy link
Contributor

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

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

/lgtm

@jackfrancis
Copy link
Contributor

/assign @CecileRobertMichon

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 7, 2022
@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 Mar 7, 2022
@k8s-ci-robot k8s-ci-robot merged commit 04240c9 into kubernetes-sigs:main Mar 7, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.3 milestone Mar 7, 2022
@CecileRobertMichon CecileRobertMichon mentioned this pull request Mar 7, 2022
3 tasks
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. area/managedclusters Issues related to managed AKS clusters created through the CAPZ ManagedCluster Type area/provider/azure Issues or PRs related to azure provider 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. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add AKS addon support
5 participants