Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #66 from flanksource/moshloop
Browse files Browse the repository at this point in the history
fix: update rbac for namespace watch
  • Loading branch information
moshloop committed May 2, 2021
2 parents 6dda280 + f8c2546 commit c819ab5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions config/deploy/base.yml
Expand Up @@ -108,6 +108,7 @@ rules:
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down
7 changes: 4 additions & 3 deletions config/deploy/manifests.yaml
Expand Up @@ -9,7 +9,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
cert-manager.io/inject-ca-from: platform-system/platform-serving-cert
controller-gen.kubebuilder.io/version: v0.5.0
creationTimestamp: null
name: clusterresourcequotas.platform.flanksource.com
Expand Down Expand Up @@ -189,7 +189,7 @@ apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
annotations:
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
cert-manager.io/inject-ca-from: platform-system/platform-serving-cert
creationTimestamp: null
name: platform-mutating-webhook-configuration
namespace: platform-system
Expand Down Expand Up @@ -241,7 +241,7 @@ apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
annotations:
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
cert-manager.io/inject-ca-from: platform-system/platform-serving-cert
creationTimestamp: null
name: platform-validating-webhook-configuration
namespace: platform-system
Expand Down Expand Up @@ -397,6 +397,7 @@ rules:
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down
1 change: 1 addition & 0 deletions config/operator/rbac/role.yaml
Expand Up @@ -13,6 +13,7 @@ rules:
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/pod/pod_reconciler.go
Expand Up @@ -62,7 +62,7 @@ func addPodReconciler(mgr manager.Manager, r reconcile.Reconciler) error {
}

// +kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;list;create;update
// +kubebuilder:rbac:groups="",resources=namespaces,verbs=get;list
// +kubebuilder:rbac:groups="",resources=namespaces,verbs=get;list;watch
// +kubebuilder:rbac:groups="",resources=pods,verbs=get;list;update;watch

func (r *PodReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error) {
Expand Down

0 comments on commit c819ab5

Please sign in to comment.