prefect_kubernetes.custom_objects
Functions
create_namespaced_custom_object
kubernetes_credentials:KubernetesCredentialsblock holding authentication needed to generate the required API client.group: The custom resource object’s groupversion: The custom resource object’s versionplural: The custom resource object’s pluralbody: A Dict containing the custom resource object’s specification.namespace: The Kubernetes namespace to create the custom object in.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API (e.g.{"pretty"\: "...", "dry_run"\: "..."}).
- object containing the custom resource created by this task.
delete_namespaced_custom_object
kubernetes_credentials:KubernetesCredentialsblock holding authentication needed to generate the required API client.group: The custom resource object’s groupversion: The custom resource object’s versionplural: The custom resource object’s pluralname: The name of a custom object to delete.namespace: The Kubernetes namespace to create this custom object in.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API (e.g.{"pretty"\: "...", "dry_run"\: "..."}).
- object containing the custom resource deleted by this task.
get_namespaced_custom_object
kubernetes_credentials:KubernetesCredentialsblock holding authentication needed to generate the required API client.group: The custom resource object’s groupversion: The custom resource object’s versionplural: The custom resource object’s pluralname: The name of a custom object to read.namespace: The Kubernetes namespace the custom resource is in.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API (e.g.{"pretty"\: "...", "dry_run"\: "..."}).
ValueError: ifnameisNone.
- object containing the custom resource specification.
get_namespaced_custom_object_status
kubernetes_credentials:KubernetesCredentialsblock holding authentication needed to generate the required API client.group: The custom resource object’s groupversion: The custom resource object’s versionplural: The custom resource object’s pluralname: The name of a custom object to read.namespace: The Kubernetes namespace the custom resource is in.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API (e.g.{"pretty"\: "...", "dry_run"\: "..."}).
- object containing the custom-object specification with status.
list_namespaced_custom_object
kubernetes_credentials:KubernetesCredentialsblock holding authentication needed to generate the required API client.group: The custom resource object’s groupversion: The custom resource object’s versionplural: The custom resource object’s pluralnamespace: The Kubernetes namespace to list custom resources for.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API (e.g.{"pretty"\: "...", "dry_run"\: "..."}).
- object containing a list of custom resources.
patch_namespaced_custom_object
kubernetes_credentials: KubernetesCredentials block holding authentication needed to generate the required API client.group: The custom resource object’s groupversion: The custom resource object’s versionplural: The custom resource object’s pluralname: The name of a custom object to patch.body: A Dict containing the custom resource object’s patch.namespace: The custom resource’s Kubernetes namespace.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API (e.g.{"pretty"\: "...", "dry_run"\: "..."}).
ValueError: ifbodyisNone.
- object containing the custom resource specification
- after the patch gets applied.
replace_namespaced_custom_object
kubernetes_credentials: KubernetesCredentials block holding authentication needed to generate the required API client.group: The custom resource object’s groupversion: The custom resource object’s versionplural: The custom resource object’s pluralname: The name of a custom object to replace.body: A Dict containing the custom resource object’s specification.namespace: The custom resource’s Kubernetes namespace.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API (e.g.{"pretty"\: "...", "dry_run"\: "..."}).
ValueError: ifbodyisNone.
- object containing the custom resource specification after the replacement.