Skip to content

Commit d408ddd

Browse files
joelanfordci-robot
authored andcommitted
UPSTREAM: <carry>: remove dead e2e registry push job and related variables
1 parent 7500554 commit d408ddd

2 files changed

Lines changed: 4 additions & 49 deletions

File tree

openshift/Makefile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,19 @@ verify-manifests: manifests
3434
E2E_REGISTRY_NAME=docker-registry
3535
E2E_REGISTRY_NAMESPACE=operator-controller-e2e
3636
export CLUSTER_REGISTRY_HOST := $(E2E_REGISTRY_NAME).$(E2E_REGISTRY_NAMESPACE).svc:5000
37-
export REG_PKG_NAME := registry-operator
38-
export E2E_TEST_CATALOG_V1 := e2e/test-catalog:v1
39-
export E2E_TEST_CATALOG_V2 := e2e/test-catalog:v2
40-
export CATALOG_IMG := $(CLUSTER_REGISTRY_HOST)/$(E2E_TEST_CATALOG_V1)
4137

42-
# Order matters here, the ".../registries.conf" entry must be last.
4338
export DOWNSTREAM_E2E_FLAGS := -count=1 -v
4439
export DOWNSTREAM_GODOG_FLAGS := ~@mirrored-registry && ~@TLSProfile
4540
.PHONY: test-e2e
4641
test-e2e: ## Run the e2e tests.
47-
$(DIR)/operator-controller/build-test-registry.sh $(E2E_REGISTRY_NAMESPACE) $(E2E_REGISTRY_NAME) $(E2E_REGISTRY_IMAGE)
42+
$(DIR)/operator-controller/build-test-registry.sh $(E2E_REGISTRY_NAMESPACE) $(E2E_REGISTRY_NAME)
4843
cd $(DIR)/../; \
49-
LOCAL_REGISTRY_HOST=$$(oc get route $(E2E_REGISTRY_NAME) -n $(E2E_REGISTRY_NAMESPACE) -o jsonpath='{.spec.host}') \
5044
go test $(DOWNSTREAM_E2E_FLAGS) ./test/e2e/features_test.go --godog.tags="$(DOWNSTREAM_GODOG_FLAGS)" --k8s.cli=oc
5145

5246
export DOWNSTREAM_EXPERIMENTAL_E2E_FLAGS := -count=1 -v
5347
.PHONY: test-experimental-e2e
5448
test-experimental-e2e: ## Run the experimental e2e tests.
55-
$(DIR)/operator-controller/build-test-registry.sh $(E2E_REGISTRY_NAMESPACE) $(E2E_REGISTRY_NAME) $(E2E_REGISTRY_IMAGE)
49+
$(DIR)/operator-controller/build-test-registry.sh $(E2E_REGISTRY_NAMESPACE) $(E2E_REGISTRY_NAME)
5650
cd $(DIR)/../; \
5751
go test $(DOWNSTREAM_EXPERIMENTAL_E2E_FLAGS) ./test/experimental-e2e/...;
5852

openshift/operator-controller/build-test-registry.sh

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,21 @@ set -o pipefail
77
help="
88
build-test-registry.sh is a script to stand up an image registry within a cluster.
99
Usage:
10-
build-test-registry.sh [NAMESPACE] [NAME] [IMAGE]
10+
build-test-registry.sh [NAMESPACE] [NAME]
1111
1212
Argument Descriptions:
1313
- NAMESPACE is the namespace that should be created and is the namespace in which the image registry will be created
1414
- NAME is the name that should be used for the image registry Deployment and Service
15-
- IMAGE is the name of the image that should be used to run the image registry
1615
"
1716

18-
if [[ "$#" -ne 3 ]]; then
17+
if [[ "$#" -ne 2 ]]; then
1918
echo "Illegal number of arguments passed"
2019
echo "${help}"
2120
exit 1
2221
fi
2322

2423
namespace=$1
2524
name=$2
26-
image=$3
2725

2826
oc apply -f - << EOF
2927
---
@@ -85,40 +83,3 @@ spec:
8583
EOF
8684

8785
oc wait --for=condition=Available -n "${namespace}" "deploy/${name}" --timeout=60s
88-
89-
oc apply -f - << EOF
90-
apiVersion: batch/v1
91-
kind: Job
92-
metadata:
93-
name: ${name}-push
94-
namespace: ${namespace}
95-
spec:
96-
template:
97-
spec:
98-
restartPolicy: Never
99-
containers:
100-
- name: push
101-
image: ${image}
102-
command:
103-
- /push
104-
args:
105-
- "--registry-address=${name}.${namespace}.svc:5000"
106-
- "--images-path=/images"
107-
volumeMounts:
108-
- mountPath: /var/certs
109-
name: operator-controller-e2e-certs
110-
env:
111-
- name: SSL_CERT_DIR
112-
value: "/var/certs/"
113-
volumes:
114-
- name: operator-controller-e2e-certs
115-
secret:
116-
optional: false
117-
secretName: operator-controller-e2e-certs
118-
EOF
119-
120-
oc wait --for=condition=Complete -n "${namespace}" "job/${name}-push" --timeout=60s
121-
122-
oc create route passthrough ${name} --service ${name} -n ${namespace}
123-
124-
oc get route ${name} -n ${namespace} -o yaml

0 commit comments

Comments
 (0)