@@ -64,7 +64,7 @@ public boolean hasNamespace() {
64
64
}
65
65
66
66
public void createNamespace () {
67
- Resource <Namespace , DoneableNamespace > resource = client .namespaces ().withName (option .getNamespace ());
67
+ Resource <Namespace > resource = client .namespaces ().withName (option .getNamespace ());
68
68
Namespace namespace = resource .get ();
69
69
if (Objects .isNull (namespace )) {
70
70
Namespace built = new NamespaceBuilder ()
@@ -264,8 +264,7 @@ public void pull(String image, int timeoutInSeconds, Consumer<String> progress)
264
264
}
265
265
266
266
private List <Pod > listPods (String name , String status ) {
267
- NonNamespaceOperation <Pod , PodList , DoneablePod , PodResource <Pod , DoneablePod >> operation = client .pods ()
268
- .inNamespace (option .getNamespace ());
267
+ NonNamespaceOperation <Pod , PodList , PodResource <Pod >> operation = client .pods ().inNamespace (option .getNamespace ());
269
268
270
269
if (StringHelper .hasValue (name )) {
271
270
if (name .endsWith ("*" )) {
@@ -282,7 +281,7 @@ private List<Pod> listPods(String name, String status) {
282
281
return operation .list ().getItems ();
283
282
}
284
283
285
- private PodResource <Pod , DoneablePod > podResource (String name ) {
284
+ private PodResource <Pod > podResource (String name ) {
286
285
return client .pods ()
287
286
.inNamespace (option .getNamespace ())
288
287
.withName (name );
0 commit comments