Skip to content

Add documents for kuberc #50913

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

Merged
merged 2 commits into from
Jun 8, 2025
Merged

Conversation

ardaguclu
Copy link
Member

@ardaguclu ardaguclu commented May 15, 2025

This PR adds documentations for the kuberc (KEP issue: kubernetes/enhancements#3104).

This PR is complementary of this #50961.

@k8s-ci-robot k8s-ci-robot added 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 May 15, 2025
@k8s-ci-robot k8s-ci-robot requested a review from mikedanese May 15, 2025 07:44
@k8s-ci-robot k8s-ci-robot added the language/en Issues or PRs related to English language label May 15, 2025
@k8s-ci-robot k8s-ci-robot requested a review from Princesso May 15, 2025 07:44
@ardaguclu
Copy link
Member Author

/cc @soltysh @sftim @liggitt

@k8s-ci-robot k8s-ci-robot requested review from soltysh and liggitt May 15, 2025 07:45
@k8s-ci-robot
Copy link
Contributor

@ardaguclu: GitHub didn't allow me to request PR reviews from the following users: sftim.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @soltysh @sftim @liggitt

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.

Copy link

netlify bot commented May 15, 2025

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit d41a8c7
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/683ff0a8024c660008038bf8
😎 Deploy Preview https://deploy-preview-50913--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

Several nits, but mostly lgtm

@lmktfy
Copy link
Contributor

lmktfy commented May 16, 2025

Relevant to kubernetes/enhancements#5300

Copy link
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

/lgtm
from technical pov, it will be updated to beta at a later stage as part of kubernetes/enhancements#3104 promotion (ref kubernetes/enhancements#5300)

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 16, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 35c4172d2b68b19002ebc212338c977303f1e65a

@ardaguclu
Copy link
Member Author

/cc @tengqm

@k8s-ci-robot k8s-ci-robot requested a review from tengqm May 16, 2025 12:37
@lmktfy
Copy link
Contributor

lmktfy commented May 18, 2025

/assign @divya-mohan0209

Copy link
Contributor

@lmktfy lmktfy left a comment

Choose a reason for hiding this comment

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

We could merge this, but I do have corrective feedback to offer.


Aside: once we document writing and using a kubeconfig, we should also document writing and using kuberc.

Comment on lines 129 to 135
## Disable Kuberc

To temporarily disable the kuberc functionality, simply export the environment variable `KUBERC` with the value `off`:

```shell
export KUBERC=off
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Given it's an alpha feature, couldn't you just unset something?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've mentioned disabling via feature gate as well. Please let me know what you think.

@tengqm
Copy link
Contributor

tengqm commented May 18, 2025

The config API for kuberc is auto-generated using the genref tool from kubernetes-sigs/reference-docs. Please don't manually create this file.
A related change has been made to the generator, with the update committed in #50961.

@soltysh
Copy link
Contributor

soltysh commented May 19, 2025

Aside: once we document writing and using a kubeconfig, we should also document writing and using kuberc.

Great idea, I wasn't even aware we have that issue.

@ardaguclu
Copy link
Member Author

@tengqm thank you for merging auto-generated api docs.
@lmktfy thank you for your all valuable feedback. I've applied all of them.

@ardaguclu ardaguclu changed the title Add documents for Kuberc Add documents for kuberc May 20, 2025
@ardaguclu
Copy link
Member Author

So the expectation is we'll merge this before kubernetes/kubernetes#131818. Once kubernetes/kubernetes#131818 merges, we'll update the documents accordingly?

@lmktfy
Copy link
Contributor

lmktfy commented May 21, 2025

So the expectation is we'll merge this before kubernetes/kubernetes#131818. Once kubernetes/kubernetes#131818 merges, we'll update the documents accordingly?

This PR should document what's already in released Kubernetes (as alpha).

We'll need a new, separate update PR ahead of cutting a release that includes the changes from kubernetes/kubernetes#131818

@soltysh
Copy link
Contributor

soltysh commented May 21, 2025

We'll need a new, separate update PR ahead of cutting a release that includes the changes from kubernetes/kubernetes#131818

Correct, the beta updates will be part of 1.34, and as usual the changes in the linked PR will be submitted there.

@ardaguclu
Copy link
Member Author

@lmktfy is there any pending action from me?. I'm wondering maybe we can merge this PR.

Copy link
Contributor

@lmktfy lmktfy left a comment

Choose a reason for hiding this comment

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

/lgtm

I'd like to see more fixes, but this looks OK to merge as-is.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 1, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: c01b3842fb5743e404b1b458a74e702e494d04c8

@ardaguclu
Copy link
Member Author

@lmktfy should I apply your changes or ping someone for approval?

@soltysh
Copy link
Contributor

soltysh commented Jun 3, 2025

@lmktfy should I apply your changes or ping someone for approval?

let's get the suggested fixes applied right away, otherwise we'll loose track of them

@lmktfy
Copy link
Contributor

lmktfy commented Jun 3, 2025

An approver is welcome to merge this and then open one or more good-first-issue issues

(we can always use a supply of these, and k/website likes to have very low difficulty first issues).

Applying fixes? Also fine.

@ardaguclu
Copy link
Member Author

An approver is welcome to merge this and then open one or more good-first-issue issues

(we can always use a supply of these, and k/website likes to have very low difficulty first issues).

Applying fixes? Also fine.

I can apply the changes tomorrow.@lmktfy as far as I can see, you are also the approver?

@lmktfy
Copy link
Contributor

lmktfy commented Jun 3, 2025

@lmktfy as far as I can see, you are also the approver?

  • Divya is nominated approver for this PR
  • we haven't taught this convention to Prow, but for changes that will publish to the live docs, we get approval and LGTM from separate reviews.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 4, 2025
@k8s-ci-robot k8s-ci-robot requested a review from lmktfy June 4, 2025 07:07
@ardaguclu
Copy link
Member Author

I've updated the PR based on the review.

Copy link
Contributor

@lmktfy lmktfy left a comment

Choose a reason for hiding this comment

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

/LGTM

If we merge this, the docs will be better than if we did not.

compiled-in default value.
{{< /note >}}

#### Example:
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: we don't end headings with punctuation.
Try this

Suggested change
#### Example:
#### Example {#overrides-example}

Within a `kuberc`, configuration, command line arguments are termed _flags_ (even if they do not represent a boolean type).
You can use `flags` to set the default value of a command line argument.

If you explicitly specify a flag on your terminal, explicit value will always take precedence over the value you defined in kuberc using `overrides`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Why indent this? That doesn't look right.

Copy link
Member

Choose a reason for hiding this comment

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

This indentation also causes a slight rendering issue with the page content, but aside from that, the overall changes look good to me!

Preview Link (here)

pr-preview

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 8, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 1fd1cbcf38c9a82d2bb44cadae1fa8d7f538d1cd

@katcosgrove
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: katcosgrove, soltysh

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 Jun 8, 2025
@k8s-ci-robot k8s-ci-robot merged commit ee05e9e into kubernetes:main Jun 8, 2025
6 checks passed
@ardaguclu ardaguclu deleted the kuberc-docs branch June 9, 2025 05:07
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. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

8 participants