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=None, yaml_conf_file=None, namespace=None, kubernetes_conn_id=KubernetesHook.default_conn_name, custom_resource_definition=False, namespaced=True, config_file=None, **kwargs)[source]

Bases: KubernetesResourceBaseOperator

Create a resource in a kubernetes.

create_custom_from_yaml_object(body)[source]
execute(context)[source]

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=None, yaml_conf_file=None, namespace=None, kubernetes_conn_id=KubernetesHook.default_conn_name, custom_resource_definition=False, namespaced=True, config_file=None, **kwargs)[source]

Bases: KubernetesResourceBaseOperator

Delete a resource in a kubernetes.

delete_custom_from_yaml_object(body)[source]
execute(context)[source]

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?