We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d58f7fb commit 46d3c25Copy full SHA for 46d3c25
util/src/main/java/io/kubernetes/client/util/annotations/Annotations.java
@@ -12,6 +12,7 @@
12
*/
13
package io.kubernetes.client.util.annotations;
14
15
+import com.google.common.collect.ImmutableMap;
16
import io.kubernetes.client.common.KubernetesObject;
17
import java.util.HashMap;
18
import java.util.Map;
@@ -27,9 +28,7 @@ public class Annotations {
27
28
29
public static void addAnnotations(
30
KubernetesObject kubernetesObject, String annotation, String value) {
- Map<String, String> mergingAnnotations = new HashMap<>();
31
- mergingAnnotations.put(annotation, value);
32
- addAnnotations(kubernetesObject, mergingAnnotations);
+ addAnnotations(kubernetesObject, ImmutableMap.of(annotation, value));
33
}
34
35
/**
0 commit comments