kuberc (v1beta1)
Resource Types
Preference
Preference stores elements of KubeRC configuration file
| Field | Description |
|---|---|
apiVersionstring | kubectl.config.k8s.io/v1beta1 |
kindstring | Preference |
defaults [Required][]CommandDefaults | defaults allow changing default option values of commands. This is especially useful, when user doesn't want to explicitly set options each time. |
aliases [Required][]AliasOverride | aliases allow defining command aliases for existing kubectl commands, with optional default option values. If the alias name collides with a built-in command, built-in command always takes precedence. Option overrides defined in the defaults section do NOT apply to aliases for the same command. kubectl [ALIAS NAME] [USER_OPTIONS] [USER_EXPLICIT_ARGS] expands to kubectl [COMMAND] # built-in command alias points to [KUBERC_PREPEND_ARGS] [USER_OPTIONS] [KUBERC_OPTIONS] # rest of the options that are not passed by user in [USER_OPTIONS] [USER_EXPLICIT_ARGS] [KUBERC_APPEND_ARGS] e.g.
|
credentialPluginPolicyCredentialPluginPolicy | credentialPluginPolicy specifies the policy governing which, if any, client-go
credential plugins may be executed. It MUST be one of { "", "AllowAll", "DenyAll", "Allowlist" }.
If the policy is "", then it falls back to "AllowAll" (this is required
to maintain backward compatibility). If the policy is DenyAll, no
credential plugins may run. If the policy is Allowlist, only those
plugins meeting the criteria specified in the |
credentialPluginAllowlist[]AllowlistEntry | Allowlist is a slice of allowlist entries. If any of them is a match, then the executable in question may execute. That is, the result is the logical OR of all entries in the allowlist. This list MUST NOT be supplied if the policy is not "Allowlist". e.g. credentialPluginAllowlist:
|
AliasOverride
Appears in:
AliasOverride stores the alias definitions.
| Field | Description |
|---|---|
name [Required]string | name is the name of alias that can only include alphabetical characters If the alias name conflicts with the built-in command, built-in command will be used. |
command [Required]string | command is the single or set of commands to execute, such as "set env" or "create" |
prependArgs [Required][]string | prependArgs stores the arguments such as resource names, etc. These arguments are inserted after the alias name. |
appendArgs [Required][]string | appendArgs stores the arguments such as resource names, etc. These arguments are appended to the USER_ARGS. |
options [Required][]CommandOptionDefault | options is allocated to store the option definitions of alias. options only modify the default value of the option and if user explicitly passes a value, explicit one is used. |
AllowlistEntry
Appears in:
AllowlistEntry is an entry in the allowlist. For each allowlist item, at least one field must be nonempty. A struct with all empty fields is considered a misconfiguration error. Each field is a criterion for execution. If multiple fields are specified, then the criteria of all specified fields must be met. That is, the result of an individual entry is the logical AND of all checks corresponding to the specified fields within the entry.
| Field | Description |
|---|---|
name [Required]string | Name matching is performed by first resolving the absolute path of both
the plugin and the name in the allowlist entry using |
CommandDefaults
Appears in:
CommandDefaults stores the commands and their associated option's default values.
| Field | Description |
|---|---|
command [Required]string | command refers to a command whose option's default value is changed. |
options [Required][]CommandOptionDefault | options is a list of options storing different default values. |
CommandOptionDefault
Appears in:
CommandOptionDefault stores the name and the specified default value of an option.
| Field | Description |
|---|---|
name [Required]string | Option name (long form, without dashes). |
default [Required]string | In a string format of a default value. It will be parsed by kubectl to the compatible value of the option. |
CredentialPluginPolicy
(Alias of string)
Appears in:
CredentialPluginPolicy specifies the policy governing which, if any, client-go
credential plugins may be executed. It MUST be one of { "", "AllowAll", "DenyAll", "Allowlist" }.
If the policy is "", then it falls back to "AllowAll" (this is required
to maintain backward compatibility). If the policy is DenyAll, no
credential plugins may run. If the policy is Allowlist, only those
plugins meeting the criteria specified in the credentialPluginAllowlist
field may run. If the policy is not Allowlist but one is provided, it
is considered a configuration error.
This page is automatically generated.
If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.