KubectlAliases.

KubectlCreateSecretGenericWithResult(ICakeContext, KubectlCreateSecretGenericSettings) Method

Summary

Create a secret based on a file, directory, or specified literal value. A single secret may package one or more key/value pairs. When creating a secret based on a file, the key will default to the basename of the file, and the value will default to the file content. If the basename is an invalid key or you wish to chose your own, you may specify an alternate key. When creating a secret based on a directory, each file whose basename is a valid key in the directory will be packaged into the secret. Any directory entries except regular files are ignored (e.g. subdirectories, symlinks, devices, pipes, etc).
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Containing Type
KubectlAliases

Syntax

public static IEnumerable<string> KubectlCreateSecretGenericWithResult(this ICakeContext context, KubectlCreateSecretGenericSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings KubectlCreateSecretGenericSettings The settings.

Return Value

Type Description
IEnumerable<string> Output lines.