-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ineffective GlobalConfig image settings in script (#538)
Fixes image were not being applied in ContainerMixin and mixed in classes. Signed-off-by: Pierre Brunelle <[email protected]> Co-authored-by: Pierre Brunelle <[email protected]>
- Loading branch information
1 parent
c2080f5
commit f2bf6e2
Showing
4 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
from hera.shared import global_config | ||
from hera.workflows import Container, Workflow | ||
from hera.workflows import Container, Workflow, script | ||
|
||
global_config.api_version = "argoproj.io/v0beta9000" | ||
global_config.namespace = "argo-namespace" | ||
global_config.service_account_name = "argo-account" | ||
global_config.image = "image-say" | ||
|
||
|
||
@script() | ||
def say(): | ||
print("hello") | ||
|
||
|
||
with Workflow(generate_name="global-config-", entrypoint="whalesay") as w: | ||
whalesay = Container(image="docker/whalesay:latest", command=["cowsay"]) | ||
say() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters