Skip to content

Commit

Permalink
format with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
strangiato committed May 21, 2024
1 parent 9a2bb17 commit 041dde1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 7 additions & 4 deletions pipelines/09_secrets_cm_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Example of a pipeline to demonstrate accessing secrets/config maps in a pipeline.
"""
"""Example of a pipeline to demonstrate accessing secrets/config maps in a pipeline."""

import os

Expand Down Expand Up @@ -33,11 +32,15 @@ def env_vars_pipeline():
"""
secret_print_task = print_envvar(env_var="my-secret-env-var")
secret_print_task.set_caching_options(False)
kubernetes.use_secret_as_env(secret_print_task, secret_name = "my-secret", secret_key_to_env={"my-secret-data": "my-secret-env-var"})
kubernetes.use_secret_as_env(
secret_print_task, secret_name="my-secret", secret_key_to_env={"my-secret-data": "my-secret-env-var"}
)

cm_print_task = print_envvar(env_var="my-cm-env-var")
cm_print_task.set_caching_options(False)
kubernetes.use_config_map_as_env(cm_print_task, config_map_name="my-configmap", config_map_key_to_env={"my-configmap-data": "my-cm-env-var"})
kubernetes.use_config_map_as_env(
cm_print_task, config_map_name="my-configmap", config_map_key_to_env={"my-configmap-data": "my-cm-env-var"}
)


if __name__ == "__main__":
Expand Down
3 changes: 1 addition & 2 deletions pipelines/10_mount_pvc_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Example of a pipeline to demonstrate mounting a pvc to a task in a pipeline.
"""
"""Example of a pipeline to demonstrate mounting a pvc to a task in a pipeline."""

import os

Expand Down

0 comments on commit 041dde1

Please sign in to comment.