Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify test_respin_app_pod_exported_nfs_volume_incluster to address teardown of deployment pod and pvc #8666

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ocs_ci/ocs/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@

SIMPLE_APP_POD_YAML = os.path.join(TEMPLATE_APP_POD_DIR, "simple-app.yaml")

NFS_APP_POD_YAML = os.path.join(TEMPLATE_APP_POD_DIR, "nfs_test_app.yaml")

FEDORA_DC_YAML = os.path.join(TEMPLATE_APP_POD_DIR, "fedora_dc.yaml")

PERF_DC_YAML = os.path.join(TEMPLATE_APP_POD_DIR, "performance_dc.yaml")
Expand Down
42 changes: 42 additions & 0 deletions ocs_ci/templates/app-pods/nfs_test_app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
name: nfs-test-pod
namespace: openshift-storage
labels:
app: nfs-test-pod
spec:
template:
metadata:
labels:
name: nfs-test-pod
spec:
restartPolicy: Always
volumes:
- name: vol
persistentVolumeClaim:
claimName: nfs-pvc
containers:
- name: fedora
image: fedora
command: ['/bin/bash', '-ce', 'tail -f /dev/null']
imagePullPolicy: IfNotPresent
securityContext:
capabilities: {}
privileged: true
volumeMounts:
- mountPath: /mnt
name: vol
livenessProbe:
exec:
command:
- 'sh'
- '-ec'
- 'df /mnt'
initialDelaySeconds: 3
periodSeconds: 3
replicas: 1
triggers:
- type: ConfigChange
paused: false
Loading
Loading