Skip to content

Commit

Permalink
build: push the bundle to Quay.io for easy installation
Browse files Browse the repository at this point in the history
With the bundle it is easy to install the controller and its required
dependencies (RBACs, CRDs).

Signed-off-by: Niels de Vos <[email protected]>
  • Loading branch information
nixpanic committed Jan 13, 2022
1 parent d43cc61 commit 9a2ceed
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,32 @@ on:
- main

jobs:
push_bundle:
name: Push bundle container image to quay.io
if: github.repository == 'csi-addons/kubernetes-csi-addons'
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Generate the bundle contents
run: make bundle

- name: Login to quay.io
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Build and push bundle container image
uses: docker/build-push-action@v2
with:
context: .
file: bundle.Dockerfile
push: true
tags: quay.io/csiaddons/k8s-bundle:latest

push_controller:
name: Push controller container image to quay.io
if: github.repository == 'csi-addons/kubernetes-csi-addons'
Expand Down
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,21 @@ By listing the `CSIAddonsNode` CRs, the CSI-Addons Controller knows how to
connect to the side-cars. By checking the supported capabilities of the
side-cars, it can decide where to execute operations that the user requested.

### Installation
### Installation by operator

A CSI-Addons bundle can be used to install the CSI-Addons Controller with the
following steps:

```console
$ kubectl create namespace storage-csi-addons
$ make operator-sdk
$ ./bin/operator-sdk run bundle -n storage-csi-addons quay.io/csiaddons/k8s-bundle:latest
```

In the future, the bundle is expected to become available in the
[OperatorHub][operatorhub].

### Installation with `kustomize`

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

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

0 comments on commit 9a2ceed

Please sign in to comment.