Skip to content

Commit dfb0161

Browse files
Per Goncalves da Silvaci-robot
authored andcommitted
UPSTREAM: <carry>: Update test-operator startup script to fix pod probe endpoints
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
1 parent d544e04 commit dfb0161

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

openshift/tests-extension/pkg/bindata/operator/operator.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openshift/tests-extension/test/olmv1.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
//nolint:staticcheck // ST1001: dot-imports for readability
1010
. "github.com/onsi/gomega"
1111

12+
"github.com/openshift/origin/test/extended/util/image"
1213
corev1 "k8s.io/api/core/v1"
1314
apiextclient "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
1415
"k8s.io/apimachinery/pkg/api/meta"
@@ -133,7 +134,7 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLM] OLMv1 operator installation
133134

134135
// Using the shell image provided by origin as the controller image.
135136
// The image is mirrored into disconnected environments for testing.
136-
"{{ TEST-CONTROLLER }}": "registry.k8s.io/e2e-test-images/busybox:1.36.1-1",
137+
"{{ TEST-CONTROLLER }}": image.ShellImage(),
137138
}
138139
unique, nsName, ccName, opName = helpers.NewCatalogAndClusterBundles(ctx, replacements,
139140
catalogdata.AssetNames, catalogdata.Asset,

openshift/tests-extension/testdata/operator/manifests/registry.clusterserviceversion.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ spec:
6969
readOnly: true
7070
livenessProbe:
7171
httpGet:
72-
path: /healthz
72+
path: /live
7373
port: 8081
7474
initialDelaySeconds: 15
7575
periodSeconds: 20
7676
name: manager
7777
readinessProbe:
7878
httpGet:
79-
path: /readyz
79+
path: /ready
8080
port: 8081
8181
initialDelaySeconds: 5
8282
periodSeconds: 10

openshift/tests-extension/testdata/operator/manifests/script.configmap.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ data:
66
httpd.sh: |
77
#!/bin/sh
88
echo "Version 1.2.0"
9-
echo true > /var/www/started
10-
echo true > /var/www/ready
11-
echo true > /var/www/live
12-
exec httpd -f -h /var/www -p 8081
9+
mkdir -p /tmp/www
10+
echo true > /tmp/www/started
11+
echo true > /tmp/www/ready
12+
echo true > /tmp/www/live
13+
python3 -m http.server 8081 --directory /tmp/www

0 commit comments

Comments
 (0)