Annotation Interface WithKubernetesTestServer


Use on your test resource to get a mock KubernetesServer spawn up, and injectable with KubernetesTestServer. This annotation is only active when used on a test class, and only for this test class.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Start it in CRUD mode
    boolean
    Start it with HTTPS
    int
    Port to use, defaults to any available port
    Class<? extends Consumer<io.fabric8.kubernetes.client.server.mock.KubernetesServer>>
    Setup class to call after the mock server is created, for custom setup.
  • Element Details

    • https

      boolean https
      Start it with HTTPS
      Default:
      false
    • crud

      boolean crud
      Start it in CRUD mode
      Default:
      true
    • port

      int port
      Port to use, defaults to any available port
      Default:
      0
    • setup

      Class<? extends Consumer<io.fabric8.kubernetes.client.server.mock.KubernetesServer>> setup
      Setup class to call after the mock server is created, for custom setup.
      Default:
      io.quarkus.test.kubernetes.client.WithKubernetesTestServer.NO_SETUP.class