-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify test cases only 1-node test cases and separate pod configs f…
…or different volume types Signed-off-by: Mucahit Kurt <[email protected]>
- Loading branch information
1 parent
e914fd1
commit 4d2c1e9
Showing
15 changed files
with
120 additions
and
55 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...er2/testing/experimental/storage/pod-startup/ephemeral-volumes/1_node/README.md
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,9 @@ | ||
Below test cases can be run with the parameters like; | ||
|
||
- 1 pod with X volumes and 1 node | ||
-- `.Nodes := 1`, `$TOTAL_PODS := 1`, `$VOLUMES_PER_POD := <X>` | ||
- X pods with 1 volume each on 1 node in parallel | ||
-- `.Nodes := 1`, `$TOTAL_PODS := <X>`, `$VOLUMES_PER_POD := 1` | ||
|
||
To test with different volume types please use the override file for the specific volume type, default volume type is `EmptyDir` | ||
ª |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ kind: ConfigMap | |
metadata: | ||
name: {{.Name}} | ||
data: | ||
TEST_KEY1: testData1 | ||
TEST_KEY1: testData1 |
4 changes: 4 additions & 0 deletions
4
...testing/experimental/storage/pod-startup/ephemeral-volumes/1_node/configmap/override.yaml
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,4 @@ | ||
VOLUME_TYPE: ConfigMap | ||
PROVISION_VOLUME: true | ||
POD_TEMPLATE_PATH: "configmap/pod_with_ConfigMaps.yaml" | ||
VOLUME_TEMPLATE_PATH: "configmap/ConfigMap.yaml" |
26 changes: 26 additions & 0 deletions
26
...erimental/storage/pod-startup/ephemeral-volumes/1_node/configmap/pod_with_ConfigMaps.yaml
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,26 @@ | ||
{{$index := .Index}} | ||
{{$appName := .AppName}} | ||
{{$volumesPerPod := .VolumesPerPod}} | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: {{.Name}} | ||
labels: | ||
app: {{.Name}} | ||
group: {{.Group}} | ||
spec: | ||
containers: | ||
- name: {{.Name}} | ||
image: k8s.gcr.io/pause:3.1 | ||
imagePullPolicy: IfNotPresent | ||
volumeMounts: | ||
{{ range $volumeIndex, $vol := Seq .VolumesPerPod }} | ||
- name: vol-{{$volumeIndex}} | ||
mountPath: /usr/share/{{$volumeIndex}} | ||
{{ end }} | ||
volumes: | ||
{{ range $volumeIndex, $vol := Seq .VolumesPerPod }} | ||
- name: vol-{{$volumeIndex}} | ||
configMap: | ||
name: vol-{{$appName}}-{{AddInt $volumeIndex (MultiplyInt $index $volumesPerPod)}} | ||
{{ end }} |
2 changes: 2 additions & 0 deletions
2
...sting/experimental/storage/pod-startup/ephemeral-volumes/1_node/downwardapi/override.yaml
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,2 @@ | ||
VOLUME_TYPE: DownwardAPI | ||
POD_TEMPLATE_PATH: "downwardapi/pod_with_DownwardAPIs.yaml" |
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
25 changes: 25 additions & 0 deletions
25
...testing/experimental/storage/pod-startup/ephemeral-volumes/1_node/pod_with_EmptyDirs.yaml
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,25 @@ | ||
{{$index := .Index}} | ||
{{$appName := .AppName}} | ||
{{$volumesPerPod := .VolumesPerPod}} | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: {{.Name}} | ||
labels: | ||
app: {{.Name}} | ||
group: {{.Group}} | ||
spec: | ||
containers: | ||
- name: {{.Name}} | ||
image: k8s.gcr.io/pause:3.1 | ||
imagePullPolicy: IfNotPresent | ||
volumeMounts: | ||
{{ range $volumeIndex, $vol := Seq .VolumesPerPod }} | ||
- name: vol-{{$volumeIndex}} | ||
mountPath: /usr/share/{{$volumeIndex}} | ||
{{ end }} | ||
volumes: | ||
{{ range $volumeIndex, $vol := Seq .VolumesPerPod }} | ||
- name: vol-{{$volumeIndex}} | ||
emptyDir: {} | ||
{{ end }} |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ metadata: | |
type: Opaque | ||
data: | ||
username: dXNlcm5hbWVfCg== | ||
password: cGFzc3dvcmRfCg== | ||
password: cGFzc3dvcmRfCg== |
4 changes: 4 additions & 0 deletions
4
...r2/testing/experimental/storage/pod-startup/ephemeral-volumes/1_node/secret/override.yaml
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,4 @@ | ||
VOLUME_TYPE: Secret | ||
PROVISION_VOLUME: true | ||
POD_TEMPLATE_PATH: "secret/pod_with_Secrets.yaml" | ||
VOLUME_TEMPLATE_PATH: "secret/Secret.yaml" |
26 changes: 26 additions & 0 deletions
26
...ng/experimental/storage/pod-startup/ephemeral-volumes/1_node/secret/pod_with_Secrets.yaml
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,26 @@ | ||
{{$index := .Index}} | ||
{{$appName := .AppName}} | ||
{{$volumesPerPod := .VolumesPerPod}} | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: {{.Name}} | ||
labels: | ||
app: {{.Name}} | ||
group: {{.Group}} | ||
spec: | ||
containers: | ||
- name: {{.Name}} | ||
image: k8s.gcr.io/pause:3.1 | ||
imagePullPolicy: IfNotPresent | ||
volumeMounts: | ||
{{ range $volumeIndex, $vol := Seq .VolumesPerPod }} | ||
- name: vol-{{$volumeIndex}} | ||
mountPath: /usr/share/{{$volumeIndex}} | ||
{{ end }} | ||
volumes: | ||
{{ range $volumeIndex, $vol := Seq .VolumesPerPod }} | ||
- name: vol-{{$volumeIndex}} | ||
secret: | ||
secretName: vol-{{$appName}}-{{AddInt $volumeIndex (MultiplyInt $index $volumesPerPod)}} | ||
{{ end }} |
8 changes: 0 additions & 8 deletions
8
clusterloader2/testing/storage/pod-startup/ephemeral-volumes/README.md
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
clusterloader2/testing/storage/pod-startup/ephemeral-volumes/configmap/override.yaml
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
clusterloader2/testing/storage/pod-startup/ephemeral-volumes/downwardapi/override.yaml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
clusterloader2/testing/storage/pod-startup/ephemeral-volumes/secret/override.yaml
This file was deleted.
Oops, something went wrong.