Skip to content

Commit

Permalink
Minor change.
Browse files Browse the repository at this point in the history
Signed-off-by: Revital Sur <[email protected]>
  • Loading branch information
revit13 committed Mar 2, 2025
1 parent ee7de19 commit 85e9110
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions kfp/doc/simple_transform_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@ component execution and parameters submitted to every component.
server_url=server_url,
)
ComponentUtils.add_settings_to_component(execute_job, ONE_WEEK_SEC)
if os.getenv("KFPv2", "0") == "1":
from kfp import kubernetes
if os.getenv("KFPv2", "0") == "1":
from kfp import kubernetes

# FIXME: Due to kubeflow/pipelines#10914, secret names cannot be provided as pipeline arguments.
# As a workaround, the secret name is hard coded.
env2key = ComponentUtils.set_secret_key_to_env()
kubernetes.use_secret_as_env(task=execute_job, secret_name=S3_SECRET, secret_key_to_env=env2key)
else:
ComponentUtils.set_s3_env_vars_to_component(execute_job, data_s3_access_secret)
# FIXME: Due to kubeflow/pipelines#10914, secret names cannot be provided as pipeline arguments.
# As a workaround, the secret name is hard coded.
env2key = ComponentUtils.set_secret_key_to_env()
kubernetes.use_secret_as_env(task=execute_job, secret_name=S3_SECRET, secret_key_to_env=env2key)
else:
ComponentUtils.set_s3_env_vars_to_component(execute_job, data_s3_access_secret)
execute_job.after(ray_cluster)
```

Expand Down

0 comments on commit 85e9110

Please sign in to comment.