diff --git a/pkg/apiserver/cubeapi/k8s/proxy.go b/pkg/apiserver/cubeapi/k8s/proxy.go index 2e4e6a560..1cc271b2c 100644 --- a/pkg/apiserver/cubeapi/k8s/proxy.go +++ b/pkg/apiserver/cubeapi/k8s/proxy.go @@ -1,3 +1,19 @@ +/* +Copyright 2023 KubeCube 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 k8s import ( diff --git a/pkg/multicluster/client/config/config.go b/pkg/multicluster/client/config/config.go index 1991c4470..f608d2697 100644 --- a/pkg/multicluster/client/config/config.go +++ b/pkg/multicluster/client/config/config.go @@ -1,3 +1,19 @@ +/* +Copyright 2023 KubeCube 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 config type Config struct { diff --git a/pkg/warden/warden.go b/pkg/warden/warden.go index 480d9de2a..2013c6071 100644 --- a/pkg/warden/warden.go +++ b/pkg/warden/warden.go @@ -143,7 +143,7 @@ func (w *Warden) Run(stop <-chan struct{}) { // makePivotClient make client for pivot client func makePivotClient(opts *Config) (multiclient.Client, error) { - cfg := &restclient.Config{} + var cfg *restclient.Config var err error if len(opts.PivotClusterKubeConfig) != 0 { cfg, err = clientcmd.BuildConfigFromFlags("", opts.PivotClusterKubeConfig)