KubectlDiffSettings Class

Summary

Diff configurations specified by filename or stdin between the current online configuration, and the configuration as it would be if applied. Output is always YAML. KUBECTL_EXTERNAL_DIFF environment variable can be used to select your own diff command. By default, the "diff" command available in your path will be run with "-u" (unicode) and "-N" (treat new files as empty) options.
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Base Types
graph BT Type-->Base0["AutoToolSettings"] click Base0 "/api/Cake.Kubectl/AutoToolSettings" Base0-->Base1["ToolSettings"] Type["KubectlDiffSettings"] class Type type-node

Syntax

public sealed class KubectlDiffSettings : AutoToolSettings

Examples

# Diff resources included in pod.json. kubectl diff -f pod.json # Diff file read from stdin cat service.yaml | kubectl diff -f -

Attributes

Type Description
CompilerGeneratedAttribute

Constructors

Name Summary
KubectlDiffSettings()

Properties

Name Value Summary
ExperimentalFieldManager string
--experimental-field-manager Name of the manager used to track field ownership. This is an alpha feature and flag.
ExperimentalForceConflicts Nullable<bool>
--experimental-force-conflicts If true, server-side apply will force the changes against conflicts. This is an alpha feature and flag.
ExperimentalServerSide Nullable<bool>
--experimental-server-side If true, apply runs in the server instead of the client. This is an alpha feature and flag.
Filename string
-f, --filename Filename, directory, or URL to files contains the configuration to diff
Kustomize string
-k, --kustomize Process the kustomization directory. This flag can't be used together with -f or -R.
Recursive Nullable<bool>
-R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.

Extension Methods

Name Value Summary
Dump<KubectlDiffSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<KubectlDiffSettings>(KubectlDiffSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<KubectlDiffSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<KubectlDiffSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<KubectlDiffSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<KubectlDiffSettings>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin