use of io.cert.manager.models.V1beta1IssuerList in project java by kubernetes-client.
the class CertManagerExample method main.
public static void main(String[] args) throws IOException {
GenericKubernetesApi<V1beta1Issuer, V1beta1IssuerList> issuerApi = new GenericKubernetesApi<>(V1beta1Issuer.class, V1beta1IssuerList.class, "cert-manager.io", "v1beta1", "issuers", ClientBuilder.defaultClient());
issuerApi.create(new V1beta1Issuer().metadata(new V1ObjectMeta().namespace("default").name("self-signed-issuer")).kind("Issuer").apiVersion("cert-manager.io/v1beta1").spec(new V1beta1IssuerSpec().selfSigned(new V1alpha2IssuerSpecSelfSigned())));
}
Aggregations