diff --git a/docs/examples/manifests/nginx b/docs/examples/manifests/nginx deleted file mode 120000 index c2fe80f4660..00000000000 --- a/docs/examples/manifests/nginx +++ /dev/null @@ -1 +0,0 @@ -../../../tests/e2e/sample-applications/nginx/ \ No newline at end of file diff --git a/tests/e2e/sample-applications/block-pv/Dockerfile b/tests/e2e/sample-applications/block-pv/Dockerfile deleted file mode 100644 index 8af14ae8ca0..00000000000 --- a/tests/e2e/sample-applications/block-pv/Dockerfile +++ /dev/null @@ -1,5 +0,0 @@ -FROM fedora:37 - -RUN dnf -y install coreutils util-linux - -CMD ["tail", "-f /dev/null"] diff --git a/tests/e2e/sample-applications/block-pv/notes.txt b/tests/e2e/sample-applications/block-pv/notes.txt deleted file mode 100644 index bb968240e56..00000000000 --- a/tests/e2e/sample-applications/block-pv/notes.txt +++ /dev/null @@ -1,3 +0,0 @@ -Please see: - -https://gist.github.com/weshayutin/544b0232c3ab5b4657909f840f3aae89 diff --git a/tests/e2e/sample-applications/block-pv/pod.yaml b/tests/e2e/sample-applications/block-pv/pod.yaml deleted file mode 100644 index 187ba035b7b..00000000000 --- a/tests/e2e/sample-applications/block-pv/pod.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: pod-with-block-volume -spec: - containers: - - name: fc-container - image: quay.io/rhn_engineering_whayutin/fedorablock - command: ["/bin/sh", "-c"] - args: [ "tail -f /dev/null" ] - volumeDevices: - - name: data - devicePath: /dev/xvda - volumes: - - name: data - persistentVolumeClaim: - claimName: block-pvc diff --git a/tests/e2e/sample-applications/block-pv/pv.yaml b/tests/e2e/sample-applications/block-pv/pv.yaml deleted file mode 100644 index 2a086163ddd..00000000000 --- a/tests/e2e/sample-applications/block-pv/pv.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: PersistentVolume -metadata: - name: block-pv -spec: - capacity: - storage: 10Gi - accessModes: - - ReadWriteOnce - volumeMode: Block - persistentVolumeReclaimPolicy: Retain - fc: - targetWWNs: ["50060e801049cfd1"] - lun: 0 - readOnly: false diff --git a/tests/e2e/sample-applications/block-pv/pvc.yaml b/tests/e2e/sample-applications/block-pv/pvc.yaml deleted file mode 100644 index 49f33d95437..00000000000 --- a/tests/e2e/sample-applications/block-pv/pvc.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: block-pvc -spec: - accessModes: - - ReadWriteOnce - volumeMode: Block - resources: - requests: - storage: 10Gi diff --git a/tests/e2e/sample-applications/deprecated/mssql-persistent/mssql-persistent-csi-template.yaml b/tests/e2e/sample-applications/deprecated/mssql-persistent/mssql-persistent-csi-template.yaml deleted file mode 100644 index 0dcd7f394f9..00000000000 --- a/tests/e2e/sample-applications/deprecated/mssql-persistent/mssql-persistent-csi-template.yaml +++ /dev/null @@ -1,177 +0,0 @@ -apiVersion: v1 -kind: List -items: - - kind: Namespace - apiVersion: v1 - metadata: - name: mssql-persistent - labels: - app: mssql - - apiVersion: v1 - kind: Secret - metadata: - name: mssql-secret - namespace: mssql-persistent - labels: - app: mssql - stringData: - mssql-password: P@ssw0rd1! - - apiVersion: v1 - kind: ServiceAccount - metadata: - name: mssql-persistent-sa - namespace: mssql-persistent - labels: - component: mssql-persistent - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: mssql-pvc - namespace: mssql-persistent - labels: - app: mssql - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Gi - storageClassName: gp2-csi - - kind: SecurityContextConstraints - apiVersion: security.openshift.io/v1 - metadata: - name: mssql-persistent-scc - allowPrivilegeEscalation: true - allowPrivilegedContainer: true - runAsUser: - type: RunAsAny - seLinuxContext: - type: RunAsAny - fsGroup: - type: RunAsAny - supplementalGroups: - type: RunAsAny - volumes: - - '*' - users: - - system:admin - - system:serviceaccount:mssql-persistent:mssql-persistent-sa - - apiVersion: apps.openshift.io/v1 - kind: DeploymentConfig - metadata: - name: mssql-deployment - namespace: mssql-persistent - labels: - e2e-app: "true" - app: mssql - spec: - replicas: 1 - selector: - name: mssql - strategy: - type: Recreate - template: - metadata: - labels: - e2e-app: "true" - name: mssql - app: mssql - spec: - serviceAccountName: mssql-persistent-sa - containers: - - env: - - name: ACCEPT_EULA - value: "Y" - - name: SA_PASSWORD - valueFrom: - secretKeyRef: - key: mssql-password - name: mssql-secret - image: quay.io/ocpmigrate/mssql-server:latest - imagePullPolicy: Always - name: mssql - securityContext: - privileged: true - ports: - - containerPort: 1433 - resources: - limits: - memory: "3Gi" - cpu: "0.5" - requests: - memory: "3Gi" - cpu: "0.5" - volumeMounts: - - mountPath: "/var/opt/mssql/data" - name: mssql-vol - volumes: - - name: mssql-vol - persistentVolumeClaim: - claimName: mssql-pvc - - apiVersion: v1 - kind: Service - metadata: - name: mssql-service - namespace: mssql-persistent - spec: - selector: - app: mssql - ports: - - protocol: TCP - port: 1433 - targetPort: 1433 - type: ClusterIP - - apiVersion: apps/v1 - kind: Deployment - metadata: - name: mssql-app-deployment - namespace: mssql-persistent - labels: - e2e-app: "true" - spec: - replicas: 1 - selector: - matchLabels: - app: mssql-app - template: - metadata: - labels: - e2e-app: "true" - app: mssql-app - spec: - terminationGracePeriodSeconds: 10 - serviceAccountName: mssql-persistent-sa - containers: - - name: mssql-app - image: quay.io/ocpmigrate/mssql-sample-app:microsoft - imagePullPolicy: Always - ports: - - containerPort: 5000 - securityContext: - privileged: true - env: - - name: ConnString - value: "Server=mssql-service.mssql-persistent.svc.cluster.local;Database=ProductCatalog;User ID=WebLogin; password=SQLPass1234!" - - apiVersion: v1 - kind: Service - metadata: - name: mssql-app-service - namespace: mssql-persistent - spec: - selector: - app: mssql-app - ports: - - name: "tcp" - protocol: TCP - port: 5000 - targetPort: 5000 - - apiVersion: route.openshift.io/v1 - kind: Route - metadata: - name: mssql-app-route - namespace: mssql-persistent - spec: - path: "/" - to: - kind: Service - name: mssql-app-service \ No newline at end of file diff --git a/tests/e2e/sample-applications/deprecated/mssql-persistent/mssql-persistent-template.yaml b/tests/e2e/sample-applications/deprecated/mssql-persistent/mssql-persistent-template.yaml deleted file mode 100755 index db7adcbf6bc..00000000000 --- a/tests/e2e/sample-applications/deprecated/mssql-persistent/mssql-persistent-template.yaml +++ /dev/null @@ -1,176 +0,0 @@ -apiVersion: v1 -kind: List -items: - - kind: Namespace - apiVersion: v1 - metadata: - name: mssql-persistent - labels: - app: mssql - - apiVersion: v1 - kind: Secret - metadata: - name: mssql-secret - namespace: mssql-persistent - labels: - app: mssql - stringData: - mssql-password: P@ssw0rd1! - - apiVersion: v1 - kind: ServiceAccount - metadata: - name: mssql-persistent-sa - namespace: mssql-persistent - labels: - component: mssql-persistent - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: mssql-pvc - namespace: mssql-persistent - labels: - app: mssql - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Gi - - kind: SecurityContextConstraints - apiVersion: security.openshift.io/v1 - metadata: - name: mssql-persistent-scc - allowPrivilegeEscalation: true - allowPrivilegedContainer: true - runAsUser: - type: RunAsAny - seLinuxContext: - type: RunAsAny - fsGroup: - type: RunAsAny - supplementalGroups: - type: RunAsAny - volumes: - - '*' - users: - - system:admin - - system:serviceaccount:mssql-persistent:mssql-persistent-sa - - apiVersion: apps.openshift.io/v1 - kind: DeploymentConfig - metadata: - name: mssql-deployment - namespace: mssql-persistent - labels: - e2e-app: "true" - app: mssql - spec: - replicas: 1 - selector: - name: mssql - strategy: - type: Recreate - template: - metadata: - labels: - e2e-app: "true" - name: mssql - app: mssql - spec: - serviceAccountName: mssql-persistent-sa - containers: - - env: - - name: ACCEPT_EULA - value: "Y" - - name: SA_PASSWORD - valueFrom: - secretKeyRef: - key: mssql-password - name: mssql-secret - image: quay.io/ocpmigrate/mssql-server:latest - imagePullPolicy: Always - name: mssql - securityContext: - privileged: true - ports: - - containerPort: 1433 - resources: - limits: - memory: "3Gi" - cpu: "0.5" - requests: - memory: "3Gi" - cpu: "0.5" - volumeMounts: - - mountPath: "/var/opt/mssql/data" - name: mssql-vol - volumes: - - name: mssql-vol - persistentVolumeClaim: - claimName: mssql-pvc - - apiVersion: v1 - kind: Service - metadata: - name: mssql-service - namespace: mssql-persistent - spec: - selector: - app: mssql - ports: - - protocol: TCP - port: 1433 - targetPort: 1433 - type: ClusterIP - - apiVersion: apps/v1 - kind: Deployment - metadata: - name: mssql-app-deployment - namespace: mssql-persistent - labels: - e2e-app: "true" - spec: - replicas: 1 - selector: - matchLabels: - app: mssql-app - template: - metadata: - labels: - e2e-app: "true" - app: mssql-app - spec: - terminationGracePeriodSeconds: 10 - serviceAccountName: mssql-persistent-sa - containers: - - name: mssql-app - image: quay.io/ocpmigrate/mssql-sample-app:microsoft - imagePullPolicy: Always - ports: - - containerPort: 5000 - securityContext: - privileged: true - env: - - name: ConnString - value: "Server=mssql-service.mssql-persistent.svc.cluster.local;Database=ProductCatalog;User ID=WebLogin; password=SQLPass1234!" - - apiVersion: v1 - kind: Service - metadata: - name: mssql-app-service - namespace: mssql-persistent - spec: - selector: - app: mssql-app - ports: - - name: "tcp" - protocol: TCP - port: 5000 - targetPort: 5000 - - apiVersion: route.openshift.io/v1 - kind: Route - metadata: - name: mssql-app-route - namespace: mssql-persistent - spec: - path: "/" - to: - kind: Service - name: mssql-app-service diff --git a/tests/e2e/sample-applications/deprecated/parks-app/manifest.yaml b/tests/e2e/sample-applications/deprecated/parks-app/manifest.yaml deleted file mode 100644 index 4eb95456241..00000000000 --- a/tests/e2e/sample-applications/deprecated/parks-app/manifest.yaml +++ /dev/null @@ -1,232 +0,0 @@ -apiVersion: v1 -kind: List -items: - - apiVersion: v1 - kind: Namespace - metadata: - name: parks-app - - - kind: ImageStream - apiVersion: image.openshift.io/v1 - metadata: - name: restify - namespace: parks-app - labels: - app: restify - spec: {} - status: - dockerImageRepository: '' - - - kind: BuildConfig - apiVersion: build.openshift.io/v1 - metadata: - name: restify - namespace: parks-app - labels: - app: restify - spec: - triggers: - - type: GitHub - github: - secret: 4Xwu0tyAab90aaoasd88qweAasdaqvjknfrl3qwpo - - type: Generic - generic: - secret: 4Xwu0tyAab90aaoasd88qweAasdaqvjknfrl3qwpo - - type: ConfigChange - - type: ImageChange - imageChange: {} - source: - type: Git - git: - uri: https://github.com/ryanj/restify-mongodb-parks - ref: master - strategy: - type: Source - sourceStrategy: - from: - kind: ImageStreamTag - namespace: openshift - name: nodejs:10 - output: - to: - kind: ImageStreamTag - name: "restify:latest" - resources: {} - status: - lastVersion: 0 - - - - kind: DeploymentConfig - apiVersion: apps.openshift.io/v1 - metadata: - name: restify - namespace: parks-app - labels: - app: restify - spec: - strategy: - resources: {} - triggers: - - type: ConfigChange - - type: ImageChange - imageChangeParams: - automatic: true - containerNames: - - restify - from: - kind: ImageStreamTag - name: "restify:latest" - replicas: 1 - selector: - app: restify - deploymentconfig: restify - template: - metadata: - creationTimestamp: - labels: - e2e-app: "true" - app: restify - deploymentconfig: restify - spec: - volumes: - - name: "restify-volume-1" - emptyDir: {} - containers: - - name: restify - image: library/restify:latest - ports: - - containerPort: 8080 - protocol: TCP - env: - - name: DATABASE_SERVICE_NAME - value: mongodb - - name: MONGODB_DATABASE - value: restify-database - - name: MONGODB_PASSWORD - value: mongo-user-password - - name: MONGODB_USER - value: mongo-user-1 - resources: {} - volumeMounts: - - name: "restify-volume-1" - mountPath: "/run" - status: {} - - - kind: Route - apiVersion: route.openshift.io/v1 - metadata: - name: restify - namespace: parks-app - labels: - app: restify - spec: - to: - kind: Service - name: restify - port: - targetPort: '8080' - status: {} - - - kind: Service - apiVersion: v1 - metadata: - name: restify - namespace: parks-app - labels: - app: restify - spec: - ports: - - name: 8080-tcp - protocol: TCP - port: 8080 - targetPort: 8080 - selector: - app: restify - deploymentconfig: restify - status: - loadBalancer: {} - - - kind: DeploymentConfig - apiVersion: apps.openshift.io/v1 - metadata: - name: mongodb - namespace: parks-app - spec: - strategy: - type: Recreate - triggers: - - type: ImageChange - imageChangeParams: - automatic: true - containerNames: - - mongodb-container - from: - kind: ImageStreamTag - name: mongodb:latest - namespace: openshift - - type: ConfigChange - replicas: 1 - selector: - name: mongodb - template: - metadata: - labels: - e2e-app: "true" - name: mongodb - spec: - containers: - - name: mongodb-container - image: " " - ports: - - containerPort: 27017 - protocol: TCP - env: - - name: MONGODB_USER - value: mongo-user-1 - - name: MONGODB_PASSWORD - value: mongo-user-password - - name: MONGODB_DATABASE - value: restify-database - - name: MONGODB_ADMIN_PASSWORD - value: moogo-admin-pass - volumeMounts: - - name: mongodb-data - mountPath: /data/db" - imagePullPolicy: Always - volumes: - - name: mongodb-data - persistentVolumeClaim: - claimName: mongodb-data-claim - restartPolicy: Always - - - kind: Service - apiVersion: v1 - metadata: - name: mongodb - namespace: parks-app - spec: - ports: - - name: mongo - protocol: TCP - port: 27017 - targetPort: 27017 - selector: - name: mongodb - portalIP: '' - type: ClusterIP - sessionAffinity: None - status: - loadBalancer: {} - - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: "mongodb-data-claim" - namespace: parks-app - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Gi - diff --git a/tests/e2e/sample-applications/deprecated/parks-app/manifest4.8.yaml b/tests/e2e/sample-applications/deprecated/parks-app/manifest4.8.yaml deleted file mode 100644 index 9321408d098..00000000000 --- a/tests/e2e/sample-applications/deprecated/parks-app/manifest4.8.yaml +++ /dev/null @@ -1,223 +0,0 @@ -apiVersion: v1 -kind: List -items: - - apiVersion: v1 - kind: Namespace - metadata: - name: parks-app - - - kind: ImageStream - apiVersion: image.openshift.io/v1 - metadata: - name: restify - namespace: parks-app - labels: - app: restify - spec: {} - status: - dockerImageRepository: '' - - - kind: BuildConfig - apiVersion: build.openshift.io/v1 - metadata: - name: restify - namespace: parks-app - labels: - app: restify - spec: - triggers: - - type: GitHub - github: - secret: 4Xwu0tyAab90aaoasd88qweAasdaqvjknfrl3qwpo - - type: Generic - generic: - secret: 4Xwu0tyAab90aaoasd88qweAasdaqvjknfrl3qwpo - - type: ConfigChange - - type: ImageChange - imageChange: {} - source: - type: Git - git: - uri: https://github.com/ryanj/restify-mongodb-parks - ref: master - strategy: - type: Source - sourceStrategy: - from: - kind: DockerImage - name: 'registry.redhat.io/ubi8/nodejs-10:latest' - output: - to: - kind: ImageStreamTag - name: "restify:latest" - resources: {} - status: - lastVersion: 0 - - - - kind: DeploymentConfig - apiVersion: apps.openshift.io/v1 - metadata: - name: restify - namespace: parks-app - labels: - app: restify - spec: - strategy: - resources: {} - triggers: - - type: ConfigChange - - type: ImageChange - imageChangeParams: - automatic: true - containerNames: - - restify - from: - kind: ImageStreamTag - name: "restify:latest" - replicas: 1 - selector: - app: restify - deploymentconfig: restify - template: - metadata: - creationTimestamp: - labels: - e2e-app: "true" - app: restify - deploymentconfig: restify - spec: - volumes: - - name: "restify-volume-1" - emptyDir: {} - containers: - - name: restify - image: library/restify:latest - ports: - - containerPort: 8080 - protocol: TCP - env: - - name: DATABASE_SERVICE_NAME - value: mongodb - - name: MONGODB_DATABASE - value: restify-database - - name: MONGODB_PASSWORD - value: mongo-user-password - - name: MONGODB_USER - value: mongo-user-1 - resources: {} - volumeMounts: - - name: "restify-volume-1" - mountPath: "/run" - status: {} - - - kind: Route - apiVersion: route.openshift.io/v1 - metadata: - name: restify - namespace: parks-app - labels: - app: restify - spec: - to: - kind: Service - name: restify - port: - targetPort: '8080' - status: {} - - - kind: Service - apiVersion: v1 - metadata: - name: restify - namespace: parks-app - labels: - app: restify - spec: - ports: - - name: 8080-tcp - protocol: TCP - port: 8080 - targetPort: 8080 - selector: - app: restify - deploymentconfig: restify - status: - loadBalancer: {} - - - kind: DeploymentConfig - apiVersion: apps.openshift.io/v1 - metadata: - name: mongodb - namespace: parks-app - spec: - strategy: - type: Recreate - triggers: - - type: ConfigChange - replicas: 1 - selector: - name: mongodb - template: - metadata: - labels: - e2e-app: "true" - name: mongodb - spec: - containers: - - name: mongodb-container - image: >- - registry.redhat.io/rhscl/mongodb-36-rhel7:latest - ports: - - containerPort: 27017 - protocol: TCP - env: - - name: MONGODB_USER - value: mongo-user-1 - - name: MONGODB_PASSWORD - value: mongo-user-password - - name: MONGODB_DATABASE - value: restify-database - - name: MONGODB_ADMIN_PASSWORD - value: moogo-admin-pass - volumeMounts: - - name: mongodb-data - mountPath: /data/db" - imagePullPolicy: Always - volumes: - - name: mongodb-data - persistentVolumeClaim: - claimName: mongodb-data-claim - restartPolicy: Always - - - kind: Service - apiVersion: v1 - metadata: - name: mongodb - namespace: parks-app - spec: - ports: - - name: mongo - protocol: TCP - port: 27017 - targetPort: 27017 - selector: - name: mongodb - portalIP: '' - type: ClusterIP - sessionAffinity: None - status: - loadBalancer: {} - - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: "mongodb-data-claim" - namespace: parks-app - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Gi - diff --git a/tests/e2e/sample-applications/minimal-8csivol/minimal-3csivol-backup.yaml b/tests/e2e/sample-applications/minimal-8csivol/minimal-3csivol-backup.yaml deleted file mode 100644 index e5f3f85ab23..00000000000 --- a/tests/e2e/sample-applications/minimal-8csivol/minimal-3csivol-backup.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: velero.io/v1 -kind: Backup -metadata: - name: minimal-3csivol-1 - namespace: openshift-adp -spec: - includedNamespaces: - - minimal-3csivol - storageLocation: dpa-sample-1 - ttl: 720h0m0s diff --git a/tests/e2e/sample-applications/minimal-8csivol/minimal-3csivol-restore.yaml b/tests/e2e/sample-applications/minimal-8csivol/minimal-3csivol-restore.yaml deleted file mode 100644 index 707e54a2d06..00000000000 --- a/tests/e2e/sample-applications/minimal-8csivol/minimal-3csivol-restore.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: velero.io/v1 -kind: Restore -metadata: - name: minimal-3csivol-restore-1 - namespace: openshift-adp -spec: - backupName: minimal-3csivol-1 - restorePVs: true diff --git a/tests/e2e/sample-applications/minimal-8csivol/minimal-3csivol.yaml b/tests/e2e/sample-applications/minimal-8csivol/minimal-3csivol.yaml deleted file mode 100644 index eada144936a..00000000000 --- a/tests/e2e/sample-applications/minimal-8csivol/minimal-3csivol.yaml +++ /dev/null @@ -1,143 +0,0 @@ ---- -# Test quickly with: -# oc delete ns minimal-3csivol && oc create -f ./tests/e2e/sample-applications/minimal-3csivol/list.yaml && oc wait --for condition=available deployment/minimal-3csivol --timeout -1h && oc logs deploy/minimal-3csivol -f; - -# namespace minimal-3csivol -apiVersion: v1 -kind: Namespace -metadata: - name: minimal-3csivol ---- -# test deployment with 8 volumeMounts, 8 volumes, 8 PVCs. -# container mounts 8 PVC volumes. -# Appends current time to each volume ./$(date +%s).txt once if does not exists. -# Continuously cat each file in volume to stdout. -# container echoes the contents of each volume to stdout. -# Note: If you see deployment stuck with this error: pods "minimal-3csivol-59f59dd6fc-lhc5k" is forbidden: unable to validate -# against any security context constraint: -# [pod.metadata.annotations.container.seccomp.security.alpha.kubernetes.io/alpine: -# Forbidden: seccomp may not be set provider "anyuid": Forbidden: not -# usable by user or serviceaccount provider "nonroot": Forbidden: not -# usable by user or serviceaccount provider "hostmount-anyuid": Forbidden: -# not usable by user or serviceaccount provider -# "machine-api-termination-handler": Forbidden: not usable by user or -# serviceaccount provider "hostnetwork": Forbidden: not usable by user or -# serviceaccount provider "hostaccess": Forbidden: not usable by user or -# serviceaccount provider "mssql-persistent-scc": Forbidden: not usable by -# user or serviceaccount provider "mysql-persistent-scc": Forbidden: not -# usable by user or serviceaccount provider "node-exporter": Forbidden: -# not usable by user or serviceaccount provider "privileged": Forbidden: -# not usable by user or serviceaccount] -# Resolve this issue by executing the command `oc adm policy add-scc-to-user privileged -z default -n minimal-3csivol` -apiVersion: apps/v1 -kind: Deployment -metadata: - name: minimal-3csivol - namespace: minimal-3csivol -spec: - replicas: 1 - selector: - matchLabels: - app: minimal-3csivol - template: - metadata: - labels: - app: minimal-3csivol - spec: - containers: - - name: alpine - resources: - requests: - cpu: 100m - memory: 100Mi - limits: - cpu: 100m - memory: 100Mi - image: alpine - securityContext: - runAsNonRoot: true - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - seccompProfile: - type: RuntimeDefault - tty: true - interactive: true - command: ["/bin/sh"] - args: - - "-c" - - | - date +%s > /mnt/volume1/$(date +%s).txt - date +%s > /mnt/volume2/$(date +%s).txt - date +%s > /mnt/volume3/$(date +%s).txt - while true; do - ls -l /mnt/volume*/* | grep -v lost+found | grep -v total - sleep 1 - done -# Output on initial creation -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume1/1677538986.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume2/1677538986.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume3/1677538986.txt - -# If restore works, we would expect to see two files per volume -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume1/1677538986.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:14 /mnt/volume1/1677539648.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume2/1677538986.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:14 /mnt/volume2/1677539648.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume3/1677538986.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:14 /mnt/volume3/1677539648.txt - - volumeMounts: - - name: volume1 - mountPath: /mnt/volume1 - - name: volume2 - mountPath: /mnt/volume2 - - name: volume3 - mountPath: /mnt/volume3 - volumes: - - name: volume1 - persistentVolumeClaim: - claimName: volume1 - - name: volume2 - persistentVolumeClaim: - claimName: volume2 - - name: volume3 - persistentVolumeClaim: - claimName: volume3 ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: volume1 - namespace: minimal-3csivol -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: volume2 - namespace: minimal-3csivol -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: volume3 - namespace: minimal-3csivol -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi diff --git a/tests/e2e/sample-applications/minimal-8csivol/minimal-8csivol-backup.yaml b/tests/e2e/sample-applications/minimal-8csivol/minimal-8csivol-backup.yaml deleted file mode 100644 index f0db9e57b16..00000000000 --- a/tests/e2e/sample-applications/minimal-8csivol/minimal-8csivol-backup.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: velero.io/v1 -kind: Backup -metadata: - name: minimal-8csivol-1 - namespace: openshift-adp -spec: - includedNamespaces: - - minimal-8csivol - storageLocation: dpa-sample-1 - ttl: 720h0m0s diff --git a/tests/e2e/sample-applications/minimal-8csivol/minimal-8csivol-restore.yaml b/tests/e2e/sample-applications/minimal-8csivol/minimal-8csivol-restore.yaml deleted file mode 100644 index efe47a1ee44..00000000000 --- a/tests/e2e/sample-applications/minimal-8csivol/minimal-8csivol-restore.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: velero.io/v1 -kind: Restore -metadata: - name: minimal-8csivol-restore-1 - namespace: openshift-adp -spec: - backupName: minimal-8csivol-1 - restorePVs: true diff --git a/tests/e2e/sample-applications/minimal-8csivol/minimal-8csivol.yaml b/tests/e2e/sample-applications/minimal-8csivol/minimal-8csivol.yaml deleted file mode 100644 index a79e7c2fee6..00000000000 --- a/tests/e2e/sample-applications/minimal-8csivol/minimal-8csivol.yaml +++ /dev/null @@ -1,233 +0,0 @@ ---- -# Test quickly with: -# oc delete ns minimal-8csivol && oc create -f ./tests/e2e/sample-applications/minimal-8csivol/list.yaml && oc wait --for condition=available deployment/minimal-8csivol --timeout -1h && oc logs deploy/minimal-8csivol -f; - -# namespace minimal-8csivol -apiVersion: v1 -kind: Namespace -metadata: - name: minimal-8csivol ---- -# test deployment with 8 volumeMounts, 8 volumes, 8 PVCs. -# container mounts 8 PVC volumes. -# Appends current time to each volume ./$(date +%s).txt once if does not exists. -# Continuously cat each file in volume to stdout. -# container echoes the contents of each volume to stdout. -apiVersion: apps/v1 -kind: Deployment -metadata: - name: minimal-8csivol - namespace: minimal-8csivol -spec: - replicas: 1 - selector: - matchLabels: - app: minimal-8csivol - template: - metadata: - labels: - app: minimal-8csivol - spec: - containers: - - name: alpine - resources: - requests: - cpu: 100m - memory: 100Mi - limits: - cpu: 100m - memory: 100Mi - image: alpine - securityContext: - runAsNonRoot: true - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - seccompProfile: - type: RuntimeDefault - tty: true - interactive: true - command: ["/bin/sh"] - args: - - "-c" - - | - date +%s > /mnt/volume1/$(date +%s).txt - date +%s > /mnt/volume2/$(date +%s).txt - date +%s > /mnt/volume3/$(date +%s).txt - date +%s > /mnt/volume4/$(date +%s).txt - date +%s > /mnt/volume5/$(date +%s).txt - date +%s > /mnt/volume6/$(date +%s).txt - date +%s > /mnt/volume7/$(date +%s).txt - date +%s > /mnt/volume8/$(date +%s).txt - while true; do - ls -l /mnt/volume*/* | grep -v lost+found | grep -v total - sleep 1 - done -# Output on initial creation -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume1/1677538986.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume2/1677538986.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume3/1677538986.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume4/1677538986.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume5/1677538987.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume6/1677538987.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume7/1677538987.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume8/1677538987.txt - -# If restore works, we would expect to see two files per volume -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume1/1677538986.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:14 /mnt/volume1/1677539648.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume2/1677538986.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:14 /mnt/volume2/1677539648.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume3/1677538986.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:14 /mnt/volume3/1677539648.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume4/1677538986.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:14 /mnt/volume4/1677539648.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume5/1677538987.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:14 /mnt/volume5/1677539648.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume6/1677538987.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:14 /mnt/volume6/1677539648.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume7/1677538987.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:14 /mnt/volume7/1677539648.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:03 /mnt/volume8/1677538987.txt -# -rw-r--r-- 1 10012100 10012100 11 Feb 27 23:14 /mnt/volume8/1677539648.txt - - volumeMounts: - - name: volume1 - mountPath: /mnt/volume1 - - name: volume2 - mountPath: /mnt/volume2 - - name: volume3 - mountPath: /mnt/volume3 - - name: volume4 - mountPath: /mnt/volume4 - - name: volume5 - mountPath: /mnt/volume5 - - name: volume6 - mountPath: /mnt/volume6 - - name: volume7 - mountPath: /mnt/volume7 - - name: volume8 - mountPath: /mnt/volume8 - volumes: - - name: volume1 - persistentVolumeClaim: - claimName: volume1 - - name: volume2 - persistentVolumeClaim: - claimName: volume2 - - name: volume3 - persistentVolumeClaim: - claimName: volume3 - - name: volume4 - persistentVolumeClaim: - claimName: volume4 - - name: volume5 - persistentVolumeClaim: - claimName: volume5 - - name: volume6 - persistentVolumeClaim: - claimName: volume6 - - name: volume7 - persistentVolumeClaim: - claimName: volume7 - - name: volume8 - persistentVolumeClaim: - claimName: volume8 ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: volume1 - namespace: minimal-8csivol -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: volume2 - namespace: minimal-8csivol -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: volume3 - namespace: minimal-8csivol -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: volume4 - namespace: minimal-8csivol -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: volume5 - namespace: minimal-8csivol -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: volume6 - namespace: minimal-8csivol -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: volume7 - namespace: minimal-8csivol -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: volume8 - namespace: minimal-8csivol -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi ---- diff --git a/tests/e2e/sample-applications/mysql-persistent/pvc-twoVol/cephfs.yml b/tests/e2e/sample-applications/mysql-persistent/pvc-twoVol/cephfs.yml deleted file mode 100644 index 609337e8740..00000000000 --- a/tests/e2e/sample-applications/mysql-persistent/pvc-twoVol/cephfs.yml +++ /dev/null @@ -1,31 +0,0 @@ -apiVersion: v1 -kind: List -items: - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: mysql - namespace: mysql-persistent - labels: - app: mysql - spec: - accessModes: - - ReadWriteOnce - storageClassName: ocs-storagecluster-cephfs - resources: - requests: - storage: 1Gi - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: applog - namespace: mysql-persistent - labels: - app: todolist - spec: - accessModes: - - ReadWriteOnce - storageClassName: ocs-storagecluster-cephfs - resources: - requests: - storage: 1Gi diff --git a/tests/e2e/sample-applications/mysql-persistent/pvc-twoVol/cephrbd.yml b/tests/e2e/sample-applications/mysql-persistent/pvc-twoVol/cephrbd.yml deleted file mode 100644 index 867dcfeff07..00000000000 --- a/tests/e2e/sample-applications/mysql-persistent/pvc-twoVol/cephrbd.yml +++ /dev/null @@ -1,31 +0,0 @@ -apiVersion: v1 -kind: List -items: - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: mysql - namespace: mysql-persistent - labels: - app: mysql - spec: - accessModes: - - ReadWriteOnce - storageClassName: ocs-storagecluster-ceph-rbd - resources: - requests: - storage: 1Gi - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: applog - namespace: mysql-persistent - labels: - app: todolist - spec: - accessModes: - - ReadWriteOnce - storageClassName: ocs-storagecluster-ceph-rbd - resources: - requests: - storage: 1Gi diff --git a/tests/e2e/sample-applications/mysql-persistent/storageclass/cephfs-shallow.yml b/tests/e2e/sample-applications/mysql-persistent/storageclass/cephfs-shallow.yml deleted file mode 100644 index 7564a58340b..00000000000 --- a/tests/e2e/sample-applications/mysql-persistent/storageclass/cephfs-shallow.yml +++ /dev/null @@ -1,22 +0,0 @@ -kind: StorageClass -apiVersion: storage.k8s.io/v1 -metadata: - name: cephfs-shallow - annotations: - description: sample cephfs storage class for oadp datamover - storageclass.kubernetes.io/is-default-class: 'false' -provisioner: openshift-storage.cephfs.csi.ceph.com -parameters: - clusterID: openshift-storage - csi.storage.k8s.io/controller-expand-secret-name: rook-csi-cephfs-provisioner - csi.storage.k8s.io/controller-expand-secret-namespace: openshift-storage - csi.storage.k8s.io/node-stage-secret-name: rook-csi-cephfs-node - csi.storage.k8s.io/node-stage-secret-namespace: openshift-storage - csi.storage.k8s.io/provisioner-secret-name: rook-csi-cephfs-provisioner - csi.storage.k8s.io/provisioner-secret-namespace: openshift-storage - fsName: ocs-storagecluster-cephfilesystem - backingSnapshot: “true” -reclaimPolicy: Delete -allowVolumeExpansion: true -volumeBindingMode: Immediate - diff --git a/tests/e2e/sample-applications/mysql-persistent/storageclass/ocs-storagecluster-ceph-rbd.yaml b/tests/e2e/sample-applications/mysql-persistent/storageclass/ocs-storagecluster-ceph-rbd.yaml deleted file mode 100644 index f04b2b45da6..00000000000 --- a/tests/e2e/sample-applications/mysql-persistent/storageclass/ocs-storagecluster-ceph-rbd.yaml +++ /dev/null @@ -1,22 +0,0 @@ -allowVolumeExpansion: true -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - annotations: - description: Provides RWO Filesystem volumes, and RWO and RWX Block volumes - name: ocs-storagecluster-ceph-rbd -parameters: - clusterID: openshift-storage - csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner - csi.storage.k8s.io/controller-expand-secret-namespace: openshift-storage - csi.storage.k8s.io/fstype: ext4 - csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node - csi.storage.k8s.io/node-stage-secret-namespace: openshift-storage - csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner - csi.storage.k8s.io/provisioner-secret-namespace: openshift-storage - imageFeatures: layering,deep-flatten,exclusive-lock,object-map,fast-diff - imageFormat: "2" - pool: ocs-storagecluster-cephblockpool -provisioner: openshift-storage.rbd.csi.ceph.com -reclaimPolicy: Delete -volumeBindingMode: Immediate diff --git a/tests/e2e/sample-applications/mysql-persistent/storageclass/ocs-storagecluster-cephfs.yaml b/tests/e2e/sample-applications/mysql-persistent/storageclass/ocs-storagecluster-cephfs.yaml deleted file mode 100644 index a539edf6cfc..00000000000 --- a/tests/e2e/sample-applications/mysql-persistent/storageclass/ocs-storagecluster-cephfs.yaml +++ /dev/null @@ -1,20 +0,0 @@ -allowVolumeExpansion: true -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - annotations: - description: Provides RWO and RWX Filesystem volumes - storageclass.kubernetes.io/is-default-class: "false" - name: ocs-storagecluster-cephfs -parameters: - clusterID: openshift-storage - csi.storage.k8s.io/controller-expand-secret-name: rook-csi-cephfs-provisioner - csi.storage.k8s.io/controller-expand-secret-namespace: openshift-storage - csi.storage.k8s.io/node-stage-secret-name: rook-csi-cephfs-node - csi.storage.k8s.io/node-stage-secret-namespace: openshift-storage - csi.storage.k8s.io/provisioner-secret-name: rook-csi-cephfs-provisioner - csi.storage.k8s.io/provisioner-secret-namespace: openshift-storage - fsName: ocs-storagecluster-cephfilesystem -provisioner: openshift-storage.cephfs.csi.ceph.com -reclaimPolicy: Delete -volumeBindingMode: Immediate diff --git a/tests/e2e/sample-applications/nginx/nginx-deployment.yaml b/tests/e2e/sample-applications/nginx/nginx-deployment.yaml deleted file mode 100644 index 47859697f97..00000000000 --- a/tests/e2e/sample-applications/nginx/nginx-deployment.yaml +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 2017 the Heptio Ark contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ---- -apiVersion: v1 -kind: Namespace -metadata: - name: nginx-example - labels: - app: nginx - ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: nginx-deployment - namespace: nginx-example -spec: - replicas: 2 - selector: - matchLabels: - app: nginx - template: - metadata: - labels: - app: nginx - spec: - containers: - - image: docker.io/bitnami/nginx - name: nginx - ports: - - containerPort: 8080 - ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app: nginx - name: my-nginx - namespace: nginx-example -spec: - ports: - - port: 8080 - targetPort: 8080 - selector: - app: nginx - type: LoadBalancer - ---- -apiVersion: route.openshift.io/v1 -kind: Route -metadata: - name: my-nginx - namespace: nginx-example - labels: - app: nginx - service: my-nginx -spec: - to: - kind: Service - name: my-nginx - port: - targetPort: 8080 \ No newline at end of file diff --git a/tests/e2e/sample-applications/nginx/nginx-stateless-backup.yaml b/tests/e2e/sample-applications/nginx/nginx-stateless-backup.yaml deleted file mode 100644 index 37175562fa5..00000000000 --- a/tests/e2e/sample-applications/nginx/nginx-stateless-backup.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: velero.io/v1 -kind: Backup -metadata: - name: nginx-stateless - namespace: openshift-adp -spec: - includedNamespaces: - - nginx-example - storageLocation: dpa-sample-1 - ttl: 720h0m0s diff --git a/tests/e2e/sample-applications/nginx/nginx-stateless-restore.yaml b/tests/e2e/sample-applications/nginx/nginx-stateless-restore.yaml deleted file mode 100644 index 4ba4a829d72..00000000000 --- a/tests/e2e/sample-applications/nginx/nginx-stateless-restore.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: velero.io/v1 -kind: Restore -metadata: - name: nginx-stateless - namespace: openshift-adp -spec: - backupName: nginx-stateless