File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
extended/src/main/java/io/kubernetes/client/extended/kubectl Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 24
24
import org .apache .commons .lang .StringUtils ;
25
25
26
26
public class KubectlAnnotate <ApiType extends KubernetesObject >
27
+ extends Kubectl .ResourceBuilder <KubectlAnnotate <ApiType >>
27
28
implements Kubectl .Executable <ApiType > {
28
29
29
30
private final ApiClient apiClient ;
@@ -34,10 +35,8 @@ public class KubectlAnnotate<ApiType extends KubernetesObject>
34
35
private String apiVersion ;
35
36
private String resourceNamePlural ;
36
37
37
- private String namespace ;
38
- private String name ;
39
-
40
38
KubectlAnnotate (ApiClient apiClient , Class <ApiType > apiTypeClass ) {
39
+ super (apiClient , apiTypeClass );
41
40
this .addingAnnotations = new HashMap <>();
42
41
this .apiTypeClass = apiTypeClass ;
43
42
this .apiClient = apiClient ;
@@ -58,16 +57,6 @@ public KubectlAnnotate<ApiType> resourceNamePlural(String resourceNamePlural) {
58
57
return this ;
59
58
}
60
59
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
-
71
60
public KubectlAnnotate <ApiType > addAnnotation (String key , String value ) {
72
61
this .addingAnnotations .put (key , value );
73
62
return this ;
You can’t perform that action at this time.
0 commit comments