Skip to content

Commit 9143179

Browse files
EladDolevaleoli
authored andcommitted
add missing ClusterRole to liqo-webhook
Signed-off-by: Elad Dolev <[email protected]>
1 parent 8d4fd1f commit 9143179

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

deployments/liqo/files/liqo-webhook-ClusterRole.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ rules:
1717
- get
1818
- list
1919
- watch
20+
- apiGroups:
21+
- coordination.k8s.io
22+
resources:
23+
- leases
24+
verbs:
25+
- create
26+
- delete
27+
- get
28+
- list
29+
- patch
30+
- update
31+
- watch
2032
- apiGroups:
2133
- networking.liqo.io
2234
resources:

pkg/webhooks/utils/permissions.go

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2019-2024 The Liqo Authors
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// package utils contains the utility functions used by the webhooks and permissions.
16+
package utils
17+
18+
// +kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;list;watch;create;update;patch;delete

0 commit comments

Comments
 (0)