forked from rook/rook
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-4.19' into sync_ds--master
- Loading branch information
Showing
48 changed files
with
18,051 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
"core", | ||
"cosi", | ||
"csi", | ||
"csv", | ||
"doc", | ||
"docs", | ||
"exporter", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Push Image Build Downstream | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- release-* | ||
|
||
defaults: | ||
run: | ||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell | ||
shell: bash --noprofile --norc -eo pipefail -x {0} | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
push-image-to-container-registry: | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'red-hat-storage/rook' | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.21" | ||
|
||
# docker/setup-qemu action installs QEMU static binaries, which are used to run builders for architectures other than the host. | ||
- name: set up QEMU | ||
uses: docker/setup-qemu-action@master | ||
with: | ||
platforms: all | ||
|
||
- name: log in to container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: quay.io | ||
username: ${{ secrets.QUAY_OCS_DEV_ROBOT_USER }} | ||
password: ${{ secrets.QUAY_OCS_DEV_ROBOT_PASSWORD }} | ||
|
||
# creating custom env var | ||
- name: set env | ||
run: | | ||
echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV | ||
echo "GITHUB_SHA=${GITHUB_SHA}" >> $GITHUB_ENV | ||
- name: build and release | ||
env: | ||
BRANCH_NAME: ${{ env.BRANCH_NAME }} | ||
GITHUB_SHA: $ {{ env.GITHUB_SHA }} | ||
run: | | ||
tests/scripts/build-release-downstream.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM scratch | ||
|
||
# Core bundle labels. | ||
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1 | ||
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/ | ||
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/ | ||
LABEL operators.operatorframework.io.bundle.package.v1=rook-ceph-operator | ||
LABEL operators.operatorframework.io.bundle.channels.v1=alpha | ||
LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha | ||
|
||
# Copy files to locations specified by labels. | ||
COPY build/csv/ceph /manifests/ | ||
COPY build/bundle/annotations.yaml /metadata/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
annotations: | ||
operators.operatorframework.io.bundle.mediatype.v1: registry+v1 | ||
operators.operatorframework.io.bundle.manifests.v1: manifests/ | ||
operators.operatorframework.io.bundle.metadata.v1: metadata/ | ||
operators.operatorframework.io.bundle.package.v1: rook-ceph-operator | ||
operators.operatorframework.io.bundle.channels.v1: alpha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
source "build/common.sh" | ||
|
||
# Use the available container management tool | ||
if [ -z "$DOCKERCMD" ]; then | ||
DOCKERCMD=$(command -v docker || echo "") | ||
fi | ||
if [ -z "$DOCKERCMD" ]; then | ||
DOCKERCMD=$(command -v podman || echo "") | ||
fi | ||
|
||
if [ -z "$DOCKERCMD" ]; then | ||
echo -e '\033[1;31m' "podman or docker not found on system" '\033[0m' | ||
exit 1 | ||
fi | ||
|
||
${DOCKERCMD} build --platform="${GOOS}"/"${GOARCH}" --no-cache -t "$BUNDLE_IMAGE" -f Dockerfile.bundle . | ||
echo | ||
echo "Run '${DOCKERCMD} push ${BUNDLE_IMAGE}' to push operator bundle to image registry." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
script_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P) | ||
|
||
list_of_crd_in_crd_yaml=$(grep -oE '[^ ]*\.ceph\.rook\.io' "${script_root}/deploy/examples/crds.yaml" | sort) | ||
list_of_csv_in_csv_yaml=$(grep -oE '[^ ]*\.ceph\.rook\.io' "${script_root}/deploy/olm/assemble/metadata-common.yaml" | sort) | ||
|
||
if [ "$list_of_crd_in_crd_yaml" != "$list_of_csv_in_csv_yaml" ]; then | ||
echo "CRD list in crds.yaml file and metadata-common.yaml is different. Make sure to add crd in metadata-common.yaml." | ||
echo -e "crd file list in crd.yaml:\n$list_of_crd_in_crd_yaml" | ||
echo -e "crd file list in csv.yaml:\n$list_of_csv_in_csv_yaml" | ||
fi |
Oops, something went wrong.