airflow.providers.cncf.kubernetes.operators.resource

Manage a Kubernetes Resource.

Module Contents

Classes

KubernetesCreateResourceOperator

Create a resource in a kubernetes.

KubernetesDeleteResourceOperator

Delete a resource in a kubernetes.

class airflow.providers.cncf.kubernetes.operators.resource.KubernetesCreateResourceOperator(*, yaml_conf, namespace=None, kubernetes_conn_id=KubernetesHook.default_conn_name, **kwargs)[source]

Bases: KubernetesResourceBaseOperator

Create a resource in a kubernetes.

execute(context)[source]

This is the main method to derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

class airflow.providers.cncf.kubernetes.operators.resource.KubernetesDeleteResourceOperator(*, yaml_conf, namespace=None, kubernetes_conn_id=KubernetesHook.default_conn_name, **kwargs)[source]

Bases: KubernetesResourceBaseOperator

Delete a resource in a kubernetes.

execute(context)[source]

This is the main method to derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?