DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
Generating kubernetes pods require a fair amount of unavoidable configuration. To minimize this complexity to the user while still allowing for a high amount of flexibility we have created a KubernetesPodOperatorFactory class. This factory class will prevent anti-patterns like forcing the user to create classes with more than 5 starting parameters or depend on kw-arguments.
| Code Block | ||
|---|---|---|
| ||
class KubernetesPodOperatorFactory:
def __init__(
self,
trigger_dag_id,
image,
cmds
):
def add_env_variables(self, env):
def add_secrets(self, secrets):
def add_labels(self, labels):
def add_name(self, name):
def set_namespace(self, namespace):
def set_upstream(self, operator)
def generate(self): |
...