Skip to content

[KEP-3104] Kuberc beta #51351

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

Open
wants to merge 2 commits into
base: dev-1.34
Choose a base branch
from
Open

Conversation

soltysh
Copy link
Contributor

@soltysh soltysh commented Jun 23, 2025

Description

Promote kuberc to beta

Issue

KEP: kubernetes/enhancements#3104

/assign @ardaguclu
for sig-cli review

The generated changes are coming from kubernetes-sigs/reference-docs#396

soltysh added 2 commits June 23, 2025 12:13
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
@k8s-ci-robot k8s-ci-robot added this to the 1.34 milestone Jun 23, 2025
Copy link

netlify bot commented Jun 23, 2025

👷 Deploy Preview for kubernetes-io-vnext-staging processing.

Name Link
🔨 Latest commit 329325b
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-vnext-staging/deploys/6859292d377e330008184f6f

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tengqm for approval. For more information see the Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added language/en Issues or PRs related to English language cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 23, 2025
@k8s-ci-robot k8s-ci-robot added sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jun 23, 2025
Copy link

netlify bot commented Jun 23, 2025

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 329325b
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/6859292dc9d47300089d0f09
😎 Deploy Preview https://deploy-preview-51351--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.

@ardaguclu
Copy link
Member

/lgtm
from sig-cli POV

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

LGTM label has been added.

Git tree hash: e21e1f494afc538904a4497edafc7c914d93f0bb

@@ -89,7 +90,7 @@ operator to use or manage a cluster.
* [kube-controller-manager configuration (v1alpha1)](/docs/reference/config-api/kube-controller-manager-config.v1alpha1/)
* [kube-proxy configuration (v1alpha1)](/docs/reference/config-api/kube-proxy-config.v1alpha1/)
* [`audit.k8s.io/v1` API](/docs/reference/config-api/apiserver-audit.v1/)
* [Client authentication API (v1beta1)](/docs/reference/config-api/client-authentication.v1beta1/) and
* [Client authentication API (v1beta1)](/docs/reference/config-api/client-authentication.v1beta1/) and
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Avoid changing this line

## Disable kuberc

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

Choose a reason for hiding this comment

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

Suggested change
To temporarily disable the kuberc functionality, simply export the environment
To temporarily disable the kuberc functionality, set (and export) the environment

## Disable kuberc

To temporarily disable the kuberc functionality, simply export the environment variable `KUBERC` with the value `off`:
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.

Does this assume that the path off is invalid?

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.

Why delete this line?


Append arbitrary arguments to the end of the kubectl command.

#### Example {#appendArgs-example}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why delete this line?

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.

As a reference document, this should retain the terse style of the existing reference (with, of course, the appropriate factual updates).

Please amend it to align more with the existing approach.


Alias name must not collide with the built-in commands.
Within a `kuberc` configuration, _aliases_ section allows you to define custom
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Within a `kuberc` configuration, _aliases_ section allows you to define custom
Within a `kuberc` configuration, the _aliases_ section allows you to define custom


## aliases
Currently, this file allows you to define two types of user preferences:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Currently, this file allows you to define two types of user preferences:
A kuberc using the v1beta1 format allows you to define two types of user preferences:


### name
## Aliases
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## Aliases
## aliases


### command
## Defaults
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## Defaults
## defaults

This includes support for subcommands like `create role`.
1. `options` - Specify default values for options. If you explicitly specify an option
when you run `kubectl`, the value you provide takes precedence over the default
one defined in `kuberc`.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why delete this line?

- command: delete
flags:
options:
- name: interactive
default: "true"
Copy link
Contributor

Choose a reason for hiding this comment

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

Optionally, use a comment to explain why the value is quoted.


#### Example
This next example makes the interactive removal the default mode for invoking
`kubectl delete` command:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
`kubectl delete` command:
`kubectl delete`:


A Kubernetes `kuberc` configuration file allows you to define preferences for kubectl, such as default options and command aliases.
Unlike the kubeconfig file, a `kuberc` configuration file does **not** contain cluster details, usernames or passwords.
A Kubernetes `kuberc` configuration file allows you to define preferences for kubectl,
Copy link
Contributor

Choose a reason for hiding this comment

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

Even better: make kubectl a hyperlink or a glossary tooltip.


#### Example {#flags-example}
This next example defines `kubectl getn` alias for `kubectl get` command, additionally
setting output flag `--output=json`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
setting output flag `--output=json`.
specifying JSON output format: `--output=json`.

If you explicitly specify a command line argument when you run kubectl, the value you provide takes precedence over the default one defined in kuberc.

#### Example {#flags-example}
This next example defines `kubectl getn` alias for `kubectl get` command, additionally
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
This next example defines `kubectl getn` alias for `kubectl get` command, additionally
This next example defines a `kubectl getn` alias for the `kubectl get` subcommand, additionally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants