Skip to content

Commit 01d409f

Browse files
authored
Build arm64 images and setup cluster role aggregate labels (#36)
1 parent 202d33e commit 01d409f

8 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
id: docker_build
4141
uses: docker/build-push-action@v7
4242
with:
43+
platforms: linux/amd64,linux/arm64
4344
context: .
4445
file: ./Dockerfile
4546
push: true

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ docker-push: ## Push docker image with the manager.
189189
# - have enabled BuildKit. More info: https://docs.docker.com/develop/develop-images/build_enhancements/
190190
# - be able to push the image to your registry (i.e. if you do not set a valid value via IMG=<myregistry/image:<tag>> then the export will fail)
191191
# To adequately provide solutions that are compatible with multiple platforms, you should consider using this option.
192-
PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
192+
PLATFORMS ?= linux/arm64,linux/amd64
193193
.PHONY: docker-buildx
194194
docker-buildx: ## Build and push docker image for the manager for cross-platform support
195195
# copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile

charts/keycloak-cr-operator/templates/rbac/keycloakclient-admin-role.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
55
labels:
6+
rbac.authorization.k8s.io/aggregate-to-admin: "true"
67
{{- include "keycloak-cr-operator.labels" . | nindent 4 }}
78
name: "keycloakclient-admin-role"
89
rules:

charts/keycloak-cr-operator/templates/rbac/keycloakclient-editor-role.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
55
labels:
6+
rbac.authorization.k8s.io/aggregate-to-edit: "true"
67
{{- include "keycloak-cr-operator.labels" . | nindent 4 }}
78
name: "keycloakclient-editor-role"
89
rules:

charts/keycloak-cr-operator/templates/rbac/keycloakclient-viewer-role.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
55
labels:
6+
rbac.authorization.k8s.io/aggregate-to-view: "true"
67
{{- include "keycloak-cr-operator.labels" . | nindent 4 }}
78
name: "keycloakclient-viewer-role"
89
rules:

config/rbac/keycloakclient_admin_role.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ apiVersion: rbac.authorization.k8s.io/v1
99
kind: ClusterRole
1010
metadata:
1111
labels:
12+
rbac.authorization.k8s.io/aggregate-to-admin: "true"
1213
app.kubernetes.io/name: keycloak-cr-operator
1314
app.kubernetes.io/managed-by: kustomize
1415
name: keycloakclient-admin-role

config/rbac/keycloakclient_editor_role.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ apiVersion: rbac.authorization.k8s.io/v1
99
kind: ClusterRole
1010
metadata:
1111
labels:
12+
rbac.authorization.k8s.io/aggregate-to-edit: "true"
1213
app.kubernetes.io/name: keycloak-cr-operator
1314
app.kubernetes.io/managed-by: kustomize
1415
name: keycloakclient-editor-role

config/rbac/keycloakclient_viewer_role.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ apiVersion: rbac.authorization.k8s.io/v1
99
kind: ClusterRole
1010
metadata:
1111
labels:
12+
rbac.authorization.k8s.io/aggregate-to-view: "true"
1213
app.kubernetes.io/name: keycloak-cr-operator
1314
app.kubernetes.io/managed-by: kustomize
1415
name: keycloakclient-viewer-role

0 commit comments

Comments
 (0)