forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sidecars unable to reference volume claim templates (resolves argopro…
- Loading branch information
Showing
12 changed files
with
242 additions
and
78 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
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ const ( | |
) | ||
|
||
var ( | ||
// Global CLI flags | ||
// GlobalArgs hold global CLI flags | ||
GlobalArgs globalFlags | ||
) | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Verifies sidecars can reference/use volumeClaimTemplates | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: sidecar-with-volumes- | ||
spec: | ||
entrypoint: sidecar-with-volumes | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: workdir | ||
spec: | ||
accessModes: [ "ReadWriteOnce" ] | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
templates: | ||
- name: sidecar-with-volumes | ||
steps: | ||
- - name: generate | ||
template: generate | ||
- - name: verify | ||
template: verify | ||
|
||
- name: generate | ||
script: | ||
image: python:3.6 | ||
command: [python] | ||
source: | | ||
import time | ||
time.sleep(5) | ||
sidecars: | ||
- name: sidevol | ||
image: alpine:latest | ||
command: [sh, -c] | ||
args: ["echo 'it works' > /mnt/vol/test-art"] | ||
volumeMounts: | ||
- name: workdir | ||
mountPath: /mnt/vol | ||
|
||
- name: verify | ||
container: | ||
image: alpine:latest | ||
command: [sh, -c] | ||
args: ['[[ "$(cat /mnt/vol/test-art)" == "it works" ]]'] | ||
volumeMounts: | ||
- name: workdir | ||
mountPath: /mnt/vol |
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
Oops, something went wrong.