Skip to content

Commit

Permalink
fix permisions for service resources on the liqo-gateway component
Browse files Browse the repository at this point in the history
  • Loading branch information
alacuku committed Jul 20, 2021
1 parent ffcb9ad commit 1bd0343
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions deployments/liqo/files/liqo-gateway-Role.yaml
Expand Up @@ -35,3 +35,4 @@ rules:
verbs:
- list
- update
- watch
3 changes: 3 additions & 0 deletions internal/liqonet/tunnel-operator/labelerOperator.go
Expand Up @@ -14,6 +14,9 @@ import (
liqoutils "github.com/liqotech/liqo/pkg/liqonet/utils"
)

// +kubebuilder:rbac:groups=core,namespace="do-not-care",resources=pods,verbs=get;list;watch;update
// +kubebuilder:rbac:groups=core,namespace="do-not-care",resources=services,verbs=list;watch;update

const (
// These labels are the ones set during the deployment of liqo using the helm chart.
// Any change to those labels on the helm chart has also to be reflected here.
Expand Down
2 changes: 0 additions & 2 deletions internal/liqonet/tunnel-operator/tunnel-operator.go
Expand Up @@ -81,8 +81,6 @@ type TunnelController struct {
// role
// +kubebuilder:rbac:groups=coordination.k8s.io,namespace="do-not-care",resources=leases,verbs=get;create;update
// +kubebuilder:rbac:groups=core,namespace="do-not-care",resources=secrets,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,namespace="do-not-care",resources=pods,verbs=get;list;watch;update
// +kubebuilder:rbac:groups=core,namespace="do-not-care",resources=services,verbs=list;update

// NewTunnelController instantiates and initializes the tunnel controller.
func NewTunnelController(podIP, namespace string, er record.EventRecorder,
Expand Down

0 comments on commit 1bd0343

Please sign in to comment.