Class V1ConfigMapNodeConfigSource
java.lang.Object
io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1ConfigMapNodeConfigSource
extends Object
ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1ConfigMapNodeConfigSourceCreate an instance of V1ConfigMapNodeConfigSource given an JSON stringKubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.getName()Name is the metadata.name of the referenced ConfigMap.Namespace is the metadata.namespace of the referenced ConfigMap.ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.getUid()UID is the metadata.UID of the referenced ConfigMap.inthashCode()kubeletConfigKey(String kubeletConfigKey) resourceVersion(String resourceVersion) voidsetKubeletConfigKey(String kubeletConfigKey) voidvoidsetNamespace(String namespace) voidsetResourceVersion(String resourceVersion) voidtoJson()Convert an instance of V1ConfigMapNodeConfigSource to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_KUBELET_CONFIG_KEY
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NAMESPACE
- See Also:
-
SERIALIZED_NAME_RESOURCE_VERSION
- See Also:
-
SERIALIZED_NAME_UID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ConfigMapNodeConfigSource
public V1ConfigMapNodeConfigSource()
-
-
Method Details
-
kubeletConfigKey
-
getKubeletConfigKey
KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.- Returns:
- kubeletConfigKey
-
setKubeletConfigKey
-
name
-
getName
Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.- Returns:
- name
-
setName
-
namespace
-
getNamespace
Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.- Returns:
- namespace
-
setNamespace
-
resourceVersion
-
getResourceVersion
ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.- Returns:
- resourceVersion
-
setResourceVersion
-
uid
-
getUid
UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.- Returns:
- uid
-
setUid
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to V1ConfigMapNodeConfigSource
-
fromJson
Create an instance of V1ConfigMapNodeConfigSource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1ConfigMapNodeConfigSource
- Throws:
IOException- if the JSON string is invalid with respect to V1ConfigMapNodeConfigSource
-
toJson
Convert an instance of V1ConfigMapNodeConfigSource to an JSON string- Returns:
- JSON string
-