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
Apply a configuration to a resource by file name or stdin. The resource name must be specified. This resource will be created if it doesn't exist yet. To use 'apply', always create the resource initially with either 'apply' or 'create --save-config'.
JSON and YAML formats are accepted.
Alpha Disclaimer: the --prune functionality is not yet complete. Do not use unless you are aware of what the current state is. See https://issues.k8s.io/34274.
Syntax
public static IEnumerable<string> KubectlApplyWithResult(this ICakeContext context, KubectlApplySettings settings)
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
Parameters
Return Value
Type |
Description |
IEnumerable<string> |
Output lines. |