Skip to content

Commit

Permalink
Run e2e-olm on config changes
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Jun 17, 2024
1 parent a8b757c commit c0d1314
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/e2e-olm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: e2e-olm

on:
workflow_dispatch:
push:
branches: [ '*' ]
paths:
- 'config/olm/**'
- 'test/olm/**'
- '.github/workflows/e2e-olm.yml'

permissions:
contents: read
Expand Down Expand Up @@ -38,5 +44,6 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run OLM tests
run: |
make test-olm
run: make test-olm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ spec:
For more information about the CNCF Flux project, please see
the [Flux architecture overview](https://fluxcd.control-plane.io/guides/flux-architecture/).
The [Flux Operator](https://github.com/controlplaneio-fluxcd) provides a
The [Flux Operator](https://github.com/controlplaneio-fluxcd/flux-operator) provides a
declarative API for the installation, configuration and upgrade of CNCF Flux
and the ControlPlane [enterprise distribution](https://fluxcd.control-plane.io/).
The operator allows the configuration of Flux multi-tenancy lockdown, vertical scaling, persistent storage,
and the syncing of the cluster state from Git repositories, OCI artifacts and S3-compatible storage.
### OpenShift Support
Expand Down
6 changes: 3 additions & 3 deletions hack/build-olm-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ docker run --rm --privileged \
opm:latest index add \
--container-tool docker \
--bundles ${OCI_IMAGE}-catalog:bundle-"${VERSION}" \
--tag ${OCI_IMAGE}-index:${VERSION}
--tag ${OCI_IMAGE}-index:v${VERSION}

# push index image
docker push ${OCI_IMAGE}-index:${VERSION}
docker push ${OCI_IMAGE}-index:v${VERSION}

info "OLM catalog pushed to ${OCI_IMAGE}-catalog:bundle-${VERSION}"
info "OLM index pushed to ${OCI_IMAGE}-index:${VERSION}"
info "OLM index pushed to ${OCI_IMAGE}-index:v${VERSION}"
2 changes: 1 addition & 1 deletion test/olm/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var _ = BeforeSuite(func() {
}

img = fmt.Sprintf("%s-catalog:bundle-%s", olmArtifactPrefix, version)
opm := fmt.Sprintf("%s-index:%s", olmArtifactPrefix, version)
opm := fmt.Sprintf("%s-index:v%s", olmArtifactPrefix, version)

By("loading the flux-operator bundle image on Kind")
err := utils.LoadImageToKindClusterWithName(img, "/test/olm")
Expand Down

0 comments on commit c0d1314

Please sign in to comment.