Skip to content

Conversation

@michaelawyu
Copy link

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.

Signed-off-by: michaelawyu <chenyu1@microsoft.com>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 30, 2025
@k8s-ci-robot
Copy link
Contributor

Welcome @michaelawyu!

It looks like this is your first PR to kubernetes-sigs/cluster-inventory-api 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/cluster-inventory-api has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 30, 2025
@michaelawyu michaelawyu changed the title feat: add support for additional CLI arg/env var extensions feat: add support for additional CLI arg/env var extensions + add azure/kubelogin based example Oct 30, 2025
Signed-off-by: michaelawyu <chenyu1@microsoft.com>
{
Name: "aks-workload-identity",
Cluster: clientcmdapiv1.Cluster{
Server: "https://bravelion.hcp.eastus.azmk8s.io:443",
Copy link
Contributor

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",
Copy link
Contributor

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",
Copy link
Contributor

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?

@k8s-ci-robot
Copy link
Contributor

[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 /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 Nov 1, 2025
},
},
Status: v1alpha1.ClusterProfileStatus{
CredentialProviders: []v1alpha1.CredentialProvider{
Copy link
Contributor

Choose a reason for hiding this comment

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

Accessor?

corentone pushed a commit to corentone/cluster-inventory-api that referenced this pull request Nov 13, 2025
….20.4

🌱 Update to controller-runtime v0.20.4
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. 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.

3 participants