public final class KubernetesContext extends Context
Modifier and Type | Class and Description |
---|---|
static class |
KubernetesContext.KubernetesContextBuilder
Builder class for KubernetesContext
|
Context.ContextBaseBuilder<R extends Context,B extends Context.ContextBaseBuilder<R,B>>
Modifier and Type | Field and Description |
---|---|
static String |
CLUSTERID_KEY
Kubernetes Cluster ID key
|
static String |
KUBERNETES_PLATFORM
Kubernetes platform name
|
static String |
NAMESPACE_KEY
Kubernetes Namespace key
|
platform, PLATFORM_KEY, properties
Constructor and Description |
---|
KubernetesContext(String namespace,
String clusterid,
Map<String,Object> properties)
Create a new KubernetesContext
|
Modifier and Type | Method and Description |
---|---|
static KubernetesContext.KubernetesContextBuilder |
builder()
Create a builder that provides a fluent API for constructing a KubernetesContext.
|
String |
getClusterid()
Retrieve the kubernetes clusterid from the collection of platform properties
|
String |
getNamespace()
Retrieve the kubernetes namespace from the collection of platform properties
|
Map<String,Object> |
getSerializableProperties()
Avoid polluting the serialized context with duplicated keys
|
canEqual, equals, getPlatform, getProperties, getProperty, getStringProperty, hashCode, toString
public static final String KUBERNETES_PLATFORM
public static final String NAMESPACE_KEY
public static final String CLUSTERID_KEY
public Map<String,Object> getSerializableProperties()
public String getNamespace()
public String getClusterid()
public static KubernetesContext.KubernetesContextBuilder builder()