Skip to content

Commit e101a71

Browse files
committedOct 20, 2023
reorg: moving to neutral github organization
Signed-off-by: Dario Tranchitella <dario@tranchitella.eu>
1 parent ab4e7e7 commit e101a71

File tree

38 files changed

+136
-136
lines changed

38 files changed

+136
-136
lines changed
 

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/clastix/capsule-proxy
1+
module github.com/projectcapsule/capsule-proxy
22

33
go 1.19
44

‎internal/controllers/role_bindings.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"k8s.io/client-go/rest"
2020
"k8s.io/client-go/tools/cache"
2121

22-
"github.com/clastix/capsule-proxy/internal/request"
22+
"github.com/projectcapsule/capsule-proxy/internal/request"
2323
)
2424

2525
const subjectIndex = "subjectIndex"

‎internal/indexer/proxy_setting.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"sigs.k8s.io/controller-runtime/pkg/client"
1010

11-
"github.com/clastix/capsule-proxy/api/v1beta1"
11+
"github.com/projectcapsule/capsule-proxy/api/v1beta1"
1212
)
1313

1414
const (

‎internal/modules/ingressclass/get.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import (
1414
ctrl "sigs.k8s.io/controller-runtime"
1515
"sigs.k8s.io/controller-runtime/pkg/client"
1616

17-
"github.com/clastix/capsule-proxy/internal/modules"
18-
"github.com/clastix/capsule-proxy/internal/modules/errors"
19-
"github.com/clastix/capsule-proxy/internal/modules/utils"
20-
"github.com/clastix/capsule-proxy/internal/request"
21-
"github.com/clastix/capsule-proxy/internal/tenant"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules"
18+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
19+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
20+
"github.com/projectcapsule/capsule-proxy/internal/request"
21+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2222
)
2323

2424
type get struct {

‎internal/modules/ingressclass/list.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
ctrl "sigs.k8s.io/controller-runtime"
1313
"sigs.k8s.io/controller-runtime/pkg/client"
1414

15-
"github.com/clastix/capsule-proxy/internal/modules"
16-
"github.com/clastix/capsule-proxy/internal/modules/errors"
17-
"github.com/clastix/capsule-proxy/internal/modules/utils"
18-
"github.com/clastix/capsule-proxy/internal/request"
19-
"github.com/clastix/capsule-proxy/internal/tenant"
15+
"github.com/projectcapsule/capsule-proxy/internal/modules"
16+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
18+
"github.com/projectcapsule/capsule-proxy/internal/request"
19+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2020
)
2121

2222
type list struct {

‎internal/modules/ingressclass/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"k8s.io/apimachinery/pkg/selection"
1919
"sigs.k8s.io/controller-runtime/pkg/client"
2020

21-
"github.com/clastix/capsule-proxy/internal/tenant"
21+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2222
)
2323

2424
func getIngressClasses(request *http.Request, proxyTenants []*tenant.ProxyTenant) (allowed bool, exact []string, regex []*regexp.Regexp, requirements []labels.Requirement) {

‎internal/modules/lease/get.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import (
1313
ctrl "sigs.k8s.io/controller-runtime"
1414
"sigs.k8s.io/controller-runtime/pkg/client"
1515

16-
"github.com/clastix/capsule-proxy/internal/modules"
17-
"github.com/clastix/capsule-proxy/internal/request"
18-
"github.com/clastix/capsule-proxy/internal/tenant"
16+
"github.com/projectcapsule/capsule-proxy/internal/modules"
17+
"github.com/projectcapsule/capsule-proxy/internal/request"
18+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
1919
)
2020

2121
type get struct {

‎internal/modules/metric/get.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import (
1414
ctrl "sigs.k8s.io/controller-runtime"
1515
"sigs.k8s.io/controller-runtime/pkg/client"
1616

17-
"github.com/clastix/capsule-proxy/internal/modules"
18-
"github.com/clastix/capsule-proxy/internal/modules/errors"
19-
"github.com/clastix/capsule-proxy/internal/modules/utils"
20-
"github.com/clastix/capsule-proxy/internal/request"
21-
"github.com/clastix/capsule-proxy/internal/tenant"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules"
18+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
19+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
20+
"github.com/projectcapsule/capsule-proxy/internal/request"
21+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2222
)
2323

2424
type get struct {

‎internal/modules/metric/list.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
ctrl "sigs.k8s.io/controller-runtime"
1313
"sigs.k8s.io/controller-runtime/pkg/client"
1414

15-
"github.com/clastix/capsule-proxy/internal/modules"
16-
"github.com/clastix/capsule-proxy/internal/modules/errors"
17-
"github.com/clastix/capsule-proxy/internal/modules/utils"
18-
"github.com/clastix/capsule-proxy/internal/request"
19-
"github.com/clastix/capsule-proxy/internal/tenant"
15+
"github.com/projectcapsule/capsule-proxy/internal/modules"
16+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
18+
"github.com/projectcapsule/capsule-proxy/internal/request"
19+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2020
)
2121

2222
type list struct {

‎internal/modules/module.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package modules
66
import (
77
"k8s.io/apimachinery/pkg/labels"
88

9-
"github.com/clastix/capsule-proxy/internal/request"
10-
"github.com/clastix/capsule-proxy/internal/tenant"
9+
"github.com/projectcapsule/capsule-proxy/internal/request"
10+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
1111
)
1212

1313
type Module interface {

‎internal/modules/namespace/get.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ import (
1818
ctrl "sigs.k8s.io/controller-runtime"
1919
"sigs.k8s.io/controller-runtime/pkg/client"
2020

21-
"github.com/clastix/capsule-proxy/internal/controllers"
22-
"github.com/clastix/capsule-proxy/internal/modules"
23-
"github.com/clastix/capsule-proxy/internal/modules/errors"
24-
"github.com/clastix/capsule-proxy/internal/request"
25-
"github.com/clastix/capsule-proxy/internal/tenant"
21+
"github.com/projectcapsule/capsule-proxy/internal/controllers"
22+
"github.com/projectcapsule/capsule-proxy/internal/modules"
23+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
24+
"github.com/projectcapsule/capsule-proxy/internal/request"
25+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2626
)
2727

2828
type get struct {
@@ -71,7 +71,7 @@ func (l get) Handle(proxyTenants []*tenant.ProxyTenant, proxyRequest request.Req
7171
// Extracting the Tenant name from the owner reference:
7272
// in some scenarios Capsule could lag in reconciling the Tenant resources as performing the Namespace metadata
7373
// reconciliation, thus, these could be outdated if a user is issuing a creation and a get retrieval in a short
74-
// period of time (https://github.com/clastix/capsule-proxy/issues/266)
74+
// period of time (https://github.com/projectcapsule/capsule-proxy/issues/266)
7575
tntName := ns.GetOwnerReferences()[0].Name
7676

7777
tenants := sets.NewString()

‎internal/modules/namespace/list.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import (
1313
"k8s.io/apimachinery/pkg/selection"
1414
ctrl "sigs.k8s.io/controller-runtime"
1515

16-
"github.com/clastix/capsule-proxy/internal/controllers"
17-
"github.com/clastix/capsule-proxy/internal/modules"
18-
"github.com/clastix/capsule-proxy/internal/modules/errors"
19-
"github.com/clastix/capsule-proxy/internal/request"
20-
"github.com/clastix/capsule-proxy/internal/tenant"
16+
"github.com/projectcapsule/capsule-proxy/internal/controllers"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules"
18+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
19+
"github.com/projectcapsule/capsule-proxy/internal/request"
20+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2121
)
2222

2323
type list struct {

‎internal/modules/namespace/post.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88

99
"k8s.io/apimachinery/pkg/labels"
1010

11-
"github.com/clastix/capsule-proxy/internal/modules"
12-
"github.com/clastix/capsule-proxy/internal/request"
13-
"github.com/clastix/capsule-proxy/internal/tenant"
11+
"github.com/projectcapsule/capsule-proxy/internal/modules"
12+
"github.com/projectcapsule/capsule-proxy/internal/request"
13+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
1414
)
1515

1616
type post struct{}

‎internal/modules/node/get.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import (
1414
ctrl "sigs.k8s.io/controller-runtime"
1515
"sigs.k8s.io/controller-runtime/pkg/client"
1616

17-
"github.com/clastix/capsule-proxy/internal/modules"
18-
"github.com/clastix/capsule-proxy/internal/modules/errors"
19-
"github.com/clastix/capsule-proxy/internal/modules/utils"
20-
"github.com/clastix/capsule-proxy/internal/request"
21-
"github.com/clastix/capsule-proxy/internal/tenant"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules"
18+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
19+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
20+
"github.com/projectcapsule/capsule-proxy/internal/request"
21+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2222
)
2323

2424
type get struct {

‎internal/modules/node/list.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
ctrl "sigs.k8s.io/controller-runtime"
1313
"sigs.k8s.io/controller-runtime/pkg/client"
1414

15-
"github.com/clastix/capsule-proxy/internal/modules"
16-
"github.com/clastix/capsule-proxy/internal/modules/errors"
17-
"github.com/clastix/capsule-proxy/internal/modules/utils"
18-
"github.com/clastix/capsule-proxy/internal/request"
19-
"github.com/clastix/capsule-proxy/internal/tenant"
15+
"github.com/projectcapsule/capsule-proxy/internal/modules"
16+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
18+
"github.com/projectcapsule/capsule-proxy/internal/request"
19+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2020
)
2121

2222
type list struct {

‎internal/modules/persistentvolume/get.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import (
1313
ctrl "sigs.k8s.io/controller-runtime"
1414
"sigs.k8s.io/controller-runtime/pkg/client"
1515

16-
"github.com/clastix/capsule-proxy/internal/modules"
17-
"github.com/clastix/capsule-proxy/internal/modules/utils"
18-
"github.com/clastix/capsule-proxy/internal/request"
19-
"github.com/clastix/capsule-proxy/internal/tenant"
16+
"github.com/projectcapsule/capsule-proxy/internal/modules"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
18+
"github.com/projectcapsule/capsule-proxy/internal/request"
19+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2020
)
2121

2222
type get struct {

‎internal/modules/persistentvolume/list.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
ctrl "sigs.k8s.io/controller-runtime"
1313
"sigs.k8s.io/controller-runtime/pkg/client"
1414

15-
"github.com/clastix/capsule-proxy/internal/modules"
16-
"github.com/clastix/capsule-proxy/internal/modules/errors"
17-
"github.com/clastix/capsule-proxy/internal/modules/utils"
18-
"github.com/clastix/capsule-proxy/internal/request"
19-
"github.com/clastix/capsule-proxy/internal/tenant"
15+
"github.com/projectcapsule/capsule-proxy/internal/modules"
16+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
18+
"github.com/projectcapsule/capsule-proxy/internal/request"
19+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2020
)
2121

2222
type list struct {

‎internal/modules/persistentvolume/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"k8s.io/apimachinery/pkg/labels"
1111
"k8s.io/apimachinery/pkg/selection"
1212

13-
"github.com/clastix/capsule-proxy/internal/tenant"
13+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
1414
)
1515

1616
func getPersistentVolume(req *http.Request, proxyTenants []*tenant.ProxyTenant, label string) (allowed bool, requirements labels.Requirement) {

‎internal/modules/pod/get.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import (
1313
ctrl "sigs.k8s.io/controller-runtime"
1414
"sigs.k8s.io/controller-runtime/pkg/client"
1515

16-
"github.com/clastix/capsule-proxy/internal/modules"
17-
"github.com/clastix/capsule-proxy/internal/modules/errors"
18-
"github.com/clastix/capsule-proxy/internal/request"
19-
"github.com/clastix/capsule-proxy/internal/tenant"
16+
"github.com/projectcapsule/capsule-proxy/internal/modules"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
18+
"github.com/projectcapsule/capsule-proxy/internal/request"
19+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2020
)
2121

2222
// get is the module that is going to be used when a `kubectl describe node` is issued by a Tenant owner.

‎internal/modules/priorityclass/get.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import (
1414
ctrl "sigs.k8s.io/controller-runtime"
1515
"sigs.k8s.io/controller-runtime/pkg/client"
1616

17-
"github.com/clastix/capsule-proxy/internal/modules"
18-
"github.com/clastix/capsule-proxy/internal/modules/errors"
19-
"github.com/clastix/capsule-proxy/internal/modules/utils"
20-
"github.com/clastix/capsule-proxy/internal/request"
21-
"github.com/clastix/capsule-proxy/internal/tenant"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules"
18+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
19+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
20+
"github.com/projectcapsule/capsule-proxy/internal/request"
21+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2222
)
2323

2424
type get struct {

‎internal/modules/priorityclass/list.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
ctrl "sigs.k8s.io/controller-runtime"
1313
"sigs.k8s.io/controller-runtime/pkg/client"
1414

15-
"github.com/clastix/capsule-proxy/internal/modules"
16-
"github.com/clastix/capsule-proxy/internal/modules/errors"
17-
"github.com/clastix/capsule-proxy/internal/modules/utils"
18-
"github.com/clastix/capsule-proxy/internal/request"
19-
"github.com/clastix/capsule-proxy/internal/tenant"
15+
"github.com/projectcapsule/capsule-proxy/internal/modules"
16+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
18+
"github.com/projectcapsule/capsule-proxy/internal/request"
19+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2020
)
2121

2222
type list struct {

‎internal/modules/priorityclass/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"k8s.io/apimachinery/pkg/labels"
1616
"k8s.io/apimachinery/pkg/selection"
1717

18-
"github.com/clastix/capsule-proxy/internal/tenant"
18+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
1919
)
2020

2121
func getPriorityClass(req *http.Request, proxyTenants []*tenant.ProxyTenant) (allowed bool, exact []string, regex []*regexp.Regexp, requirements []labels.Requirement) {

‎internal/modules/runtimeclass/get.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
ctrl "sigs.k8s.io/controller-runtime"
1313
"sigs.k8s.io/controller-runtime/pkg/client"
1414

15-
"github.com/clastix/capsule-proxy/internal/modules"
16-
"github.com/clastix/capsule-proxy/internal/modules/errors"
17-
"github.com/clastix/capsule-proxy/internal/modules/utils"
18-
"github.com/clastix/capsule-proxy/internal/request"
19-
"github.com/clastix/capsule-proxy/internal/tenant"
15+
"github.com/projectcapsule/capsule-proxy/internal/modules"
16+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
18+
"github.com/projectcapsule/capsule-proxy/internal/request"
19+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2020
)
2121

2222
type get struct {

‎internal/modules/runtimeclass/list.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
ctrl "sigs.k8s.io/controller-runtime"
1313
"sigs.k8s.io/controller-runtime/pkg/client"
1414

15-
"github.com/clastix/capsule-proxy/internal/modules"
16-
"github.com/clastix/capsule-proxy/internal/modules/errors"
17-
"github.com/clastix/capsule-proxy/internal/modules/utils"
18-
"github.com/clastix/capsule-proxy/internal/request"
19-
"github.com/clastix/capsule-proxy/internal/tenant"
15+
"github.com/projectcapsule/capsule-proxy/internal/modules"
16+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
18+
"github.com/projectcapsule/capsule-proxy/internal/request"
19+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2020
)
2121

2222
type list struct {

‎internal/modules/runtimeclass/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1111
"k8s.io/apimachinery/pkg/labels"
1212

13-
"github.com/clastix/capsule-proxy/internal/tenant"
13+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
1414
)
1515

1616
func getRuntimeClass(req *http.Request, proxyTenants []*tenant.ProxyTenant) (allowed bool, requirements []labels.Requirement) {

‎internal/modules/storageclass/get.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import (
1414
ctrl "sigs.k8s.io/controller-runtime"
1515
"sigs.k8s.io/controller-runtime/pkg/client"
1616

17-
"github.com/clastix/capsule-proxy/internal/modules"
18-
"github.com/clastix/capsule-proxy/internal/modules/errors"
19-
"github.com/clastix/capsule-proxy/internal/modules/utils"
20-
"github.com/clastix/capsule-proxy/internal/request"
21-
"github.com/clastix/capsule-proxy/internal/tenant"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules"
18+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
19+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
20+
"github.com/projectcapsule/capsule-proxy/internal/request"
21+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2222
)
2323

2424
type get struct {

‎internal/modules/storageclass/list.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
ctrl "sigs.k8s.io/controller-runtime"
1313
"sigs.k8s.io/controller-runtime/pkg/client"
1414

15-
"github.com/clastix/capsule-proxy/internal/modules"
16-
"github.com/clastix/capsule-proxy/internal/modules/errors"
17-
"github.com/clastix/capsule-proxy/internal/modules/utils"
18-
"github.com/clastix/capsule-proxy/internal/request"
19-
"github.com/clastix/capsule-proxy/internal/tenant"
15+
"github.com/projectcapsule/capsule-proxy/internal/modules"
16+
"github.com/projectcapsule/capsule-proxy/internal/modules/errors"
17+
"github.com/projectcapsule/capsule-proxy/internal/modules/utils"
18+
"github.com/projectcapsule/capsule-proxy/internal/request"
19+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
2020
)
2121

2222
type list struct {

‎internal/modules/storageclass/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"k8s.io/apimachinery/pkg/labels"
1616
"k8s.io/apimachinery/pkg/selection"
1717

18-
"github.com/clastix/capsule-proxy/internal/tenant"
18+
"github.com/projectcapsule/capsule-proxy/internal/tenant"
1919
)
2020

2121
func getStorageClasses(req *http.Request, proxyTenants []*tenant.ProxyTenant) (allowed bool, exact []string, regex []*regexp.Regexp, requirements []labels.Requirement) {

0 commit comments

Comments
 (0)
Please sign in to comment.