Skip to content

Commit 3367e41

Browse files
Migrate from operator-sdk to library-go/client-go based operator
1 parent cdbb0f3 commit 3367e41

File tree

5,501 files changed

+710348
-628206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,501 files changed

+710348
-628206
lines changed

.gvm_local/environments/go1.11@local

Lines changed: 0 additions & 13 deletions
This file was deleted.

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: go
2+
3+
go:
4+
- 1.10.3
5+
6+
script:
7+
- make build test-unit
8+
9+
notifications:
10+
irc: "chat.freenode.net#openshift-dev"
11+
12+
sudo: false

Dockerfile

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1-
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.10 AS builder
1+
FROM openshift/origin-release:golang-1.10 as builder
22
WORKDIR /go/src/github.com/openshift/console-operator
33
COPY . .
44
RUN make build
55

6-
FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base
7-
COPY --from=builder /go/src/github.com/openshift/console-operator/tmp/_output/bin/console-operator /usr/bin/
8-
# these manifests are necessary for the installer
9-
COPY manifests /manifests/
6+
FROM centos:7
107
RUN useradd console-operator
118
USER console-operator
9+
COPY --from=builder /go/src/github.com/openshift/console-operator/_output/local/bin/linux/amd64/console /usr/bin
10+
11+
# these manifests are necessary for the installer
12+
COPY manifests /manifests/
13+
1214
LABEL io.k8s.display-name="OpenShift console-operator" \
1315
io.k8s.description="This is a component of OpenShift Container Platform and manages the lifecycle of the web console." \
1416
io.openshift.tags="openshift" \
1517
maintainer="Benjamin A. Petersen <[email protected]>"
18+
1619
LABEL io.openshift.release.operator true
20+
1721
# entrypoint specified in 03-operator.yaml as `console-operator`
18-
CMD ["/usr/bin/console-operator"]
22+
# CMD ["/usr/bin/console", "operator", "--kubeconfig", "path/to/config", "--config", "./install/config.yaml", "--v", "4"]
23+
CMD ["/usr/bin/console", "operator", "--v", "4"]
24+
25+

Dockerfile.osx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM openshift/origin-release:golang-1.10 as builder
2+
WORKDIR /go/src/github.com/openshift/console-operator
3+
COPY . .
4+
RUN make build
5+
6+
FROM centos:7
7+
RUN useradd console-operator
8+
USER console-operator
9+
COPY --from=builder /go/src/github.com/openshift/console-operator/_output/local/bin/darwin/amd64/console /usr/bin
10+
11+
# these manifests are necessary for the installer
12+
COPY manifests /manifests/
13+
14+
LABEL io.k8s.display-name="OpenShift console-operator" \
15+
io.k8s.description="This is a component of OpenShift Container Platform and manages the lifecycle of the web console." \
16+
io.openshift.tags="openshift" \
17+
maintainer="Benjamin A. Petersen <[email protected]>"
18+
19+
LABEL io.openshift.release.operator true
20+
21+
# entrypoint specified in 03-operator.yaml as `console-operator`
22+
# CMD ["/usr/bin/console", "operator", "--kubeconfig", "path/to/config", "--config", "./install/config.yaml", "--v", "4"]
23+
CMD ["/usr/bin/console", "operator", "--v", "4"]
24+
25+
26+
27+

0 commit comments

Comments
 (0)