Skip to content

Commit

Permalink
Makefile: default CHANNELS
Browse files Browse the repository at this point in the history
doc/development.md: channels doc on custom bundle section

Signed-off-by: Eguzki Astiz Lezaun <[email protected]>
  • Loading branch information
eguzki committed Sep 24, 2024
1 parent c54e450 commit ec4c1c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ VERSION ?= 0.0.0
# To re-generate a bundle for other specific channels without changing the standard setup, you can:
# - use the CHANNELS as arg of the bundle target (e.g make bundle CHANNELS=candidate,fast,stable)
# - use environment variables to overwrite this value (e.g export CHANNELS="candidate,fast,stable")
ifneq ($(origin CHANNELS), undefined)
CHANNELS ?= alpha
BUNDLE_CHANNELS := --channels=$(CHANNELS)
endif

# DEFAULT_CHANNEL defines the default channel used in the bundle.
# Add a new line here if you would like to change its default config. (E.g DEFAULT_CHANNEL = "stable")
Expand Down
6 changes: 5 additions & 1 deletion doc/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,17 @@ The `make bundle` target accepts the following variables:
| `IMG` | Operator image URL | `quay.io/kuadrant/limitador-operator:latest` | |
| `VERSION` | Bundle version | `0.0.0` | |
| `RELATED_IMAGE_LIMITADOR` | Limitador bundle URL | `quay.io/kuadrant/limitador:latest` | `LIMITADOR_VERSION` var could be use to build this URL providing the tag |
| `CHANNELS` | Bundle channels used in the bundle, comma separated | `alpha` |
| `DEFAULT_CHANNEL` | The default channel used in the bundle | `alpha` |

* Build the bundle manifests

```bash
make bundle [IMG=quay.io/kuadrant/limitador-operator:latest] \
[VERSION=0.0.0] \
[RELATED_IMAGE_LIMITADOR=quay.io/kuadrant/limitador:latest]
[RELATED_IMAGE_LIMITADOR=quay.io/kuadrant/limitador:latest] \
[CHANNELS=alpha] \
[DEFAULT_CHANNEL=alpha]
```

* Build the bundle image from the manifests
Expand Down

0 comments on commit ec4c1c7

Please sign in to comment.