Skip to content

Commit

Permalink
Modify docstrings to replace 'InitContainer' to 'UserContainer' (kube…
Browse files Browse the repository at this point in the history
  • Loading branch information
shotarok authored and Nicholas Thomson committed Jun 17, 2020
1 parent 63ac69f commit f0b555e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/python/kfp/dsl/_container_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def __init__(self,
Args:
name: the name of the op. It does not have to be unique within a pipeline
because the pipeline will generates a unique new name in case of conflicts.
init_containers: the list of `InitContainer` objects describing the InitContainer
init_containers: the list of `UserContainer` objects describing the InitContainer
to deploy before the `main` container.
sidecars: the list of `Sidecar` objects describing the sidecar containers to deploy
together with the `main` container.
Expand Down Expand Up @@ -886,7 +886,7 @@ def add_init_container(self, init_container: UserContainer):
"""Add a init container to the Op.
Args:
init_container: InitContainer object.
init_container: UserContainer object.
"""

self.init_containers.append(init_container)
Expand Down Expand Up @@ -939,7 +939,7 @@ def foo_pipeline(tag: str, pull_image_policy: str):
op = dsl.ContainerOp(name='foo',
image='busybox:%s' % tag,
# pass in init_container list
init_containers=[dsl.InitContainer('print', 'busybox:latest', command='echo "hello"')],
init_containers=[dsl.UserContainer('print', 'busybox:latest', command='echo "hello"')],
# pass in sidecars list
sidecars=[dsl.Sidecar('print', 'busybox:latest', command='echo "hello"')],
# pass in k8s container kwargs
Expand Down Expand Up @@ -986,7 +986,7 @@ def __init__(
arguments: the arguments of the command. The command can include "%s" and supply
a PipelineParam as the string replacement. For example, ('echo %s' % input_param).
At container run time the argument will be 'echo param_value'.
init_containers: the list of `InitContainer` objects describing the InitContainer
init_containers: the list of `UserContainer` objects describing the InitContainer
to deploy before the `main` container.
sidecars: the list of `Sidecar` objects describing the sidecar containers to deploy
together with the `main` container.
Expand Down

0 comments on commit f0b555e

Please sign in to comment.