This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Kubectl.
Summary
Set a user entry in kubeconfig.
Specifying a name that already exists will merge new fields on top of existing values.
Client-certificate flags:
--client-certificate=certfile --client-key=keyfile
Bearer token flags:
--token=bearer_token
Basic auth flags:
--username=basic_user --password=basic_password
Bearer token and basic auth are mutually exclusive.
Syntax
public static IEnumerable<string> KubectlConfigSetCredentialsWithResult(this ICakeContext context, KubectlConfigSetCredentialsSettings settings)
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
Parameters
Return Value
Type |
Description |
IEnumerable<string> |
Output lines. |