KubectlVersionSettings Class

Summary

Print the client and server version information for the current context.
Assembly
Cake.Kubectl.dll
Namespace
Cake.Kubectl
Base Types
graph BT Type-->Base0["AutoToolSettings"] click Base0 "/api/Cake.Kubectl/AutoToolSettings" Base0-->Base1["ToolSettings"] Type["KubectlVersionSettings"] class Type type-node

Syntax

public sealed class KubectlVersionSettings : AutoToolSettings

Examples

# Print the client and server versions for the current context kubectl version

Attributes

Type Description
NullableContextAttribute
NullableAttribute
CompilerGeneratedAttribute

Constructors

Properties

Name Value Summary
Client Nullable<bool>
--client If true, shows client version only (no server required).
Output string
-o, --output One of 'yaml' or 'json'.

Extension Methods

Name Value Summary
Dump<KubectlVersionSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<KubectlVersionSettings>(KubectlVersionSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<KubectlVersionSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<KubectlVersionSettings>(string) void
Requires the Cake.Issues addin
ThrowIfNull<KubectlVersionSettings>(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
ThrowIfNull<KubectlVersionSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin