Skip to content

Commit

Permalink
updated changes for supporting s390x & ppc64le (#190)
Browse files Browse the repository at this point in the history
* updated changes for multi-arch

* Updated order

* Update README.md

* Update README.md
  • Loading branch information
modassarrana89 committed Jul 11, 2024
1 parent 922b5d8 commit debbb9b
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 12 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ jobs:
else
echo "VERSION=${{ github.sha }}" >> $GITHUB_ENV
fi
- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Install yq dependency
run: make yq
- name: Set default authorino image
Expand All @@ -64,7 +62,7 @@ jobs:
with:
image: ${{ env.OPERATOR_NAME }}
tags: ${{ env.IMG_TAGS }}
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le
build-args: |
VERSION=${{ env.VERSION }}
DEFAULT_AUTHORINO_IMAGE=${{ env.DEFAULT_AUTHORINO_IMAGE }}
Expand Down Expand Up @@ -116,10 +114,8 @@ jobs:
else
echo "VERSION=${{ github.sha }}" >> $GITHUB_ENV
fi
- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Run make bundle (main)
if: ${{ github.ref_name == env.MAIN_BRANCH_NAME }}
run: make bundle REGISTRY=${{ env.IMG_REGISTRY_HOST }} ORG=${{ env.IMG_REGISTRY_ORG }} IMAGE_TAG=${{ github.sha }}
Expand All @@ -140,7 +136,7 @@ jobs:
with:
image: ${{ env.OPERATOR_NAME }}-bundle
tags: ${{ env.IMG_TAGS }}
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le
build-args: |
version=${{ env.VERSION }}
containerfiles: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ ifeq (,$(shell which opm 2>/dev/null))
set -e ;\
mkdir -p $(dir $(OPM)) ;\
OS=$(shell go env GOOS) && ARCH=$(shell go env GOARCH) && \
curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.15.1/$${OS}-$${ARCH}-opm ;\
curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.20.0/$${OS}-$${ARCH}-opm ;\
chmod +x $(OPM) ;\
}
else
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ spec:
EOF
```
## Deploy authorino operator using operator-sdk
1. Install operator-sdk bin
```sh
make operator-sdk
```
2. Run operator-sdk bundle command
```
./bin/operator-sdk run bundle quay.io/kuadrant/authorino-operator-bundle:latest
```
Note: For s390x & ppc64le , use operator-sdk to install authorino-operator
## Requesting an Authorino instance
Once the Operator is up and running, you can request instances of Authorino by creating `Authorino` CRs. E.g.:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,16 @@ metadata:
capabilities: Basic Install
categories: Integration & Delivery
containerImage: quay.io/kuadrant/authorino-operator:latest
createdAt: "2024-07-01T08:30:34Z"
createdAt: "2024-07-11T09:10:47Z"
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/Kuadrant/authorino-operator
support: kuadrant
labels:
operatorframework.io/arch.amd64: supported
operatorframework.io/arch.ppc64le: supported
operatorframework.io/arch.s390x: supported
operatorframework.io/os.linux: supported
name: authorino-operator.v0.0.0
namespace: placeholder
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ metadata:
support: kuadrant
name: authorino-operator.v${BUNDLE_VERSION}
namespace: placeholder
labels:
operatorframework.io/arch.amd64: supported
operatorframework.io/arch.s390x: supported
operatorframework.io/arch.ppc64le: supported
operatorframework.io/os.linux: supported
spec:
apiservicedefinitions: {}
customresourcedefinitions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ metadata:
support: kuadrant
name: authorino-operator.v0.0.0
namespace: placeholder
labels:
operatorframework.io/arch.amd64: supported
operatorframework.io/arch.s390x: supported
operatorframework.io/arch.ppc64le: supported
operatorframework.io/os.linux: supported
spec:
apiservicedefinitions: {}
customresourcedefinitions:
Expand Down

0 comments on commit debbb9b

Please sign in to comment.