tests.system.cncf.kubernetes.example_kubernetes_resource

This is an example DAG which uses KubernetesCreateResourceOperator and KubernetesDeleteResourceOperator. In this example, we create two tasks which execute sequentially. The first task is to create a PVC on Kubernetes cluster. and the second task is to delete the PVC.

Attributes

pvc_name

pvc_conf

ENV_ID

DAG_ID

t1

test_run

Module Contents

tests.system.cncf.kubernetes.example_kubernetes_resource.pvc_name = 'toto'[source]
tests.system.cncf.kubernetes.example_kubernetes_resource.pvc_conf = Multiline-String[source]
Show Value
"""
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: toto
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: standard
  resources:
    requests:
      storage: 5Gi
"""
tests.system.cncf.kubernetes.example_kubernetes_resource.ENV_ID[source]
tests.system.cncf.kubernetes.example_kubernetes_resource.DAG_ID = 'example_kubernetes_resource_operator'[source]
tests.system.cncf.kubernetes.example_kubernetes_resource.t1[source]
tests.system.cncf.kubernetes.example_kubernetes_resource.test_run[source]

Was this entry helpful?