Interface NamespacedResourceType<T extends io.fabric8.kubernetes.api.model.HasMetadata>

Type Parameters:
T - resource type
All Superinterfaces:
ResourceType<T>

public interface NamespacedResourceType<T extends io.fabric8.kubernetes.api.model.HasMetadata> extends ResourceType<T>
Class for encapsulating methods related to NamespacedResourceType resource.
  • Method Details

    • getClient

      io.fabric8.kubernetes.client.dsl.MixedOperation<?,?,?> getClient()
      Get specific NamespacedResourceType client for resoruce
      Specified by:
      getClient in interface ResourceType<T extends io.fabric8.kubernetes.api.model.HasMetadata>
      Returns:
      specific client
    • createInNamespace

      void createInNamespace(String namespaceName, T resource)
      Creates specific NamespacedResourceType resource in Namespace specified by user
      Parameters:
      namespaceName - Namespace, where the resource should be created
      resource - NamespacedResourceType resource
    • updateInNamespace

      void updateInNamespace(String namespaceName, T resource)
      Updates specific NamespacedResourceType resource in Namespace specified by user
      Parameters:
      namespaceName - Namespace, where the resource should be updated
      resource - NamespacedResourceType updated resource
    • deleteFromNamespace

      void deleteFromNamespace(String namespaceName, String resourceName)
      Deletes NamespacedResourceType resource from Namespace specified by user
      Parameters:
      namespaceName - Namespace, where the resource should be deleted
      resourceName - name of the NamespacedResourceType that will be deleted
    • replaceInNamespace

      void replaceInNamespace(String namespaceName, String resourceName, Consumer<T> editor)
      Replaces NamespacedResourceType resource in Namespace specified by user, using Consumer from which is the current NamespacedResourceType resource updated
      Parameters:
      namespaceName - Namespace, where the resource should be replaced
      resourceName - name of the NamespacedResourceType that will be replaced
      editor - Consumer containing updates to the resource