Interface IResource

All Known Subinterfaces:
IConfigMap, IDeployment, IPersistentVolumeClaim, IReplicaSet, ISecret, IService, IStatefulSet

public interface IResource
Abstracts a Kubernetes Resource, so that the test is not dependent of whatever Kubernetes client the Kubernetes Manager decides to use.
Michael Baylis
  • Method Details

    • getName

      String getName()
      the name of the resource from
    • getType

      IResource.TYPE getType()
      The type of the resource as the Kubernetes Manager knows it
    • getYaml

      String getYaml()
      Retrieve the raw YAML, this is populated on create resource, after the resource has been created, so should have the status
    • refresh

      void refresh() throws KubernetesManagerException
      refresh the raw YAML that is provided by getYaml()
      KubernetesManagerException - If there is a comms problem to the Kubernetes Cluster