diff --git a/apis/kubekey/v1alpha2/addons_types.go b/apis/kubekey/v1alpha2/addons_types.go index 0ee641c2..3a40b631 100644 --- a/apis/kubekey/v1alpha2/addons_types.go +++ b/apis/kubekey/v1alpha2/addons_types.go @@ -1,17 +1,17 @@ /* -Copyright 2020 The KubeSphere Authors. + Copyright 2021 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 + 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 + 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. + 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 v1alpha2 diff --git a/apis/kubekey/v1alpha2/cluster_types.go b/apis/kubekey/v1alpha2/cluster_types.go index fe5fc42f..99c58c4b 100644 --- a/apis/kubekey/v1alpha2/cluster_types.go +++ b/apis/kubekey/v1alpha2/cluster_types.go @@ -1,17 +1,17 @@ /* -Copyright 2020 The KubeSphere Authors. + Copyright 2021 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 + 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 + 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. + 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 v1alpha2 diff --git a/apis/kubekey/v1alpha2/default.go b/apis/kubekey/v1alpha2/default.go index d611b3e7..0e056ed3 100644 --- a/apis/kubekey/v1alpha2/default.go +++ b/apis/kubekey/v1alpha2/default.go @@ -1,17 +1,17 @@ /* -Copyright 2020 The KubeSphere Authors. + Copyright 2021 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 + 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 + 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. + 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 v1alpha2 diff --git a/apis/kubekey/v1alpha2/event_types.go b/apis/kubekey/v1alpha2/event_types.go index c9c254ac..be2ee6ad 100644 --- a/apis/kubekey/v1alpha2/event_types.go +++ b/apis/kubekey/v1alpha2/event_types.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 v1alpha2 type Event struct { diff --git a/apis/kubekey/v1alpha2/groupversion_info.go b/apis/kubekey/v1alpha2/groupversion_info.go index 8ccab5ce..a8a576fb 100644 --- a/apis/kubekey/v1alpha2/groupversion_info.go +++ b/apis/kubekey/v1alpha2/groupversion_info.go @@ -1,17 +1,17 @@ /* -Copyright 2020 The KubeSphere Authors. + Copyright 2021 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 + 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 + 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. + 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 v1alpha2 contains API Schema definitions for the kubekey v1alpha2 API group diff --git a/apis/kubekey/v1alpha2/kubernetes_types.go b/apis/kubekey/v1alpha2/kubernetes_types.go index e69231da..e53bfa19 100644 --- a/apis/kubekey/v1alpha2/kubernetes_types.go +++ b/apis/kubekey/v1alpha2/kubernetes_types.go @@ -1,17 +1,17 @@ /* -Copyright 2020 The KubeSphere Authors. + Copyright 2021 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 + 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 + 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. + 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 v1alpha2 diff --git a/apis/kubekey/v1alpha2/network_types.go b/apis/kubekey/v1alpha2/network_types.go index 4d053574..a6dd2af0 100644 --- a/apis/kubekey/v1alpha2/network_types.go +++ b/apis/kubekey/v1alpha2/network_types.go @@ -1,17 +1,17 @@ /* -Copyright 2020 The KubeSphere Authors. + Copyright 2021 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 + 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 + 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. + 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 v1alpha2 diff --git a/cmd/ctl/add/add.go b/cmd/ctl/add/add.go index 5d3dff37..06931397 100644 --- a/cmd/ctl/add/add.go +++ b/cmd/ctl/add/add.go @@ -1,3 +1,19 @@ +/* + Copyright 2020 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 add import ( diff --git a/cmd/ctl/add/add_nodes.go b/cmd/ctl/add/add_nodes.go index 575c55a4..dcbbc9e4 100644 --- a/cmd/ctl/add/add_nodes.go +++ b/cmd/ctl/add/add_nodes.go @@ -13,6 +13,7 @@ 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 add import ( diff --git a/cmd/ctl/cert/cert.go b/cmd/ctl/cert/cert.go index abb650b2..8e637985 100644 --- a/cmd/ctl/cert/cert.go +++ b/cmd/ctl/cert/cert.go @@ -1,3 +1,19 @@ +/* +Copyright 2020 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 cert import ( diff --git a/cmd/ctl/cert/list_cert.go b/cmd/ctl/cert/list_cert.go index 8fb24a97..25f5504e 100644 --- a/cmd/ctl/cert/list_cert.go +++ b/cmd/ctl/cert/list_cert.go @@ -1,3 +1,19 @@ +/* +Copyright 2020 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 cert import ( diff --git a/cmd/ctl/cert/renew_cert.go b/cmd/ctl/cert/renew_cert.go index 2cdc26dd..e2f5f50e 100644 --- a/cmd/ctl/cert/renew_cert.go +++ b/cmd/ctl/cert/renew_cert.go @@ -1,3 +1,19 @@ +/* +Copyright 2020 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 cert import ( diff --git a/cmd/ctl/create/cluster.go b/cmd/ctl/create/cluster.go index 51854e30..c4004f31 100644 --- a/cmd/ctl/create/cluster.go +++ b/cmd/ctl/create/cluster.go @@ -13,6 +13,7 @@ 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 create import ( diff --git a/cmd/ctl/create/config.go b/cmd/ctl/create/config.go index c9c59d2e..e703b9a2 100644 --- a/cmd/ctl/create/config.go +++ b/cmd/ctl/create/config.go @@ -13,6 +13,7 @@ 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 create import ( diff --git a/cmd/ctl/create/create.go b/cmd/ctl/create/create.go index 5b91c863..c7fa1312 100644 --- a/cmd/ctl/create/create.go +++ b/cmd/ctl/create/create.go @@ -13,6 +13,7 @@ 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 create import ( diff --git a/cmd/ctl/delete/delete.go b/cmd/ctl/delete/delete.go index 9c18c4a7..4b3bbed7 100644 --- a/cmd/ctl/delete/delete.go +++ b/cmd/ctl/delete/delete.go @@ -13,6 +13,7 @@ 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 delete import ( diff --git a/cmd/ctl/delete/delete_cluster.go b/cmd/ctl/delete/delete_cluster.go index b01a70e0..f533b2d8 100644 --- a/cmd/ctl/delete/delete_cluster.go +++ b/cmd/ctl/delete/delete_cluster.go @@ -1,3 +1,19 @@ +/* +Copyright 2020 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 delete import ( diff --git a/cmd/ctl/delete/delete_node.go b/cmd/ctl/delete/delete_node.go index eb6c9a17..ac6c114f 100644 --- a/cmd/ctl/delete/delete_node.go +++ b/cmd/ctl/delete/delete_node.go @@ -1,3 +1,19 @@ +/* +Copyright 2020 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 delete import ( diff --git a/cmd/ctl/init/init.go b/cmd/ctl/init/init.go index 25e586b0..7918ad7b 100644 --- a/cmd/ctl/init/init.go +++ b/cmd/ctl/init/init.go @@ -13,6 +13,7 @@ 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 init import ( diff --git a/cmd/ctl/init/init_os.go b/cmd/ctl/init/init_os.go index e9ba6bf7..be973171 100644 --- a/cmd/ctl/init/init_os.go +++ b/cmd/ctl/init/init_os.go @@ -13,6 +13,7 @@ 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 init import ( diff --git a/cmd/ctl/options/persistent_options.go b/cmd/ctl/options/common_options.go similarity index 54% rename from cmd/ctl/options/persistent_options.go rename to cmd/ctl/options/common_options.go index baa28a43..d8ab94b0 100644 --- a/cmd/ctl/options/persistent_options.go +++ b/cmd/ctl/options/common_options.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 options import ( diff --git a/cmd/ctl/root.go b/cmd/ctl/root.go index edcba69b..514b7270 100644 --- a/cmd/ctl/root.go +++ b/cmd/ctl/root.go @@ -13,6 +13,7 @@ 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 ctl import ( diff --git a/cmd/ctl/upgrade/upgrade.go b/cmd/ctl/upgrade/upgrade.go index 1d751fac..192c3661 100644 --- a/cmd/ctl/upgrade/upgrade.go +++ b/cmd/ctl/upgrade/upgrade.go @@ -13,6 +13,7 @@ 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 upgrade import ( diff --git a/cmd/ctl/util/helpers.go b/cmd/ctl/util/helpers.go index 1683578f..1f4bffc2 100644 --- a/cmd/ctl/util/helpers.go +++ b/cmd/ctl/util/helpers.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 util import ( diff --git a/main.go b/main.go index a1791970..eee7b9b9 100644 --- a/main.go +++ b/main.go @@ -1,17 +1,17 @@ /* -Copyright 2021. + Copyright 2021 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 + 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 + 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. + 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 main diff --git a/pkg/addons/addons.go b/pkg/addons/addons.go index e32c2078..f251e03a 100644 --- a/pkg/addons/addons.go +++ b/pkg/addons/addons.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 addons import ( diff --git a/pkg/addons/charts.go b/pkg/addons/charts.go index ad62fa5a..952577de 100644 --- a/pkg/addons/charts.go +++ b/pkg/addons/charts.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 addons import ( diff --git a/pkg/addons/manifests.go b/pkg/addons/manifests.go index 680375bb..3b0f27ac 100644 --- a/pkg/addons/manifests.go +++ b/pkg/addons/manifests.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 addons import ( diff --git a/pkg/addons/module.go b/pkg/addons/module.go index 75fbf4b3..5b221dde 100644 --- a/pkg/addons/module.go +++ b/pkg/addons/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 addons import ( diff --git a/pkg/addons/tasks.go b/pkg/addons/tasks.go index a49cd430..e9529e74 100644 --- a/pkg/addons/tasks.go +++ b/pkg/addons/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 addons import ( diff --git a/pkg/binaries/k3s.go b/pkg/binaries/k3s.go index c2d1b8a6..7cf07b34 100644 --- a/pkg/binaries/k3s.go +++ b/pkg/binaries/k3s.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 binaries import ( diff --git a/pkg/binaries/kubernetes.go b/pkg/binaries/kubernetes.go index c5285fa4..075feabc 100644 --- a/pkg/binaries/kubernetes.go +++ b/pkg/binaries/kubernetes.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 binaries import ( diff --git a/pkg/binaries/module.go b/pkg/binaries/module.go index 11637670..123b2e03 100644 --- a/pkg/binaries/module.go +++ b/pkg/binaries/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 binaries import ( diff --git a/pkg/binaries/tasks.go b/pkg/binaries/tasks.go index 55d98359..789c8dc0 100644 --- a/pkg/binaries/tasks.go +++ b/pkg/binaries/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 binaries import ( diff --git a/pkg/bootstrap/config/module.go b/pkg/bootstrap/config/module.go index f730e5e4..c8be41e8 100644 --- a/pkg/bootstrap/config/module.go +++ b/pkg/bootstrap/config/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 config import ( diff --git a/pkg/bootstrap/config/tasks.go b/pkg/bootstrap/config/tasks.go index 8f3f14c1..742c9e04 100644 --- a/pkg/bootstrap/config/tasks.go +++ b/pkg/bootstrap/config/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 config import ( diff --git a/pkg/bootstrap/confirm/module.go b/pkg/bootstrap/confirm/module.go index e764a7bbd5..9b4d7581 100644 --- a/pkg/bootstrap/confirm/module.go +++ b/pkg/bootstrap/confirm/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 confirm import ( diff --git a/pkg/bootstrap/confirm/tasks.go b/pkg/bootstrap/confirm/tasks.go index 2746dabf..ee3d0b19 100644 --- a/pkg/bootstrap/confirm/tasks.go +++ b/pkg/bootstrap/confirm/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 confirm import ( diff --git a/pkg/bootstrap/os/common.go b/pkg/bootstrap/os/common.go index 8ec81483..dc36d5f7 100644 --- a/pkg/bootstrap/os/common.go +++ b/pkg/bootstrap/os/common.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 os const ( diff --git a/pkg/bootstrap/os/module.go b/pkg/bootstrap/os/module.go index 245eb497..2bff5cf5 100644 --- a/pkg/bootstrap/os/module.go +++ b/pkg/bootstrap/os/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 os import ( diff --git a/pkg/bootstrap/os/tasks.go b/pkg/bootstrap/os/tasks.go index b667b756..1f10c623 100644 --- a/pkg/bootstrap/os/tasks.go +++ b/pkg/bootstrap/os/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 os import ( diff --git a/pkg/bootstrap/os/templates/init_script.go b/pkg/bootstrap/os/templates/init_script.go index fda0d300..d6cd19e1 100644 --- a/pkg/bootstrap/os/templates/init_script.go +++ b/pkg/bootstrap/os/templates/init_script.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/bootstrap/precheck/const.go b/pkg/bootstrap/precheck/const.go index e55e97ca..f4f9588f 100644 --- a/pkg/bootstrap/precheck/const.go +++ b/pkg/bootstrap/precheck/const.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 precheck const ( diff --git a/pkg/bootstrap/precheck/module.go b/pkg/bootstrap/precheck/module.go index afb1d06b..78276dc0 100644 --- a/pkg/bootstrap/precheck/module.go +++ b/pkg/bootstrap/precheck/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 precheck import ( diff --git a/pkg/bootstrap/precheck/prepares.go b/pkg/bootstrap/precheck/prepares.go index 9eccfdaf..ee558d44 100644 --- a/pkg/bootstrap/precheck/prepares.go +++ b/pkg/bootstrap/precheck/prepares.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 precheck import ( diff --git a/pkg/bootstrap/precheck/tasks.go b/pkg/bootstrap/precheck/tasks.go index f903b536..46d6fcc9 100644 --- a/pkg/bootstrap/precheck/tasks.go +++ b/pkg/bootstrap/precheck/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 precheck import ( diff --git a/pkg/certs/module.go b/pkg/certs/module.go index 7837ab58..d9933008 100644 --- a/pkg/certs/module.go +++ b/pkg/certs/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 certs import ( diff --git a/pkg/certs/prepares.go b/pkg/certs/prepares.go index d4fcd3c5..5d1da0e7 100644 --- a/pkg/certs/prepares.go +++ b/pkg/certs/prepares.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 certs import ( diff --git a/pkg/certs/tasks.go b/pkg/certs/tasks.go index 90153b20..110f8c6f 100644 --- a/pkg/certs/tasks.go +++ b/pkg/certs/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 certs import ( diff --git a/pkg/certs/templates/certs_renew_script.go b/pkg/certs/templates/certs_renew_script.go index fec97344..e7b590a2 100644 --- a/pkg/certs/templates/certs_renew_script.go +++ b/pkg/certs/templates/certs_renew_script.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/certs/templates/certs_renew_service.go b/pkg/certs/templates/certs_renew_service.go index a35dcbf2..3dde80cb 100644 --- a/pkg/certs/templates/certs_renew_service.go +++ b/pkg/certs/templates/certs_renew_service.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/common/common.go b/pkg/common/common.go index 00632353..4abc5d28 100644 --- a/pkg/common/common.go +++ b/pkg/common/common.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 common const ( diff --git a/pkg/common/kube_action.go b/pkg/common/kube_action.go index ea24b152..1a20c2cb 100644 --- a/pkg/common/kube_action.go +++ b/pkg/common/kube_action.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 common import ( diff --git a/pkg/common/kube_module.go b/pkg/common/kube_module.go index b68660fd..66d614ec 100644 --- a/pkg/common/kube_module.go +++ b/pkg/common/kube_module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 common import ( diff --git a/pkg/common/kube_prepare.go b/pkg/common/kube_prepare.go index f283b6d0..17ea8b28 100644 --- a/pkg/common/kube_prepare.go +++ b/pkg/common/kube_prepare.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 common import ( diff --git a/pkg/common/kube_runtime.go b/pkg/common/kube_runtime.go index 5028609f..60ece9b5 100644 --- a/pkg/common/kube_runtime.go +++ b/pkg/common/kube_runtime.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 common import ( diff --git a/pkg/common/loader.go b/pkg/common/loader.go index 3830f09f..16a76578 100644 --- a/pkg/common/loader.go +++ b/pkg/common/loader.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 common import ( diff --git a/pkg/config/generate.go b/pkg/config/generate.go index 91e0a980..c036f91e 100644 --- a/pkg/config/generate.go +++ b/pkg/config/generate.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 config import ( diff --git a/pkg/config/templates/cluster.go b/pkg/config/templates/cluster.go index e3e418ec..85180ae8 100644 --- a/pkg/config/templates/cluster.go +++ b/pkg/config/templates/cluster.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/container/containerd.go b/pkg/container/containerd.go index fc98ab52..8f3602c3 100644 --- a/pkg/container/containerd.go +++ b/pkg/container/containerd.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 container import ( diff --git a/pkg/container/docker.go b/pkg/container/docker.go index 4bd847bb..f4a2e404 100644 --- a/pkg/container/docker.go +++ b/pkg/container/docker.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 container import ( diff --git a/pkg/container/module.go b/pkg/container/module.go index 910a52c0..222bcec2 100644 --- a/pkg/container/module.go +++ b/pkg/container/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 container import ( diff --git a/pkg/container/prepares.go b/pkg/container/prepares.go index be04c449..0daff13c 100644 --- a/pkg/container/prepares.go +++ b/pkg/container/prepares.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 container import ( diff --git a/pkg/container/templates/containerd_config.go b/pkg/container/templates/containerd_config.go index 34a6e0a7..8756e712 100644 --- a/pkg/container/templates/containerd_config.go +++ b/pkg/container/templates/containerd_config.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/container/templates/containerd_service.go b/pkg/container/templates/containerd_service.go index 47f98a7c..366ff73e 100644 --- a/pkg/container/templates/containerd_service.go +++ b/pkg/container/templates/containerd_service.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/container/templates/crictl_config.go b/pkg/container/templates/crictl_config.go index 13aa4e5b..885d60ae 100644 --- a/pkg/container/templates/crictl_config.go +++ b/pkg/container/templates/crictl_config.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/container/templates/docker_config.go b/pkg/container/templates/docker_config.go index ccffe590..8bf390f7 100644 --- a/pkg/container/templates/docker_config.go +++ b/pkg/container/templates/docker_config.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/container/templates/docker_service.go b/pkg/container/templates/docker_service.go index c4197a8f..55dfc7dd 100644 --- a/pkg/container/templates/docker_service.go +++ b/pkg/container/templates/docker_service.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/core/action/base.go b/pkg/core/action/base.go index 4326d60b..0bbb6c97 100644 --- a/pkg/core/action/base.go +++ b/pkg/core/action/base.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 action import ( diff --git a/pkg/core/action/interface.go b/pkg/core/action/interface.go index 7b88e34a..cf982fc3 100644 --- a/pkg/core/action/interface.go +++ b/pkg/core/action/interface.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 action import ( diff --git a/pkg/core/action/template.go b/pkg/core/action/template.go index d6e03c8d..ca84e4a8 100644 --- a/pkg/core/action/template.go +++ b/pkg/core/action/template.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 action import ( diff --git a/pkg/core/cache/cache.go b/pkg/core/cache/cache.go index 063a92e5..3794c370 100644 --- a/pkg/core/cache/cache.go +++ b/pkg/core/cache/cache.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 cache import "sync" diff --git a/pkg/core/common/common.go b/pkg/core/common/common.go index 0315400a..e45bb66c 100644 --- a/pkg/core/common/common.go +++ b/pkg/core/common/common.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 common const ( diff --git a/pkg/core/connector/dialer.go b/pkg/core/connector/dialer.go index edeafc3b..58d85d64 100644 --- a/pkg/core/connector/dialer.go +++ b/pkg/core/connector/dialer.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 connector import ( diff --git a/pkg/core/connector/host.go b/pkg/core/connector/host.go index 7d8a1891..b34c0715 100644 --- a/pkg/core/connector/host.go +++ b/pkg/core/connector/host.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 connector import "github.com/kubesphere/kubekey/pkg/core/cache" diff --git a/pkg/core/connector/interface.go b/pkg/core/connector/interface.go index d349f86a..df049630 100644 --- a/pkg/core/connector/interface.go +++ b/pkg/core/connector/interface.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 connector import ( diff --git a/pkg/core/connector/runner.go b/pkg/core/connector/runner.go index 03912e64..486e0b27 100644 --- a/pkg/core/connector/runner.go +++ b/pkg/core/connector/runner.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 connector import ( diff --git a/pkg/core/connector/runtime.go b/pkg/core/connector/runtime.go index cb49b519..f96cb061 100644 --- a/pkg/core/connector/runtime.go +++ b/pkg/core/connector/runtime.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 connector import ( diff --git a/pkg/core/connector/ssh.go b/pkg/core/connector/ssh.go index b749fe74..a791dd3a 100644 --- a/pkg/core/connector/ssh.go +++ b/pkg/core/connector/ssh.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 connector import ( diff --git a/pkg/core/connector/tee.go b/pkg/core/connector/tee.go index e41d9d86..2ba468e7 100644 --- a/pkg/core/connector/tee.go +++ b/pkg/core/connector/tee.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 connector import ( diff --git a/pkg/core/ending/action_results.go b/pkg/core/ending/action_results.go index 6426687e..f32acdc4 100644 --- a/pkg/core/ending/action_results.go +++ b/pkg/core/ending/action_results.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 ending import ( diff --git a/pkg/core/ending/interface.go b/pkg/core/ending/interface.go index 9ba4459b..34de235d 100644 --- a/pkg/core/ending/interface.go +++ b/pkg/core/ending/interface.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 ending import ( diff --git a/pkg/core/ending/module_result.go b/pkg/core/ending/module_result.go index f1c3eee7..115ebeca 100644 --- a/pkg/core/ending/module_result.go +++ b/pkg/core/ending/module_result.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 ending import ( diff --git a/pkg/core/ending/status_enum.go b/pkg/core/ending/status_enum.go index 7cd34202..aa8779d1 100644 --- a/pkg/core/ending/status_enum.go +++ b/pkg/core/ending/status_enum.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 ending type ResultStatus int diff --git a/pkg/core/ending/task_result.go b/pkg/core/ending/task_result.go index 67e7a22d..14ef17f0 100644 --- a/pkg/core/ending/task_result.go +++ b/pkg/core/ending/task_result.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 ending import ( diff --git a/pkg/core/hook/handler.go b/pkg/core/hook/handler.go index a4c507de..f5c61b13 100644 --- a/pkg/core/hook/handler.go +++ b/pkg/core/hook/handler.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 hook func Call(hook Interface) error { diff --git a/pkg/core/hook/interface.go b/pkg/core/hook/interface.go index 6115dc4e..4715f4bc 100644 --- a/pkg/core/hook/interface.go +++ b/pkg/core/hook/interface.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 hook type Interface interface { diff --git a/pkg/core/logger/formatter.go b/pkg/core/logger/formatter.go index 8b5a9272..748d2785 100644 --- a/pkg/core/logger/formatter.go +++ b/pkg/core/logger/formatter.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 logger import ( diff --git a/pkg/core/logger/logger.go b/pkg/core/logger/logger.go index ac8e7f3e..6e58eed7 100644 --- a/pkg/core/logger/logger.go +++ b/pkg/core/logger/logger.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 logger import ( diff --git a/pkg/core/logger/logger_test.go b/pkg/core/logger/logger_test.go index 9bfbfeb5..b8091919 100644 --- a/pkg/core/logger/logger_test.go +++ b/pkg/core/logger/logger_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 logger import ( diff --git a/pkg/core/module/base.go b/pkg/core/module/base.go index e42c9bda..6cd8afc4 100644 --- a/pkg/core/module/base.go +++ b/pkg/core/module/base.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 module import ( diff --git a/pkg/core/module/const.go b/pkg/core/module/const.go index 9f012cc8..65e7b1f2 100644 --- a/pkg/core/module/const.go +++ b/pkg/core/module/const.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 module const ( diff --git a/pkg/core/module/custom_module.go b/pkg/core/module/custom_module.go index 10317ccc..586644ab 100644 --- a/pkg/core/module/custom_module.go +++ b/pkg/core/module/custom_module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 module type CustomModule struct { diff --git a/pkg/core/module/hook.go b/pkg/core/module/hook.go index a2037748..17a3e61f 100644 --- a/pkg/core/module/hook.go +++ b/pkg/core/module/hook.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 module import ( diff --git a/pkg/core/module/interface.go b/pkg/core/module/interface.go index 3193675d..a6312c6b 100644 --- a/pkg/core/module/interface.go +++ b/pkg/core/module/interface.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 module import ( diff --git a/pkg/core/module/task_module.go b/pkg/core/module/task_module.go index d44ea4b9..752b5b9c 100644 --- a/pkg/core/module/task_module.go +++ b/pkg/core/module/task_module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 module import ( diff --git a/pkg/core/pipeline/pipeline.go b/pkg/core/pipeline/pipeline.go index e523e761..4f5beeda 100644 --- a/pkg/core/pipeline/pipeline.go +++ b/pkg/core/pipeline/pipeline.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 pipeline import ( diff --git a/pkg/core/prepare/base.go b/pkg/core/prepare/base.go index bdb6f8f9..6c91e8bc 100644 --- a/pkg/core/prepare/base.go +++ b/pkg/core/prepare/base.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 prepare import ( diff --git a/pkg/core/prepare/fast_prepare.go b/pkg/core/prepare/fast_prepare.go index 60127ce0..820cc2b2 100644 --- a/pkg/core/prepare/fast_prepare.go +++ b/pkg/core/prepare/fast_prepare.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 prepare import ( diff --git a/pkg/core/prepare/file_check.go b/pkg/core/prepare/file_check.go index d61d398e..714f9bc2 100644 --- a/pkg/core/prepare/file_check.go +++ b/pkg/core/prepare/file_check.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 prepare import "github.com/kubesphere/kubekey/pkg/core/connector" diff --git a/pkg/core/prepare/interface.go b/pkg/core/prepare/interface.go index 4dc48c44..1caad99e 100644 --- a/pkg/core/prepare/interface.go +++ b/pkg/core/prepare/interface.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 prepare import ( diff --git a/pkg/core/task/const.go b/pkg/core/task/const.go index 013bc225..eff13ee6 100644 --- a/pkg/core/task/const.go +++ b/pkg/core/task/const.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 task const ( diff --git a/pkg/core/task/interface.go b/pkg/core/task/interface.go index 0b1f327e..1b312e74 100644 --- a/pkg/core/task/interface.go +++ b/pkg/core/task/interface.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 task import ( diff --git a/pkg/core/task/local_task.go b/pkg/core/task/local_task.go index 591fea9a..58d20612 100644 --- a/pkg/core/task/local_task.go +++ b/pkg/core/task/local_task.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 task import ( diff --git a/pkg/core/task/remote_task.go b/pkg/core/task/remote_task.go index f8acb0c6..d7e652d4 100644 --- a/pkg/core/task/remote_task.go +++ b/pkg/core/task/remote_task.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 task import ( diff --git a/pkg/core/task/remote_task_test.go b/pkg/core/task/remote_task_test.go index 9d6bca7e..7d8bfe7a 100644 --- a/pkg/core/task/remote_task_test.go +++ b/pkg/core/task/remote_task_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 task import ( diff --git a/pkg/core/util/file.go b/pkg/core/util/file.go index 6665cf4f..91b5aaef 100644 --- a/pkg/core/util/file.go +++ b/pkg/core/util/file.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 util import ( diff --git a/pkg/core/util/ip.go b/pkg/core/util/ip.go index bba72ecf..9378f267 100644 --- a/pkg/core/util/ip.go +++ b/pkg/core/util/ip.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 util import ( diff --git a/pkg/core/util/util.go b/pkg/core/util/util.go index 34f6e164..53f99ec3 100644 --- a/pkg/core/util/util.go +++ b/pkg/core/util/util.go @@ -1,17 +1,17 @@ /* -Copyright 2020 The KubeSphere Authors. + Copyright 2021 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 + 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 + 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. + 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 util diff --git a/pkg/core/util/util_test.go b/pkg/core/util/util_test.go index 8dd5ffe5..8351d73e 100644 --- a/pkg/core/util/util_test.go +++ b/pkg/core/util/util_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 util import "testing" diff --git a/pkg/etcd/module.go b/pkg/etcd/module.go index 01a0bece..adff9c38 100644 --- a/pkg/etcd/module.go +++ b/pkg/etcd/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 etcd import ( diff --git a/pkg/etcd/prepares.go b/pkg/etcd/prepares.go index b4161902..fc980152 100644 --- a/pkg/etcd/prepares.go +++ b/pkg/etcd/prepares.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 etcd import ( diff --git a/pkg/etcd/tasks.go b/pkg/etcd/tasks.go index 0ee24618..23a46b73 100644 --- a/pkg/etcd/tasks.go +++ b/pkg/etcd/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 etcd import ( diff --git a/pkg/etcd/templates/backup_script.go b/pkg/etcd/templates/backup_script.go index 0324e6b5..0bb4f261 100644 --- a/pkg/etcd/templates/backup_script.go +++ b/pkg/etcd/templates/backup_script.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/etcd/templates/certs_script.go b/pkg/etcd/templates/certs_script.go index 69115729..e1633a71 100644 --- a/pkg/etcd/templates/certs_script.go +++ b/pkg/etcd/templates/certs_script.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/etcd/templates/etcd_env.go b/pkg/etcd/templates/etcd_env.go index d15d3db0..be5377ae 100644 --- a/pkg/etcd/templates/etcd_env.go +++ b/pkg/etcd/templates/etcd_env.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/etcd/templates/etcd_service.go b/pkg/etcd/templates/etcd_service.go index b5770fe6..78f2b788 100644 --- a/pkg/etcd/templates/etcd_service.go +++ b/pkg/etcd/templates/etcd_service.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/etcd/templates/openssl_config.go b/pkg/etcd/templates/openssl_config.go index f7d0ec0e..4dd879fb 100644 --- a/pkg/etcd/templates/openssl_config.go +++ b/pkg/etcd/templates/openssl_config.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/files/file.go b/pkg/files/file.go index 488d9c77..dfd31b3c 100644 --- a/pkg/files/file.go +++ b/pkg/files/file.go @@ -1,17 +1,17 @@ /* -Copyright 2020 The KubeSphere Authors. + Copyright 2020 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 + 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 + 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. + 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 files diff --git a/pkg/hooks/kube_hook.go b/pkg/hooks/kube_hook.go index dc0c86fd..2be428f1 100644 --- a/pkg/hooks/kube_hook.go +++ b/pkg/hooks/kube_hook.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 hooks import ( diff --git a/pkg/images/images.go b/pkg/images/images.go index df70c531..8eecb9ee 100644 --- a/pkg/images/images.go +++ b/pkg/images/images.go @@ -1,17 +1,17 @@ /* -Copyright 2020 The KubeSphere Authors. + Copyright 2021 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 + 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 + 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. + 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 images diff --git a/pkg/images/module.go b/pkg/images/module.go index ca711a3c..54de9a1c 100644 --- a/pkg/images/module.go +++ b/pkg/images/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 images import ( diff --git a/pkg/images/tasks.go b/pkg/images/tasks.go index 1d8e97c8..54ed0368 100644 --- a/pkg/images/tasks.go +++ b/pkg/images/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 images import ( diff --git a/pkg/k3s/k3s_status.go b/pkg/k3s/k3s_status.go index 78fd10fe..35a3885b 100644 --- a/pkg/k3s/k3s_status.go +++ b/pkg/k3s/k3s_status.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 k3s import ( diff --git a/pkg/k3s/module.go b/pkg/k3s/module.go index 0f668839..65c60395 100644 --- a/pkg/k3s/module.go +++ b/pkg/k3s/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 k3s import ( diff --git a/pkg/k3s/prepares.go b/pkg/k3s/prepares.go index 41019464..391a4177 100644 --- a/pkg/k3s/prepares.go +++ b/pkg/k3s/prepares.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 k3s import ( diff --git a/pkg/k3s/tasks.go b/pkg/k3s/tasks.go index fd7fdd89..b0513f85 100644 --- a/pkg/k3s/tasks.go +++ b/pkg/k3s/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 k3s import ( diff --git a/pkg/k3s/templates/k3sService.go b/pkg/k3s/templates/k3sService.go index a30680f9..4af77153 100644 --- a/pkg/k3s/templates/k3sService.go +++ b/pkg/k3s/templates/k3sService.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/k3s/templates/k3sServiceEnv.go b/pkg/k3s/templates/k3sServiceEnv.go index e4af89bb..0e5254fd 100644 --- a/pkg/k3s/templates/k3sServiceEnv.go +++ b/pkg/k3s/templates/k3sServiceEnv.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/k3s/templates/killall_script.go b/pkg/k3s/templates/killall_script.go index f730819c..502a3cb2 100644 --- a/pkg/k3s/templates/killall_script.go +++ b/pkg/k3s/templates/killall_script.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/k3s/templates/uninstall_script.go b/pkg/k3s/templates/uninstall_script.go index d45f359e..797b8672 100644 --- a/pkg/k3s/templates/uninstall_script.go +++ b/pkg/k3s/templates/uninstall_script.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/kubernetes/kubernetes_status.go b/pkg/kubernetes/kubernetes_status.go index 24afe01b..4221d1d3 100644 --- a/pkg/kubernetes/kubernetes_status.go +++ b/pkg/kubernetes/kubernetes_status.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 kubernetes import ( diff --git a/pkg/kubernetes/module.go b/pkg/kubernetes/module.go index 9504fa96..3acbbbec 100644 --- a/pkg/kubernetes/module.go +++ b/pkg/kubernetes/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 kubernetes import ( diff --git a/pkg/kubernetes/prepares.go b/pkg/kubernetes/prepares.go index 4b03d15f..b02598c6 100644 --- a/pkg/kubernetes/prepares.go +++ b/pkg/kubernetes/prepares.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 kubernetes import ( diff --git a/pkg/kubernetes/tasks.go b/pkg/kubernetes/tasks.go index 856c9dd6..c6cbf9d6 100644 --- a/pkg/kubernetes/tasks.go +++ b/pkg/kubernetes/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 kubernetes import ( diff --git a/pkg/kubernetes/templates/kubelet_env.go b/pkg/kubernetes/templates/kubelet_env.go index 3d2cf69f..08144772 100644 --- a/pkg/kubernetes/templates/kubelet_env.go +++ b/pkg/kubernetes/templates/kubelet_env.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/kubernetes/templates/kubelet_service.go b/pkg/kubernetes/templates/kubelet_service.go index 5cb06280..7bf1cde6 100644 --- a/pkg/kubernetes/templates/kubelet_service.go +++ b/pkg/kubernetes/templates/kubelet_service.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/kubernetes/templates/v1beta2/kubeadm_config.go b/pkg/kubernetes/templates/v1beta2/kubeadm_config.go index 81cfaa4a..3614d28b 100644 --- a/pkg/kubernetes/templates/v1beta2/kubeadm_config.go +++ b/pkg/kubernetes/templates/v1beta2/kubeadm_config.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 v1beta2 import ( diff --git a/pkg/kubernetes/upgrade_step_enum.go b/pkg/kubernetes/upgrade_step_enum.go index 31270ac7..037b80ba 100644 --- a/pkg/kubernetes/upgrade_step_enum.go +++ b/pkg/kubernetes/upgrade_step_enum.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 kubernetes type UpgradeStep int diff --git a/pkg/kubesphere/modules.go b/pkg/kubesphere/modules.go index 422aabed..0f7243c9 100644 --- a/pkg/kubesphere/modules.go +++ b/pkg/kubesphere/modules.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 kubesphere import ( diff --git a/pkg/kubesphere/prepares.go b/pkg/kubesphere/prepares.go index 24c3819f..134e6486 100644 --- a/pkg/kubesphere/prepares.go +++ b/pkg/kubesphere/prepares.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 kubesphere import ( diff --git a/pkg/kubesphere/tasks.go b/pkg/kubesphere/tasks.go index e3d3a4a7..0e59c7c7 100644 --- a/pkg/kubesphere/tasks.go +++ b/pkg/kubesphere/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 kubesphere import ( diff --git a/pkg/kubesphere/v2/types.go b/pkg/kubesphere/v2/types.go index 63b99aa0..9d3ce32d 100644 --- a/pkg/kubesphere/v2/types.go +++ b/pkg/kubesphere/v2/types.go @@ -1,17 +1,17 @@ /* -Copyright 2020 The KubeSphere Authors. + Copyright 2021 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 + 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 + 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. + 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 v2 diff --git a/pkg/kubesphere/v3/types.go b/pkg/kubesphere/v3/types.go index 67b3b9a1..97b97198 100644 --- a/pkg/kubesphere/v3/types.go +++ b/pkg/kubesphere/v3/types.go @@ -1,17 +1,17 @@ /* -Copyright 2020 The KubeSphere Authors. + Copyright 2021 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 + 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 + 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. + 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 v3 diff --git a/pkg/loadbalancer/common.go b/pkg/loadbalancer/common.go index a801ccf1..d53b16fc 100644 --- a/pkg/loadbalancer/common.go +++ b/pkg/loadbalancer/common.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 loadbalancer const ( diff --git a/pkg/loadbalancer/module.go b/pkg/loadbalancer/module.go index e8014329..0efaed00 100644 --- a/pkg/loadbalancer/module.go +++ b/pkg/loadbalancer/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 loadbalancer import ( diff --git a/pkg/loadbalancer/prepares.go b/pkg/loadbalancer/prepares.go index 75a39484..243fb586 100644 --- a/pkg/loadbalancer/prepares.go +++ b/pkg/loadbalancer/prepares.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 loadbalancer import ( diff --git a/pkg/loadbalancer/tasks.go b/pkg/loadbalancer/tasks.go index c5695d11..0117fe79 100644 --- a/pkg/loadbalancer/tasks.go +++ b/pkg/loadbalancer/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 loadbalancer import ( diff --git a/pkg/loadbalancer/templates/haproxyConfig.go b/pkg/loadbalancer/templates/haproxyConfig.go index a5a7a1fd..953caff6 100644 --- a/pkg/loadbalancer/templates/haproxyConfig.go +++ b/pkg/loadbalancer/templates/haproxyConfig.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/loadbalancer/templates/haproxyManifest.go b/pkg/loadbalancer/templates/haproxyManifest.go index 0f61b852..43211bd5 100644 --- a/pkg/loadbalancer/templates/haproxyManifest.go +++ b/pkg/loadbalancer/templates/haproxyManifest.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/pipelines/add_nodes.go b/pkg/pipelines/add_nodes.go index ef08b54d..4642abb2 100644 --- a/pkg/pipelines/add_nodes.go +++ b/pkg/pipelines/add_nodes.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 pipelines import ( diff --git a/pkg/pipelines/check_certs.go b/pkg/pipelines/check_certs.go index 86ad7534..01ef2c19 100644 --- a/pkg/pipelines/check_certs.go +++ b/pkg/pipelines/check_certs.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 pipelines import ( diff --git a/pkg/pipelines/create_cluster.go b/pkg/pipelines/create_cluster.go index 9c6a73c2..4601b364 100644 --- a/pkg/pipelines/create_cluster.go +++ b/pkg/pipelines/create_cluster.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 pipelines import ( diff --git a/pkg/pipelines/delete_cluster.go b/pkg/pipelines/delete_cluster.go index bcdef3d4..629e2305 100644 --- a/pkg/pipelines/delete_cluster.go +++ b/pkg/pipelines/delete_cluster.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 pipelines import ( diff --git a/pkg/pipelines/delete_node.go b/pkg/pipelines/delete_node.go index df4cdd20..44b2d10b 100644 --- a/pkg/pipelines/delete_node.go +++ b/pkg/pipelines/delete_node.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 pipelines import ( diff --git a/pkg/pipelines/init_dependencies.go b/pkg/pipelines/init_dependencies.go index 4a1566c1..c0bec33a 100644 --- a/pkg/pipelines/init_dependencies.go +++ b/pkg/pipelines/init_dependencies.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 pipelines import ( diff --git a/pkg/pipelines/renew_certs.go b/pkg/pipelines/renew_certs.go index 035206c7..8ea2f9eb 100644 --- a/pkg/pipelines/renew_certs.go +++ b/pkg/pipelines/renew_certs.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 pipelines import ( diff --git a/pkg/pipelines/upgrade_cluster.go b/pkg/pipelines/upgrade_cluster.go index 0334d827..0da0b956 100644 --- a/pkg/pipelines/upgrade_cluster.go +++ b/pkg/pipelines/upgrade_cluster.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 pipelines import ( diff --git a/pkg/plugins/dns/module.go b/pkg/plugins/dns/module.go index dfba59b7..ace83b60 100644 --- a/pkg/plugins/dns/module.go +++ b/pkg/plugins/dns/module.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 dns import ( diff --git a/pkg/plugins/dns/prepares.go b/pkg/plugins/dns/prepares.go index 0ae4e409..62be0405 100644 --- a/pkg/plugins/dns/prepares.go +++ b/pkg/plugins/dns/prepares.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 dns import ( diff --git a/pkg/plugins/dns/tasks.go b/pkg/plugins/dns/tasks.go index a2ac3dd0..0e7504d4 100644 --- a/pkg/plugins/dns/tasks.go +++ b/pkg/plugins/dns/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 dns import ( diff --git a/pkg/plugins/dns/templates/coredns_service.go b/pkg/plugins/dns/templates/coredns_service.go index 8904304a..b290547a 100644 --- a/pkg/plugins/dns/templates/coredns_service.go +++ b/pkg/plugins/dns/templates/coredns_service.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/plugins/dns/templates/nodelocaldns_configmap.go b/pkg/plugins/dns/templates/nodelocaldns_configmap.go index 5d9fa4e4..63a1c0af 100644 --- a/pkg/plugins/dns/templates/nodelocaldns_configmap.go +++ b/pkg/plugins/dns/templates/nodelocaldns_configmap.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/plugins/dns/templates/nodelocaldns_service.go b/pkg/plugins/dns/templates/nodelocaldns_service.go index dc1a5f9a..330a2bea 100644 --- a/pkg/plugins/dns/templates/nodelocaldns_service.go +++ b/pkg/plugins/dns/templates/nodelocaldns_service.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/plugins/network/modules.go b/pkg/plugins/network/modules.go index 42fd32dd..aed3fd0e 100644 --- a/pkg/plugins/network/modules.go +++ b/pkg/plugins/network/modules.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 network import ( diff --git a/pkg/plugins/network/prepares.go b/pkg/plugins/network/prepares.go index c8eac861..866fbf48 100644 --- a/pkg/plugins/network/prepares.go +++ b/pkg/plugins/network/prepares.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 network import ( diff --git a/pkg/plugins/network/tasks.go b/pkg/plugins/network/tasks.go index ecf2f7fc..6f5ef162 100644 --- a/pkg/plugins/network/tasks.go +++ b/pkg/plugins/network/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 network import ( diff --git a/pkg/plugins/network/templates/calico_v1.16+.go b/pkg/plugins/network/templates/calico_v1.16+.go index dfd148b6..de773077 100644 --- a/pkg/plugins/network/templates/calico_v1.16+.go +++ b/pkg/plugins/network/templates/calico_v1.16+.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/plugins/network/templates/calico_v1.16-.go b/pkg/plugins/network/templates/calico_v1.16-.go index 3d623aaf..f08cacf8 100644 --- a/pkg/plugins/network/templates/calico_v1.16-.go +++ b/pkg/plugins/network/templates/calico_v1.16-.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/plugins/network/templates/cilium.go b/pkg/plugins/network/templates/cilium.go index 9bacae73..ba7f6870 100644 --- a/pkg/plugins/network/templates/cilium.go +++ b/pkg/plugins/network/templates/cilium.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/plugins/network/templates/flannel.go b/pkg/plugins/network/templates/flannel.go index 05ba45dd..cf3f6f0e 100644 --- a/pkg/plugins/network/templates/flannel.go +++ b/pkg/plugins/network/templates/flannel.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/plugins/storage/modules.go b/pkg/plugins/storage/modules.go index f5c09e09..78ad29bc 100644 --- a/pkg/plugins/storage/modules.go +++ b/pkg/plugins/storage/modules.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 storage import ( diff --git a/pkg/plugins/storage/prepares.go b/pkg/plugins/storage/prepares.go index cdbb2587..5747c37e 100644 --- a/pkg/plugins/storage/prepares.go +++ b/pkg/plugins/storage/prepares.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 storage import ( diff --git a/pkg/plugins/storage/tasks.go b/pkg/plugins/storage/tasks.go index 4b8e90dc..e373570f 100644 --- a/pkg/plugins/storage/tasks.go +++ b/pkg/plugins/storage/tasks.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 storage import ( diff --git a/pkg/plugins/storage/templates/openebs.go b/pkg/plugins/storage/templates/openebs.go index 846fd1d1..55eed26f 100644 --- a/pkg/plugins/storage/templates/openebs.go +++ b/pkg/plugins/storage/templates/openebs.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/utils/client.go b/pkg/utils/client.go index df603172..d1fefaef 100644 --- a/pkg/utils/client.go +++ b/pkg/utils/client.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 utils import ( @@ -38,4 +54,4 @@ func homeDir() string { return h } return os.Getenv("USERPROFILE") -} \ No newline at end of file +} diff --git a/pkg/utils/util.go b/pkg/utils/util.go index b4b046a4..c6fd6679 100644 --- a/pkg/utils/util.go +++ b/pkg/utils/util.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 utils import ( diff --git a/pkg/version/kubernetes/version_enum.go b/pkg/version/kubernetes/version_enum.go index 4e87feb4..0dd76326 100644 --- a/pkg/version/kubernetes/version_enum.go +++ b/pkg/version/kubernetes/version_enum.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 kubernetes import ( diff --git a/pkg/version/kubesphere/ks_installer.go b/pkg/version/kubesphere/ks_installer.go index d4c95f80..83fa28d4 100644 --- a/pkg/version/kubesphere/ks_installer.go +++ b/pkg/version/kubesphere/ks_installer.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 kubesphere import ( diff --git a/pkg/version/kubesphere/templates/cc_v211.go b/pkg/version/kubesphere/templates/cc_v211.go index 61755af3..f724df06 100644 --- a/pkg/version/kubesphere/templates/cc_v211.go +++ b/pkg/version/kubesphere/templates/cc_v211.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/version/kubesphere/templates/cc_v300.go b/pkg/version/kubesphere/templates/cc_v300.go index 6749ff4b..91bd178a 100644 --- a/pkg/version/kubesphere/templates/cc_v300.go +++ b/pkg/version/kubesphere/templates/cc_v300.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/version/kubesphere/templates/cc_v310.go b/pkg/version/kubesphere/templates/cc_v310.go index 8f53a43e..e7d14cc9 100644 --- a/pkg/version/kubesphere/templates/cc_v310.go +++ b/pkg/version/kubesphere/templates/cc_v310.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/version/kubesphere/templates/cc_v311.go b/pkg/version/kubesphere/templates/cc_v311.go index 7f8d6587..dc5ebe31 100644 --- a/pkg/version/kubesphere/templates/cc_v311.go +++ b/pkg/version/kubesphere/templates/cc_v311.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/version/kubesphere/templates/cc_v320.go b/pkg/version/kubesphere/templates/cc_v320.go index 46ba0191..e73f0707 100644 --- a/pkg/version/kubesphere/templates/cc_v320.go +++ b/pkg/version/kubesphere/templates/cc_v320.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/version/kubesphere/templates/installer.go b/pkg/version/kubesphere/templates/installer.go index b8d8e4a6..90ffcbd8 100644 --- a/pkg/version/kubesphere/templates/installer.go +++ b/pkg/version/kubesphere/templates/installer.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 templates import ( diff --git a/pkg/version/kubesphere/version_enum.go b/pkg/version/kubesphere/version_enum.go index 293b904a..5af2916d 100644 --- a/pkg/version/kubesphere/version_enum.go +++ b/pkg/version/kubesphere/version_enum.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 kubesphere import "strings" diff --git a/version/k8s.go b/version/k8s.go index 9f160424..48ddd6be 100644 --- a/version/k8s.go +++ b/version/k8s.go @@ -1,3 +1,19 @@ +/* + Copyright 2021 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 version // SupportedK8sVersionList returns the supported list of Kubernetes