File tree Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ RUN useradd csi-operator
8
8
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/csi-operator /usr/bin/
9
9
COPY deploy/openshift/image-references deploy/prerequisites/*.yaml /manifests/
10
10
COPY deploy/operator.yaml /manifests/99_operator.yaml
11
- LABEL io.openshift.release.operator true
11
+ # LABEL io.openshift.release.operator true
12
12
USER csi-operator
13
13
ENTRYPOINT ["/usr/bin/csi-operator" ]
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ RUN useradd csi-operator
8
8
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/csi-operator /usr/bin/
9
9
COPY deploy/openshift/image-references deploy/prerequisites/*.yaml /manifests/
10
10
COPY deploy/operator.yaml /manifests/99_operator.yaml
11
- LABEL io.openshift.release.operator true
11
+ # LABEL io.openshift.release.operator true
12
12
USER csi-operator
13
13
ENTRYPOINT ["/usr/bin/csi-operator"]
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ verify:
37
37
.PHONY : test-e2e
38
38
# usage: KUBECONFIG=/var/run/kubernetes/admin.kubeconfig make test-e2e
39
39
test-e2e : generate
40
+ hack/deploy-local.sh
40
41
go test -v ./test/e2e/... -kubeconfig=$(KUBECONFIG ) -root $(PWD ) -globalMan deploy/prerequisites/01_crd.yaml
41
42
42
43
.PHONY : container
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Deploy the operator on a local cluster (reachable by kubectl).
4
+
5
+ PROJECT_ROOT=$( dirname " ${BASH_SOURCE} " ) /..
6
+
7
+ if which kubectl & > /dev/null; then
8
+ CLI=kubectl
9
+ elif which oc & > /dev/null; then
10
+ CLI=oc
11
+ else
12
+ echo " Cannot find kubectl nor oc"
13
+ exit 1
14
+ fi
15
+
16
+ $CLI apply -f " ${PROJECT_ROOT} /deploy/prerequisites/"
17
+ $CLI apply -f " ${PROJECT_ROOT} /deploy/operator.yaml"
You can’t perform that action at this time.
0 commit comments