Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 4 additions & 4 deletions tests/e2e/backup_restore_cli_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ var _ = ginkgo.Describe("Backup and restore tests via OADP CLI", ginkgo.Label("c
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application CSI via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ginkgo.PEntry("Mongo application CSI via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Expand Down Expand Up @@ -303,7 +303,7 @@ var _ = ginkgo.Describe("Backup and restore tests via OADP CLI", ginkgo.Label("c
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application DATAMOVER via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ginkgo.PEntry("Mongo application DATAMOVER via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Expand All @@ -325,7 +325,7 @@ var _ = ginkgo.Describe("Backup and restore tests via OADP CLI", ginkgo.Label("c
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application BlockDevice DATAMOVER via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ginkgo.PEntry("Mongo application BlockDevice DATAMOVER via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-block.yaml",
PvcSuffixName: "-block-mode",
BackupRestoreCase: BackupRestoreCase{
Expand All @@ -348,7 +348,7 @@ var _ = ginkgo.Describe("Backup and restore tests via OADP CLI", ginkgo.Label("c
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application Native-Snapshots via CLI", ginkgo.FlakeAttempts(flakeAttempts), ginkgo.Label("aws", "azure", "gcp"), ApplicationBackupRestoreCase{
ginkgo.PEntry("Mongo application Native-Snapshots via CLI", ginkgo.FlakeAttempts(flakeAttempts), ginkgo.Label("aws", "azure", "gcp"), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e/backup_restore_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ var _ = ginkgo.Describe("Backup and restore tests", ginkgo.Ordered, func() {
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application CSI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ginkgo.PEntry("Mongo application CSI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Expand Down Expand Up @@ -501,7 +501,7 @@ var _ = ginkgo.Describe("Backup and restore tests", ginkgo.Ordered, func() {
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application DATAMOVER", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ginkgo.PEntry("Mongo application DATAMOVER", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Expand All @@ -523,7 +523,7 @@ var _ = ginkgo.Describe("Backup and restore tests", ginkgo.Ordered, func() {
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application BlockDevice DATAMOVER", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ginkgo.PEntry("Mongo application BlockDevice DATAMOVER", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-block.yaml",
PvcSuffixName: "-block-mode",
BackupRestoreCase: BackupRestoreCase{
Expand All @@ -546,7 +546,7 @@ var _ = ginkgo.Describe("Backup and restore tests", ginkgo.Ordered, func() {
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application Native-Snapshots", ginkgo.FlakeAttempts(flakeAttempts), ginkgo.Label("aws", "azure", "gcp"), ApplicationBackupRestoreCase{
ginkgo.PEntry("Mongo application Native-Snapshots", ginkgo.FlakeAttempts(flakeAttempts), ginkgo.Label("aws", "azure", "gcp"), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
limits:
cpu: 100m
memory: 100Mi
image: alpine
image: quay.io/migtools/alpine:latest
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
limits:
cpu: 100m
memory: 100Mi
image: alpine
image: quay.io/migtools/alpine:latest
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ items:
# Used to format the block device (put filesystem on it).
# This allows Mongo to use the filesystem which lives on block device.
initContainers:
- image: docker.io/library/mongo:7.0
- image: quay.io/migtools/mongo:7.0.28
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
Expand Down Expand Up @@ -102,7 +102,7 @@ items:
- name: block-volume-pv
devicePath: /dev/xvdx
containers:
- image: docker.io/library/mongo:7.0
- image: quay.io/migtools/mongo:7.0.28
name: mongo
securityContext:
privileged: true
Expand Down Expand Up @@ -165,7 +165,7 @@ items:
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 12 # 12x10sec = 2min before restart pod
- image: docker.io/curlimages/curl:8.5.0
- image: registry.access.redhat.com/ubi9/ubi:latest
name: curl-tool
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The container name is 'curl-tool' but it no longer uses the curl image and doesn't provide curl functionality. Consider renaming this container to something more generic like 'debug-tool' or 'utility-tool' to better reflect its purpose as a debugging sidecar.

Suggested change
name: curl-tool
name: debug-tool

Copilot uses AI. Check for mistakes.
command: ["/bin/sleep", "infinity"]
volumes:
Expand Down Expand Up @@ -224,20 +224,16 @@ items:
protocol: TCP
livenessProbe:
httpGet:
path: /
path: /healthz
port: 8000
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /
path: /healthz
port: 8000
initialDelaySeconds: 5
periodSeconds: 5
initContainers:
- name: init-myservice
image: docker.io/curlimages/curl:8.5.0
command: ['sh', '-c', 'sleep 30; max_attempts=180; attempt=0; until curl -s --connect-timeout 2 mongo:27017 || [ $attempt -ge $max_attempts ]; do attempt=$((attempt+1)); echo "Attempt $attempt/$max_attempts: Trying to connect to mongo DB port"; sleep 5; done; if [ $attempt -ge $max_attempts ]; then echo "ERROR: Failed to connect to mongo after $max_attempts attempts"; exit 1; fi; echo "mongo DB port reachable"']
- apiVersion: v1
kind: Service
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ items:
spec:
serviceAccountName: mongo-persistent-sa
containers:
- image: docker.io/library/mongo:7.0
- image: quay.io/migtools/mongo:7.0.28
imagePullPolicy: IfNotPresent
name: mongo
securityContext:
Expand Down Expand Up @@ -122,7 +122,7 @@ items:
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 12 # 12x10sec = 2min before restart pod
- image: docker.io/curlimages/curl:8.5.0
- image: registry.access.redhat.com/ubi9/ubi:latest
name: curl-tool
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The container name is 'curl-tool' but it no longer uses the curl image and doesn't provide curl functionality. Consider renaming this container to something more generic like 'debug-tool' or 'utility-tool' to better reflect its purpose as a debugging sidecar.

Suggested change
name: curl-tool
name: debug-tool

Copilot uses AI. Check for mistakes.
command: ["/bin/sleep", "infinity"]
volumes:
Expand Down Expand Up @@ -181,20 +181,16 @@ items:
protocol: TCP
livenessProbe:
httpGet:
path: /
path: /healthz
port: 8000
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /
path: /healthz
port: 8000
initialDelaySeconds: 5
periodSeconds: 5
initContainers:
- name: init-myservice
image: docker.io/curlimages/curl:8.5.0
command: ['sh', '-c', 'sleep 30; max_attempts=180; attempt=0; until curl -s --connect-timeout 2 mongo:27017 || [ $attempt -ge $max_attempts ]; do attempt=$((attempt+1)); echo "Attempt $attempt/$max_attempts: Trying to connect to mongo DB port"; sleep 5; done; if [ $attempt -ge $max_attempts ]; then echo "ERROR: Failed to connect to mongo after $max_attempts attempts"; exit 1; fi; echo "mongo DB port reachable"']
- apiVersion: v1
kind: Service
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ items:
spec:
serviceAccountName: mongo-persistent-sa
containers:
- image: docker.io/library/mongo:7.0
- image: quay.io/migtools/mongo:7.0.28
imagePullPolicy: IfNotPresent
name: mongo
securityContext:
Expand Down Expand Up @@ -135,7 +135,7 @@ items:
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 12 # 12x10sec = 2min before restart pod
- image: docker.io/curlimages/curl:8.5.0
- image: registry.access.redhat.com/ubi9/ubi:latest
name: curl-tool
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The container name is 'curl-tool' but it no longer uses the curl image and doesn't provide curl functionality. Consider renaming this container to something more generic like 'debug-tool' or 'utility-tool' to better reflect its purpose as a debugging sidecar.

Suggested change
name: curl-tool
name: debug-tool

Copilot uses AI. Check for mistakes.
command: ["/bin/sleep", "infinity"]
volumes:
Expand Down Expand Up @@ -194,20 +194,16 @@ items:
protocol: TCP
livenessProbe:
httpGet:
path: /
path: /healthz
port: 8000
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /
path: /healthz
port: 8000
initialDelaySeconds: 5
periodSeconds: 5
initContainers:
- name: init-myservice
image: docker.io/curlimages/curl:8.5.0
command: ['sh', '-c', 'sleep 30; max_attempts=180; attempt=0; until curl -s --connect-timeout 2 mongo:27017 || [ $attempt -ge $max_attempts ]; do attempt=$((attempt+1)); echo "Attempt $attempt/$max_attempts: Trying to connect to mongo DB port"; sleep 5; done; if [ $attempt -ge $max_attempts ]; then echo "ERROR: Failed to connect to mongo after $max_attempts attempts"; exit 1; fi; echo "mongo DB port reachable"']
- apiVersion: v1
kind: Service
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ items:
timeoutSeconds: 2
successThreshold: 1
failureThreshold: 40 # 40x30sec before restart pod
- image: docker.io/curlimages/curl:8.5.0
- image: registry.access.redhat.com/ubi9/ubi:latest
name: curl-tool
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The container name is 'curl-tool' but it no longer uses the curl image and doesn't provide curl functionality. Consider renaming this container to something more generic like 'debug-tool' or 'utility-tool' to better reflect its purpose as a debugging sidecar.

Suggested change
name: curl-tool
name: debug-tool

Copilot uses AI. Check for mistakes.
command: ["/bin/sleep", "infinity"]
volumes:
Expand Down Expand Up @@ -214,20 +214,16 @@ items:
protocol: TCP
livenessProbe:
httpGet:
path: /
path: /healthz
port: 8000
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /
path: /healthz
port: 8000
initialDelaySeconds: 10
periodSeconds: 5
initContainers:
- name: init-myservice
image: docker.io/curlimages/curl:8.5.0
command: ['sh', '-c', 'sleep 30; max_attempts=180; attempt=0; until /usr/bin/nc -z -w 1 mysql 3306 || [ $attempt -ge $max_attempts ]; do attempt=$((attempt+1)); echo "Attempt $attempt/$max_attempts: Trying to connect to mysql DB port"; sleep 5; done; if [ $attempt -ge $max_attempts ]; then echo "ERROR: Failed to connect to mysql after $max_attempts attempts"; exit 1; fi; echo "mysql DB port reachable"']
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ items:
timeoutSeconds: 2
successThreshold: 1
failureThreshold: 40 # 40x30sec before restart pod
- image: docker.io/curlimages/curl:8.5.0
- image: registry.access.redhat.com/ubi9/ubi:latest
name: curl-tool
command: ["/bin/sleep", "infinity"]
volumes:
Expand Down Expand Up @@ -205,13 +205,13 @@ items:
protocol: TCP
livenessProbe:
httpGet:
path: /
path: /healthz
port: 8000
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /
path: /healthz
port: 8000
initialDelaySeconds: 10
periodSeconds: 5
Expand All @@ -222,10 +222,6 @@ items:
- name: applog
persistentVolumeClaim:
claimName: applog
initContainers:
- name: init-myservice
image: docker.io/curlimages/curl:8.5.0
command: ['sh', '-c', 'sleep 30; max_attempts=180; attempt=0; until /usr/bin/nc -z -w 1 mysql 3306 || [ $attempt -ge $max_attempts ]; do attempt=$((attempt+1)); echo "Attempt $attempt/$max_attempts: Trying to connect to mysql DB port"; sleep 5; done; if [ $attempt -ge $max_attempts ]; then echo "ERROR: Failed to connect to mysql after $max_attempts attempts"; exit 1; fi; echo "mysql DB port reachable"']
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ items:
timeoutSeconds: 2
successThreshold: 1
failureThreshold: 40 # 40x30sec before restart pod
- image: docker.io/curlimages/curl:8.5.0
- image: registry.access.redhat.com/ubi9/ubi:latest
name: curl-tool
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The container name is 'curl-tool' but it no longer uses the curl image and doesn't provide curl functionality. Consider renaming this container to something more generic like 'debug-tool' or 'utility-tool' to better reflect its purpose as a debugging sidecar.

Suggested change
name: curl-tool
name: debug-tool

Copilot uses AI. Check for mistakes.
command: ["/bin/sleep", "infinity"]
volumes:
Expand Down Expand Up @@ -227,20 +227,16 @@ items:
protocol: TCP
livenessProbe:
httpGet:
path: /
path: /healthz
port: 8000
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /
path: /healthz
port: 8000
initialDelaySeconds: 10
periodSeconds: 5
initContainers:
- name: init-myservice
image: docker.io/curlimages/curl:8.5.0
command: ['sh', '-c', 'sleep 30; max_attempts=180; attempt=0; until /usr/bin/nc -z -w 1 mysql 3306 || [ $attempt -ge $max_attempts ]; do attempt=$((attempt+1)); echo "Attempt $attempt/$max_attempts: Trying to connect to mysql DB port"; sleep 5; done; if [ $attempt -ge $max_attempts ]; then echo "ERROR: Failed to connect to mysql after $max_attempts attempts"; exit 1; fi; echo "mysql DB port reachable"']
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/sample-applications/nginx/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ items:
app: nginx
spec:
containers:
- image: bitnamisecure/nginx
- image: quay.io/migtools/nginx:latest
name: nginx
ports:
- containerPort: 8080
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/sample-applications/parks-app/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ items:
emptyDir: {}
initContainers:
- name: wait-for-mongodb
image: 'docker.io/library/mongo:7.0'
image: 'quay.io/migtools/mongo:7.0.28'
command:
- /bin/bash
- -c
Expand Down Expand Up @@ -267,7 +267,7 @@ items:
spec:
containers:
- name: mongodb-container
image: 'docker.io/library/mongo:7.0'
image: 'quay.io/migtools/mongo:7.0.28'
ports:
- containerPort: 27017
protocol: TCP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ items:
timeoutSeconds: 2
successThreshold: 1
failureThreshold: 40 # 40x30sec before restart pod
- image: docker.io/curlimages/curl:8.5.0
- image: registry.access.redhat.com/ubi9/ubi:latest
name: curl-tool
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The container name is 'curl-tool' but it no longer uses the curl image and doesn't provide curl functionality. Consider renaming this container to something more generic like 'debug-tool' or 'utility-tool' to better reflect its purpose as a debugging sidecar.

Suggested change
name: curl-tool
name: debug-tool

Copilot uses AI. Check for mistakes.
command: ["/bin/sleep", "infinity"]
volumes:
Expand Down Expand Up @@ -197,10 +197,6 @@ items:
ports:
- containerPort: 8000
protocol: TCP
initContainers:
- name: init-myservice
image: docker.io/curlimages/curl:8.5.0
command: ['sh', '-c', 'sleep 30; max_attempts=180; attempt=0; until /usr/bin/nc -z -w 1 mysql 3306 || [ $attempt -ge $max_attempts ]; do attempt=$((attempt+1)); echo "Attempt $attempt/$max_attempts: Trying to connect to mysql DB port"; sleep 5; done; if [ $attempt -ge $max_attempts ]; then echo "ERROR: Failed to connect to mysql after $max_attempts attempts"; exit 1; fi; echo "mysql DB port reachable"']
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
Expand Down