diff --git a/go.mod b/go.mod index d6c6c23d4..f8566d559 100644 --- a/go.mod +++ b/go.mod @@ -258,6 +258,7 @@ replace ( github.com/coreos/pkg => github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f github.com/cortexproject/cortex => github.com/cortexproject/cortex v1.3.1-0.20200901115931-255ff3306960 github.com/cpuguy83/go-md2man => github.com/cpuguy83/go-md2man v1.0.10 + github.com/cpuguy83/go-md2man/v2 => github.com/cpuguy83/go-md2man/v2 v2.0.0 github.com/creack/pty => github.com/creack/pty v1.1.7 github.com/cyphar/filepath-securejoin => github.com/cyphar/filepath-securejoin v0.2.2 github.com/cznic/b => github.com/cznic/b v0.0.0-20180115125044-35e9bbe41f07 @@ -375,7 +376,6 @@ replace ( github.com/gobwas/pool => github.com/gobwas/pool v0.2.0 github.com/gobwas/ws => github.com/gobwas/ws v1.0.2 github.com/gocql/gocql => github.com/gocql/gocql v0.0.0-20200526081602-cd04bd7f22a7 - github.com/gocraft/dbr => github.com/gocraft/dbr v0.0.0-20180507214907-a0fd650918f6 github.com/godbus/dbus => github.com/godbus/dbus v0.0.0-20190402143921-271e53dc4968 github.com/godror/godror => github.com/godror/godror v0.13.3 github.com/gofrs/flock => github.com/gofrs/flock v0.7.1 @@ -501,10 +501,10 @@ replace ( github.com/kr/pty => github.com/kr/pty v1.1.5 github.com/kr/text => github.com/kr/text v0.1.0 github.com/kshvakov/clickhouse => github.com/kshvakov/clickhouse v1.3.5 - github.com/kubernetes-csi/external-snapshotter/client/v3 => github.com/kubernetes-csi/external-snapshotter/client/v3 v3.0.0 github.com/kubernetes-csi/external-snapshotter/client/v4 => github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0 github.com/kubesphere/pvc-autoresizer => github.com/kubesphere/pvc-autoresizer v0.1.1 github.com/kubesphere/sonargo => github.com/kubesphere/sonargo v0.0.2 + github.com/kubesphere/storageclass-accessor => github.com/kubesphere/storageclass-accessor v0.2.0 github.com/kylelemons/go-gypsy => github.com/kylelemons/go-gypsy v0.0.0-20160905020020-08cad365cd28 github.com/kylelemons/godebug => github.com/kylelemons/godebug v0.0.0-20160406211939-eadb3ce320cb github.com/lann/builder => github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 @@ -653,6 +653,7 @@ replace ( github.com/sergi/go-diff => github.com/sergi/go-diff v1.0.0 github.com/shopspring/decimal => github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24 github.com/shurcooL/httpfs => github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 + github.com/shurcooL/sanitized_anchor_name => github.com/shurcooL/sanitized_anchor_name v1.0.0 github.com/shurcooL/vfsgen => github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd github.com/siebenmann/go-kstat => github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 github.com/sirupsen/logrus => github.com/sirupsen/logrus v1.4.2 diff --git a/pkg/controller/network/webhooks/storageclass_accessor.go b/pkg/controller/network/webhooks/storageclass_accessor.go index 2ba20b154..31c2e3643 100644 --- a/pkg/controller/network/webhooks/storageclass_accessor.go +++ b/pkg/controller/network/webhooks/storageclass_accessor.go @@ -1,3 +1,17 @@ +// Copyright 2022 The KubeSphere Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package webhooks import ( diff --git a/vendor/modules.txt b/vendor/modules.txt index 6096e5195..e85ffaeb5 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -511,7 +511,7 @@ github.com/kubesphere/pvc-autoresizer/runners # github.com/kubesphere/sonargo v0.0.2 => github.com/kubesphere/sonargo v0.0.2 ## explicit github.com/kubesphere/sonargo/sonar -# github.com/kubesphere/storageclass-accessor v0.2.0 +# github.com/kubesphere/storageclass-accessor v0.2.0 => github.com/kubesphere/storageclass-accessor v0.2.0 ## explicit github.com/kubesphere/storageclass-accessor/client/apis/accessor/v1alpha1 github.com/kubesphere/storageclass-accessor/webhook @@ -2304,6 +2304,7 @@ sigs.k8s.io/yaml # github.com/coreos/pkg => github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f # github.com/cortexproject/cortex => github.com/cortexproject/cortex v1.3.1-0.20200901115931-255ff3306960 # github.com/cpuguy83/go-md2man => github.com/cpuguy83/go-md2man v1.0.10 +# github.com/cpuguy83/go-md2man/v2 => github.com/cpuguy83/go-md2man/v2 v2.0.0 # github.com/creack/pty => github.com/creack/pty v1.1.7 # github.com/cyphar/filepath-securejoin => github.com/cyphar/filepath-securejoin v0.2.2 # github.com/cznic/b => github.com/cznic/b v0.0.0-20180115125044-35e9bbe41f07 @@ -2421,7 +2422,6 @@ sigs.k8s.io/yaml # github.com/gobwas/pool => github.com/gobwas/pool v0.2.0 # github.com/gobwas/ws => github.com/gobwas/ws v1.0.2 # github.com/gocql/gocql => github.com/gocql/gocql v0.0.0-20200526081602-cd04bd7f22a7 -# github.com/gocraft/dbr => github.com/gocraft/dbr v0.0.0-20180507214907-a0fd650918f6 # github.com/godbus/dbus => github.com/godbus/dbus v0.0.0-20190402143921-271e53dc4968 # github.com/godror/godror => github.com/godror/godror v0.13.3 # github.com/gofrs/flock => github.com/gofrs/flock v0.7.1 @@ -2547,10 +2547,10 @@ sigs.k8s.io/yaml # github.com/kr/pty => github.com/kr/pty v1.1.5 # github.com/kr/text => github.com/kr/text v0.1.0 # github.com/kshvakov/clickhouse => github.com/kshvakov/clickhouse v1.3.5 -# github.com/kubernetes-csi/external-snapshotter/client/v3 => github.com/kubernetes-csi/external-snapshotter/client/v3 v3.0.0 # github.com/kubernetes-csi/external-snapshotter/client/v4 => github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0 # github.com/kubesphere/pvc-autoresizer => github.com/kubesphere/pvc-autoresizer v0.1.1 # github.com/kubesphere/sonargo => github.com/kubesphere/sonargo v0.0.2 +# github.com/kubesphere/storageclass-accessor => github.com/kubesphere/storageclass-accessor v0.2.0 # github.com/kylelemons/go-gypsy => github.com/kylelemons/go-gypsy v0.0.0-20160905020020-08cad365cd28 # github.com/kylelemons/godebug => github.com/kylelemons/godebug v0.0.0-20160406211939-eadb3ce320cb # github.com/lann/builder => github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 @@ -2699,6 +2699,7 @@ sigs.k8s.io/yaml # github.com/sergi/go-diff => github.com/sergi/go-diff v1.0.0 # github.com/shopspring/decimal => github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24 # github.com/shurcooL/httpfs => github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 +# github.com/shurcooL/sanitized_anchor_name => github.com/shurcooL/sanitized_anchor_name v1.0.0 # github.com/shurcooL/vfsgen => github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd # github.com/siebenmann/go-kstat => github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 # github.com/sirupsen/logrus => github.com/sirupsen/logrus v1.4.2