Skip to content

Commit 037e699

Browse files
author
Shubh Bapna
committed
implemented deleteLabel
1 parent 833772d commit 037e699

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlLabel.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ public KubectlLabel<ApiType> addLabel(String key, String value) {
3737
return this;
3838
}
3939

40+
public KubectlLabel<ApiType> deleteLabel(String key) {
41+
this.addingLabels.put(key, null);
42+
return this;
43+
}
44+
4045
@Override
4146
public ApiType execute() throws KubectlException {
4247
verifyArguments();

0 commit comments

Comments
 (0)