Skip to content

Commit 007f67e

Browse files
authored
fix: proxy build release, tag major (#155)
1 parent 4f16d61 commit 007f67e

File tree

3 files changed

+9
-21
lines changed

3 files changed

+9
-21
lines changed

.goreleaser.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ builds:
99
- CGO_ENABLED=0
1010
- id: proxy
1111
binary: proxy
12+
main: ./proxy
1213
goos:
1314
- linux
1415
env:
@@ -117,6 +118,10 @@ docker_manifests:
117118
image_templates:
118119
- ghcr.io/doodlescheduling/{{ .ProjectName }}:v{{ .Version }}-amd64
119120
- ghcr.io/doodlescheduling/{{ .ProjectName }}:v{{ .Version }}-arm64v8
121+
- name_template: ghcr.io/doodlescheduling/{{ .ProjectName }}/proxy:v{{ .Major }}
122+
image_templates:
123+
- ghcr.io/doodlescheduling/{{ .ProjectName }}/proxy:v{{ .Version }}-amd64
124+
- ghcr.io/doodlescheduling/{{ .ProjectName }}/proxy:v{{ .Version }}-arm64v8
120125
- name_template: ghcr.io/doodlescheduling/{{ .ProjectName }}/proxy:v{{ .Version }}
121126
image_templates:
122127
- ghcr.io/doodlescheduling/{{ .ProjectName }}/proxy:v{{ .Version }}-amd64

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ It is recommended to configure all realms to run with the proxy.
307307

308308
```yaml
309309
apiVersion: rbac.authorization.k8s.io/v1
310-
kind: ClusterRole
310+
kind: Role
311311
metadata:
312312
name: keycloakrealm-proxy
313313
rules:
@@ -331,8 +331,8 @@ metadata:
331331
name: keycloakrealm-default
332332
roleRef:
333333
apiGroup: rbac.authorization.k8s.io
334-
kind: ClusterRole
335-
name: keycloakrealm-default
334+
kind: Role
335+
name: keycloakrealm-proxy
336336
subjects:
337337
- kind: ServiceAccount
338338
name: keycloakrealm-default
@@ -372,14 +372,11 @@ spec:
372372
fieldPath: metadata.namespace
373373
- name: PROXY_ADDRESS
374374
value: 127.0.0.1:8080
375-
image: ghcr.io/doodlescheduling/keycloak-controller/proxy:v2.0.0
375+
image: ghcr.io/doodlescheduling/keycloak-controller/proxy:v2
376376
name: proxy
377377
serviceAccount: keycloakrealm-default
378378
```
379379

380-
**Note**: The proxy needs read access to keycloakrealms as well as patch access to the /status subresource.
381-
In the example above there is a ClusterRole called keycloakrealm-proxy granting just that. This ClusterRole also is bundled in the helm chart, you may use {releaseName}-reconcile-proxy for the RoleBinding.
382-
383380
## Installation
384381

385382
### Helm

chart/keycloak-controller/templates/clusterrole.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
{{- if .Values.clusterRBAC.enabled -}}
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
4-
metadata:
5-
name: {{ template "keycloak-controller.fullname" . }}-reconcile-proxy
6-
rules:
7-
- apiGroups: ["keycloak.infra.doodle.com"]
8-
resources:
9-
- keycloakrealms
10-
verbs: ["get"]
11-
- apiGroups: ["keycloak.infra.doodle.com"]
12-
resources:
13-
- keycloakrealms/status
14-
verbs: ["get", "update", "patch"]
15-
---
16-
apiVersion: rbac.authorization.k8s.io/v1
17-
kind: ClusterRole
184
metadata:
195
name: {{ template "keycloak-controller.fullname" . }}
206
labels:

0 commit comments

Comments
 (0)