initial stage
This commit is contained in:
parent
f155b5e8d1
commit
3bc48791ce
|
@ -4,6 +4,7 @@ from datetime import timedelta, datetime
|
||||||
import pendulum
|
import pendulum
|
||||||
from airflow import DAG
|
from airflow import DAG
|
||||||
from airflow.hooks.base import BaseHook
|
from airflow.hooks.base import BaseHook
|
||||||
|
from airflow.models.baseoperator import chain
|
||||||
from airflow.providers.cncf.kubernetes.operators.pod import KubernetesPodOperator
|
from airflow.providers.cncf.kubernetes.operators.pod import KubernetesPodOperator
|
||||||
from airflow.providers.cncf.kubernetes.secret import Secret
|
from airflow.providers.cncf.kubernetes.secret import Secret
|
||||||
|
|
||||||
|
@ -26,10 +27,6 @@ dag = DAG(
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def print_hello():
|
|
||||||
print("Hello World!")
|
|
||||||
|
|
||||||
|
|
||||||
secrets = [
|
secrets = [
|
||||||
Secret(
|
Secret(
|
||||||
deploy_type='env',
|
deploy_type='env',
|
||||||
|
@ -67,4 +64,4 @@ task = KubernetesPodOperator(
|
||||||
)
|
)
|
||||||
|
|
||||||
# Set the task dependencies
|
# Set the task dependencies
|
||||||
task >> print_hello
|
chain(task)
|
||||||
|
|
Loading…
Reference in New Issue