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
88COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/csi-operator /usr/bin/
99COPY deploy/openshift/image-references deploy/prerequisites/*.yaml /manifests/
1010COPY deploy/operator.yaml /manifests/99_operator.yaml
11- LABEL io.openshift.release.operator true
11+ # LABEL io.openshift.release.operator true
1212USER csi-operator
1313ENTRYPOINT ["/usr/bin/csi-operator" ]
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ RUN useradd csi-operator
88COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/csi-operator /usr/bin/
99COPY deploy/openshift/image-references deploy/prerequisites/*.yaml /manifests/
1010COPY deploy/operator.yaml /manifests/99_operator.yaml
11- LABEL io.openshift.release.operator true
11+ # LABEL io.openshift.release.operator true
1212USER csi-operator
1313ENTRYPOINT ["/usr/bin/csi-operator"]
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ verify:
3737.PHONY : test-e2e
3838# usage: KUBECONFIG=/var/run/kubernetes/admin.kubeconfig make test-e2e
3939test-e2e : generate
40+ hack/deploy-local.sh
4041 go test -v ./test/e2e/... -kubeconfig=$(KUBECONFIG ) -root $(PWD ) -globalMan deploy/prerequisites/01_crd.yaml
4142
4243.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