Class Annotations

java.lang.Object
io.kubernetes.client.util.annotations.Annotations

public class Annotations extends 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 object
      annotation - the annotation key
      value - 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 object
      mergingAnnotations - the merging annotations