class_docstr: Abstract base class for all Kubernetes Resource operators.
  
  :param yaml_conf: string. Contains the kubernetes resources to Create or Delete
  :param namespace: string. Contains the namespace to create all resources inside.
      The namespace must preexist otherwise the resource creation will fail.
      If the API object in the yaml file already contains a namespace definition then
      this parameter has no effect.
  :param kubernetes_conn_id: The :ref:`kubernetes connection id <howto/connection:kubernetes>`
      for the Kubernetes cluster.
code: def __init__(
      self,
      *,
      yaml_conf: str,
      namespace: str | None = None,
      kubernetes_conn_id: str | None = KubernetesHook.default_conn_name,
      custom_resource_definition: bool = False,
      config_file: str | None = None,
      **kwargs,
  ) -> None:
      super().__init__(**kwargs)
      self._namespace = namespace
      self.kubernetes_conn_id = kubernetes_conn_id
      self.yaml_conf = yaml_conf
      self.custom_resource_definition = custom_resource_definition
      self.config_file = config_file
  
imports: from __future__ import annotations
  from functools import cached_property
  from typing import TYPE_CHECKING
  import yaml
  from kubernetes.utils import create_from_yaml
  from airflow.models import BaseOperator
  from airflow.providers.cncf.kubernetes.hooks.kubernetes import KubernetesHook
  from airflow.providers.cncf.kubernetes.utils.delete_from import delete_from_yaml
  from airflow.providers.cncf.kubernetes.utils.k8s_resource_iterator import k8s_resource_iterator
label_desc: Use image node_id 1 to create a new KubernetesResourceBaseOperator object from inherited base classes: BaseOperator with example: obj = KubernetesResourceBaseOperator()