Skip to content

Commit

Permalink
Addressing review comment
Browse files Browse the repository at this point in the history
Signed-off-by: pintojoy <[email protected]>
  • Loading branch information
pintojoy committed Nov 15, 2023
1 parent 1420799 commit 9cfeeb0
Showing 1 changed file with 1 addition and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1143,52 +1143,7 @@ def test_respin_app_pod_exported_nfs_volume_incluster(

# Create deployment config for app pod
log.info("----create deployment config----")
'''
deployment_config = """
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
"""
'''
deployment_config_data = templating.load_yaml(constants.FIO_DEPLOYMENT_YAML)
deployment_config_data = templating.load_yaml(constants.NFS_APP_POD_YAML)
helpers.create_resource(**deployment_config_data)
time.sleep(60)

Expand Down

0 comments on commit 9cfeeb0

Please sign in to comment.