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
CompilerGeneratedAttribute

Constructors

Properties

Name Value Summary
Client Nullable<bool>
--client Client version only (no server required).
Output string
-o, --output One of 'yaml' or 'json'.
Short Nullable<bool>
--short Print just the version number.

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
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<KubectlVersionSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator 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