def whalesay(self) -> V1Container:
     container = V1Container(
         image="docker/whalesay:latest",
         name="whalesay",
         command=["cowsay"],
         args=["hello world"],
     )
     return container
Exemple #2
0
 def whalesay(self, message: str) -> V1Container:
     container = V1Container(
         image="docker/whalesay:latest",
         name="whalesay",
         command=["cowsay"],
         args=["{{inputs.parameters.message}}"],
     )
     return container
    def echo(self, message: V1alpha1Parameter) -> V1Container:
        container = V1Container(
            image="alpine:3.7",
            name="echo",
            command=["echo", "{{inputs.parameters.message}}"],
        )

        return container
    def print_message(self, message: str) -> V1Container:
        container = V1Container(
            image="alpine:latest",
            name="print-message",
            command=["sh", "-c"],
            args=["echo result was: {{inputs.parameters.message}}"],
        )

        return container