mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-03-04 10:40:30 +00:00
Implementing Capsule Tenant ownership predicate for Namespace Controller (#13)
* Implementing Capsule OwnerRef predicate * Sorting imports
This commit is contained in:
committed by
GitHub
parent
66969e334c
commit
fef3607ecf
@@ -15,7 +15,6 @@ package network_policies
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/clastix/capsule/pkg/webhook/utils"
|
||||
"net/http"
|
||||
|
||||
"k8s.io/api/admission/v1beta1"
|
||||
@@ -27,6 +26,7 @@ import (
|
||||
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"
|
||||
|
||||
"github.com/clastix/capsule/pkg/apis/capsule/v1alpha1"
|
||||
"github.com/clastix/capsule/pkg/webhook/utils"
|
||||
)
|
||||
|
||||
func Add(mgr manager.Manager) error {
|
||||
|
||||
@@ -16,7 +16,6 @@ package owner_reference
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"github.com/clastix/capsule/pkg/webhook/utils"
|
||||
"net/http"
|
||||
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
@@ -30,6 +29,7 @@ import (
|
||||
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"
|
||||
|
||||
"github.com/clastix/capsule/pkg/apis/capsule/v1alpha1"
|
||||
"github.com/clastix/capsule/pkg/webhook/utils"
|
||||
)
|
||||
|
||||
func Add(mgr manager.Manager) error {
|
||||
|
||||
@@ -15,6 +15,7 @@ package webhook
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
|
||||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user