All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.arquillian.cube.kubernetes.impl.resources.KubernetesResourceHandle Maven / Gradle / Ivy

The newest version!
package org.arquillian.cube.kubernetes.impl.resources;

import io.fabric8.kubernetes.api.model.v4_0.HasMetadata;
import io.fabric8.kubernetes.clnt.v4_0.KubernetesClient;

import java.io.InputStream;
import java.util.List;

public class KubernetesResourceHandle {

    private List hasMetadata;

    KubernetesResourceHandle(KubernetesClient client, InputStream content) {
        hasMetadata = client.load(content).createOrReplace();
    }

    public void delete(KubernetesClient client) {
        client.resourceList(hasMetadata).delete();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy