-
Notifications
You must be signed in to change notification settings - Fork 578
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
✨ feat: Add IRSA Support for Self Managed Clusters (2024 edition) #5101
Conversation
# Conflicts: # api/v1beta2/types.go # api/v1beta2/zz_generated.deepcopy.go # config/crd/bases/infrastructure.cluster.x-k8s.io_awsclusters.yaml # config/crd/bases/infrastructure.cluster.x-k8s.io_awsclustertemplates.yaml # controllers/awscluster_controller.go # controllers/awsmachine_controller.go # controllers/awsmachine_controller_test.go # controllers/awsmachine_controller_unit_test.go # controlplane/eks/api/v1beta2/awsmanagedcontrolplane_types.go # go.mod # go.sum # pkg/cloud/scope/machine.go # pkg/cloud/services/interfaces.go # pkg/cloud/services/s3/s3.go # pkg/cloud/services/s3/s3_test.go
This was blocking cluster deletion, because the OIDC provider no longer existed and was returning an error.
# Conflicts: # api/v1beta2/types.go
# Conflicts: # controllers/awsmachine_controller.go
* build oidc discovery doc * remove pod-identity-webhook deployment * Add documentation for SA Issuer Discovery & IRSA * remove unused reconcileKubeAPIParameters()
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Adding label 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-sigs/prow repository. |
Welcome @sl1pm4t! |
Hi @sl1pm4t. 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 Once the patch is verified, the new status will be reflected by the 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-sigs/prow repository. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds IRSA functionality to an IaaS cluster. This will bring the IaaS clusters inline in functionality with Managed clusters which provide most of this functionality out of the box.
With this PR, the following new resources are created:
<cluster_name>/.well-known/openid-configuration
- OpenID Connect discovery document<cluster_name>/openid/v1/jwks
- Service Account signing public keyThis is a continuation of an old unmerged PR #4094 - with some fixes and some functionality removed to reduce the scope of the PR.
The functionality removed includes:
service-account-issuer
argument through kubeadm patches. This is easily covered in the documentation and only requires a single line of config to be added to theAWSCluster
resource, but also during testing I experienced issues with this being applied inconsistently, resulting in different values across the control plane nodes.Which issue(s) this PR fixes:
Fixes #3560
Supersedes #4094
Special notes for your reviewer:
Adding a new ReconcileOIDCProvider to the AWSCluster reconciliation loop.
Checklist:
Release note: