Class Annotations
java.lang.Object
io.kubernetes.client.util.annotations.Annotations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAnnotations
(io.kubernetes.client.common.KubernetesObject kubernetesObject, String annotation, String value) Adds one annotation to the object.static void
addAnnotations
(io.kubernetes.client.common.KubernetesObject kubernetesObject, Map<String, String> mergingAnnotations) Adds a set of annotations to the object.
-
Constructor Details
-
Annotations
public Annotations()
-
-
Method Details
-
addAnnotations
public static void addAnnotations(io.kubernetes.client.common.KubernetesObject kubernetesObject, String annotation, String value) Adds one annotation to the object.- Parameters:
kubernetesObject
- the kubernetes objectannotation
- the annotation keyvalue
- the annotations value
-
addAnnotations
public static void addAnnotations(io.kubernetes.client.common.KubernetesObject kubernetesObject, Map<String, String> mergingAnnotations) Adds a set of annotations to the object.- Parameters:
kubernetesObject
- the kubernetes objectmergingAnnotations
- the merging annotations
-