Format Class

public final class Format
extends ExpandableStringEnum<Format>

The format of the kubeconfig credential.

Field Summary

Modifier and Type Field and Description
static final Format AZURE

Return azure auth-provider kubeconfig.

static final Format EXEC

Return exec format kubeconfig.

Constructor Summary

Constructor Description
Format()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Format value.

Method Summary

Modifier and Type Method and Description
static Format fromString(String name)

Creates or finds a Format from its string representation.

static Collection<Format> values()

Gets known Format values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

AZURE

public static final Format AZURE

Return azure auth-provider kubeconfig. This format is deprecated in v1.22 and will be fully removed in v1.26. See: https://aka.ms/k8s/changes-1-26.

EXEC

public static final Format EXEC

Return exec format kubeconfig. This format requires kubelogin binary in the path.

Constructor Details

Format

@Deprecated
public Format()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Format value.

Method Details

fromString

public static Format fromString(String name)

Creates or finds a Format from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding Format.

values

public static Collection<Format> values()

Gets known Format values.

Returns:

known Format values.

Applies to