Class OperatorExtension

  • All Implemented Interfaces:
    HasKubernetesClient, org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension

    public class OperatorExtension
    extends Object
    implements HasKubernetesClient, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.AfterEachCallback
    • Method Detail

      • beforeAll

        public void beforeAll​(org.junit.jupiter.api.extension.ExtensionContext context)
                       throws Exception
        Specified by:
        beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
        Throws:
        Exception
      • beforeEach

        public void beforeEach​(org.junit.jupiter.api.extension.ExtensionContext context)
                        throws Exception
        Specified by:
        beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallback
        Throws:
        Exception
      • afterAll

        public void afterAll​(org.junit.jupiter.api.extension.ExtensionContext context)
                      throws Exception
        Specified by:
        afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback
        Throws:
        Exception
      • afterEach

        public void afterEach​(org.junit.jupiter.api.extension.ExtensionContext context)
                       throws Exception
        Specified by:
        afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback
        Throws:
        Exception
      • getNamespace

        public String getNamespace()
      • resources

        public <T extends io.fabric8.kubernetes.api.model.HasMetadata> io.fabric8.kubernetes.client.dsl.NonNamespaceOperation<T,​io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,​io.fabric8.kubernetes.client.dsl.Resource<T>> resources​(Class<T> type)
      • getNamedResource

        public <T extends io.fabric8.kubernetes.api.model.HasMetadata> T getNamedResource​(Class<T> type,
                                                                                          String name)
      • create

        public <T extends io.fabric8.kubernetes.api.model.HasMetadata> T create​(Class<T> type,
                                                                                T resource)
      • before

        protected void before​(org.junit.jupiter.api.extension.ExtensionContext context)
      • after

        protected void after​(org.junit.jupiter.api.extension.ExtensionContext context)