Skip to content

Commit 70cddf6

Browse files
committed
feat: add ReferenceGrant RBAC permissions and enhance Docker workflow
1 parent 4ee2596 commit 70cddf6

File tree

5 files changed

+20
-63
lines changed

5 files changed

+20
-63
lines changed

.github/workflows/push-docker.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: push on dockerhub
2-
on:
2+
on:
33
push:
44
tags:
5-
- '*'
6-
5+
- '*'
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
type: string
10+
description: "Image tag manually"
711
jobs:
812
docker:
913
runs-on: buildjet-2vcpu-ubuntu-2204
@@ -33,8 +37,8 @@ jobs:
3337
-
3438
name: Build and push multi-arch image
3539
env:
36-
TAG: ${{ github.ref_name }}
37-
IMAGE_TAG: ${{ github.ref_name }}
40+
TAG: ${{ github.event.inputs || github.ref_name }}
41+
IMAGE_TAG: ${{ github.event.inputs || github.ref_name }}
3842
run: |
3943
echo "building multi-arch images with tag: $TAG"
4044
make build-push-multi-arch-image

config/rbac/gatewayproxy_editor_role.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

config/rbac/gatewayproxy_viewer_role.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

config/rbac/role.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ rules:
9191
- gatewayclasses/status
9292
- gateways/status
9393
- httproutes/status
94+
- referencegrants/status
9495
verbs:
9596
- get
9697
- update
@@ -102,6 +103,14 @@ rules:
102103
- get
103104
- list
104105
- watch
106+
- apiGroups:
107+
- gateway.networking.k8s.io
108+
resources:
109+
- referencegrants
110+
verbs:
111+
- list
112+
- update
113+
- watch
105114
- apiGroups:
106115
- networking.k8s.io
107116
resources:

internal/manager/controllers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ import (
6666
// +kubebuilder:rbac:groups=gateway.networking.k8s.io,resources=gateways/status,verbs=get;update
6767
// +kubebuilder:rbac:groups=gateway.networking.k8s.io,resources=httproutes,verbs=get;list;watch
6868
// +kubebuilder:rbac:groups=gateway.networking.k8s.io,resources=httproutes/status,verbs=get;update
69+
// +kubebuilder:rbac:groups=gateway.networking.k8s.io,resources=referencegrants,verbs=list;watch;update
70+
// +kubebuilder:rbac:groups=gateway.networking.k8s.io,resources=referencegrants/status,verbs=get;update
6971

7072
// Networking
7173
// +kubebuilder:rbac:groups=networking.k8s.io,resources=ingresses,verbs=get;list;watch;update

0 commit comments

Comments
 (0)