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.
  • Method Details

    • getName

      String getName()
      Returns:
      the name of the resource from metadata.name
    • getType

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

      String getYaml()
      Returns:
      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()
      Throws:
      KubernetesManagerException - If there is a comms problem to the Kubernetes Cluster