Skip to content

Commit bb6e7c9

Browse files
committed
plumbs resource builder
1 parent 46d3c25 commit bb6e7c9

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

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

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.apache.commons.lang.StringUtils;
2525

2626
public class KubectlAnnotate<ApiType extends KubernetesObject>
27+
extends Kubectl.ResourceBuilder<KubectlAnnotate<ApiType>>
2728
implements Kubectl.Executable<ApiType> {
2829

2930
private final ApiClient apiClient;
@@ -34,10 +35,8 @@ public class KubectlAnnotate<ApiType extends KubernetesObject>
3435
private String apiVersion;
3536
private String resourceNamePlural;
3637

37-
private String namespace;
38-
private String name;
39-
4038
KubectlAnnotate(ApiClient apiClient, Class<ApiType> apiTypeClass) {
39+
super(apiClient, apiTypeClass);
4140
this.addingAnnotations = new HashMap<>();
4241
this.apiTypeClass = apiTypeClass;
4342
this.apiClient = apiClient;
@@ -58,16 +57,6 @@ public KubectlAnnotate<ApiType> resourceNamePlural(String resourceNamePlural) {
5857
return this;
5958
}
6059

61-
public KubectlAnnotate<ApiType> namespace(String namespace) {
62-
this.namespace = namespace;
63-
return this;
64-
}
65-
66-
public KubectlAnnotate<ApiType> name(String name) {
67-
this.name = name;
68-
return this;
69-
}
70-
7160
public KubectlAnnotate<ApiType> addAnnotation(String key, String value) {
7261
this.addingAnnotations.put(key, value);
7362
return this;

0 commit comments

Comments
 (0)