Skip to content

Commit

Permalink
[openshift] optionally load init bundles from ConfigMap (#222)
Browse files Browse the repository at this point in the history
* optionally mount INIT_BUNDLES from ConfigMap

* fix docs
  • Loading branch information
maorfr authored Aug 12, 2024
1 parent 907391e commit 82c5f09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,14 @@ make run

### Preload bundles

Especially during PR checks, a `qontract-server` with multiple bundles preloaded simplifies test infra setup. For this the env variable `INIT_BUNDLE` to specify a comma separated list of bundle references of the following form
Especially during PR checks, a `qontract-server` with multiple bundles preloaded simplifies test infra setup. For this the env variable `INIT_BUNDLES` to specify a comma separated list of bundle references of the following form

- fs://path/to/bundle
- s3://bundle-key

The s3 flavour relies on the `AWS_*` env variables to specify the bucket and configure authentication. the specified `bundle-key` is used as `AWS_S3_KEY`.

The bundles listed in `INIT_BUNDLE` are added to the `qontract-server` in the order they are specified. This means that the bundle listed last is also the one returned by the `/sha256` endpoint.
The bundles listed in `INIT_BUNDLES` are added to the `qontract-server` in the order they are specified. This means that the bundle listed last is also the one returned by the `/sha256` endpoint.

## Style

Expand Down
6 changes: 6 additions & 0 deletions openshift/app-interface.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@ objects:
configMapKeyRef:
key: load_method
name: app-interface
- name: INIT_BUNDLES
valueFrom:
configMapKeyRef:
key: init_bundles
name: app-interface
optional: true
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit 82c5f09

Please sign in to comment.