Skip to content

Commit a6242f0

Browse files
committed
build: push the bundle to Quay.io for easy installation
With the bundle it is easy to install the controller and its required dependencies (RBACs, CRDs). Signed-off-by: Niels de Vos <ndevos@redhat.com>
1 parent 1d0a14f commit a6242f0

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.github/workflows/build-push.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,32 @@ on:
77
- main
88

99
jobs:
10+
push_bundle:
11+
name: Push bundle container image to quay.io
12+
if: github.repository == 'csi-addons/kubernetes-csi-addons'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out the repo
16+
uses: actions/checkout@v2
17+
18+
- name: Generate the bundle contents
19+
run: make bundle
20+
21+
- name: Login to quay.io
22+
uses: docker/login-action@v1
23+
with:
24+
registry: quay.io
25+
username: ${{ secrets.QUAY_USERNAME }}
26+
password: ${{ secrets.QUAY_PASSWORD }}
27+
28+
- name: Build and push bundle container image
29+
uses: docker/build-push-action@v2
30+
with:
31+
context: .
32+
file: bundle.Dockerfile
33+
push: true
34+
tags: quay.io/csiaddons/k8s-bundle:latest
35+
1036
push_controller:
1137
name: Push controller container image to quay.io
1238
if: github.repository == 'csi-addons/kubernetes-csi-addons'

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,21 @@ By listing the `CSIAddonsNode` CRs, the CSI-Addons Controller knows how to
5757
connect to the side-cars. By checking the supported capabilities of the
5858
side-cars, it can decide where to execute operations that the user requested.
5959

60-
### Installation
60+
### Installation by operator
61+
62+
A CSI-Addons bundle can be used to install the CSI-Addons Controller with the
63+
following steps:
64+
65+
```console
66+
$ kubectl create namespace storage-csi-addons
67+
$ make operator-sdk
68+
$ ./bin/operator-sdk run bundle -n storage-csi-addons quay.io/csiaddons/k8s-bundle:latest
69+
```
70+
71+
In the future, the bundle is expected to become available in the
72+
[OperatorHub][operatorhub].
73+
74+
### Installation with `kustomize`
6175

6276
This project uses `kustomize` and a `Makefile` for deploying. By running the
6377
command
@@ -100,3 +114,4 @@ replicaset.apps/csi-addons-controller-manager-687d47b8c7 1 1 1
100114

101115
[csi_addons]: https://github.com/csi-addons/spec/
102116
[csi]: https://kubernetes-csi.github.io/docs/
117+
[operatorhub]: https://operatorhub.io/

0 commit comments

Comments
 (0)