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
2 changes: 1 addition & 1 deletion docker/cluster-cleaner/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
IMAGE_VERSION=0.14
IMAGE_VERSION=0.15

.PHONY: all
all: build push install
Expand Down
3 changes: 2 additions & 1 deletion docker/cluster-cleaner/scripts/clean-failed-namespaces.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ delete_resources_safely() {
kubectl delete "${resource_type}" --all -n "${namespace}" --wait=true --timeout=10s || true

# Check if any resources are still stuck
resources=$(kubectl get "$resource_type" -n "${namespace}" --no-headers -o custom-columns=":metadata.name")
# Let's not fail here and continue deletion
resources=$(kubectl get "$resource_type" -n "${namespace}" --no-headers -o custom-columns=":metadata.name" 2>/dev/null || true)

for resource in ${resources}; do
echo "${resource_type}/${resource} is still present, force deleting..."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ spec:
spec:
template:
spec:
# FIXME workaround for sleep infinity hanging
# FIXME workaround for sleep 7200 hanging
shareProcessNamespace: true
containers:
- name: sidecar1
image: busybox
command: ["sleep"]
args: [ "infinity" ]
args: [ "7200" ]
opsManager:
configMapRef:
name: my-project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
- name: sidecar1
image: busybox
command: ["sleep"]
args: [ "infinity" ]
args: [ "7200" ]
volumeClaimTemplates:
- metadata:
name: data
Expand All @@ -44,7 +44,7 @@ spec:
- name: sidecar2
image: busybox
command: ["sleep"]
args: [ "infinity" ]
args: [ "7200" ]
volumeClaimTemplates:
- metadata:
name: data
Expand All @@ -60,7 +60,7 @@ spec:
- name: sidecar3
image: busybox
command: ["sleep"]
args: [ "infinity" ]
args: [ "7200" ]
volumeClaimTemplates:
- metadata:
name: data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
- name: appdb-sidecar
image: busybox
command: ["sleep"]
args: ["infinity"]
args: ["7200"]
resources:
limits:
cpu: "1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_appdb_pod_template_containers(self, ops_manager: MongoDBOpsManager):
appdb_sidecar_container = containers_by_name["appdb-sidecar"]
assert appdb_sidecar_container.image == "busybox"
assert appdb_sidecar_container.command == ["sleep"]
assert appdb_sidecar_container.args == ["infinity"]
assert appdb_sidecar_container.args == ["7200"]

def test_appdb_persistence(self, ops_manager: MongoDBOpsManager, namespace: str):
# appdb pod volume claim template
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- name: side-car
image: busybox:latest
command: ["/bin/sh"]
args: ["-c", "echo ok > /somewhere/busybox_file && sleep 86400"]
args: ["-c", "echo ok > /somewhere/busybox_file && sleep 7200"]
volumeMounts:
- mountPath: /somewhere
name: test-volume
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def test_stateful_set_spec_updated(replica_set, namespace):
}
],
"command": ["/bin/sh"],
"args": ["-c", "echo ok > /somewhere/busybox_file && sleep 86400"],
"args": ["-c", "echo ok > /somewhere/busybox_file && sleep 7200"],
},
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
- name: sharded-cluster-sidecar
image: busybox
command: ["sleep"]
args: [ "infinity" ]
args: [ "7200" ]
resources:
limits:
cpu: "1"
Expand All @@ -63,7 +63,7 @@ spec:
- name: sharded-cluster-sidecar-override
image: busybox
command: ["sleep"]
args: [ "infinity" ]
args: [ "7200" ]
resources:
limits:
cpu: "1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
- name: standalone-sidecar
image: busybox
command: ["sleep"]
args: [ "infinity" ]
args: [ "7200" ]
terminationGracePeriodSeconds: 10
affinity:
podAntiAffinity:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
containers:
- image: public.ecr.aws/docker/library/busybox:1.37.0
name: keepalive
command: ["/bin/sh", "-c", "while true; do sleep 3600; done"]
command: ["/bin/sh", "-c", "while true; do sleep 7200; done"]
volumeMounts:
- name: results
mountPath: /tmp/results
Expand Down