-
Notifications
You must be signed in to change notification settings - Fork 14
feat: add support for additional CLI arg/env var extensions + add azure/kubelogin based example #27
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: michaelawyu <chenyu1@microsoft.com>
|
Welcome @michaelawyu! |
Signed-off-by: michaelawyu <chenyu1@microsoft.com>
| { | ||
| Name: "aks-workload-identity", | ||
| Cluster: clientcmdapiv1.Cluster{ | ||
| Server: "https://bravelion.hcp.eastus.azmk8s.io:443", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a real cluster?
| // here uses the environment variable form just to showcase the different ways of passing | ||
| // in additional information. | ||
| additionalEnvVars := map[string]string{ | ||
| "AZURE_CLIENT_ID": "CLIENT_ID", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"CLIENT_ID" is just a place holder here, right?
|
|
||
| // The additional arguments are cluster-specific information. | ||
| additionalArgs := []string{ | ||
| "--tenant-id", "TENANT_ID", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TENANT_ID is just a placeholder, right?
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: michaelawyu, ryanzhang-oss 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 |
| }, | ||
| }, | ||
| Status: v1alpha1.ClusterProfileStatus{ | ||
| CredentialProviders: []v1alpha1.CredentialProvider{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accessor?
….20.4 🌱 Update to controller-runtime v0.20.4
This PR adds support for the proposed additional CLI argument/environment variable extensions in the ClusterProfile API.
The PR is submitted right now to showcase how the system would function with the new extensions; it can be merged when PR #5559 (to the k8s/enhancements repo) is merged and all changes look good.