Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade OLM from v0.16.1 to 0.17.0 #526

Merged
merged 1 commit into from
Apr 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 10 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,16 +264,16 @@ $ kubectl delete -f deploy/crd/vulnerabilityreports.crd.yaml \
To install [Operator Lifecycle Manager][olm] (OLM) run:

```
$ kubectl apply -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.16.1/crds.yaml
$ kubectl apply -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.16.1/olm.yaml
$ kubectl apply -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.17.0/crds.yaml
$ kubectl apply -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.17.0/olm.yaml
```

or

```
$ curl -L https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.16.1/install.sh -o install.sh
$ curl -L https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.17.0/install.sh -o install.sh
$ chmod +x install.sh
$ ./install.sh 0.16.1
$ ./install.sh v0.17.0
```

### Build the Catalog Image
Expand Down Expand Up @@ -311,8 +311,8 @@ Place the `starboard-catalog.Dockerfile` in the top-level directory of your clon
it to your Kubernetes cluster:

```
$ docker build -f starboard-catalog.Dockerfile -t starboard-catalog:dev .
$ kind load docker-image starboard-catalog:dev
$ docker build -f starboard-catalog.Dockerfile -t docker.io/<your account>/starboard-catalog:dev .
$ docker push docker.io/<your account>/starboard-catalog:dev
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In OLM v0.17.0 the catalog source pods use imagePullPolicy: Always instead of IfNotPresent. Hence, we must push the catalog image to pubic registry :(

```

### Register the Catalog Image
Expand All @@ -331,7 +331,7 @@ spec:
publisher: Starboard Maintainers
displayName: Starboard Catalog
sourceType: grpc
image: starboard-catalog:dev
image: docker.io/<your account>/starboard-catalog:dev
EOF
```

Expand All @@ -350,8 +350,8 @@ starboard-operator Starboard Catalog 97s
```

If the Starboard Operator appears in this list, the catalog was successfully parsed and it is now available to install.
Follow the installation instructions for [OLM](https://aquasecurity.github.io/starboard/operator/installation/olm/).
Make sure that the Subscription's `spec.source` property refers to the `starboard-catalog` source instead of `operatorhubio-catalog`.
Follow the installation instructions for [OLM][starboard-install-olm]. Make sure that the Subscription's `spec.source`
property refers to the `starboard-catalog` source instead of `operatorhubio-catalog`.

You can find more details about testing Operators with Operator Framework [here][olm-testing-operators].

Expand All @@ -364,4 +364,5 @@ You can find more details about testing Operators with Operator Framework [here]
[community-operators]: https://github.com/operator-framework/community-operators
[olm-operator-groups]: https://github.com/operator-framework/operator-lifecycle-manager/blob/master/doc/design/operatorgroups.md
[k8s-sample-controller]: https://github.com/kubernetes/sample-controller
[starboard-install-olm]: https://aquasecurity.github.io/starboard/latest/operator/installation/olm
[olm-testing-operators]: https://github.com/operator-framework/community-operators/blob/master/docs/testing-operators.md
4 changes: 2 additions & 2 deletions docs/operator/installation/olm.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ configure it to watch the `default` namespaces:

1. Install the Operator Lifecycle Manager:
```
curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.16.1/install.sh | bash -s 0.16.1
curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.17.0/install.sh | bash -s v0.17.0
```
2. Create the namespace to install the operator in:
```
Expand Down Expand Up @@ -74,7 +74,7 @@ configure it to watch the `default` namespaces:
6. After install, watch the operator come up using the following command:
```console
$ kubectl get clusterserviceversions -n starboard-operator
NAME DISPLAY VERSION REPLACES PHASE
NAME DISPLAY VERSION REPLACES PHASE
starboard-operator.{{ var.tag }} Starboard Operator {{ var.build.version }} starboard-operator.{{ var.tag_prev }} Succeeded
```
If the above command succeeds and the ClusterServiceVersion has transitioned from `Installing` to `Succeeded` phase
Expand Down