Search in sources :

Example 1 with V1beta1IssuerSpec

use of io.cert.manager.models.V1beta1IssuerSpec 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())));
}
Also used : V1alpha2IssuerSpecSelfSigned(io.cert.manager.models.V1alpha2IssuerSpecSelfSigned) V1beta1Issuer(io.cert.manager.models.V1beta1Issuer) V1ObjectMeta(io.kubernetes.client.openapi.models.V1ObjectMeta) GenericKubernetesApi(io.kubernetes.client.util.generic.GenericKubernetesApi) V1beta1IssuerSpec(io.cert.manager.models.V1beta1IssuerSpec) V1beta1IssuerList(io.cert.manager.models.V1beta1IssuerList)

Aggregations

V1alpha2IssuerSpecSelfSigned (io.cert.manager.models.V1alpha2IssuerSpecSelfSigned)1 V1beta1Issuer (io.cert.manager.models.V1beta1Issuer)1 V1beta1IssuerList (io.cert.manager.models.V1beta1IssuerList)1 V1beta1IssuerSpec (io.cert.manager.models.V1beta1IssuerSpec)1 V1ObjectMeta (io.kubernetes.client.openapi.models.V1ObjectMeta)1 GenericKubernetesApi (io.kubernetes.client.util.generic.GenericKubernetesApi)1