From 0d852e8276f9455508ef9bc077bfca00d50ef971 Mon Sep 17 00:00:00 2001 From: hongming Date: Wed, 30 Apr 2025 15:53:51 +0800 Subject: [PATCH] chore: update copyright headers (#6496) Signed-off-by: hongming --- cmd/controller-manager/app/options/options.go | 1 + .../app/options/options_test.go | 1 + cmd/controller-manager/app/server.go | 1 + cmd/controller-manager/controller-manager.go | 1 + cmd/ks-apiserver/apiserver.go | 1 + cmd/ks-apiserver/app/options/options.go | 1 + cmd/ks-apiserver/app/options/validation.go | 1 + cmd/ks-apiserver/app/server.go | 1 + hack/boilerplate.go.txt | 5 + hack/custom-boilerplate.go.txt | 5 + kube/pkg/apis/core/v1/helper/qos/qos.go | 16 +++ kube/pkg/openapi/apiservice.go | 1 + kube/pkg/openapi/downloader.go | 1 + kube/pkg/openapi/error.go | 1 + kube/pkg/openapi/merge/merge.go | 16 +++ kube/pkg/openapi/openapi.go | 1 + kube/pkg/openapi/v2/services.go | 1 + kube/pkg/openapi/v2/services_test.go | 1 + kube/pkg/openapi/v3/services.go | 1 + kube/pkg/openapi/v3/services_test.go | 1 + .../resourcequota/apis/resourcequota/types.go | 16 +++ pkg/api/cluster/v1alpha1/types.go | 1 + pkg/api/resource/v1alpha2/types.go | 1 + pkg/api/types.go | 1 + pkg/api/utils.go | 1 + pkg/apiserver/apiserver.go | 1 + pkg/apiserver/auditing/client.go | 1 + pkg/apiserver/auditing/event.go | 1 + pkg/apiserver/auditing/internal/backend.go | 1 + pkg/apiserver/auditing/log/backend.go | 1 + pkg/apiserver/auditing/options.go | 1 + pkg/apiserver/auditing/webhook/backend.go | 1 + .../authenticators/basic/basic.go | 1 + .../authentication/authenticators/jwt/jwt.go | 1 + .../identityprovider/aliyunidaas/idaas.go | 1 + .../aliyunidaas/idaas_test.go | 1 + .../identityprovider/cas/cas.go | 1 + .../identityprovider/configuration.go | 1 + .../identityprovider/generic_provider.go | 1 + .../identityprovider/github/github.go | 1 + .../identityprovider/github/github_test.go | 1 + .../identityprovider/identity.go | 1 + .../identity_provider_factory.go | 1 + .../identityprovider/identityprovider.go | 1 + .../identityprovider/ldap/ldap.go | 1 + .../identityprovider/ldap/ldap_test.go | 1 + .../identityprovider/oauth_provider.go | 1 + .../identityprovider/oidc/oidc.go | 1 + .../identityprovider/oidc/oidc_test.go | 1 + pkg/apiserver/authentication/oauth/error.go | 1 + .../authentication/oauth/oauth_client.go | 1 + .../authentication/oauth/oauth_client_test.go | 1 + pkg/apiserver/authentication/oauth/oidc.go | 1 + .../authentication/oauth/oidc_test.go | 1 + pkg/apiserver/authentication/oauth/options.go | 1 + pkg/apiserver/authentication/options.go | 1 + .../request/anonymous/anonymous.go | 1 + .../request/anonymous/anonymous_test.go | 1 + pkg/apiserver/authentication/token/issuer.go | 1 + .../authentication/token/issuer_test.go | 1 + .../authorization/authorizer/interfaces.go | 16 +++ pkg/apiserver/authorization/options.go | 6 + pkg/apiserver/authorization/rbac/rbac.go | 16 +++ pkg/apiserver/authorization/rbac/rbac_test.go | 16 +++ pkg/apiserver/filters/apiservice.go | 1 + pkg/apiserver/filters/auditing.go | 1 + pkg/apiserver/filters/authentication.go | 1 + pkg/apiserver/filters/authorization.go | 1 + pkg/apiserver/filters/dynamicresource.go | 1 + pkg/apiserver/filters/filters.go | 1 + pkg/apiserver/filters/jsbundle.go | 1 + pkg/apiserver/filters/kubeapiserver.go | 1 + pkg/apiserver/filters/multicluster.go | 1 + pkg/apiserver/filters/requestinfo.go | 1 + pkg/apiserver/filters/responder.go | 1 + pkg/apiserver/filters/reverseproxy.go | 1 + pkg/apiserver/metrics/metrics.go | 1 + pkg/apiserver/options/options.go | 1 + pkg/apiserver/query/field.go | 1 + pkg/apiserver/query/types.go | 1 + pkg/apiserver/query/types_test.go | 1 + pkg/apiserver/request/requestinfo.go | 1 + pkg/apiserver/request/requestinfo_test.go | 1 + pkg/apiserver/rest/interface.go | 1 + pkg/apiserver/runtime/runtime.go | 1 + .../auth/rbac/clusterrole_interface.go | 1 + .../auth/rbac/globalrole_interfaces.go | 1 + pkg/componenthelper/auth/rbac/helper.go | 1 + pkg/componenthelper/auth/rbac/helper_test.go | 1 + pkg/componenthelper/auth/rbac/interface.go | 1 + .../auth/rbac/policy_comparator.go | 1 + .../auth/rbac/role_interfaces.go | 1 + .../auth/rbac/workspacerole_interfaces.go | 1 + pkg/config/config.go | 1 + pkg/config/config_test.go | 1 + pkg/config/options.go | 1 + pkg/constants/constants.go | 1 + .../application/appcategory_controller.go | 1 + .../application/apprelease_controller.go | 1 + .../application/apprelease_webhook.go | 1 + .../application/appversion_contrlller.go | 1 + .../application/delete_predicate.go | 1 + pkg/controller/application/executor.go | 1 + .../application/helm_repo_controller.go | 1 + pkg/controller/application/predicate.go | 1 + .../certificatesigningrequest_controller.go | 1 + pkg/controller/cluster/cluster_controller.go | 1 + .../cluster/cluster_controller_test.go | 1 + pkg/controller/cluster/cluster_webhook.go | 1 + pkg/controller/cluster/helper.go | 1 + pkg/controller/cluster/kubeconfig.go | 1 + pkg/controller/cluster/predicate/predicate.go | 1 + pkg/controller/cluster/utils/utils.go | 1 + .../clusterlabel/clusterlabel_controller.go | 1 + .../clusterrole/clusterrole_controller.go | 1 + .../clusterrolebinding_controller.go | 1 + pkg/controller/config/config_webhook.go | 1 + .../config/identityprovider/webhook.go | 1 + pkg/controller/config/oauthclient/webhook.go | 1 + pkg/controller/config/webhook_factory.go | 1 + pkg/controller/controllertest/testing.go | 1 + pkg/controller/conversion/conversion.go | 1 + pkg/controller/core/category_controller.go | 1 + pkg/controller/core/extension_controller.go | 1 + .../core/extensionversion_controller.go | 1 + pkg/controller/core/installplan_controller.go | 1 + pkg/controller/core/installplan_webhook.go | 1 + pkg/controller/core/repository_controller.go | 1 + pkg/controller/core/util.go | 1 + pkg/controller/core/util_test.go | 1 + .../extension/apiservice_webhook.go | 1 + .../extension/extensionentry_webhook.go | 1 + pkg/controller/extension/jsbundle_webhook.go | 1 + .../extension/reverseproxy_webhook.go | 1 + .../globalrole/globalrole_controller.go | 1 + .../globalrolebinding_controller.go | 1 + pkg/controller/group/group_controller.go | 1 + .../groupbinding/groupbinding_controller.go | 1 + pkg/controller/job/job_controller.go | 1 + pkg/controller/job/job_controller_test.go | 1 + pkg/controller/job/types.go | 1 + .../k8sapplication_controller.go | 1 + pkg/controller/k8sapplication/utils.go | 1 + .../ksserviceaccount/pod_injector.go | 1 + .../serviceaccount_controller.go | 1 + .../kubeconfig/kubeconfig_controller.go | 1 + pkg/controller/kubectl/kubectl.go | 1 + pkg/controller/kubectl/lease/lease.go | 1 + .../loginrecord/loginrecord_controller.go | 1 + .../loginrecord_controller_test.go | 1 + pkg/controller/manager.go | 1 + .../namespace/namespace_controller.go | 1 + .../namespace_controller_suite_test.go | 1 + .../namespace/namespace_controller_test.go | 1 + pkg/controller/openapi/config.go | 1 + pkg/controller/openapi/openapi_controller.go | 1 + pkg/controller/options/options.go | 1 + pkg/controller/quota/accessor.go | 1 + pkg/controller/quota/lockfactory.go | 1 + .../quota/resourcequota_controller.go | 1 + pkg/controller/quota/resourcequota_webhook.go | 1 + pkg/controller/quota/util.go | 1 + .../resource_protection_webhook.go | 1 + pkg/controller/role/role_controller.go | 1 + .../rolebinding/rolebinding_controller.go | 1 + .../roletemplate/roletemplate_controller.go | 1 + .../serviceaccount_secret_controller.go | 1 + .../serviceaccount_controller.go | 1 + .../serviceaccount_controller_test.go | 1 + .../serviceaccount_token_controller.go | 1 + .../storageclass/storageclass_controller.go | 1 + .../storageclass_controller_test.go | 1 + pkg/controller/telemetry/options.go | 1 + pkg/controller/telemetry/runnable.go | 1 + .../telemetry/telemetry_controller.go | 1 + pkg/controller/user/user_controller.go | 1 + pkg/controller/user/user_controller_test.go | 1 + pkg/controller/user/user_webhook.go | 1 + pkg/controller/workspace/metrics.go | 1 + .../workspace/workspace_controller.go | 1 + .../workspace_controller_suite_test.go | 1 + .../workspace/workspace_controller_test.go | 1 + .../workspacerole/workspacerole_controller.go | 1 + .../workspacerole_controller_suite_test.go | 1 + .../workspacerole_controller_test.go | 1 + .../workspacerolebinding_controller.go | 1 + ...kspacerolebinding_controller_suite_test.go | 1 + .../workspacerolebinding_controller_test.go | 1 + .../workspacetemplate/predicate/predicate.go | 1 + .../workspacetemplate/utils/helper.go | 1 + .../workspacetemplate_controller.go | 1 + .../workspacetemplate_controller_test.go | 1 + pkg/kapis/application/v2/attachments.go | 1 + pkg/kapis/application/v2/crd2cr.go | 1 + pkg/kapis/application/v2/errors.go | 1 + pkg/kapis/application/v2/handler_app.go | 1 + pkg/kapis/application/v2/handler_apprls.go | 1 + .../application/v2/handler_appversion.go | 1 + pkg/kapis/application/v2/handler_category.go | 1 + pkg/kapis/application/v2/handler_repo.go | 1 + pkg/kapis/application/v2/operator.go | 1 + pkg/kapis/application/v2/register.go | 1 + pkg/kapis/application/v2/utils.go | 1 + pkg/kapis/cluster/v1alpha1/handler.go | 1 + pkg/kapis/cluster/v1alpha1/handler_test.go | 1 + pkg/kapis/cluster/v1alpha1/label_handler.go | 1 + pkg/kapis/cluster/v1alpha1/register.go | 1 + pkg/kapis/config/v1alpha2/handler.go | 1 + pkg/kapis/config/v1alpha2/register.go | 1 + pkg/kapis/gateway/v1alpha2/handler.go | 1 + pkg/kapis/gateway/v1alpha2/register.go | 1 + pkg/kapis/generic/generic.go | 1 + pkg/kapis/generic/generic_test.go | 1 + pkg/kapis/iam/v1beta1/handler.go | 1 + pkg/kapis/iam/v1beta1/register.go | 1 + pkg/kapis/oauth/handler.go | 1 + pkg/kapis/oauth/register.go | 1 + pkg/kapis/operations/v1alpha2/handler.go | 1 + pkg/kapis/operations/v1alpha2/register.go | 1 + pkg/kapis/package/v1alpha1/handler.go | 1 + pkg/kapis/package/v1alpha1/register.go | 1 + pkg/kapis/resources/group.go | 1 + pkg/kapis/resources/v1alpha2/handler.go | 1 + pkg/kapis/resources/v1alpha2/register.go | 1 + pkg/kapis/resources/v1alpha3/handler.go | 1 + pkg/kapis/resources/v1alpha3/handler_test.go | 1 + pkg/kapis/resources/v1alpha3/register.go | 1 + pkg/kapis/static/handler.go | 1 + pkg/kapis/static/register.go | 1 + pkg/kapis/tenant/v1alpha3/handler.go | 1 + pkg/kapis/tenant/v1alpha3/register.go | 1 + pkg/kapis/tenant/v1beta1/handler.go | 1 + pkg/kapis/tenant/v1beta1/register.go | 1 + pkg/kapis/tenant/v1beta1/resource_handler.go | 1 + pkg/kapis/terminal/v1alpha2/handler.go | 1 + pkg/kapis/terminal/v1alpha2/register.go | 1 + pkg/kapis/version/register.go | 1 + .../workloadtemplate/v1alpha1/handler.go | 1 + .../workloadtemplate/v1alpha1/register.go | 1 + pkg/models/auth/authenticator.go | 1 + pkg/models/auth/login_recoder.go | 1 + pkg/models/auth/mapper.go | 1 + pkg/models/auth/oauth.go | 1 + pkg/models/auth/oauth_test.go | 1 + pkg/models/auth/password.go | 1 + pkg/models/auth/password_test.go | 1 + pkg/models/auth/token.go | 1 + pkg/models/components/components.go | 1 + pkg/models/components/components_test.go | 1 + pkg/models/composedapp/options.go | 1 + pkg/models/git/git.go | 1 + pkg/models/git/git_test.go | 1 + pkg/models/iam/am/am.go | 1 + pkg/models/iam/group/group.go | 1 + pkg/models/iam/im/im.go | 1 + pkg/models/iam/im/im_test.go | 1 + pkg/models/kubeconfig/kubeconfig.go | 1 + pkg/models/kubeconfig/options.go | 1 + pkg/models/quotas/quotas.go | 1 + pkg/models/registries/blob.go | 1 + pkg/models/registries/image.go | 1 + pkg/models/registries/image_test.go | 1 + pkg/models/registries/image_type.go | 1 + .../registries/imagesearch/configuration.go | 1 + .../registries/imagesearch/controller.go | 1 + .../imagesearch/dockerhub/provider.go | 1 + .../registries/imagesearch/harbor/provider.go | 1 + .../imagesearch/registry_provider.go | 1 + pkg/models/registries/manifest.go | 1 + pkg/models/registries/manifest_test.go | 1 + pkg/models/registries/registries.go | 1 + pkg/models/registries/registry_client.go | 1 + pkg/models/registries/registry_client_test.go | 1 + pkg/models/registries/token.go | 1 + pkg/models/registries/token_test.go | 1 + pkg/models/registries/v2/options.go | 1 + pkg/models/registries/v2/registries.go | 1 + pkg/models/registries/v2/registries_test.go | 1 + pkg/models/registries/v2/registry_helper.go | 1 + .../registries/v2/secret_authenticator.go | 1 + .../v2/secret_authenticator_test.go | 1 + pkg/models/registries/v2/types.go | 1 + .../resources/v1alpha3/cluster/clusters.go | 1 + .../v1alpha3/clusterrole/clusterroles.go | 1 + .../v1alpha3/clusterrole/clusterroles_test.go | 1 + .../clusterrolebinding/clusterrolebindings.go | 1 + .../clusterrolebindings_test.go | 1 + .../v1alpha3/configmap/configmaps.go | 1 + .../v1alpha3/configmap/configmaps_test.go | 1 + .../resources/v1alpha3/cronjob/cronjobs.go | 1 + .../customresourcedefinitions.go | 1 + .../resources/v1alpha3/daemonset/daemonset.go | 1 + .../v1alpha3/daemonset/daemonset_test.go | 1 + .../v1alpha3/deployment/deployments.go | 1 + .../v1alpha3/deployment/deployments_test.go | 1 + .../v1alpha3/globalrole/globalroles.go | 1 + .../globalrolebinding/globalrolebindings.go | 1 + pkg/models/resources/v1alpha3/group/group.go | 1 + .../v1alpha3/groupbinding/groupbinding.go | 1 + .../v1alpha3/hpa/horizontalpodautoscalers.go | 1 + .../resources/v1alpha3/ingress/ingresses.go | 1 + pkg/models/resources/v1alpha3/interface.go | 1 + .../resources/v1alpha3/interface_test.go | 1 + pkg/models/resources/v1alpha3/job/jobs.go | 1 + pkg/models/resources/v1alpha3/label/label.go | 1 + .../v1alpha3/loginrecord/loginrecords.go | 1 + .../v1alpha3/namespace/namespaces.go | 1 + pkg/models/resources/v1alpha3/node/nodes.go | 1 + .../persistentvolume/persistentvolume.go | 1 + .../persistentvolumeclaim.go | 1 + pkg/models/resources/v1alpha3/pod/pods.go | 1 + .../resources/v1alpha3/resource/resource.go | 1 + .../v1alpha3/resource/resource_test.go | 1 + pkg/models/resources/v1alpha3/role/roles.go | 1 + .../v1alpha3/rolebinding/rolebindings.go | 1 + .../resources/v1alpha3/secret/secrets.go | 1 + .../resources/v1alpha3/service/services.go | 1 + .../v1alpha3/serviceaccount/serviceaccount.go | 1 + .../v1alpha3/statefulset/statefulsets.go | 1 + .../v1alpha3/storageclass/storageclasses.go | 1 + pkg/models/resources/v1alpha3/user/users.go | 1 + .../v1alpha3/workspace/workspaces.go | 1 + .../v1alpha3/workspacerole/workspaceroles.go | 1 + .../workspacerolebindings.go | 1 + .../workspacetemplate/workspacetemplates.go | 1 + pkg/models/resources/v1beta1/interface.go | 1 + .../resources/v1beta1/resourcemanager.go | 1 + pkg/models/revisions/revisions.go | 1 + pkg/models/storage/storage.go | 1 + pkg/models/tenant/resourcequota.go | 1 + pkg/models/tenant/tenant.go | 1 + pkg/models/terminal/options.go | 1 + pkg/models/terminal/terminal.go | 1 + pkg/models/types.go | 1 + pkg/models/workloads/jobs.go | 1 + pkg/multicluster/options.go | 1 + pkg/scheme/scheme.go | 1 + pkg/server/errors/errors.go | 1 + pkg/server/healthz/healthz.go | 1 + pkg/server/options/dynamic_options.go | 1 + pkg/server/options/options.go | 1 + pkg/server/params/params.go | 1 + pkg/server/params/params_test.go | 1 + pkg/simple/client/application/helper.go | 6 + pkg/simple/client/application/oci.go | 6 + pkg/simple/client/application/oci_test.go | 6 + pkg/simple/client/application/store.go | 6 + pkg/simple/client/application/yaml.go | 6 + pkg/simple/client/cache/cache.go | 6 + pkg/simple/client/cache/factory.go | 6 + pkg/simple/client/cache/inmemory_cache.go | 6 + .../client/cache/inmemory_cache_test.go | 6 + pkg/simple/client/cache/options.go | 6 + pkg/simple/client/cache/redis.go | 6 + pkg/simple/client/k8s/kubernetes.go | 6 + pkg/simple/client/k8s/null_client.go | 6 + pkg/simple/client/k8s/options.go | 9 +- pkg/simple/client/oci/errors.go | 6 + pkg/simple/client/oci/oci_test.go | 6 + pkg/simple/client/oci/registry.go | 6 + pkg/simple/client/oci/url.go | 6 + pkg/simple/client/oci/utils.go | 6 + pkg/simple/client/overview/constants.go | 6 + pkg/simple/client/overview/metrics.go | 6 + pkg/utils/clusterclient/clusterclient.go | 1 + pkg/utils/conversions/core/v1/conversion.go | 113 ------------------ pkg/utils/directives/match.go | 1 + pkg/utils/directives/match_test.go | 1 + pkg/utils/directives/replace.go | 1 + pkg/utils/directives/rewrite.go | 1 + pkg/utils/directives/rewrite_test.go | 1 + pkg/utils/esutil/esutil.go | 42 ------- pkg/utils/esutil/esutil_test.go | 86 ------------- pkg/utils/hashutil/hashutil.go | 1 + pkg/utils/idutils/id_utils.go | 1 + pkg/utils/idutils/id_utils_test.go | 1 + pkg/utils/iputil/iputils.go | 1 + pkg/utils/josnpatchutil/jsonpatchutil.go | 1 + pkg/utils/jsonutil/jsonutils.go | 1 + pkg/utils/k8sutil/k8sutil.go | 1 + pkg/utils/k8sutil/k8sutil_test.go | 1 + pkg/utils/k8sutil/version.go | 1 + pkg/utils/net/net.go | 1 + pkg/utils/pkiutil/pkiutil.go | 1 + pkg/utils/rbac/name.go | 1 + pkg/utils/readerutils/MD5Reader.go | 1 + pkg/utils/reflectutils/deep.go | 1 + pkg/utils/reflectutils/reflect.go | 1 + pkg/utils/resourceparse/resource_parse.go | 1 + .../serviceaccount/serviceaccount_util.go | 1 + pkg/utils/sliceutil/sliceutils.go | 1 + pkg/utils/stringutils/string.go | 1 + pkg/utils/term/term.go | 1 + pkg/version/version.go | 1 + .../api/application/v2/constants.go | 6 + .../kubesphere.io/api/application/v2/doc.go | 6 + .../api/application/v2/register.go | 6 + .../kubesphere.io/api/application/v2/types.go | 6 + .../application/v2/zz_generated.deepcopy.go | 6 + .../kubesphere.io/api/cluster/v1alpha1/doc.go | 6 + .../api/cluster/v1alpha1/openapi_generated.go | 6 + .../api/cluster/v1alpha1/register.go | 6 + .../api/cluster/v1alpha1/types.go | 6 + .../cluster/v1alpha1/zz_generated.deepcopy.go | 6 + .../kubesphere.io/api/constants/constants.go | 6 + .../api/core/v1alpha1/constants.go | 6 + .../kubesphere.io/api/core/v1alpha1/doc.go | 6 + .../kubesphere.io/api/core/v1alpha1/i18n.go | 6 + .../api/core/v1alpha1/register.go | 6 + .../kubesphere.io/api/core/v1alpha1/types.go | 6 + .../core/v1alpha1/zz_generated.deepcopy.go | 6 + .../api/extensions/v1alpha1/constants.go | 6 + .../api/extensions/v1alpha1/doc.go | 6 + .../api/extensions/v1alpha1/register.go | 6 + .../api/extensions/v1alpha1/types.go | 6 + .../api/extensions/v1alpha1/upstream.go | 6 + .../v1alpha1/zz_generated.deepcopy.go | 6 + .../kubesphere.io/api/gateway/v1alpha2/doc.go | 6 + .../api/gateway/v1alpha2/register.go | 6 + .../api/gateway/v1alpha2/types.go | 6 + .../gateway/v1alpha2/zz_generated.deepcopy.go | 6 + .../src/kubesphere.io/api/iam/v1alpha2/doc.go | 6 + .../api/iam/v1alpha2/register.go | 6 + .../kubesphere.io/api/iam/v1alpha2/types.go | 6 + .../api/iam/v1alpha2/zz_generated.deepcopy.go | 6 + .../api/iam/v1beta1/constants.go | 6 + .../src/kubesphere.io/api/iam/v1beta1/doc.go | 6 + .../kubesphere.io/api/iam/v1beta1/register.go | 6 + .../kubesphere.io/api/iam/v1beta1/types.go | 6 + .../api/iam/v1beta1/zz_generated.deepcopy.go | 6 + .../kubesphere.io/api/quota/v1alpha2/doc.go | 6 + .../api/quota/v1alpha2/register.go | 6 + .../kubesphere.io/api/quota/v1alpha2/types.go | 6 + .../quota/v1alpha2/zz_generated.deepcopy.go | 6 + .../kubesphere.io/api/storage/v1alpha1/doc.go | 6 + .../api/storage/v1alpha1/register.go | 6 + .../api/storage/v1alpha1/types.go | 6 + .../storage/v1alpha1/zz_generated.deepcopy.go | 6 + .../kubesphere.io/api/tenant/v1alpha1/doc.go | 6 + .../api/tenant/v1alpha1/register.go | 6 + .../api/tenant/v1alpha1/types.go | 6 + .../tenant/v1alpha1/zz_generated.deepcopy.go | 6 + .../kubesphere.io/api/tenant/v1alpha2/doc.go | 6 + .../api/tenant/v1alpha2/register.go | 6 + .../api/tenant/v1alpha2/types.go | 6 + .../tenant/v1alpha2/zz_generated.deepcopy.go | 6 + .../kubesphere.io/api/tenant/v1beta1/doc.go | 6 + .../api/tenant/v1beta1/openapi_generated.go | 6 + .../api/tenant/v1beta1/register.go | 6 + .../kubesphere.io/api/tenant/v1beta1/types.go | 6 + .../tenant/v1beta1/zz_generated.deepcopy.go | 6 + .../client-go/kubesphere/scheme/doc.go | 6 +- .../client-go/kubesphere/scheme/register.go | 6 + .../src/kubesphere.io/utils/helm/executor.go | 6 + .../kubesphere.io/utils/helm/repo_index.go | 6 + .../utils/helm/rest_client_getter.go | 6 + .../src/kubesphere.io/utils/helm/tls_util.go | 6 + staging/src/kubesphere.io/utils/s3/s3.go | 6 + test/e2e/constant/constants.go | 6 + test/e2e/e2e.go | 6 + test/e2e/e2e_test.go | 6 + test/e2e/framework/expect.go | 6 + test/e2e/framework/framework.go | 6 + test/e2e/framework/ginkgowrapper/wrapper.go | 6 + test/e2e/framework/log.go | 6 + test/e2e/framework/test_context.go | 6 + test/e2e/quick.go | 6 + test/e2e/users.go | 6 + tools/cmd/crd-doc-gen/main.go | 1 + tools/cmd/doc-gen/main.go | 1 + tools/lib/render.go | 1 + tools/lib/storage.go | 1 + tools/tools.go | 6 + 473 files changed, 1053 insertions(+), 244 deletions(-) delete mode 100644 pkg/utils/conversions/core/v1/conversion.go delete mode 100644 pkg/utils/esutil/esutil.go delete mode 100644 pkg/utils/esutil/esutil_test.go diff --git a/cmd/controller-manager/app/options/options.go b/cmd/controller-manager/app/options/options.go index 3705bb00e..5e4b01e18 100644 --- a/cmd/controller-manager/app/options/options.go +++ b/cmd/controller-manager/app/options/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/cmd/controller-manager/app/options/options_test.go b/cmd/controller-manager/app/options/options_test.go index 61d8be0ec..64d43a492 100644 --- a/cmd/controller-manager/app/options/options_test.go +++ b/cmd/controller-manager/app/options/options_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/cmd/controller-manager/app/server.go b/cmd/controller-manager/app/server.go index c9406cdac..14547eb64 100644 --- a/cmd/controller-manager/app/server.go +++ b/cmd/controller-manager/app/server.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/cmd/controller-manager/controller-manager.go b/cmd/controller-manager/controller-manager.go index 9dfb4ae52..76692739a 100644 --- a/cmd/controller-manager/controller-manager.go +++ b/cmd/controller-manager/controller-manager.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/cmd/ks-apiserver/apiserver.go b/cmd/ks-apiserver/apiserver.go index 478aaa795..194ff35e3 100644 --- a/cmd/ks-apiserver/apiserver.go +++ b/cmd/ks-apiserver/apiserver.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/cmd/ks-apiserver/app/options/options.go b/cmd/ks-apiserver/app/options/options.go index c42841f8a..d2c1cfd33 100644 --- a/cmd/ks-apiserver/app/options/options.go +++ b/cmd/ks-apiserver/app/options/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/cmd/ks-apiserver/app/options/validation.go b/cmd/ks-apiserver/app/options/validation.go index 9b9d824cb..8390f3028 100644 --- a/cmd/ks-apiserver/app/options/validation.go +++ b/cmd/ks-apiserver/app/options/validation.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/cmd/ks-apiserver/app/server.go b/cmd/ks-apiserver/app/server.go index 3ee890376..1007238a0 100644 --- a/cmd/ks-apiserver/app/server.go +++ b/cmd/ks-apiserver/app/server.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt index e69de29bb..05a8feace 100644 --- a/hack/boilerplate.go.txt +++ b/hack/boilerplate.go.txt @@ -0,0 +1,5 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ \ No newline at end of file diff --git a/hack/custom-boilerplate.go.txt b/hack/custom-boilerplate.go.txt index e69de29bb..05a8feace 100644 --- a/hack/custom-boilerplate.go.txt +++ b/hack/custom-boilerplate.go.txt @@ -0,0 +1,5 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ \ No newline at end of file diff --git a/kube/pkg/apis/core/v1/helper/qos/qos.go b/kube/pkg/apis/core/v1/helper/qos/qos.go index 8dbb7783d..2d8de5b53 100644 --- a/kube/pkg/apis/core/v1/helper/qos/qos.go +++ b/kube/pkg/apis/core/v1/helper/qos/qos.go @@ -1,3 +1,19 @@ +/* +Copyright 2017 The Kubernetes 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 qos import ( diff --git a/kube/pkg/openapi/apiservice.go b/kube/pkg/openapi/apiservice.go index 0054f04ec..e2bbe550c 100644 --- a/kube/pkg/openapi/apiservice.go +++ b/kube/pkg/openapi/apiservice.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/kube/pkg/openapi/downloader.go b/kube/pkg/openapi/downloader.go index d1d237317..6c739c835 100644 --- a/kube/pkg/openapi/downloader.go +++ b/kube/pkg/openapi/downloader.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/kube/pkg/openapi/error.go b/kube/pkg/openapi/error.go index 8b522e347..45a3ede8b 100644 --- a/kube/pkg/openapi/error.go +++ b/kube/pkg/openapi/error.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/kube/pkg/openapi/merge/merge.go b/kube/pkg/openapi/merge/merge.go index 4ee2456eb..06174124a 100644 --- a/kube/pkg/openapi/merge/merge.go +++ b/kube/pkg/openapi/merge/merge.go @@ -1,3 +1,19 @@ +/* +Copyright 2017 The Kubernetes 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 merge import ( diff --git a/kube/pkg/openapi/openapi.go b/kube/pkg/openapi/openapi.go index 09606c77b..9fd145664 100644 --- a/kube/pkg/openapi/openapi.go +++ b/kube/pkg/openapi/openapi.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/kube/pkg/openapi/v2/services.go b/kube/pkg/openapi/v2/services.go index 4c3373e3b..979417754 100644 --- a/kube/pkg/openapi/v2/services.go +++ b/kube/pkg/openapi/v2/services.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/kube/pkg/openapi/v2/services_test.go b/kube/pkg/openapi/v2/services_test.go index 338613ad0..08d9595b3 100644 --- a/kube/pkg/openapi/v2/services_test.go +++ b/kube/pkg/openapi/v2/services_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/kube/pkg/openapi/v3/services.go b/kube/pkg/openapi/v3/services.go index 28a278273..055068769 100644 --- a/kube/pkg/openapi/v3/services.go +++ b/kube/pkg/openapi/v3/services.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/kube/pkg/openapi/v3/services_test.go b/kube/pkg/openapi/v3/services_test.go index b7fb5eb98..2e3a79bb1 100644 --- a/kube/pkg/openapi/v3/services_test.go +++ b/kube/pkg/openapi/v3/services_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/kube/plugin/pkg/admission/resourcequota/apis/resourcequota/types.go b/kube/plugin/pkg/admission/resourcequota/apis/resourcequota/types.go index cd9b2dc1d..5d21911a4 100644 --- a/kube/plugin/pkg/admission/resourcequota/apis/resourcequota/types.go +++ b/kube/plugin/pkg/admission/resourcequota/apis/resourcequota/types.go @@ -1,3 +1,19 @@ +/* +Copyright 2017 The Kubernetes 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 resourcequota import ( diff --git a/pkg/api/cluster/v1alpha1/types.go b/pkg/api/cluster/v1alpha1/types.go index e00995849..0e475eeaa 100644 --- a/pkg/api/cluster/v1alpha1/types.go +++ b/pkg/api/cluster/v1alpha1/types.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/api/resource/v1alpha2/types.go b/pkg/api/resource/v1alpha2/types.go index 72a5a663f..24b35ead3 100644 --- a/pkg/api/resource/v1alpha2/types.go +++ b/pkg/api/resource/v1alpha2/types.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/api/types.go b/pkg/api/types.go index 39346fe01..304fa61bb 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/api/utils.go b/pkg/api/utils.go index 12782cafc..3e9213b3f 100644 --- a/pkg/api/utils.go +++ b/pkg/api/utils.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/apiserver.go b/pkg/apiserver/apiserver.go index 5e64a770d..7246c638c 100644 --- a/pkg/apiserver/apiserver.go +++ b/pkg/apiserver/apiserver.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/auditing/client.go b/pkg/apiserver/auditing/client.go index a49cb6c69..cc122f2e6 100644 --- a/pkg/apiserver/auditing/client.go +++ b/pkg/apiserver/auditing/client.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/auditing/event.go b/pkg/apiserver/auditing/event.go index bb417816c..12969a19d 100644 --- a/pkg/apiserver/auditing/event.go +++ b/pkg/apiserver/auditing/event.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/auditing/internal/backend.go b/pkg/apiserver/auditing/internal/backend.go index 930ae3a2e..a059ea74c 100644 --- a/pkg/apiserver/auditing/internal/backend.go +++ b/pkg/apiserver/auditing/internal/backend.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/auditing/log/backend.go b/pkg/apiserver/auditing/log/backend.go index e987316a9..3de672427 100644 --- a/pkg/apiserver/auditing/log/backend.go +++ b/pkg/apiserver/auditing/log/backend.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/auditing/options.go b/pkg/apiserver/auditing/options.go index 5e11fb0ea..c299f54f8 100644 --- a/pkg/apiserver/auditing/options.go +++ b/pkg/apiserver/auditing/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/auditing/webhook/backend.go b/pkg/apiserver/auditing/webhook/backend.go index 5bdd87778..06332039b 100644 --- a/pkg/apiserver/auditing/webhook/backend.go +++ b/pkg/apiserver/auditing/webhook/backend.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/authenticators/basic/basic.go b/pkg/apiserver/authentication/authenticators/basic/basic.go index f16aa31fe..ffddca002 100644 --- a/pkg/apiserver/authentication/authenticators/basic/basic.go +++ b/pkg/apiserver/authentication/authenticators/basic/basic.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/authenticators/jwt/jwt.go b/pkg/apiserver/authentication/authenticators/jwt/jwt.go index b95b34ee4..b537a6575 100644 --- a/pkg/apiserver/authentication/authenticators/jwt/jwt.go +++ b/pkg/apiserver/authentication/authenticators/jwt/jwt.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/aliyunidaas/idaas.go b/pkg/apiserver/authentication/identityprovider/aliyunidaas/idaas.go index 236c4d529..1a18cb3a9 100644 --- a/pkg/apiserver/authentication/identityprovider/aliyunidaas/idaas.go +++ b/pkg/apiserver/authentication/identityprovider/aliyunidaas/idaas.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/aliyunidaas/idaas_test.go b/pkg/apiserver/authentication/identityprovider/aliyunidaas/idaas_test.go index eb44a9fbe..2a3e0ffb8 100644 --- a/pkg/apiserver/authentication/identityprovider/aliyunidaas/idaas_test.go +++ b/pkg/apiserver/authentication/identityprovider/aliyunidaas/idaas_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/cas/cas.go b/pkg/apiserver/authentication/identityprovider/cas/cas.go index 672d5e832..8a0ec14c2 100644 --- a/pkg/apiserver/authentication/identityprovider/cas/cas.go +++ b/pkg/apiserver/authentication/identityprovider/cas/cas.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/configuration.go b/pkg/apiserver/authentication/identityprovider/configuration.go index a1df4a6ef..a6f8b1c88 100644 --- a/pkg/apiserver/authentication/identityprovider/configuration.go +++ b/pkg/apiserver/authentication/identityprovider/configuration.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/generic_provider.go b/pkg/apiserver/authentication/identityprovider/generic_provider.go index 3f3ecb79a..8e66a3bc5 100644 --- a/pkg/apiserver/authentication/identityprovider/generic_provider.go +++ b/pkg/apiserver/authentication/identityprovider/generic_provider.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/github/github.go b/pkg/apiserver/authentication/identityprovider/github/github.go index aa6c47d22..b14e24a88 100644 --- a/pkg/apiserver/authentication/identityprovider/github/github.go +++ b/pkg/apiserver/authentication/identityprovider/github/github.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/github/github_test.go b/pkg/apiserver/authentication/identityprovider/github/github_test.go index e5248838e..0c28d1dbf 100644 --- a/pkg/apiserver/authentication/identityprovider/github/github_test.go +++ b/pkg/apiserver/authentication/identityprovider/github/github_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/identity.go b/pkg/apiserver/authentication/identityprovider/identity.go index 8e619552e..566150672 100644 --- a/pkg/apiserver/authentication/identityprovider/identity.go +++ b/pkg/apiserver/authentication/identityprovider/identity.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/identity_provider_factory.go b/pkg/apiserver/authentication/identityprovider/identity_provider_factory.go index ae71b1670..a530894dc 100644 --- a/pkg/apiserver/authentication/identityprovider/identity_provider_factory.go +++ b/pkg/apiserver/authentication/identityprovider/identity_provider_factory.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/identityprovider.go b/pkg/apiserver/authentication/identityprovider/identityprovider.go index fee7c5c11..b7d9a2972 100644 --- a/pkg/apiserver/authentication/identityprovider/identityprovider.go +++ b/pkg/apiserver/authentication/identityprovider/identityprovider.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/ldap/ldap.go b/pkg/apiserver/authentication/identityprovider/ldap/ldap.go index ca816575a..da28d3a85 100644 --- a/pkg/apiserver/authentication/identityprovider/ldap/ldap.go +++ b/pkg/apiserver/authentication/identityprovider/ldap/ldap.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/ldap/ldap_test.go b/pkg/apiserver/authentication/identityprovider/ldap/ldap_test.go index a4441f3e5..c303d4b56 100644 --- a/pkg/apiserver/authentication/identityprovider/ldap/ldap_test.go +++ b/pkg/apiserver/authentication/identityprovider/ldap/ldap_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/oauth_provider.go b/pkg/apiserver/authentication/identityprovider/oauth_provider.go index fea301e58..8f725c0dd 100644 --- a/pkg/apiserver/authentication/identityprovider/oauth_provider.go +++ b/pkg/apiserver/authentication/identityprovider/oauth_provider.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/oidc/oidc.go b/pkg/apiserver/authentication/identityprovider/oidc/oidc.go index a77fd906d..898c0b13f 100644 --- a/pkg/apiserver/authentication/identityprovider/oidc/oidc.go +++ b/pkg/apiserver/authentication/identityprovider/oidc/oidc.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/identityprovider/oidc/oidc_test.go b/pkg/apiserver/authentication/identityprovider/oidc/oidc_test.go index ce1e324ef..706b8a272 100644 --- a/pkg/apiserver/authentication/identityprovider/oidc/oidc_test.go +++ b/pkg/apiserver/authentication/identityprovider/oidc/oidc_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/oauth/error.go b/pkg/apiserver/authentication/oauth/error.go index 4a1667327..938aa344d 100644 --- a/pkg/apiserver/authentication/oauth/error.go +++ b/pkg/apiserver/authentication/oauth/error.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/oauth/oauth_client.go b/pkg/apiserver/authentication/oauth/oauth_client.go index bfbfdd569..aa38b31c4 100644 --- a/pkg/apiserver/authentication/oauth/oauth_client.go +++ b/pkg/apiserver/authentication/oauth/oauth_client.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/oauth/oauth_client_test.go b/pkg/apiserver/authentication/oauth/oauth_client_test.go index 6ea25abb5..3d892bb0e 100644 --- a/pkg/apiserver/authentication/oauth/oauth_client_test.go +++ b/pkg/apiserver/authentication/oauth/oauth_client_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/oauth/oidc.go b/pkg/apiserver/authentication/oauth/oidc.go index 3ef6c225e..40b69e4f4 100644 --- a/pkg/apiserver/authentication/oauth/oidc.go +++ b/pkg/apiserver/authentication/oauth/oidc.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/oauth/oidc_test.go b/pkg/apiserver/authentication/oauth/oidc_test.go index d589ba3dd..fc85ac89c 100644 --- a/pkg/apiserver/authentication/oauth/oidc_test.go +++ b/pkg/apiserver/authentication/oauth/oidc_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/oauth/options.go b/pkg/apiserver/authentication/oauth/options.go index 28cc0d391..161eccc17 100644 --- a/pkg/apiserver/authentication/oauth/options.go +++ b/pkg/apiserver/authentication/oauth/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/options.go b/pkg/apiserver/authentication/options.go index 7f8c3c2cf..860dda2e7 100644 --- a/pkg/apiserver/authentication/options.go +++ b/pkg/apiserver/authentication/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/request/anonymous/anonymous.go b/pkg/apiserver/authentication/request/anonymous/anonymous.go index 7563c0b49..799eef0ab 100644 --- a/pkg/apiserver/authentication/request/anonymous/anonymous.go +++ b/pkg/apiserver/authentication/request/anonymous/anonymous.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/request/anonymous/anonymous_test.go b/pkg/apiserver/authentication/request/anonymous/anonymous_test.go index 7103057e8..a94e18d0e 100644 --- a/pkg/apiserver/authentication/request/anonymous/anonymous_test.go +++ b/pkg/apiserver/authentication/request/anonymous/anonymous_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/token/issuer.go b/pkg/apiserver/authentication/token/issuer.go index 2ac08a9f9..86df5ec8f 100644 --- a/pkg/apiserver/authentication/token/issuer.go +++ b/pkg/apiserver/authentication/token/issuer.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authentication/token/issuer_test.go b/pkg/apiserver/authentication/token/issuer_test.go index fe35ed3f0..911efc7b7 100644 --- a/pkg/apiserver/authentication/token/issuer_test.go +++ b/pkg/apiserver/authentication/token/issuer_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/authorization/authorizer/interfaces.go b/pkg/apiserver/authorization/authorizer/interfaces.go index 7f96d2f41..4c2b55c6e 100644 --- a/pkg/apiserver/authorization/authorizer/interfaces.go +++ b/pkg/apiserver/authorization/authorizer/interfaces.go @@ -1,3 +1,19 @@ +/* +Copyright 2014 The Kubernetes 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 authorizer import ( diff --git a/pkg/apiserver/authorization/options.go b/pkg/apiserver/authorization/options.go index e4035bffe..adb3bf6b8 100644 --- a/pkg/apiserver/authorization/options.go +++ b/pkg/apiserver/authorization/options.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package authorization import ( diff --git a/pkg/apiserver/authorization/rbac/rbac.go b/pkg/apiserver/authorization/rbac/rbac.go index f62cb753b..771359137 100644 --- a/pkg/apiserver/authorization/rbac/rbac.go +++ b/pkg/apiserver/authorization/rbac/rbac.go @@ -1,3 +1,19 @@ +/* +Copyright 2016 The Kubernetes 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. +*/ + // NOTE: This file is copied from k8s.io/kubernetes/plugin/pkg/auth/authorizer/rbac. package rbac diff --git a/pkg/apiserver/authorization/rbac/rbac_test.go b/pkg/apiserver/authorization/rbac/rbac_test.go index 443ef42dd..9881b8b4b 100644 --- a/pkg/apiserver/authorization/rbac/rbac_test.go +++ b/pkg/apiserver/authorization/rbac/rbac_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2016 The Kubernetes 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 rbac import ( diff --git a/pkg/apiserver/filters/apiservice.go b/pkg/apiserver/filters/apiservice.go index 4a2972bd9..249e1e580 100644 --- a/pkg/apiserver/filters/apiservice.go +++ b/pkg/apiserver/filters/apiservice.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/filters/auditing.go b/pkg/apiserver/filters/auditing.go index f76b90903..e3024f700 100644 --- a/pkg/apiserver/filters/auditing.go +++ b/pkg/apiserver/filters/auditing.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/filters/authentication.go b/pkg/apiserver/filters/authentication.go index 8292c18e8..c390d089d 100644 --- a/pkg/apiserver/filters/authentication.go +++ b/pkg/apiserver/filters/authentication.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/filters/authorization.go b/pkg/apiserver/filters/authorization.go index 47a0dcadd..66f752fdd 100644 --- a/pkg/apiserver/filters/authorization.go +++ b/pkg/apiserver/filters/authorization.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/filters/dynamicresource.go b/pkg/apiserver/filters/dynamicresource.go index 88f4ca449..87f4fe682 100644 --- a/pkg/apiserver/filters/dynamicresource.go +++ b/pkg/apiserver/filters/dynamicresource.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/filters/filters.go b/pkg/apiserver/filters/filters.go index f50414b99..d008a095d 100644 --- a/pkg/apiserver/filters/filters.go +++ b/pkg/apiserver/filters/filters.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/filters/jsbundle.go b/pkg/apiserver/filters/jsbundle.go index 089814c02..a01199185 100644 --- a/pkg/apiserver/filters/jsbundle.go +++ b/pkg/apiserver/filters/jsbundle.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/filters/kubeapiserver.go b/pkg/apiserver/filters/kubeapiserver.go index 909c01b37..14e1912f1 100644 --- a/pkg/apiserver/filters/kubeapiserver.go +++ b/pkg/apiserver/filters/kubeapiserver.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/filters/multicluster.go b/pkg/apiserver/filters/multicluster.go index a0f1d6947..4acadcee9 100644 --- a/pkg/apiserver/filters/multicluster.go +++ b/pkg/apiserver/filters/multicluster.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/filters/requestinfo.go b/pkg/apiserver/filters/requestinfo.go index 8ff2f4ebc..486baa8a7 100644 --- a/pkg/apiserver/filters/requestinfo.go +++ b/pkg/apiserver/filters/requestinfo.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/filters/responder.go b/pkg/apiserver/filters/responder.go index 3993bdf62..7f96d5d39 100644 --- a/pkg/apiserver/filters/responder.go +++ b/pkg/apiserver/filters/responder.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/filters/reverseproxy.go b/pkg/apiserver/filters/reverseproxy.go index 1503622a7..b87f29867 100644 --- a/pkg/apiserver/filters/reverseproxy.go +++ b/pkg/apiserver/filters/reverseproxy.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/metrics/metrics.go b/pkg/apiserver/metrics/metrics.go index d6cbfa7f3..526a78b9a 100644 --- a/pkg/apiserver/metrics/metrics.go +++ b/pkg/apiserver/metrics/metrics.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/options/options.go b/pkg/apiserver/options/options.go index d57611b43..b2db18538 100644 --- a/pkg/apiserver/options/options.go +++ b/pkg/apiserver/options/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/query/field.go b/pkg/apiserver/query/field.go index c439c1967..c96976bee 100644 --- a/pkg/apiserver/query/field.go +++ b/pkg/apiserver/query/field.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/query/types.go b/pkg/apiserver/query/types.go index 81592d900..1ec864bec 100644 --- a/pkg/apiserver/query/types.go +++ b/pkg/apiserver/query/types.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/query/types_test.go b/pkg/apiserver/query/types_test.go index 5745af0ae..fa2c77e52 100644 --- a/pkg/apiserver/query/types_test.go +++ b/pkg/apiserver/query/types_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/request/requestinfo.go b/pkg/apiserver/request/requestinfo.go index d4da52460..dbcf747c6 100644 --- a/pkg/apiserver/request/requestinfo.go +++ b/pkg/apiserver/request/requestinfo.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/request/requestinfo_test.go b/pkg/apiserver/request/requestinfo_test.go index 43eb9f160..80b15f10d 100644 --- a/pkg/apiserver/request/requestinfo_test.go +++ b/pkg/apiserver/request/requestinfo_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/rest/interface.go b/pkg/apiserver/rest/interface.go index a801b4a4b..7cae067fb 100644 --- a/pkg/apiserver/rest/interface.go +++ b/pkg/apiserver/rest/interface.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/apiserver/runtime/runtime.go b/pkg/apiserver/runtime/runtime.go index 619adb580..f1e0a49a6 100644 --- a/pkg/apiserver/runtime/runtime.go +++ b/pkg/apiserver/runtime/runtime.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/componenthelper/auth/rbac/clusterrole_interface.go b/pkg/componenthelper/auth/rbac/clusterrole_interface.go index e83b4f00d..a40ae65fc 100644 --- a/pkg/componenthelper/auth/rbac/clusterrole_interface.go +++ b/pkg/componenthelper/auth/rbac/clusterrole_interface.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/componenthelper/auth/rbac/globalrole_interfaces.go b/pkg/componenthelper/auth/rbac/globalrole_interfaces.go index d49861645..e0d914d59 100644 --- a/pkg/componenthelper/auth/rbac/globalrole_interfaces.go +++ b/pkg/componenthelper/auth/rbac/globalrole_interfaces.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/componenthelper/auth/rbac/helper.go b/pkg/componenthelper/auth/rbac/helper.go index 3027ec00e..5db3f0ff9 100644 --- a/pkg/componenthelper/auth/rbac/helper.go +++ b/pkg/componenthelper/auth/rbac/helper.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/componenthelper/auth/rbac/helper_test.go b/pkg/componenthelper/auth/rbac/helper_test.go index 597c7a3fa..1dadf5cce 100644 --- a/pkg/componenthelper/auth/rbac/helper_test.go +++ b/pkg/componenthelper/auth/rbac/helper_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/componenthelper/auth/rbac/interface.go b/pkg/componenthelper/auth/rbac/interface.go index 7600decdc..5b21daf87 100644 --- a/pkg/componenthelper/auth/rbac/interface.go +++ b/pkg/componenthelper/auth/rbac/interface.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/componenthelper/auth/rbac/policy_comparator.go b/pkg/componenthelper/auth/rbac/policy_comparator.go index 7d8a21d1b..173d38b01 100644 --- a/pkg/componenthelper/auth/rbac/policy_comparator.go +++ b/pkg/componenthelper/auth/rbac/policy_comparator.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/componenthelper/auth/rbac/role_interfaces.go b/pkg/componenthelper/auth/rbac/role_interfaces.go index d3df2eb75..92dc9a927 100644 --- a/pkg/componenthelper/auth/rbac/role_interfaces.go +++ b/pkg/componenthelper/auth/rbac/role_interfaces.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/componenthelper/auth/rbac/workspacerole_interfaces.go b/pkg/componenthelper/auth/rbac/workspacerole_interfaces.go index 52ee182ac..b50d182a8 100644 --- a/pkg/componenthelper/auth/rbac/workspacerole_interfaces.go +++ b/pkg/componenthelper/auth/rbac/workspacerole_interfaces.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/config/config.go b/pkg/config/config.go index 4f8c2bad9..fdab14c43 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index acecaf8f2..0011e6180 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/config/options.go b/pkg/config/options.go index d2eeff834..fb1424437 100644 --- a/pkg/config/options.go +++ b/pkg/config/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/constants/constants.go b/pkg/constants/constants.go index 5af124c16..859cf932d 100644 --- a/pkg/constants/constants.go +++ b/pkg/constants/constants.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/application/appcategory_controller.go b/pkg/controller/application/appcategory_controller.go index eba741ef5..cf33d8fe4 100644 --- a/pkg/controller/application/appcategory_controller.go +++ b/pkg/controller/application/appcategory_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/application/apprelease_controller.go b/pkg/controller/application/apprelease_controller.go index 31e8b7ae0..6ccb08c09 100644 --- a/pkg/controller/application/apprelease_controller.go +++ b/pkg/controller/application/apprelease_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/application/apprelease_webhook.go b/pkg/controller/application/apprelease_webhook.go index 7ce3d7958..7143f46cf 100644 --- a/pkg/controller/application/apprelease_webhook.go +++ b/pkg/controller/application/apprelease_webhook.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/application/appversion_contrlller.go b/pkg/controller/application/appversion_contrlller.go index 62d66963c..537827ea1 100644 --- a/pkg/controller/application/appversion_contrlller.go +++ b/pkg/controller/application/appversion_contrlller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/application/delete_predicate.go b/pkg/controller/application/delete_predicate.go index ee0c174e2..8820d5a60 100644 --- a/pkg/controller/application/delete_predicate.go +++ b/pkg/controller/application/delete_predicate.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/application/executor.go b/pkg/controller/application/executor.go index da8d64c19..9507473a6 100644 --- a/pkg/controller/application/executor.go +++ b/pkg/controller/application/executor.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/application/helm_repo_controller.go b/pkg/controller/application/helm_repo_controller.go index c24fb7610..d855162f2 100644 --- a/pkg/controller/application/helm_repo_controller.go +++ b/pkg/controller/application/helm_repo_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/application/predicate.go b/pkg/controller/application/predicate.go index bb37c178c..24da5ed80 100644 --- a/pkg/controller/application/predicate.go +++ b/pkg/controller/application/predicate.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/certificatesigningrequest/certificatesigningrequest_controller.go b/pkg/controller/certificatesigningrequest/certificatesigningrequest_controller.go index 46aa1d93b..f8fe9995a 100644 --- a/pkg/controller/certificatesigningrequest/certificatesigningrequest_controller.go +++ b/pkg/controller/certificatesigningrequest/certificatesigningrequest_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/cluster/cluster_controller.go b/pkg/controller/cluster/cluster_controller.go index 36d3ca1ca..3759454b6 100644 --- a/pkg/controller/cluster/cluster_controller.go +++ b/pkg/controller/cluster/cluster_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/cluster/cluster_controller_test.go b/pkg/controller/cluster/cluster_controller_test.go index 1d6ca588b..33b35f366 100644 --- a/pkg/controller/cluster/cluster_controller_test.go +++ b/pkg/controller/cluster/cluster_controller_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/cluster/cluster_webhook.go b/pkg/controller/cluster/cluster_webhook.go index b1d5b51ea..682f3745b 100644 --- a/pkg/controller/cluster/cluster_webhook.go +++ b/pkg/controller/cluster/cluster_webhook.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/cluster/helper.go b/pkg/controller/cluster/helper.go index 19dcf2d73..5ba1bf288 100644 --- a/pkg/controller/cluster/helper.go +++ b/pkg/controller/cluster/helper.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/cluster/kubeconfig.go b/pkg/controller/cluster/kubeconfig.go index 7adf1555d..452f7b7e1 100644 --- a/pkg/controller/cluster/kubeconfig.go +++ b/pkg/controller/cluster/kubeconfig.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/cluster/predicate/predicate.go b/pkg/controller/cluster/predicate/predicate.go index 8ac0de60b..4897dba43 100644 --- a/pkg/controller/cluster/predicate/predicate.go +++ b/pkg/controller/cluster/predicate/predicate.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/cluster/utils/utils.go b/pkg/controller/cluster/utils/utils.go index 2163fd5e3..3bf8f9dee 100644 --- a/pkg/controller/cluster/utils/utils.go +++ b/pkg/controller/cluster/utils/utils.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/clusterlabel/clusterlabel_controller.go b/pkg/controller/clusterlabel/clusterlabel_controller.go index 5925e6b5b..8e0f62f40 100644 --- a/pkg/controller/clusterlabel/clusterlabel_controller.go +++ b/pkg/controller/clusterlabel/clusterlabel_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/clusterrole/clusterrole_controller.go b/pkg/controller/clusterrole/clusterrole_controller.go index 70f9a85ba..b1ee07c02 100644 --- a/pkg/controller/clusterrole/clusterrole_controller.go +++ b/pkg/controller/clusterrole/clusterrole_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/clusterrolebinding/clusterrolebinding_controller.go b/pkg/controller/clusterrolebinding/clusterrolebinding_controller.go index d4a073447..6d436ca3c 100644 --- a/pkg/controller/clusterrolebinding/clusterrolebinding_controller.go +++ b/pkg/controller/clusterrolebinding/clusterrolebinding_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/config/config_webhook.go b/pkg/controller/config/config_webhook.go index 5f3327016..ae07e0458 100644 --- a/pkg/controller/config/config_webhook.go +++ b/pkg/controller/config/config_webhook.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/config/identityprovider/webhook.go b/pkg/controller/config/identityprovider/webhook.go index 6bdcefb7d..87f4883ed 100644 --- a/pkg/controller/config/identityprovider/webhook.go +++ b/pkg/controller/config/identityprovider/webhook.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/config/oauthclient/webhook.go b/pkg/controller/config/oauthclient/webhook.go index 28d957bd9..ced75a929 100644 --- a/pkg/controller/config/oauthclient/webhook.go +++ b/pkg/controller/config/oauthclient/webhook.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/config/webhook_factory.go b/pkg/controller/config/webhook_factory.go index 15bde4750..4201b9aad 100644 --- a/pkg/controller/config/webhook_factory.go +++ b/pkg/controller/config/webhook_factory.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/controllertest/testing.go b/pkg/controller/controllertest/testing.go index d929fc80a..994e5b147 100644 --- a/pkg/controller/controllertest/testing.go +++ b/pkg/controller/controllertest/testing.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/conversion/conversion.go b/pkg/controller/conversion/conversion.go index 95eb1c5b9..badbb63d9 100644 --- a/pkg/controller/conversion/conversion.go +++ b/pkg/controller/conversion/conversion.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/core/category_controller.go b/pkg/controller/core/category_controller.go index b791def33..97fa093f0 100644 --- a/pkg/controller/core/category_controller.go +++ b/pkg/controller/core/category_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/core/extension_controller.go b/pkg/controller/core/extension_controller.go index f39f59f68..53975d1b3 100644 --- a/pkg/controller/core/extension_controller.go +++ b/pkg/controller/core/extension_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/core/extensionversion_controller.go b/pkg/controller/core/extensionversion_controller.go index 49d0b7dff..7b1023481 100644 --- a/pkg/controller/core/extensionversion_controller.go +++ b/pkg/controller/core/extensionversion_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/core/installplan_controller.go b/pkg/controller/core/installplan_controller.go index 24180056a..61d9a4011 100644 --- a/pkg/controller/core/installplan_controller.go +++ b/pkg/controller/core/installplan_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/core/installplan_webhook.go b/pkg/controller/core/installplan_webhook.go index f9d865966..5eb31b85a 100644 --- a/pkg/controller/core/installplan_webhook.go +++ b/pkg/controller/core/installplan_webhook.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/core/repository_controller.go b/pkg/controller/core/repository_controller.go index a3f803444..78a672641 100644 --- a/pkg/controller/core/repository_controller.go +++ b/pkg/controller/core/repository_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/core/util.go b/pkg/controller/core/util.go index 9f7ff7bcf..d8ce2e9e8 100644 --- a/pkg/controller/core/util.go +++ b/pkg/controller/core/util.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/core/util_test.go b/pkg/controller/core/util_test.go index 6bd205447..0b1c9d33c 100644 --- a/pkg/controller/core/util_test.go +++ b/pkg/controller/core/util_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/extension/apiservice_webhook.go b/pkg/controller/extension/apiservice_webhook.go index a0c4034cd..5adcb0e3f 100644 --- a/pkg/controller/extension/apiservice_webhook.go +++ b/pkg/controller/extension/apiservice_webhook.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/extension/extensionentry_webhook.go b/pkg/controller/extension/extensionentry_webhook.go index bab609683..dda429d2f 100644 --- a/pkg/controller/extension/extensionentry_webhook.go +++ b/pkg/controller/extension/extensionentry_webhook.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/extension/jsbundle_webhook.go b/pkg/controller/extension/jsbundle_webhook.go index 3a137974e..855023eaf 100644 --- a/pkg/controller/extension/jsbundle_webhook.go +++ b/pkg/controller/extension/jsbundle_webhook.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/extension/reverseproxy_webhook.go b/pkg/controller/extension/reverseproxy_webhook.go index ae826bd8f..4ee3c56fb 100644 --- a/pkg/controller/extension/reverseproxy_webhook.go +++ b/pkg/controller/extension/reverseproxy_webhook.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/globalrole/globalrole_controller.go b/pkg/controller/globalrole/globalrole_controller.go index 07515cf43..8c2711711 100644 --- a/pkg/controller/globalrole/globalrole_controller.go +++ b/pkg/controller/globalrole/globalrole_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/globalrolebinding/globalrolebinding_controller.go b/pkg/controller/globalrolebinding/globalrolebinding_controller.go index 6d4225675..254814116 100644 --- a/pkg/controller/globalrolebinding/globalrolebinding_controller.go +++ b/pkg/controller/globalrolebinding/globalrolebinding_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/group/group_controller.go b/pkg/controller/group/group_controller.go index a809efefe..9b0f68c25 100644 --- a/pkg/controller/group/group_controller.go +++ b/pkg/controller/group/group_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/groupbinding/groupbinding_controller.go b/pkg/controller/groupbinding/groupbinding_controller.go index 17e12c6c1..32e47353c 100644 --- a/pkg/controller/groupbinding/groupbinding_controller.go +++ b/pkg/controller/groupbinding/groupbinding_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/job/job_controller.go b/pkg/controller/job/job_controller.go index 412dc70a3..af788f11f 100644 --- a/pkg/controller/job/job_controller.go +++ b/pkg/controller/job/job_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/job/job_controller_test.go b/pkg/controller/job/job_controller_test.go index 3aaf7062f..5125c12bb 100644 --- a/pkg/controller/job/job_controller_test.go +++ b/pkg/controller/job/job_controller_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/job/types.go b/pkg/controller/job/types.go index 1f28e4665..4858efab4 100644 --- a/pkg/controller/job/types.go +++ b/pkg/controller/job/types.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/k8sapplication/k8sapplication_controller.go b/pkg/controller/k8sapplication/k8sapplication_controller.go index 356c94e15..54275fa28 100644 --- a/pkg/controller/k8sapplication/k8sapplication_controller.go +++ b/pkg/controller/k8sapplication/k8sapplication_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/k8sapplication/utils.go b/pkg/controller/k8sapplication/utils.go index a238a92fa..4eb869800 100644 --- a/pkg/controller/k8sapplication/utils.go +++ b/pkg/controller/k8sapplication/utils.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/ksserviceaccount/pod_injector.go b/pkg/controller/ksserviceaccount/pod_injector.go index 46411edb2..b0bdd969a 100644 --- a/pkg/controller/ksserviceaccount/pod_injector.go +++ b/pkg/controller/ksserviceaccount/pod_injector.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/ksserviceaccount/serviceaccount_controller.go b/pkg/controller/ksserviceaccount/serviceaccount_controller.go index 4a83789d9..be744eace 100644 --- a/pkg/controller/ksserviceaccount/serviceaccount_controller.go +++ b/pkg/controller/ksserviceaccount/serviceaccount_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/kubeconfig/kubeconfig_controller.go b/pkg/controller/kubeconfig/kubeconfig_controller.go index 46522b6ad..4c5063256 100644 --- a/pkg/controller/kubeconfig/kubeconfig_controller.go +++ b/pkg/controller/kubeconfig/kubeconfig_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/kubectl/kubectl.go b/pkg/controller/kubectl/kubectl.go index 264ba6cac..e54331e9d 100644 --- a/pkg/controller/kubectl/kubectl.go +++ b/pkg/controller/kubectl/kubectl.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/kubectl/lease/lease.go b/pkg/controller/kubectl/lease/lease.go index 47dd95a83..40853f277 100644 --- a/pkg/controller/kubectl/lease/lease.go +++ b/pkg/controller/kubectl/lease/lease.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/loginrecord/loginrecord_controller.go b/pkg/controller/loginrecord/loginrecord_controller.go index 2b302119b..b48662fd7 100644 --- a/pkg/controller/loginrecord/loginrecord_controller.go +++ b/pkg/controller/loginrecord/loginrecord_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/loginrecord/loginrecord_controller_test.go b/pkg/controller/loginrecord/loginrecord_controller_test.go index 46ad48d40..3792ce393 100644 --- a/pkg/controller/loginrecord/loginrecord_controller_test.go +++ b/pkg/controller/loginrecord/loginrecord_controller_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/manager.go b/pkg/controller/manager.go index 7262786ee..899e64ec9 100644 --- a/pkg/controller/manager.go +++ b/pkg/controller/manager.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/namespace/namespace_controller.go b/pkg/controller/namespace/namespace_controller.go index 9ac2251b2..bf27c89c1 100644 --- a/pkg/controller/namespace/namespace_controller.go +++ b/pkg/controller/namespace/namespace_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/namespace/namespace_controller_suite_test.go b/pkg/controller/namespace/namespace_controller_suite_test.go index 095f588fe..baa81bca9 100644 --- a/pkg/controller/namespace/namespace_controller_suite_test.go +++ b/pkg/controller/namespace/namespace_controller_suite_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/namespace/namespace_controller_test.go b/pkg/controller/namespace/namespace_controller_test.go index 894a4c577..bf4144af9 100644 --- a/pkg/controller/namespace/namespace_controller_test.go +++ b/pkg/controller/namespace/namespace_controller_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/openapi/config.go b/pkg/controller/openapi/config.go index d4b9ae910..4c78ee31e 100644 --- a/pkg/controller/openapi/config.go +++ b/pkg/controller/openapi/config.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/openapi/openapi_controller.go b/pkg/controller/openapi/openapi_controller.go index 0c617a265..e0ce7803a 100644 --- a/pkg/controller/openapi/openapi_controller.go +++ b/pkg/controller/openapi/openapi_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/options/options.go b/pkg/controller/options/options.go index 49f9737aa..5cb4c27c6 100644 --- a/pkg/controller/options/options.go +++ b/pkg/controller/options/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/quota/accessor.go b/pkg/controller/quota/accessor.go index a5af36c06..cede0a109 100644 --- a/pkg/controller/quota/accessor.go +++ b/pkg/controller/quota/accessor.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/quota/lockfactory.go b/pkg/controller/quota/lockfactory.go index beb7b45d5..9196251f2 100644 --- a/pkg/controller/quota/lockfactory.go +++ b/pkg/controller/quota/lockfactory.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/quota/resourcequota_controller.go b/pkg/controller/quota/resourcequota_controller.go index d494f9375..5f24147b3 100644 --- a/pkg/controller/quota/resourcequota_controller.go +++ b/pkg/controller/quota/resourcequota_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/quota/resourcequota_webhook.go b/pkg/controller/quota/resourcequota_webhook.go index f28a64ed7..eb9cc0ef7 100644 --- a/pkg/controller/quota/resourcequota_webhook.go +++ b/pkg/controller/quota/resourcequota_webhook.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/quota/util.go b/pkg/controller/quota/util.go index 40e258cfd..62372bdee 100644 --- a/pkg/controller/quota/util.go +++ b/pkg/controller/quota/util.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/resourceprotection/resource_protection_webhook.go b/pkg/controller/resourceprotection/resource_protection_webhook.go index 0bc9a2cfd..6f0e6d37f 100644 --- a/pkg/controller/resourceprotection/resource_protection_webhook.go +++ b/pkg/controller/resourceprotection/resource_protection_webhook.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/role/role_controller.go b/pkg/controller/role/role_controller.go index 0f1eb3164..a32e726f1 100644 --- a/pkg/controller/role/role_controller.go +++ b/pkg/controller/role/role_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/rolebinding/rolebinding_controller.go b/pkg/controller/rolebinding/rolebinding_controller.go index a21fed167..58ddf4c54 100644 --- a/pkg/controller/rolebinding/rolebinding_controller.go +++ b/pkg/controller/rolebinding/rolebinding_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/roletemplate/roletemplate_controller.go b/pkg/controller/roletemplate/roletemplate_controller.go index 582e7bb9d..e7dd6d3da 100644 --- a/pkg/controller/roletemplate/roletemplate_controller.go +++ b/pkg/controller/roletemplate/roletemplate_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/secret/serviceaccount_secret_controller.go b/pkg/controller/secret/serviceaccount_secret_controller.go index 10387fc65..48349beb9 100644 --- a/pkg/controller/secret/serviceaccount_secret_controller.go +++ b/pkg/controller/secret/serviceaccount_secret_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/serviceaccount/serviceaccount_controller.go b/pkg/controller/serviceaccount/serviceaccount_controller.go index 747868245..218fdeb31 100644 --- a/pkg/controller/serviceaccount/serviceaccount_controller.go +++ b/pkg/controller/serviceaccount/serviceaccount_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/serviceaccount/serviceaccount_controller_test.go b/pkg/controller/serviceaccount/serviceaccount_controller_test.go index 5a24fa996..20b3e7b31 100644 --- a/pkg/controller/serviceaccount/serviceaccount_controller_test.go +++ b/pkg/controller/serviceaccount/serviceaccount_controller_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/serviceaccounttoken/serviceaccount_token_controller.go b/pkg/controller/serviceaccounttoken/serviceaccount_token_controller.go index b384f4e59..0c49a1785 100644 --- a/pkg/controller/serviceaccounttoken/serviceaccount_token_controller.go +++ b/pkg/controller/serviceaccounttoken/serviceaccount_token_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/storageclass/storageclass_controller.go b/pkg/controller/storageclass/storageclass_controller.go index 2c69f6fb6..d744365f4 100644 --- a/pkg/controller/storageclass/storageclass_controller.go +++ b/pkg/controller/storageclass/storageclass_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/storageclass/storageclass_controller_test.go b/pkg/controller/storageclass/storageclass_controller_test.go index 2a4d6cd33..978851147 100644 --- a/pkg/controller/storageclass/storageclass_controller_test.go +++ b/pkg/controller/storageclass/storageclass_controller_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/telemetry/options.go b/pkg/controller/telemetry/options.go index ccbc41b38..57315e680 100644 --- a/pkg/controller/telemetry/options.go +++ b/pkg/controller/telemetry/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/telemetry/runnable.go b/pkg/controller/telemetry/runnable.go index 999959436..b217bdb74 100644 --- a/pkg/controller/telemetry/runnable.go +++ b/pkg/controller/telemetry/runnable.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/telemetry/telemetry_controller.go b/pkg/controller/telemetry/telemetry_controller.go index a4b09fc79..b46ebbd3b 100644 --- a/pkg/controller/telemetry/telemetry_controller.go +++ b/pkg/controller/telemetry/telemetry_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/user/user_controller.go b/pkg/controller/user/user_controller.go index a53cc5684..a018ef886 100644 --- a/pkg/controller/user/user_controller.go +++ b/pkg/controller/user/user_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/user/user_controller_test.go b/pkg/controller/user/user_controller_test.go index d76a8c4e7..fb21388e4 100644 --- a/pkg/controller/user/user_controller_test.go +++ b/pkg/controller/user/user_controller_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/user/user_webhook.go b/pkg/controller/user/user_webhook.go index e98c35069..69da3c0bb 100644 --- a/pkg/controller/user/user_webhook.go +++ b/pkg/controller/user/user_webhook.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspace/metrics.go b/pkg/controller/workspace/metrics.go index c068ea911..1a8e34998 100644 --- a/pkg/controller/workspace/metrics.go +++ b/pkg/controller/workspace/metrics.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspace/workspace_controller.go b/pkg/controller/workspace/workspace_controller.go index 6255795f3..292084e8b 100644 --- a/pkg/controller/workspace/workspace_controller.go +++ b/pkg/controller/workspace/workspace_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspace/workspace_controller_suite_test.go b/pkg/controller/workspace/workspace_controller_suite_test.go index eddb08dc6..abd8e452b 100644 --- a/pkg/controller/workspace/workspace_controller_suite_test.go +++ b/pkg/controller/workspace/workspace_controller_suite_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspace/workspace_controller_test.go b/pkg/controller/workspace/workspace_controller_test.go index 0861bb1f2..3bf71e108 100644 --- a/pkg/controller/workspace/workspace_controller_test.go +++ b/pkg/controller/workspace/workspace_controller_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspacerole/workspacerole_controller.go b/pkg/controller/workspacerole/workspacerole_controller.go index 15fc549e0..1a1117e79 100644 --- a/pkg/controller/workspacerole/workspacerole_controller.go +++ b/pkg/controller/workspacerole/workspacerole_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspacerole/workspacerole_controller_suite_test.go b/pkg/controller/workspacerole/workspacerole_controller_suite_test.go index 0341c281a..eb86cbf7d 100644 --- a/pkg/controller/workspacerole/workspacerole_controller_suite_test.go +++ b/pkg/controller/workspacerole/workspacerole_controller_suite_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspacerole/workspacerole_controller_test.go b/pkg/controller/workspacerole/workspacerole_controller_test.go index 1d300c135..ac4a02fd2 100644 --- a/pkg/controller/workspacerole/workspacerole_controller_test.go +++ b/pkg/controller/workspacerole/workspacerole_controller_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspacerolebinding/workspacerolebinding_controller.go b/pkg/controller/workspacerolebinding/workspacerolebinding_controller.go index 54d618e7d..235a0d774 100644 --- a/pkg/controller/workspacerolebinding/workspacerolebinding_controller.go +++ b/pkg/controller/workspacerolebinding/workspacerolebinding_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspacerolebinding/workspacerolebinding_controller_suite_test.go b/pkg/controller/workspacerolebinding/workspacerolebinding_controller_suite_test.go index fd64b68f8..760b68ad3 100644 --- a/pkg/controller/workspacerolebinding/workspacerolebinding_controller_suite_test.go +++ b/pkg/controller/workspacerolebinding/workspacerolebinding_controller_suite_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspacerolebinding/workspacerolebinding_controller_test.go b/pkg/controller/workspacerolebinding/workspacerolebinding_controller_test.go index 0d4f277ec..db5f81d08 100644 --- a/pkg/controller/workspacerolebinding/workspacerolebinding_controller_test.go +++ b/pkg/controller/workspacerolebinding/workspacerolebinding_controller_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspacetemplate/predicate/predicate.go b/pkg/controller/workspacetemplate/predicate/predicate.go index 87bbe6266..0519960ad 100644 --- a/pkg/controller/workspacetemplate/predicate/predicate.go +++ b/pkg/controller/workspacetemplate/predicate/predicate.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspacetemplate/utils/helper.go b/pkg/controller/workspacetemplate/utils/helper.go index a116fedfd..5fd1126fb 100644 --- a/pkg/controller/workspacetemplate/utils/helper.go +++ b/pkg/controller/workspacetemplate/utils/helper.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspacetemplate/workspacetemplate_controller.go b/pkg/controller/workspacetemplate/workspacetemplate_controller.go index 03c5578d0..c5123beef 100644 --- a/pkg/controller/workspacetemplate/workspacetemplate_controller.go +++ b/pkg/controller/workspacetemplate/workspacetemplate_controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/controller/workspacetemplate/workspacetemplate_controller_test.go b/pkg/controller/workspacetemplate/workspacetemplate_controller_test.go index e80346733..2ab08a4f9 100644 --- a/pkg/controller/workspacetemplate/workspacetemplate_controller_test.go +++ b/pkg/controller/workspacetemplate/workspacetemplate_controller_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/application/v2/attachments.go b/pkg/kapis/application/v2/attachments.go index b7c4e1db7..2adee00f4 100644 --- a/pkg/kapis/application/v2/attachments.go +++ b/pkg/kapis/application/v2/attachments.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/application/v2/crd2cr.go b/pkg/kapis/application/v2/crd2cr.go index 861de8dba..b0ba6ba58 100644 --- a/pkg/kapis/application/v2/crd2cr.go +++ b/pkg/kapis/application/v2/crd2cr.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/application/v2/errors.go b/pkg/kapis/application/v2/errors.go index 72dbc103c..7b9bdd849 100644 --- a/pkg/kapis/application/v2/errors.go +++ b/pkg/kapis/application/v2/errors.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/application/v2/handler_app.go b/pkg/kapis/application/v2/handler_app.go index 64a4610cc..bb34b6061 100644 --- a/pkg/kapis/application/v2/handler_app.go +++ b/pkg/kapis/application/v2/handler_app.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/application/v2/handler_apprls.go b/pkg/kapis/application/v2/handler_apprls.go index 75e4c2ef3..d7a58a090 100644 --- a/pkg/kapis/application/v2/handler_apprls.go +++ b/pkg/kapis/application/v2/handler_apprls.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/application/v2/handler_appversion.go b/pkg/kapis/application/v2/handler_appversion.go index 2c49f4eda..6956b2ab0 100644 --- a/pkg/kapis/application/v2/handler_appversion.go +++ b/pkg/kapis/application/v2/handler_appversion.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/application/v2/handler_category.go b/pkg/kapis/application/v2/handler_category.go index f3d69b2ef..1b4afca6d 100644 --- a/pkg/kapis/application/v2/handler_category.go +++ b/pkg/kapis/application/v2/handler_category.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/application/v2/handler_repo.go b/pkg/kapis/application/v2/handler_repo.go index 052af6fff..17a8c3b6a 100644 --- a/pkg/kapis/application/v2/handler_repo.go +++ b/pkg/kapis/application/v2/handler_repo.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/application/v2/operator.go b/pkg/kapis/application/v2/operator.go index 957d902fe..d9a679763 100644 --- a/pkg/kapis/application/v2/operator.go +++ b/pkg/kapis/application/v2/operator.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/application/v2/register.go b/pkg/kapis/application/v2/register.go index 4f4aa31b6..a417770bf 100644 --- a/pkg/kapis/application/v2/register.go +++ b/pkg/kapis/application/v2/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/application/v2/utils.go b/pkg/kapis/application/v2/utils.go index 6bebd746b..c6368742d 100644 --- a/pkg/kapis/application/v2/utils.go +++ b/pkg/kapis/application/v2/utils.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/cluster/v1alpha1/handler.go b/pkg/kapis/cluster/v1alpha1/handler.go index de63ea6f1..ba9d8de8e 100644 --- a/pkg/kapis/cluster/v1alpha1/handler.go +++ b/pkg/kapis/cluster/v1alpha1/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/cluster/v1alpha1/handler_test.go b/pkg/kapis/cluster/v1alpha1/handler_test.go index c638350b2..4c8646b73 100644 --- a/pkg/kapis/cluster/v1alpha1/handler_test.go +++ b/pkg/kapis/cluster/v1alpha1/handler_test.go @@ -1,6 +1,7 @@ //go:build exclude /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/cluster/v1alpha1/label_handler.go b/pkg/kapis/cluster/v1alpha1/label_handler.go index 00a2f8e74..afd53e088 100644 --- a/pkg/kapis/cluster/v1alpha1/label_handler.go +++ b/pkg/kapis/cluster/v1alpha1/label_handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/cluster/v1alpha1/register.go b/pkg/kapis/cluster/v1alpha1/register.go index 36b1122cb..f33a50c23 100644 --- a/pkg/kapis/cluster/v1alpha1/register.go +++ b/pkg/kapis/cluster/v1alpha1/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/config/v1alpha2/handler.go b/pkg/kapis/config/v1alpha2/handler.go index 7f46119d8..e9298fb43 100644 --- a/pkg/kapis/config/v1alpha2/handler.go +++ b/pkg/kapis/config/v1alpha2/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/config/v1alpha2/register.go b/pkg/kapis/config/v1alpha2/register.go index 277b1b9d7..aaeee9ff9 100644 --- a/pkg/kapis/config/v1alpha2/register.go +++ b/pkg/kapis/config/v1alpha2/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/gateway/v1alpha2/handler.go b/pkg/kapis/gateway/v1alpha2/handler.go index 9fc5c98fd..5b7cc9902 100644 --- a/pkg/kapis/gateway/v1alpha2/handler.go +++ b/pkg/kapis/gateway/v1alpha2/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/gateway/v1alpha2/register.go b/pkg/kapis/gateway/v1alpha2/register.go index 865567cbd..d98bad5a2 100644 --- a/pkg/kapis/gateway/v1alpha2/register.go +++ b/pkg/kapis/gateway/v1alpha2/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/generic/generic.go b/pkg/kapis/generic/generic.go index 112b1020f..b689198da 100644 --- a/pkg/kapis/generic/generic.go +++ b/pkg/kapis/generic/generic.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/generic/generic_test.go b/pkg/kapis/generic/generic_test.go index a5b976f24..ee7183fce 100644 --- a/pkg/kapis/generic/generic_test.go +++ b/pkg/kapis/generic/generic_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/iam/v1beta1/handler.go b/pkg/kapis/iam/v1beta1/handler.go index bf95cabe5..85baebba0 100644 --- a/pkg/kapis/iam/v1beta1/handler.go +++ b/pkg/kapis/iam/v1beta1/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/iam/v1beta1/register.go b/pkg/kapis/iam/v1beta1/register.go index aefff5200..cc2c1c855 100644 --- a/pkg/kapis/iam/v1beta1/register.go +++ b/pkg/kapis/iam/v1beta1/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/oauth/handler.go b/pkg/kapis/oauth/handler.go index a0b1b2ae9..1b50d9798 100644 --- a/pkg/kapis/oauth/handler.go +++ b/pkg/kapis/oauth/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/oauth/register.go b/pkg/kapis/oauth/register.go index 0ae3e0494..1c0b1d973 100644 --- a/pkg/kapis/oauth/register.go +++ b/pkg/kapis/oauth/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/operations/v1alpha2/handler.go b/pkg/kapis/operations/v1alpha2/handler.go index 2116608fa..3ec096e25 100644 --- a/pkg/kapis/operations/v1alpha2/handler.go +++ b/pkg/kapis/operations/v1alpha2/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/operations/v1alpha2/register.go b/pkg/kapis/operations/v1alpha2/register.go index 6e89ab258..b43b93221 100644 --- a/pkg/kapis/operations/v1alpha2/register.go +++ b/pkg/kapis/operations/v1alpha2/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/package/v1alpha1/handler.go b/pkg/kapis/package/v1alpha1/handler.go index cd8d6efe0..e98d90daf 100644 --- a/pkg/kapis/package/v1alpha1/handler.go +++ b/pkg/kapis/package/v1alpha1/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/package/v1alpha1/register.go b/pkg/kapis/package/v1alpha1/register.go index 038fda44a..81ebc7d99 100644 --- a/pkg/kapis/package/v1alpha1/register.go +++ b/pkg/kapis/package/v1alpha1/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/resources/group.go b/pkg/kapis/resources/group.go index 1a1a44366..43da9e091 100644 --- a/pkg/kapis/resources/group.go +++ b/pkg/kapis/resources/group.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/resources/v1alpha2/handler.go b/pkg/kapis/resources/v1alpha2/handler.go index 374c3c9d3..8d497f77b 100644 --- a/pkg/kapis/resources/v1alpha2/handler.go +++ b/pkg/kapis/resources/v1alpha2/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/resources/v1alpha2/register.go b/pkg/kapis/resources/v1alpha2/register.go index bb61176f1..a5fdbc781 100644 --- a/pkg/kapis/resources/v1alpha2/register.go +++ b/pkg/kapis/resources/v1alpha2/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/resources/v1alpha3/handler.go b/pkg/kapis/resources/v1alpha3/handler.go index d5c1c5472..3a1125513 100644 --- a/pkg/kapis/resources/v1alpha3/handler.go +++ b/pkg/kapis/resources/v1alpha3/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/resources/v1alpha3/handler_test.go b/pkg/kapis/resources/v1alpha3/handler_test.go index 4f62c799c..ee9551a5f 100644 --- a/pkg/kapis/resources/v1alpha3/handler_test.go +++ b/pkg/kapis/resources/v1alpha3/handler_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/resources/v1alpha3/register.go b/pkg/kapis/resources/v1alpha3/register.go index 0b421fa56..55a5997d4 100644 --- a/pkg/kapis/resources/v1alpha3/register.go +++ b/pkg/kapis/resources/v1alpha3/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/static/handler.go b/pkg/kapis/static/handler.go index e7590d365..57301b397 100644 --- a/pkg/kapis/static/handler.go +++ b/pkg/kapis/static/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/static/register.go b/pkg/kapis/static/register.go index 725b28707..98bdabcbb 100644 --- a/pkg/kapis/static/register.go +++ b/pkg/kapis/static/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/tenant/v1alpha3/handler.go b/pkg/kapis/tenant/v1alpha3/handler.go index fbe055224..156274bf2 100644 --- a/pkg/kapis/tenant/v1alpha3/handler.go +++ b/pkg/kapis/tenant/v1alpha3/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/tenant/v1alpha3/register.go b/pkg/kapis/tenant/v1alpha3/register.go index dc2355c1f..86444b0da 100644 --- a/pkg/kapis/tenant/v1alpha3/register.go +++ b/pkg/kapis/tenant/v1alpha3/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/tenant/v1beta1/handler.go b/pkg/kapis/tenant/v1beta1/handler.go index ea392a64d..635e95e80 100644 --- a/pkg/kapis/tenant/v1beta1/handler.go +++ b/pkg/kapis/tenant/v1beta1/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/tenant/v1beta1/register.go b/pkg/kapis/tenant/v1beta1/register.go index c6886cca0..206f32673 100644 --- a/pkg/kapis/tenant/v1beta1/register.go +++ b/pkg/kapis/tenant/v1beta1/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/tenant/v1beta1/resource_handler.go b/pkg/kapis/tenant/v1beta1/resource_handler.go index 6d1c562df..f9f4085ec 100644 --- a/pkg/kapis/tenant/v1beta1/resource_handler.go +++ b/pkg/kapis/tenant/v1beta1/resource_handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/terminal/v1alpha2/handler.go b/pkg/kapis/terminal/v1alpha2/handler.go index b7b7140cf..bac19252f 100644 --- a/pkg/kapis/terminal/v1alpha2/handler.go +++ b/pkg/kapis/terminal/v1alpha2/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/terminal/v1alpha2/register.go b/pkg/kapis/terminal/v1alpha2/register.go index b771876bd..1767156c0 100644 --- a/pkg/kapis/terminal/v1alpha2/register.go +++ b/pkg/kapis/terminal/v1alpha2/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/version/register.go b/pkg/kapis/version/register.go index 71e202d9d..161881e86 100644 --- a/pkg/kapis/version/register.go +++ b/pkg/kapis/version/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/workloadtemplate/v1alpha1/handler.go b/pkg/kapis/workloadtemplate/v1alpha1/handler.go index aeafb50ae..69243577d 100644 --- a/pkg/kapis/workloadtemplate/v1alpha1/handler.go +++ b/pkg/kapis/workloadtemplate/v1alpha1/handler.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/kapis/workloadtemplate/v1alpha1/register.go b/pkg/kapis/workloadtemplate/v1alpha1/register.go index d503b16b9..c53fa5239 100644 --- a/pkg/kapis/workloadtemplate/v1alpha1/register.go +++ b/pkg/kapis/workloadtemplate/v1alpha1/register.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/auth/authenticator.go b/pkg/models/auth/authenticator.go index 7c5ef8eef..2a58b78a5 100644 --- a/pkg/models/auth/authenticator.go +++ b/pkg/models/auth/authenticator.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/auth/login_recoder.go b/pkg/models/auth/login_recoder.go index eced8d43c..0ec1bb3de 100644 --- a/pkg/models/auth/login_recoder.go +++ b/pkg/models/auth/login_recoder.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/auth/mapper.go b/pkg/models/auth/mapper.go index f4464c7af..b3d86943f 100644 --- a/pkg/models/auth/mapper.go +++ b/pkg/models/auth/mapper.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/auth/oauth.go b/pkg/models/auth/oauth.go index b9bde5128..ac33ad6cc 100644 --- a/pkg/models/auth/oauth.go +++ b/pkg/models/auth/oauth.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/auth/oauth_test.go b/pkg/models/auth/oauth_test.go index e7ed3fc2c..d9a82fae7 100644 --- a/pkg/models/auth/oauth_test.go +++ b/pkg/models/auth/oauth_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/auth/password.go b/pkg/models/auth/password.go index b937fcd3e..c085c3894 100644 --- a/pkg/models/auth/password.go +++ b/pkg/models/auth/password.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/auth/password_test.go b/pkg/models/auth/password_test.go index ddf12c7c1..30209b202 100644 --- a/pkg/models/auth/password_test.go +++ b/pkg/models/auth/password_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/auth/token.go b/pkg/models/auth/token.go index b7bf243bd..078a32d34 100644 --- a/pkg/models/auth/token.go +++ b/pkg/models/auth/token.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/components/components.go b/pkg/models/components/components.go index 806d272d5..10fe4a7a3 100644 --- a/pkg/models/components/components.go +++ b/pkg/models/components/components.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/components/components_test.go b/pkg/models/components/components_test.go index 16ce1b943..4966c4172 100644 --- a/pkg/models/components/components_test.go +++ b/pkg/models/components/components_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/composedapp/options.go b/pkg/models/composedapp/options.go index 8b32df879..8c1e6a450 100644 --- a/pkg/models/composedapp/options.go +++ b/pkg/models/composedapp/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/git/git.go b/pkg/models/git/git.go index 7dcbb27f1..9dd777b1a 100644 --- a/pkg/models/git/git.go +++ b/pkg/models/git/git.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/git/git_test.go b/pkg/models/git/git_test.go index 801c1af86..77813c056 100644 --- a/pkg/models/git/git_test.go +++ b/pkg/models/git/git_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/iam/am/am.go b/pkg/models/iam/am/am.go index 725f9aceb..b79bc1176 100644 --- a/pkg/models/iam/am/am.go +++ b/pkg/models/iam/am/am.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/iam/group/group.go b/pkg/models/iam/group/group.go index 82cc0c811..4007c79ed 100644 --- a/pkg/models/iam/group/group.go +++ b/pkg/models/iam/group/group.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/iam/im/im.go b/pkg/models/iam/im/im.go index 7fdaf19c6..e1a01a11c 100644 --- a/pkg/models/iam/im/im.go +++ b/pkg/models/iam/im/im.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/iam/im/im_test.go b/pkg/models/iam/im/im_test.go index 4fc3558ee..d40b22ad9 100644 --- a/pkg/models/iam/im/im_test.go +++ b/pkg/models/iam/im/im_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/kubeconfig/kubeconfig.go b/pkg/models/kubeconfig/kubeconfig.go index 36ba1618d..463b708a0 100644 --- a/pkg/models/kubeconfig/kubeconfig.go +++ b/pkg/models/kubeconfig/kubeconfig.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/kubeconfig/options.go b/pkg/models/kubeconfig/options.go index 737d75830..bec02909a 100644 --- a/pkg/models/kubeconfig/options.go +++ b/pkg/models/kubeconfig/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/quotas/quotas.go b/pkg/models/quotas/quotas.go index cf1b5e5e1..79fdf2167 100644 --- a/pkg/models/quotas/quotas.go +++ b/pkg/models/quotas/quotas.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/blob.go b/pkg/models/registries/blob.go index 3fede55dc..a0de6f8fe 100644 --- a/pkg/models/registries/blob.go +++ b/pkg/models/registries/blob.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/image.go b/pkg/models/registries/image.go index f1a3f85b1..18e87ab48 100644 --- a/pkg/models/registries/image.go +++ b/pkg/models/registries/image.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/image_test.go b/pkg/models/registries/image_test.go index c8f353f83..d655aea86 100644 --- a/pkg/models/registries/image_test.go +++ b/pkg/models/registries/image_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/image_type.go b/pkg/models/registries/image_type.go index 556b2dd28..b18929b3a 100644 --- a/pkg/models/registries/image_type.go +++ b/pkg/models/registries/image_type.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/imagesearch/configuration.go b/pkg/models/registries/imagesearch/configuration.go index e008e3d9a..f6211f1bb 100644 --- a/pkg/models/registries/imagesearch/configuration.go +++ b/pkg/models/registries/imagesearch/configuration.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/imagesearch/controller.go b/pkg/models/registries/imagesearch/controller.go index f639c05fb..3b9b63f30 100644 --- a/pkg/models/registries/imagesearch/controller.go +++ b/pkg/models/registries/imagesearch/controller.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/imagesearch/dockerhub/provider.go b/pkg/models/registries/imagesearch/dockerhub/provider.go index 251299533..feda16e38 100644 --- a/pkg/models/registries/imagesearch/dockerhub/provider.go +++ b/pkg/models/registries/imagesearch/dockerhub/provider.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/imagesearch/harbor/provider.go b/pkg/models/registries/imagesearch/harbor/provider.go index aa54eec33..89bc94de7 100644 --- a/pkg/models/registries/imagesearch/harbor/provider.go +++ b/pkg/models/registries/imagesearch/harbor/provider.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/imagesearch/registry_provider.go b/pkg/models/registries/imagesearch/registry_provider.go index fb2b40f3f..3ae2342a4 100644 --- a/pkg/models/registries/imagesearch/registry_provider.go +++ b/pkg/models/registries/imagesearch/registry_provider.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/manifest.go b/pkg/models/registries/manifest.go index 88290b903..c29c2a40a 100644 --- a/pkg/models/registries/manifest.go +++ b/pkg/models/registries/manifest.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/manifest_test.go b/pkg/models/registries/manifest_test.go index cc1ee7fa8..0d34c9038 100644 --- a/pkg/models/registries/manifest_test.go +++ b/pkg/models/registries/manifest_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/registries.go b/pkg/models/registries/registries.go index 81446134a..875f9b3a1 100644 --- a/pkg/models/registries/registries.go +++ b/pkg/models/registries/registries.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/registry_client.go b/pkg/models/registries/registry_client.go index 0babc49b6..bb78d755e 100644 --- a/pkg/models/registries/registry_client.go +++ b/pkg/models/registries/registry_client.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/registry_client_test.go b/pkg/models/registries/registry_client_test.go index e1f82adc3..8808c98ea 100644 --- a/pkg/models/registries/registry_client_test.go +++ b/pkg/models/registries/registry_client_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/token.go b/pkg/models/registries/token.go index ae02a36e8..95fb52d1b 100644 --- a/pkg/models/registries/token.go +++ b/pkg/models/registries/token.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/token_test.go b/pkg/models/registries/token_test.go index cd47856f3..66c5b1662 100644 --- a/pkg/models/registries/token_test.go +++ b/pkg/models/registries/token_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/v2/options.go b/pkg/models/registries/v2/options.go index 7bf0bf506..696f3abab 100644 --- a/pkg/models/registries/v2/options.go +++ b/pkg/models/registries/v2/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/v2/registries.go b/pkg/models/registries/v2/registries.go index ca59a8fb1..50c56c4c6 100644 --- a/pkg/models/registries/v2/registries.go +++ b/pkg/models/registries/v2/registries.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/v2/registries_test.go b/pkg/models/registries/v2/registries_test.go index d51b4b423..4f35269d6 100644 --- a/pkg/models/registries/v2/registries_test.go +++ b/pkg/models/registries/v2/registries_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/v2/registry_helper.go b/pkg/models/registries/v2/registry_helper.go index 587d97021..3c89f69e9 100644 --- a/pkg/models/registries/v2/registry_helper.go +++ b/pkg/models/registries/v2/registry_helper.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/v2/secret_authenticator.go b/pkg/models/registries/v2/secret_authenticator.go index 1c4500ac3..0c1124115 100644 --- a/pkg/models/registries/v2/secret_authenticator.go +++ b/pkg/models/registries/v2/secret_authenticator.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/v2/secret_authenticator_test.go b/pkg/models/registries/v2/secret_authenticator_test.go index f8bb0d37c..2265e051c 100644 --- a/pkg/models/registries/v2/secret_authenticator_test.go +++ b/pkg/models/registries/v2/secret_authenticator_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/registries/v2/types.go b/pkg/models/registries/v2/types.go index 9d72d3ded..7c28cf50f 100644 --- a/pkg/models/registries/v2/types.go +++ b/pkg/models/registries/v2/types.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/cluster/clusters.go b/pkg/models/resources/v1alpha3/cluster/clusters.go index 7d725fc43..dc5d25a40 100644 --- a/pkg/models/resources/v1alpha3/cluster/clusters.go +++ b/pkg/models/resources/v1alpha3/cluster/clusters.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/clusterrole/clusterroles.go b/pkg/models/resources/v1alpha3/clusterrole/clusterroles.go index 3f21ab5d3..f0be8c70f 100644 --- a/pkg/models/resources/v1alpha3/clusterrole/clusterroles.go +++ b/pkg/models/resources/v1alpha3/clusterrole/clusterroles.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/clusterrole/clusterroles_test.go b/pkg/models/resources/v1alpha3/clusterrole/clusterroles_test.go index 7705bf243..c16f3139a 100644 --- a/pkg/models/resources/v1alpha3/clusterrole/clusterroles_test.go +++ b/pkg/models/resources/v1alpha3/clusterrole/clusterroles_test.go @@ -1,6 +1,7 @@ //go:build exclude /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/clusterrolebinding/clusterrolebindings.go b/pkg/models/resources/v1alpha3/clusterrolebinding/clusterrolebindings.go index e977e9c96..2e1242fbb 100644 --- a/pkg/models/resources/v1alpha3/clusterrolebinding/clusterrolebindings.go +++ b/pkg/models/resources/v1alpha3/clusterrolebinding/clusterrolebindings.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/clusterrolebinding/clusterrolebindings_test.go b/pkg/models/resources/v1alpha3/clusterrolebinding/clusterrolebindings_test.go index c6ca78398..fa23ac9d4 100644 --- a/pkg/models/resources/v1alpha3/clusterrolebinding/clusterrolebindings_test.go +++ b/pkg/models/resources/v1alpha3/clusterrolebinding/clusterrolebindings_test.go @@ -1,6 +1,7 @@ //go:build exclude /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/configmap/configmaps.go b/pkg/models/resources/v1alpha3/configmap/configmaps.go index 4750863e7..eebae8e28 100644 --- a/pkg/models/resources/v1alpha3/configmap/configmaps.go +++ b/pkg/models/resources/v1alpha3/configmap/configmaps.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/configmap/configmaps_test.go b/pkg/models/resources/v1alpha3/configmap/configmaps_test.go index a7182018a..80a0785dc 100644 --- a/pkg/models/resources/v1alpha3/configmap/configmaps_test.go +++ b/pkg/models/resources/v1alpha3/configmap/configmaps_test.go @@ -1,6 +1,7 @@ //go:build exclude /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/cronjob/cronjobs.go b/pkg/models/resources/v1alpha3/cronjob/cronjobs.go index c724fa5b5..371d03a6f 100644 --- a/pkg/models/resources/v1alpha3/cronjob/cronjobs.go +++ b/pkg/models/resources/v1alpha3/cronjob/cronjobs.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/customresourcedefinition/customresourcedefinitions.go b/pkg/models/resources/v1alpha3/customresourcedefinition/customresourcedefinitions.go index 376f34cd4..1e5df4ee5 100644 --- a/pkg/models/resources/v1alpha3/customresourcedefinition/customresourcedefinitions.go +++ b/pkg/models/resources/v1alpha3/customresourcedefinition/customresourcedefinitions.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/daemonset/daemonset.go b/pkg/models/resources/v1alpha3/daemonset/daemonset.go index 47099c86a..335d774ff 100644 --- a/pkg/models/resources/v1alpha3/daemonset/daemonset.go +++ b/pkg/models/resources/v1alpha3/daemonset/daemonset.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/daemonset/daemonset_test.go b/pkg/models/resources/v1alpha3/daemonset/daemonset_test.go index bdc9cec38..4869c8fc3 100644 --- a/pkg/models/resources/v1alpha3/daemonset/daemonset_test.go +++ b/pkg/models/resources/v1alpha3/daemonset/daemonset_test.go @@ -1,6 +1,7 @@ //go:build exclude /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/deployment/deployments.go b/pkg/models/resources/v1alpha3/deployment/deployments.go index 36a871642..84dfd887f 100644 --- a/pkg/models/resources/v1alpha3/deployment/deployments.go +++ b/pkg/models/resources/v1alpha3/deployment/deployments.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/deployment/deployments_test.go b/pkg/models/resources/v1alpha3/deployment/deployments_test.go index 452088a94..dacfd1cc7 100644 --- a/pkg/models/resources/v1alpha3/deployment/deployments_test.go +++ b/pkg/models/resources/v1alpha3/deployment/deployments_test.go @@ -1,6 +1,7 @@ //go:build exclude /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/globalrole/globalroles.go b/pkg/models/resources/v1alpha3/globalrole/globalroles.go index 8b46a3800..9e8f22918 100644 --- a/pkg/models/resources/v1alpha3/globalrole/globalroles.go +++ b/pkg/models/resources/v1alpha3/globalrole/globalroles.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/globalrolebinding/globalrolebindings.go b/pkg/models/resources/v1alpha3/globalrolebinding/globalrolebindings.go index 447d26c5d..af90824e5 100644 --- a/pkg/models/resources/v1alpha3/globalrolebinding/globalrolebindings.go +++ b/pkg/models/resources/v1alpha3/globalrolebinding/globalrolebindings.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/group/group.go b/pkg/models/resources/v1alpha3/group/group.go index 2ebade852..9911441e6 100644 --- a/pkg/models/resources/v1alpha3/group/group.go +++ b/pkg/models/resources/v1alpha3/group/group.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/groupbinding/groupbinding.go b/pkg/models/resources/v1alpha3/groupbinding/groupbinding.go index e4006d1e0..a982c3f50 100644 --- a/pkg/models/resources/v1alpha3/groupbinding/groupbinding.go +++ b/pkg/models/resources/v1alpha3/groupbinding/groupbinding.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/hpa/horizontalpodautoscalers.go b/pkg/models/resources/v1alpha3/hpa/horizontalpodautoscalers.go index 222269dd9..3be530f32 100644 --- a/pkg/models/resources/v1alpha3/hpa/horizontalpodautoscalers.go +++ b/pkg/models/resources/v1alpha3/hpa/horizontalpodautoscalers.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/ingress/ingresses.go b/pkg/models/resources/v1alpha3/ingress/ingresses.go index 46bee6b0f..f1e447a57 100644 --- a/pkg/models/resources/v1alpha3/ingress/ingresses.go +++ b/pkg/models/resources/v1alpha3/ingress/ingresses.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/interface.go b/pkg/models/resources/v1alpha3/interface.go index 4402b77b2..93ab89ab8 100644 --- a/pkg/models/resources/v1alpha3/interface.go +++ b/pkg/models/resources/v1alpha3/interface.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/interface_test.go b/pkg/models/resources/v1alpha3/interface_test.go index dd1257246..d5cd022f9 100644 --- a/pkg/models/resources/v1alpha3/interface_test.go +++ b/pkg/models/resources/v1alpha3/interface_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/job/jobs.go b/pkg/models/resources/v1alpha3/job/jobs.go index a66928ce7..c72e679a1 100644 --- a/pkg/models/resources/v1alpha3/job/jobs.go +++ b/pkg/models/resources/v1alpha3/job/jobs.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/label/label.go b/pkg/models/resources/v1alpha3/label/label.go index 912f99036..015b854f8 100644 --- a/pkg/models/resources/v1alpha3/label/label.go +++ b/pkg/models/resources/v1alpha3/label/label.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/loginrecord/loginrecords.go b/pkg/models/resources/v1alpha3/loginrecord/loginrecords.go index 94588ef7b..ae5f86e11 100644 --- a/pkg/models/resources/v1alpha3/loginrecord/loginrecords.go +++ b/pkg/models/resources/v1alpha3/loginrecord/loginrecords.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/namespace/namespaces.go b/pkg/models/resources/v1alpha3/namespace/namespaces.go index e0a667375..39f221ac5 100644 --- a/pkg/models/resources/v1alpha3/namespace/namespaces.go +++ b/pkg/models/resources/v1alpha3/namespace/namespaces.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/node/nodes.go b/pkg/models/resources/v1alpha3/node/nodes.go index 08c2cdd01..46dfcd6f2 100644 --- a/pkg/models/resources/v1alpha3/node/nodes.go +++ b/pkg/models/resources/v1alpha3/node/nodes.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/persistentvolume/persistentvolume.go b/pkg/models/resources/v1alpha3/persistentvolume/persistentvolume.go index d72ef2a86..9992d60b7 100644 --- a/pkg/models/resources/v1alpha3/persistentvolume/persistentvolume.go +++ b/pkg/models/resources/v1alpha3/persistentvolume/persistentvolume.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/persistentvolumeclaim/persistentvolumeclaim.go b/pkg/models/resources/v1alpha3/persistentvolumeclaim/persistentvolumeclaim.go index 68f341195..06e0ed710 100644 --- a/pkg/models/resources/v1alpha3/persistentvolumeclaim/persistentvolumeclaim.go +++ b/pkg/models/resources/v1alpha3/persistentvolumeclaim/persistentvolumeclaim.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/pod/pods.go b/pkg/models/resources/v1alpha3/pod/pods.go index d298c165a..9fb85a837 100644 --- a/pkg/models/resources/v1alpha3/pod/pods.go +++ b/pkg/models/resources/v1alpha3/pod/pods.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/resource/resource.go b/pkg/models/resources/v1alpha3/resource/resource.go index 979f5e920..59a78074b 100644 --- a/pkg/models/resources/v1alpha3/resource/resource.go +++ b/pkg/models/resources/v1alpha3/resource/resource.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/resource/resource_test.go b/pkg/models/resources/v1alpha3/resource/resource_test.go index 5dbe9f2ee..fe3e6ab12 100644 --- a/pkg/models/resources/v1alpha3/resource/resource_test.go +++ b/pkg/models/resources/v1alpha3/resource/resource_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/role/roles.go b/pkg/models/resources/v1alpha3/role/roles.go index 1bbbaf822..35ee4e5d7 100644 --- a/pkg/models/resources/v1alpha3/role/roles.go +++ b/pkg/models/resources/v1alpha3/role/roles.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/rolebinding/rolebindings.go b/pkg/models/resources/v1alpha3/rolebinding/rolebindings.go index 01bacc8a6..3608074af 100644 --- a/pkg/models/resources/v1alpha3/rolebinding/rolebindings.go +++ b/pkg/models/resources/v1alpha3/rolebinding/rolebindings.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/secret/secrets.go b/pkg/models/resources/v1alpha3/secret/secrets.go index 58746d30e..11d1c01b1 100644 --- a/pkg/models/resources/v1alpha3/secret/secrets.go +++ b/pkg/models/resources/v1alpha3/secret/secrets.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/service/services.go b/pkg/models/resources/v1alpha3/service/services.go index e5dec6cc8..8e143f813 100644 --- a/pkg/models/resources/v1alpha3/service/services.go +++ b/pkg/models/resources/v1alpha3/service/services.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/serviceaccount/serviceaccount.go b/pkg/models/resources/v1alpha3/serviceaccount/serviceaccount.go index 1740ed446..593be4bfd 100644 --- a/pkg/models/resources/v1alpha3/serviceaccount/serviceaccount.go +++ b/pkg/models/resources/v1alpha3/serviceaccount/serviceaccount.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/statefulset/statefulsets.go b/pkg/models/resources/v1alpha3/statefulset/statefulsets.go index 60ee1ee74..6085a593c 100644 --- a/pkg/models/resources/v1alpha3/statefulset/statefulsets.go +++ b/pkg/models/resources/v1alpha3/statefulset/statefulsets.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/storageclass/storageclasses.go b/pkg/models/resources/v1alpha3/storageclass/storageclasses.go index f21e31819..509045a10 100644 --- a/pkg/models/resources/v1alpha3/storageclass/storageclasses.go +++ b/pkg/models/resources/v1alpha3/storageclass/storageclasses.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/user/users.go b/pkg/models/resources/v1alpha3/user/users.go index 4436f839a..be79f86e8 100644 --- a/pkg/models/resources/v1alpha3/user/users.go +++ b/pkg/models/resources/v1alpha3/user/users.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/workspace/workspaces.go b/pkg/models/resources/v1alpha3/workspace/workspaces.go index b140620a9..20844b55a 100644 --- a/pkg/models/resources/v1alpha3/workspace/workspaces.go +++ b/pkg/models/resources/v1alpha3/workspace/workspaces.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/workspacerole/workspaceroles.go b/pkg/models/resources/v1alpha3/workspacerole/workspaceroles.go index a731dc1c7..4dfe4b316 100644 --- a/pkg/models/resources/v1alpha3/workspacerole/workspaceroles.go +++ b/pkg/models/resources/v1alpha3/workspacerole/workspaceroles.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/workspacerolebinding/workspacerolebindings.go b/pkg/models/resources/v1alpha3/workspacerolebinding/workspacerolebindings.go index a21a363f1..21a8d5d18 100644 --- a/pkg/models/resources/v1alpha3/workspacerolebinding/workspacerolebindings.go +++ b/pkg/models/resources/v1alpha3/workspacerolebinding/workspacerolebindings.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1alpha3/workspacetemplate/workspacetemplates.go b/pkg/models/resources/v1alpha3/workspacetemplate/workspacetemplates.go index 7c65fc8c0..5e62461ad 100644 --- a/pkg/models/resources/v1alpha3/workspacetemplate/workspacetemplates.go +++ b/pkg/models/resources/v1alpha3/workspacetemplate/workspacetemplates.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1beta1/interface.go b/pkg/models/resources/v1beta1/interface.go index 685b498bd..e4ba8283b 100644 --- a/pkg/models/resources/v1beta1/interface.go +++ b/pkg/models/resources/v1beta1/interface.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/resources/v1beta1/resourcemanager.go b/pkg/models/resources/v1beta1/resourcemanager.go index 8698e5329..fb58fb86b 100644 --- a/pkg/models/resources/v1beta1/resourcemanager.go +++ b/pkg/models/resources/v1beta1/resourcemanager.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/revisions/revisions.go b/pkg/models/revisions/revisions.go index ba24576d1..9bd2b8e9f 100644 --- a/pkg/models/revisions/revisions.go +++ b/pkg/models/revisions/revisions.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/storage/storage.go b/pkg/models/storage/storage.go index c56831df5..6022c03be 100644 --- a/pkg/models/storage/storage.go +++ b/pkg/models/storage/storage.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/tenant/resourcequota.go b/pkg/models/tenant/resourcequota.go index 99381bfca..e2042fe5f 100644 --- a/pkg/models/tenant/resourcequota.go +++ b/pkg/models/tenant/resourcequota.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/tenant/tenant.go b/pkg/models/tenant/tenant.go index 75784460d..b19c225aa 100644 --- a/pkg/models/tenant/tenant.go +++ b/pkg/models/tenant/tenant.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/terminal/options.go b/pkg/models/terminal/options.go index 003995009..26b868ce0 100644 --- a/pkg/models/terminal/options.go +++ b/pkg/models/terminal/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/terminal/terminal.go b/pkg/models/terminal/terminal.go index 7c7534fb5..9949d7985 100644 --- a/pkg/models/terminal/terminal.go +++ b/pkg/models/terminal/terminal.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/types.go b/pkg/models/types.go index 03a1c47e6..24a8c9dac 100644 --- a/pkg/models/types.go +++ b/pkg/models/types.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/models/workloads/jobs.go b/pkg/models/workloads/jobs.go index 1b55aa316..f74339185 100644 --- a/pkg/models/workloads/jobs.go +++ b/pkg/models/workloads/jobs.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/multicluster/options.go b/pkg/multicluster/options.go index d6654f2f4..93ae01df0 100644 --- a/pkg/multicluster/options.go +++ b/pkg/multicluster/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/scheme/scheme.go b/pkg/scheme/scheme.go index 8cc35d232..bbbd03449 100644 --- a/pkg/scheme/scheme.go +++ b/pkg/scheme/scheme.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/server/errors/errors.go b/pkg/server/errors/errors.go index 8f6b44065..799773aeb 100644 --- a/pkg/server/errors/errors.go +++ b/pkg/server/errors/errors.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/server/healthz/healthz.go b/pkg/server/healthz/healthz.go index 8ce09cb40..427e45e4b 100644 --- a/pkg/server/healthz/healthz.go +++ b/pkg/server/healthz/healthz.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/server/options/dynamic_options.go b/pkg/server/options/dynamic_options.go index ca0699d64..c5367793e 100644 --- a/pkg/server/options/dynamic_options.go +++ b/pkg/server/options/dynamic_options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/server/options/options.go b/pkg/server/options/options.go index 7aefb6c85..0914c81ab 100644 --- a/pkg/server/options/options.go +++ b/pkg/server/options/options.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/server/params/params.go b/pkg/server/params/params.go index 3c09f3765..37c4a1117 100644 --- a/pkg/server/params/params.go +++ b/pkg/server/params/params.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/server/params/params_test.go b/pkg/server/params/params_test.go index cdb836e99..276d60863 100644 --- a/pkg/server/params/params_test.go +++ b/pkg/server/params/params_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/simple/client/application/helper.go b/pkg/simple/client/application/helper.go index 7cf45d512..23409515c 100644 --- a/pkg/simple/client/application/helper.go +++ b/pkg/simple/client/application/helper.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package application import ( diff --git a/pkg/simple/client/application/oci.go b/pkg/simple/client/application/oci.go index 55288b7b0..b0565026e 100644 --- a/pkg/simple/client/application/oci.go +++ b/pkg/simple/client/application/oci.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package application import ( diff --git a/pkg/simple/client/application/oci_test.go b/pkg/simple/client/application/oci_test.go index 43bed63b9..1749a4b60 100644 --- a/pkg/simple/client/application/oci_test.go +++ b/pkg/simple/client/application/oci_test.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package application import ( diff --git a/pkg/simple/client/application/store.go b/pkg/simple/client/application/store.go index c8f29feb6..7752f2f90 100644 --- a/pkg/simple/client/application/store.go +++ b/pkg/simple/client/application/store.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package application import ( diff --git a/pkg/simple/client/application/yaml.go b/pkg/simple/client/application/yaml.go index 7254fd49d..6e1094af0 100644 --- a/pkg/simple/client/application/yaml.go +++ b/pkg/simple/client/application/yaml.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package application import ( diff --git a/pkg/simple/client/cache/cache.go b/pkg/simple/client/cache/cache.go index 660540fcf..319f2ab42 100644 --- a/pkg/simple/client/cache/cache.go +++ b/pkg/simple/client/cache/cache.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package cache import ( diff --git a/pkg/simple/client/cache/factory.go b/pkg/simple/client/cache/factory.go index afe320cf4..3453dd029 100644 --- a/pkg/simple/client/cache/factory.go +++ b/pkg/simple/client/cache/factory.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package cache import "kubesphere.io/kubesphere/pkg/server/options" diff --git a/pkg/simple/client/cache/inmemory_cache.go b/pkg/simple/client/cache/inmemory_cache.go index 6623f895d..2f7966301 100644 --- a/pkg/simple/client/cache/inmemory_cache.go +++ b/pkg/simple/client/cache/inmemory_cache.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package cache import ( diff --git a/pkg/simple/client/cache/inmemory_cache_test.go b/pkg/simple/client/cache/inmemory_cache_test.go index 5c8766b06..62103499c 100644 --- a/pkg/simple/client/cache/inmemory_cache_test.go +++ b/pkg/simple/client/cache/inmemory_cache_test.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package cache import ( diff --git a/pkg/simple/client/cache/options.go b/pkg/simple/client/cache/options.go index 482b97fce..951edf884 100644 --- a/pkg/simple/client/cache/options.go +++ b/pkg/simple/client/cache/options.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package cache import ( diff --git a/pkg/simple/client/cache/redis.go b/pkg/simple/client/cache/redis.go index 62be0d49a..43696ae6d 100644 --- a/pkg/simple/client/cache/redis.go +++ b/pkg/simple/client/cache/redis.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package cache import ( diff --git a/pkg/simple/client/k8s/kubernetes.go b/pkg/simple/client/k8s/kubernetes.go index 64178e9c5..e5b3153cd 100644 --- a/pkg/simple/client/k8s/kubernetes.go +++ b/pkg/simple/client/k8s/kubernetes.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package k8s import ( diff --git a/pkg/simple/client/k8s/null_client.go b/pkg/simple/client/k8s/null_client.go index 7d369ba6e..0cca3924e 100644 --- a/pkg/simple/client/k8s/null_client.go +++ b/pkg/simple/client/k8s/null_client.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package k8s import ( diff --git a/pkg/simple/client/k8s/options.go b/pkg/simple/client/k8s/options.go index 0c9051532..19fbd92e9 100644 --- a/pkg/simple/client/k8s/options.go +++ b/pkg/simple/client/k8s/options.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package k8s import ( @@ -5,9 +11,8 @@ import ( "os/user" "path" - "k8s.io/client-go/util/homedir" - "github.com/spf13/pflag" + "k8s.io/client-go/util/homedir" ) type Options struct { diff --git a/pkg/simple/client/oci/errors.go b/pkg/simple/client/oci/errors.go index f3cac0f19..209ba6d69 100644 --- a/pkg/simple/client/oci/errors.go +++ b/pkg/simple/client/oci/errors.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package oci import ( diff --git a/pkg/simple/client/oci/oci_test.go b/pkg/simple/client/oci/oci_test.go index b70117af5..0a3054c5b 100644 --- a/pkg/simple/client/oci/oci_test.go +++ b/pkg/simple/client/oci/oci_test.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package oci import ( diff --git a/pkg/simple/client/oci/registry.go b/pkg/simple/client/oci/registry.go index 3d61715e0..0070b3afe 100644 --- a/pkg/simple/client/oci/registry.go +++ b/pkg/simple/client/oci/registry.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package oci import ( diff --git a/pkg/simple/client/oci/url.go b/pkg/simple/client/oci/url.go index 0b7225149..8d24f579d 100644 --- a/pkg/simple/client/oci/url.go +++ b/pkg/simple/client/oci/url.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package oci import ( diff --git a/pkg/simple/client/oci/utils.go b/pkg/simple/client/oci/utils.go index 1b39e2253..5fe9c5541 100644 --- a/pkg/simple/client/oci/utils.go +++ b/pkg/simple/client/oci/utils.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package oci import ( diff --git a/pkg/simple/client/overview/constants.go b/pkg/simple/client/overview/constants.go index 319914cdd..a76d27046 100644 --- a/pkg/simple/client/overview/constants.go +++ b/pkg/simple/client/overview/constants.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package overview const ( diff --git a/pkg/simple/client/overview/metrics.go b/pkg/simple/client/overview/metrics.go index 17abcebb8..bbdc454ba 100644 --- a/pkg/simple/client/overview/metrics.go +++ b/pkg/simple/client/overview/metrics.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package overview import ( diff --git a/pkg/utils/clusterclient/clusterclient.go b/pkg/utils/clusterclient/clusterclient.go index 4ad12e2a8..a98c54800 100644 --- a/pkg/utils/clusterclient/clusterclient.go +++ b/pkg/utils/clusterclient/clusterclient.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/conversions/core/v1/conversion.go b/pkg/utils/conversions/core/v1/conversion.go deleted file mode 100644 index 3424a7125..000000000 --- a/pkg/utils/conversions/core/v1/conversion.go +++ /dev/null @@ -1,113 +0,0 @@ -/* -Copyright The Kubernetes 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. -*/ - -// Code generated by conversion-gen. DO NOT EDIT. - -package v1 - -import ( - url "net/url" - - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - conversion "k8s.io/apimachinery/pkg/conversion" - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// refer to https://github.com/kubernetes/kubernetes/issues/94688 -// conversions must be registered. -func RegisterConversions(s *runtime.Scheme) error { - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*v1.PodLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_PodLogOptions(a.(*url.Values), b.(*v1.PodLogOptions), scope) - }); err != nil { - return err - } - return nil -} - -func autoConvert_url_Values_To_v1_PodLogOptions(in *url.Values, out *v1.PodLogOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. - - if values, ok := map[string][]string(*in)["container"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.Container, s); err != nil { - return err - } - } else { - out.Container = "" - } - if values, ok := map[string][]string(*in)["follow"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.Follow, s); err != nil { - return err - } - } else { - out.Follow = false - } - if values, ok := map[string][]string(*in)["previous"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.Previous, s); err != nil { - return err - } - } else { - out.Previous = false - } - if values, ok := map[string][]string(*in)["sinceSeconds"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.SinceSeconds, s); err != nil { - return err - } - } else { - out.SinceSeconds = nil - } - if values, ok := map[string][]string(*in)["sinceTime"]; ok && len(values) > 0 { - if err := metav1.Convert_Slice_string_To_Pointer_v1_Time(&values, &out.SinceTime, s); err != nil { - return err - } - } else { - out.SinceTime = nil - } - if values, ok := map[string][]string(*in)["timestamps"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.Timestamps, s); err != nil { - return err - } - } else { - out.Timestamps = false - } - if values, ok := map[string][]string(*in)["tailLines"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.TailLines, s); err != nil { - return err - } - } else { - out.TailLines = nil - } - if values, ok := map[string][]string(*in)["limitBytes"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.LimitBytes, s); err != nil { - return err - } - } else { - out.LimitBytes = nil - } - if values, ok := map[string][]string(*in)["insecureSkipTLSVerifyBackend"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.InsecureSkipTLSVerifyBackend, s); err != nil { - return err - } - } else { - out.InsecureSkipTLSVerifyBackend = false - } - return nil -} - -// Convert_url_Values_To_v1_PodLogOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_PodLogOptions(in *url.Values, out *v1.PodLogOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_PodLogOptions(in, out, s) -} diff --git a/pkg/utils/directives/match.go b/pkg/utils/directives/match.go index b32651c94..7cd4d34ae 100644 --- a/pkg/utils/directives/match.go +++ b/pkg/utils/directives/match.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/directives/match_test.go b/pkg/utils/directives/match_test.go index cd538fdbb..9152c338f 100644 --- a/pkg/utils/directives/match_test.go +++ b/pkg/utils/directives/match_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/directives/replace.go b/pkg/utils/directives/replace.go index 0db886597..5fca87f15 100644 --- a/pkg/utils/directives/replace.go +++ b/pkg/utils/directives/replace.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/directives/rewrite.go b/pkg/utils/directives/rewrite.go index 15fb1b4c0..9c25db7d8 100644 --- a/pkg/utils/directives/rewrite.go +++ b/pkg/utils/directives/rewrite.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/directives/rewrite_test.go b/pkg/utils/directives/rewrite_test.go index ca92ff9a8..bbb9f3138 100644 --- a/pkg/utils/directives/rewrite_test.go +++ b/pkg/utils/directives/rewrite_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/esutil/esutil.go b/pkg/utils/esutil/esutil.go deleted file mode 100644 index 5a47903e3..000000000 --- a/pkg/utils/esutil/esutil.go +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Please refer to the LICENSE file in the root directory of the project. - * https://github.com/kubesphere/kubesphere/blob/master/LICENSE - */ - -// TODO: refactor -package esutil - -import ( - "fmt" - "strings" - "time" -) - -// KubeSphere uses the layout `yyyy.MM.dd`. -const layoutISO = "2006.01.02" - -// Always do calculation based on UTC. -func ResolveIndexNames(prefix string, start, end time.Time) string { - if end.IsZero() { - end = time.Now() - } - - // In case of no start time or a broad query range over 30 days, search all indices. - if start.IsZero() || end.Sub(start).Hours() > 24*30 { - return fmt.Sprintf("%s*", prefix) - } - - var indices []string - days := int(end.Sub(start).Hours() / 24) - if start.Add(time.Duration(days)*24*time.Hour).UTC().Day() != end.UTC().Day() { - days++ - } - for i := 0; i <= days; i++ { - suffix := end.Add(time.Duration(-i) * 24 * time.Hour).UTC().Format(layoutISO) - indices = append(indices, fmt.Sprintf("%s-%s", prefix, suffix)) - } - - // If start is after end, ResolveIndexNames returns "". - // However, query parameter validation will prevent it from happening at the very beginning (Bad Request). - return strings.Join(indices, ",") -} diff --git a/pkg/utils/esutil/esutil_test.go b/pkg/utils/esutil/esutil_test.go deleted file mode 100644 index 9b5807bb4..000000000 --- a/pkg/utils/esutil/esutil_test.go +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Please refer to the LICENSE file in the root directory of the project. - * https://github.com/kubesphere/kubesphere/blob/master/LICENSE - */ - -package esutil - -import ( - "fmt" - "testing" - "time" - - "github.com/google/go-cmp/cmp" -) - -func TestResolveIndexNames(t *testing.T) { - var tests = []struct { - prefix string - start time.Time - end time.Time - expected string - }{ - { - prefix: "ks-logstash-log", - start: time.Date(2020, time.February, 1, 0, 0, 0, 0, time.UTC), - end: time.Date(2020, time.February, 1, 0, 0, 0, 0, time.UTC), - expected: "ks-logstash-log-2020.02.01", - }, - { - prefix: "ks-logstash-log", - start: time.Date(2020, time.February, 1, 0, 0, 0, 0, time.UTC), - end: time.Date(2020, time.February, 3, 0, 0, 0, 0, time.UTC), - expected: "ks-logstash-log-2020.02.03,ks-logstash-log-2020.02.02,ks-logstash-log-2020.02.01", - }, - { - prefix: "ks-logstash-log", - end: time.Date(2020, time.February, 3, 0, 0, 0, 0, time.UTC), - expected: "ks-logstash-log*", - }, - { - prefix: "ks-logstash-log", - start: time.Date(2000, time.February, 1, 0, 0, 0, 0, time.UTC), - end: time.Date(2020, time.February, 3, 0, 0, 0, 0, time.UTC), - expected: "ks-logstash-log*", - }, - { - prefix: "ks-logstash-log", - start: time.Date(2020, time.February, 3, 0, 0, 0, 0, time.UTC), - end: time.Date(2020, time.February, 1, 0, 0, 0, 0, time.UTC), - expected: "", - }, - { - prefix: "ks-logstash-log", - start: time.Date(2020, time.August, 6, 22, 0, 0, 0, time.UTC), - end: time.Date(2020, time.August, 7, 04, 0, 0, 0, time.UTC), - expected: "ks-logstash-log-2020.08.07,ks-logstash-log-2020.08.06", - }, - { - prefix: "ks-logstash-log", - start: time.Date(2020, time.August, 6, 22, 0, 0, 0, time.FixedZone("UTC+8", 8*3600)), - end: time.Date(2020, time.August, 7, 04, 0, 0, 0, time.FixedZone("UTC+8", 8*3600)), - expected: "ks-logstash-log-2020.08.06", - }, - { - prefix: "ks-logstash-log", - start: time.Date(2020, time.August, 7, 02, 0, 0, 0, time.FixedZone("UTC+8", 8*3600)), - end: time.Date(2020, time.August, 7, 04, 0, 0, 0, time.FixedZone("UTC+8", 8*3600)), - expected: "ks-logstash-log-2020.08.06", - }, - { - prefix: "ks-logstash-log", - start: time.Date(2020, time.August, 7, 12, 0, 0, 0, time.FixedZone("UTC+8", 8*3600)), - end: time.Date(2020, time.August, 7, 14, 0, 0, 0, time.FixedZone("UTC+8", 8*3600)), - expected: "ks-logstash-log-2020.08.07", - }, - } - - for i, test := range tests { - t.Run(fmt.Sprintf("%d", i), func(t *testing.T) { - result := ResolveIndexNames(test.prefix, test.start, test.end) - if diff := cmp.Diff(result, test.expected); diff != "" { - t.Fatalf("%T differ (-got, +want): %s", test.expected, diff) - } - }) - } -} diff --git a/pkg/utils/hashutil/hashutil.go b/pkg/utils/hashutil/hashutil.go index 7e5424891..3089670ff 100644 --- a/pkg/utils/hashutil/hashutil.go +++ b/pkg/utils/hashutil/hashutil.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/idutils/id_utils.go b/pkg/utils/idutils/id_utils.go index 5229a598a..8ec08ac3e 100644 --- a/pkg/utils/idutils/id_utils.go +++ b/pkg/utils/idutils/id_utils.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/idutils/id_utils_test.go b/pkg/utils/idutils/id_utils_test.go index 9cbecb6fa..b072abe1f 100644 --- a/pkg/utils/idutils/id_utils_test.go +++ b/pkg/utils/idutils/id_utils_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/iputil/iputils.go b/pkg/utils/iputil/iputils.go index f481b1b22..3a6a3203b 100644 --- a/pkg/utils/iputil/iputils.go +++ b/pkg/utils/iputil/iputils.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/josnpatchutil/jsonpatchutil.go b/pkg/utils/josnpatchutil/jsonpatchutil.go index 5a9172564..f51d97372 100644 --- a/pkg/utils/josnpatchutil/jsonpatchutil.go +++ b/pkg/utils/josnpatchutil/jsonpatchutil.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/jsonutil/jsonutils.go b/pkg/utils/jsonutil/jsonutils.go index 95c634814..962eccbe6 100644 --- a/pkg/utils/jsonutil/jsonutils.go +++ b/pkg/utils/jsonutil/jsonutils.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/k8sutil/k8sutil.go b/pkg/utils/k8sutil/k8sutil.go index 70be5505d..5251a4329 100644 --- a/pkg/utils/k8sutil/k8sutil.go +++ b/pkg/utils/k8sutil/k8sutil.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/k8sutil/k8sutil_test.go b/pkg/utils/k8sutil/k8sutil_test.go index 2911f7f46..fb6c0e319 100644 --- a/pkg/utils/k8sutil/k8sutil_test.go +++ b/pkg/utils/k8sutil/k8sutil_test.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/k8sutil/version.go b/pkg/utils/k8sutil/version.go index 662fd08b2..3791b2406 100644 --- a/pkg/utils/k8sutil/version.go +++ b/pkg/utils/k8sutil/version.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/net/net.go b/pkg/utils/net/net.go index ea7b9de16..6d9f9db7d 100644 --- a/pkg/utils/net/net.go +++ b/pkg/utils/net/net.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/pkiutil/pkiutil.go b/pkg/utils/pkiutil/pkiutil.go index 30d606658..07618a1e1 100644 --- a/pkg/utils/pkiutil/pkiutil.go +++ b/pkg/utils/pkiutil/pkiutil.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/rbac/name.go b/pkg/utils/rbac/name.go index 2aa330796..6c939949a 100644 --- a/pkg/utils/rbac/name.go +++ b/pkg/utils/rbac/name.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/readerutils/MD5Reader.go b/pkg/utils/readerutils/MD5Reader.go index 55923cda4..e60c3df85 100644 --- a/pkg/utils/readerutils/MD5Reader.go +++ b/pkg/utils/readerutils/MD5Reader.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/reflectutils/deep.go b/pkg/utils/reflectutils/deep.go index 6b54dbbfa..c6af39a23 100644 --- a/pkg/utils/reflectutils/deep.go +++ b/pkg/utils/reflectutils/deep.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/reflectutils/reflect.go b/pkg/utils/reflectutils/reflect.go index 62ea8ebef..ebf3e22f7 100644 --- a/pkg/utils/reflectutils/reflect.go +++ b/pkg/utils/reflectutils/reflect.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/resourceparse/resource_parse.go b/pkg/utils/resourceparse/resource_parse.go index 1a3a91ba7..b547ad0bb 100644 --- a/pkg/utils/resourceparse/resource_parse.go +++ b/pkg/utils/resourceparse/resource_parse.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/serviceaccount/serviceaccount_util.go b/pkg/utils/serviceaccount/serviceaccount_util.go index f7c6e0de8..b8ee7ff75 100644 --- a/pkg/utils/serviceaccount/serviceaccount_util.go +++ b/pkg/utils/serviceaccount/serviceaccount_util.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/sliceutil/sliceutils.go b/pkg/utils/sliceutil/sliceutils.go index c6b06a7b0..66ebafe67 100644 --- a/pkg/utils/sliceutil/sliceutils.go +++ b/pkg/utils/sliceutil/sliceutils.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/stringutils/string.go b/pkg/utils/stringutils/string.go index 6463747e4..fd3547cd3 100644 --- a/pkg/utils/stringutils/string.go +++ b/pkg/utils/stringutils/string.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/utils/term/term.go b/pkg/utils/term/term.go index 163330261..ada50dbc4 100644 --- a/pkg/utils/term/term.go +++ b/pkg/utils/term/term.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/pkg/version/version.go b/pkg/version/version.go index f66610af1..52e474413 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/staging/src/kubesphere.io/api/application/v2/constants.go b/staging/src/kubesphere.io/api/application/v2/constants.go index adaa24749..3161bf338 100644 --- a/staging/src/kubesphere.io/api/application/v2/constants.go +++ b/staging/src/kubesphere.io/api/application/v2/constants.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v2 const ( diff --git a/staging/src/kubesphere.io/api/application/v2/doc.go b/staging/src/kubesphere.io/api/application/v2/doc.go index df2a7533a..c71cdd541 100644 --- a/staging/src/kubesphere.io/api/application/v2/doc.go +++ b/staging/src/kubesphere.io/api/application/v2/doc.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // +k8s:openapi-gen=true // +kubebuilder:object:generate=true // +groupName=application.kubesphere.io diff --git a/staging/src/kubesphere.io/api/application/v2/register.go b/staging/src/kubesphere.io/api/application/v2/register.go index 7ca1ff0e2..355755eed 100644 --- a/staging/src/kubesphere.io/api/application/v2/register.go +++ b/staging/src/kubesphere.io/api/application/v2/register.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v2 import ( diff --git a/staging/src/kubesphere.io/api/application/v2/types.go b/staging/src/kubesphere.io/api/application/v2/types.go index c6be29e02..9114226f6 100644 --- a/staging/src/kubesphere.io/api/application/v2/types.go +++ b/staging/src/kubesphere.io/api/application/v2/types.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v2 import ( diff --git a/staging/src/kubesphere.io/api/application/v2/zz_generated.deepcopy.go b/staging/src/kubesphere.io/api/application/v2/zz_generated.deepcopy.go index 0b0964b5a..b4fb3bf2f 100644 --- a/staging/src/kubesphere.io/api/application/v2/zz_generated.deepcopy.go +++ b/staging/src/kubesphere.io/api/application/v2/zz_generated.deepcopy.go @@ -1,5 +1,11 @@ //go:build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by controller-gen. DO NOT EDIT. package v2 diff --git a/staging/src/kubesphere.io/api/cluster/v1alpha1/doc.go b/staging/src/kubesphere.io/api/cluster/v1alpha1/doc.go index 5c13ebe8b..9c858368f 100644 --- a/staging/src/kubesphere.io/api/cluster/v1alpha1/doc.go +++ b/staging/src/kubesphere.io/api/cluster/v1alpha1/doc.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Package v1alpha1 contains API Schema definitions for the tower v1alpha1 API group // +k8s:openapi-gen=true // +kubebuilder:object:generate=true diff --git a/staging/src/kubesphere.io/api/cluster/v1alpha1/openapi_generated.go b/staging/src/kubesphere.io/api/cluster/v1alpha1/openapi_generated.go index ae88b5f15..6d48e5ce3 100644 --- a/staging/src/kubesphere.io/api/cluster/v1alpha1/openapi_generated.go +++ b/staging/src/kubesphere.io/api/cluster/v1alpha1/openapi_generated.go @@ -1,6 +1,12 @@ //go:build !ignore_autogenerated // +build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by openapi-gen. DO NOT EDIT. // This file was autogenerated by openapi-gen. Do not edit it manually! diff --git a/staging/src/kubesphere.io/api/cluster/v1alpha1/register.go b/staging/src/kubesphere.io/api/cluster/v1alpha1/register.go index 0f14c6949..43a55b11c 100644 --- a/staging/src/kubesphere.io/api/cluster/v1alpha1/register.go +++ b/staging/src/kubesphere.io/api/cluster/v1alpha1/register.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 import ( diff --git a/staging/src/kubesphere.io/api/cluster/v1alpha1/types.go b/staging/src/kubesphere.io/api/cluster/v1alpha1/types.go index d32952ef7..a1e40ce13 100644 --- a/staging/src/kubesphere.io/api/cluster/v1alpha1/types.go +++ b/staging/src/kubesphere.io/api/cluster/v1alpha1/types.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 import ( diff --git a/staging/src/kubesphere.io/api/cluster/v1alpha1/zz_generated.deepcopy.go b/staging/src/kubesphere.io/api/cluster/v1alpha1/zz_generated.deepcopy.go index 090eaa8e3..2d5953899 100644 --- a/staging/src/kubesphere.io/api/cluster/v1alpha1/zz_generated.deepcopy.go +++ b/staging/src/kubesphere.io/api/cluster/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,11 @@ //go:build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/staging/src/kubesphere.io/api/constants/constants.go b/staging/src/kubesphere.io/api/constants/constants.go index 8855461c7..4640be62f 100644 --- a/staging/src/kubesphere.io/api/constants/constants.go +++ b/staging/src/kubesphere.io/api/constants/constants.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package constants const ( diff --git a/staging/src/kubesphere.io/api/core/v1alpha1/constants.go b/staging/src/kubesphere.io/api/core/v1alpha1/constants.go index b81dfc2a5..5c6776def 100644 --- a/staging/src/kubesphere.io/api/core/v1alpha1/constants.go +++ b/staging/src/kubesphere.io/api/core/v1alpha1/constants.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 const ( diff --git a/staging/src/kubesphere.io/api/core/v1alpha1/doc.go b/staging/src/kubesphere.io/api/core/v1alpha1/doc.go index cb580ad4e..639d68ba7 100644 --- a/staging/src/kubesphere.io/api/core/v1alpha1/doc.go +++ b/staging/src/kubesphere.io/api/core/v1alpha1/doc.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // +k8s:openapi-gen=true // +kubebuilder:object:generate=true // +groupName=kubesphere.io diff --git a/staging/src/kubesphere.io/api/core/v1alpha1/i18n.go b/staging/src/kubesphere.io/api/core/v1alpha1/i18n.go index b246f8bef..13e122cb1 100644 --- a/staging/src/kubesphere.io/api/core/v1alpha1/i18n.go +++ b/staging/src/kubesphere.io/api/core/v1alpha1/i18n.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 type LanguageCode string diff --git a/staging/src/kubesphere.io/api/core/v1alpha1/register.go b/staging/src/kubesphere.io/api/core/v1alpha1/register.go index b03a0ed92..4d37a9a26 100644 --- a/staging/src/kubesphere.io/api/core/v1alpha1/register.go +++ b/staging/src/kubesphere.io/api/core/v1alpha1/register.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 import ( diff --git a/staging/src/kubesphere.io/api/core/v1alpha1/types.go b/staging/src/kubesphere.io/api/core/v1alpha1/types.go index ef278a8f6..59e889f18 100644 --- a/staging/src/kubesphere.io/api/core/v1alpha1/types.go +++ b/staging/src/kubesphere.io/api/core/v1alpha1/types.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 import ( diff --git a/staging/src/kubesphere.io/api/core/v1alpha1/zz_generated.deepcopy.go b/staging/src/kubesphere.io/api/core/v1alpha1/zz_generated.deepcopy.go index 0e96e67e3..29a7438d8 100644 --- a/staging/src/kubesphere.io/api/core/v1alpha1/zz_generated.deepcopy.go +++ b/staging/src/kubesphere.io/api/core/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,11 @@ //go:build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/staging/src/kubesphere.io/api/extensions/v1alpha1/constants.go b/staging/src/kubesphere.io/api/extensions/v1alpha1/constants.go index 152d8f3aa..257577ae4 100644 --- a/staging/src/kubesphere.io/api/extensions/v1alpha1/constants.go +++ b/staging/src/kubesphere.io/api/extensions/v1alpha1/constants.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 const ( diff --git a/staging/src/kubesphere.io/api/extensions/v1alpha1/doc.go b/staging/src/kubesphere.io/api/extensions/v1alpha1/doc.go index baa45e271..5498b9adf 100644 --- a/staging/src/kubesphere.io/api/extensions/v1alpha1/doc.go +++ b/staging/src/kubesphere.io/api/extensions/v1alpha1/doc.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // +k8s:openapi-gen=true // +kubebuilder:object:generate=true // +groupName=extensions.kubesphere.io diff --git a/staging/src/kubesphere.io/api/extensions/v1alpha1/register.go b/staging/src/kubesphere.io/api/extensions/v1alpha1/register.go index 2c3339027..f68f720ec 100644 --- a/staging/src/kubesphere.io/api/extensions/v1alpha1/register.go +++ b/staging/src/kubesphere.io/api/extensions/v1alpha1/register.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 import ( diff --git a/staging/src/kubesphere.io/api/extensions/v1alpha1/types.go b/staging/src/kubesphere.io/api/extensions/v1alpha1/types.go index 747289b7b..e1166eb40 100644 --- a/staging/src/kubesphere.io/api/extensions/v1alpha1/types.go +++ b/staging/src/kubesphere.io/api/extensions/v1alpha1/types.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 import ( diff --git a/staging/src/kubesphere.io/api/extensions/v1alpha1/upstream.go b/staging/src/kubesphere.io/api/extensions/v1alpha1/upstream.go index 68792c451..da9ee7b77 100644 --- a/staging/src/kubesphere.io/api/extensions/v1alpha1/upstream.go +++ b/staging/src/kubesphere.io/api/extensions/v1alpha1/upstream.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 import "fmt" diff --git a/staging/src/kubesphere.io/api/extensions/v1alpha1/zz_generated.deepcopy.go b/staging/src/kubesphere.io/api/extensions/v1alpha1/zz_generated.deepcopy.go index 5cb54aab8..e23bbd789 100644 --- a/staging/src/kubesphere.io/api/extensions/v1alpha1/zz_generated.deepcopy.go +++ b/staging/src/kubesphere.io/api/extensions/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,11 @@ //go:build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/staging/src/kubesphere.io/api/gateway/v1alpha2/doc.go b/staging/src/kubesphere.io/api/gateway/v1alpha2/doc.go index 6a672eab5..5fd42b997 100644 --- a/staging/src/kubesphere.io/api/gateway/v1alpha2/doc.go +++ b/staging/src/kubesphere.io/api/gateway/v1alpha2/doc.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Package v1alpha2 contains API Schema definitions for the gateway v1alpha2 API group // +k8s:openapi-gen=true // +kubebuilder:object:generate=true diff --git a/staging/src/kubesphere.io/api/gateway/v1alpha2/register.go b/staging/src/kubesphere.io/api/gateway/v1alpha2/register.go index 4e8bd6352..b516584ed 100644 --- a/staging/src/kubesphere.io/api/gateway/v1alpha2/register.go +++ b/staging/src/kubesphere.io/api/gateway/v1alpha2/register.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha2 import ( diff --git a/staging/src/kubesphere.io/api/gateway/v1alpha2/types.go b/staging/src/kubesphere.io/api/gateway/v1alpha2/types.go index 631828711..d2f35bf0c 100644 --- a/staging/src/kubesphere.io/api/gateway/v1alpha2/types.go +++ b/staging/src/kubesphere.io/api/gateway/v1alpha2/types.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha2 import ( diff --git a/staging/src/kubesphere.io/api/gateway/v1alpha2/zz_generated.deepcopy.go b/staging/src/kubesphere.io/api/gateway/v1alpha2/zz_generated.deepcopy.go index 33a8c8ae9..223637aa1 100644 --- a/staging/src/kubesphere.io/api/gateway/v1alpha2/zz_generated.deepcopy.go +++ b/staging/src/kubesphere.io/api/gateway/v1alpha2/zz_generated.deepcopy.go @@ -1,5 +1,11 @@ //go:build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by controller-gen. DO NOT EDIT. package v1alpha2 diff --git a/staging/src/kubesphere.io/api/iam/v1alpha2/doc.go b/staging/src/kubesphere.io/api/iam/v1alpha2/doc.go index b6e360c8c..185600c67 100644 --- a/staging/src/kubesphere.io/api/iam/v1alpha2/doc.go +++ b/staging/src/kubesphere.io/api/iam/v1alpha2/doc.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Package v1alpha2 contains API Schema definitions for the iam v1alpha2 API group // +k8s:openapi-gen=true // +kubebuilder:object:generate=true diff --git a/staging/src/kubesphere.io/api/iam/v1alpha2/register.go b/staging/src/kubesphere.io/api/iam/v1alpha2/register.go index a9a3535c7..4b07f24f2 100644 --- a/staging/src/kubesphere.io/api/iam/v1alpha2/register.go +++ b/staging/src/kubesphere.io/api/iam/v1alpha2/register.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha2 import ( diff --git a/staging/src/kubesphere.io/api/iam/v1alpha2/types.go b/staging/src/kubesphere.io/api/iam/v1alpha2/types.go index 2fa3e17c4..160089e14 100644 --- a/staging/src/kubesphere.io/api/iam/v1alpha2/types.go +++ b/staging/src/kubesphere.io/api/iam/v1alpha2/types.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha2 import ( diff --git a/staging/src/kubesphere.io/api/iam/v1alpha2/zz_generated.deepcopy.go b/staging/src/kubesphere.io/api/iam/v1alpha2/zz_generated.deepcopy.go index a40bf87c9..4a7242cf9 100644 --- a/staging/src/kubesphere.io/api/iam/v1alpha2/zz_generated.deepcopy.go +++ b/staging/src/kubesphere.io/api/iam/v1alpha2/zz_generated.deepcopy.go @@ -1,5 +1,11 @@ //go:build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by controller-gen. DO NOT EDIT. package v1alpha2 diff --git a/staging/src/kubesphere.io/api/iam/v1beta1/constants.go b/staging/src/kubesphere.io/api/iam/v1beta1/constants.go index df55a7751..0a117e587 100644 --- a/staging/src/kubesphere.io/api/iam/v1beta1/constants.go +++ b/staging/src/kubesphere.io/api/iam/v1beta1/constants.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1beta1 const ( diff --git a/staging/src/kubesphere.io/api/iam/v1beta1/doc.go b/staging/src/kubesphere.io/api/iam/v1beta1/doc.go index c6bce21ad..5705676df 100644 --- a/staging/src/kubesphere.io/api/iam/v1beta1/doc.go +++ b/staging/src/kubesphere.io/api/iam/v1beta1/doc.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Package v1beta1 contains API Schema definitions for the iam v1beta1 API group // +k8s:openapi-gen=true // +kubebuilder:object:generate=true diff --git a/staging/src/kubesphere.io/api/iam/v1beta1/register.go b/staging/src/kubesphere.io/api/iam/v1beta1/register.go index bae1750d3..1395489d3 100644 --- a/staging/src/kubesphere.io/api/iam/v1beta1/register.go +++ b/staging/src/kubesphere.io/api/iam/v1beta1/register.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1beta1 import ( diff --git a/staging/src/kubesphere.io/api/iam/v1beta1/types.go b/staging/src/kubesphere.io/api/iam/v1beta1/types.go index 9d466730a..c1343367a 100644 --- a/staging/src/kubesphere.io/api/iam/v1beta1/types.go +++ b/staging/src/kubesphere.io/api/iam/v1beta1/types.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1beta1 import ( diff --git a/staging/src/kubesphere.io/api/iam/v1beta1/zz_generated.deepcopy.go b/staging/src/kubesphere.io/api/iam/v1beta1/zz_generated.deepcopy.go index 19344e2dc..10c1bdf34 100644 --- a/staging/src/kubesphere.io/api/iam/v1beta1/zz_generated.deepcopy.go +++ b/staging/src/kubesphere.io/api/iam/v1beta1/zz_generated.deepcopy.go @@ -1,5 +1,11 @@ //go:build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by controller-gen. DO NOT EDIT. package v1beta1 diff --git a/staging/src/kubesphere.io/api/quota/v1alpha2/doc.go b/staging/src/kubesphere.io/api/quota/v1alpha2/doc.go index e82c4d0b1..0a87a4a87 100644 --- a/staging/src/kubesphere.io/api/quota/v1alpha2/doc.go +++ b/staging/src/kubesphere.io/api/quota/v1alpha2/doc.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // +k8s:openapi-gen=true // +kubebuilder:object:generate=true // +groupName=quota.kubesphere.io diff --git a/staging/src/kubesphere.io/api/quota/v1alpha2/register.go b/staging/src/kubesphere.io/api/quota/v1alpha2/register.go index e0ed4e2b8..604045c47 100644 --- a/staging/src/kubesphere.io/api/quota/v1alpha2/register.go +++ b/staging/src/kubesphere.io/api/quota/v1alpha2/register.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha2 import ( diff --git a/staging/src/kubesphere.io/api/quota/v1alpha2/types.go b/staging/src/kubesphere.io/api/quota/v1alpha2/types.go index 8c4625f15..e10d79c8e 100644 --- a/staging/src/kubesphere.io/api/quota/v1alpha2/types.go +++ b/staging/src/kubesphere.io/api/quota/v1alpha2/types.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha2 import ( diff --git a/staging/src/kubesphere.io/api/quota/v1alpha2/zz_generated.deepcopy.go b/staging/src/kubesphere.io/api/quota/v1alpha2/zz_generated.deepcopy.go index 9193b80bc..8e0e394e9 100644 --- a/staging/src/kubesphere.io/api/quota/v1alpha2/zz_generated.deepcopy.go +++ b/staging/src/kubesphere.io/api/quota/v1alpha2/zz_generated.deepcopy.go @@ -1,5 +1,11 @@ //go:build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by controller-gen. DO NOT EDIT. package v1alpha2 diff --git a/staging/src/kubesphere.io/api/storage/v1alpha1/doc.go b/staging/src/kubesphere.io/api/storage/v1alpha1/doc.go index a5feddae5..14aab7b84 100644 --- a/staging/src/kubesphere.io/api/storage/v1alpha1/doc.go +++ b/staging/src/kubesphere.io/api/storage/v1alpha1/doc.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // +k8s:openapi-gen=true // +kubebuilder:object:generate=true // +groupName=storage.kubesphere.io diff --git a/staging/src/kubesphere.io/api/storage/v1alpha1/register.go b/staging/src/kubesphere.io/api/storage/v1alpha1/register.go index 779ba80dd..b1d65a805 100644 --- a/staging/src/kubesphere.io/api/storage/v1alpha1/register.go +++ b/staging/src/kubesphere.io/api/storage/v1alpha1/register.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 import ( diff --git a/staging/src/kubesphere.io/api/storage/v1alpha1/types.go b/staging/src/kubesphere.io/api/storage/v1alpha1/types.go index c7b9bf135..625ef6704 100644 --- a/staging/src/kubesphere.io/api/storage/v1alpha1/types.go +++ b/staging/src/kubesphere.io/api/storage/v1alpha1/types.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 import ( diff --git a/staging/src/kubesphere.io/api/storage/v1alpha1/zz_generated.deepcopy.go b/staging/src/kubesphere.io/api/storage/v1alpha1/zz_generated.deepcopy.go index c1015a31e..3b59e5df8 100644 --- a/staging/src/kubesphere.io/api/storage/v1alpha1/zz_generated.deepcopy.go +++ b/staging/src/kubesphere.io/api/storage/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,11 @@ //go:build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/staging/src/kubesphere.io/api/tenant/v1alpha1/doc.go b/staging/src/kubesphere.io/api/tenant/v1alpha1/doc.go index 98e4fd393..b923922d3 100644 --- a/staging/src/kubesphere.io/api/tenant/v1alpha1/doc.go +++ b/staging/src/kubesphere.io/api/tenant/v1alpha1/doc.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // +k8s:openapi-gen=true // +kubebuilder:object:generate=true // +groupName=tenant.kubesphere.io diff --git a/staging/src/kubesphere.io/api/tenant/v1alpha1/register.go b/staging/src/kubesphere.io/api/tenant/v1alpha1/register.go index 84b665482..91912e3ad 100644 --- a/staging/src/kubesphere.io/api/tenant/v1alpha1/register.go +++ b/staging/src/kubesphere.io/api/tenant/v1alpha1/register.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 import ( diff --git a/staging/src/kubesphere.io/api/tenant/v1alpha1/types.go b/staging/src/kubesphere.io/api/tenant/v1alpha1/types.go index 32782e691..a87c6d168 100644 --- a/staging/src/kubesphere.io/api/tenant/v1alpha1/types.go +++ b/staging/src/kubesphere.io/api/tenant/v1alpha1/types.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha1 import ( diff --git a/staging/src/kubesphere.io/api/tenant/v1alpha1/zz_generated.deepcopy.go b/staging/src/kubesphere.io/api/tenant/v1alpha1/zz_generated.deepcopy.go index 3ba765114..4402c7a83 100644 --- a/staging/src/kubesphere.io/api/tenant/v1alpha1/zz_generated.deepcopy.go +++ b/staging/src/kubesphere.io/api/tenant/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,11 @@ //go:build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/staging/src/kubesphere.io/api/tenant/v1alpha2/doc.go b/staging/src/kubesphere.io/api/tenant/v1alpha2/doc.go index 1557e1ade..4f75e839e 100644 --- a/staging/src/kubesphere.io/api/tenant/v1alpha2/doc.go +++ b/staging/src/kubesphere.io/api/tenant/v1alpha2/doc.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // +k8s:openapi-gen=true // +kubebuilder:object:generate=true // +groupName=tenant.kubesphere.io diff --git a/staging/src/kubesphere.io/api/tenant/v1alpha2/register.go b/staging/src/kubesphere.io/api/tenant/v1alpha2/register.go index 39b618942..c3e7354cc 100644 --- a/staging/src/kubesphere.io/api/tenant/v1alpha2/register.go +++ b/staging/src/kubesphere.io/api/tenant/v1alpha2/register.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha2 import ( diff --git a/staging/src/kubesphere.io/api/tenant/v1alpha2/types.go b/staging/src/kubesphere.io/api/tenant/v1alpha2/types.go index ccb86703a..557f9c07d 100644 --- a/staging/src/kubesphere.io/api/tenant/v1alpha2/types.go +++ b/staging/src/kubesphere.io/api/tenant/v1alpha2/types.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1alpha2 import ( diff --git a/staging/src/kubesphere.io/api/tenant/v1alpha2/zz_generated.deepcopy.go b/staging/src/kubesphere.io/api/tenant/v1alpha2/zz_generated.deepcopy.go index 2253be1a2..cdf36e60e 100644 --- a/staging/src/kubesphere.io/api/tenant/v1alpha2/zz_generated.deepcopy.go +++ b/staging/src/kubesphere.io/api/tenant/v1alpha2/zz_generated.deepcopy.go @@ -1,5 +1,11 @@ //go:build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by controller-gen. DO NOT EDIT. package v1alpha2 diff --git a/staging/src/kubesphere.io/api/tenant/v1beta1/doc.go b/staging/src/kubesphere.io/api/tenant/v1beta1/doc.go index c7ccd8f90..5dee02231 100644 --- a/staging/src/kubesphere.io/api/tenant/v1beta1/doc.go +++ b/staging/src/kubesphere.io/api/tenant/v1beta1/doc.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // +k8s:openapi-gen=true // +kubebuilder:object:generate=true // +groupName=tenant.kubesphere.io diff --git a/staging/src/kubesphere.io/api/tenant/v1beta1/openapi_generated.go b/staging/src/kubesphere.io/api/tenant/v1beta1/openapi_generated.go index 1434a447e..195451cc0 100644 --- a/staging/src/kubesphere.io/api/tenant/v1beta1/openapi_generated.go +++ b/staging/src/kubesphere.io/api/tenant/v1beta1/openapi_generated.go @@ -1,6 +1,12 @@ //go:build !ignore_autogenerated // +build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by openapi-gen. DO NOT EDIT. // This file was autogenerated by openapi-gen. Do not edit it manually! diff --git a/staging/src/kubesphere.io/api/tenant/v1beta1/register.go b/staging/src/kubesphere.io/api/tenant/v1beta1/register.go index 8e008761b..2f4b861e6 100644 --- a/staging/src/kubesphere.io/api/tenant/v1beta1/register.go +++ b/staging/src/kubesphere.io/api/tenant/v1beta1/register.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1beta1 import ( diff --git a/staging/src/kubesphere.io/api/tenant/v1beta1/types.go b/staging/src/kubesphere.io/api/tenant/v1beta1/types.go index 8b62c265d..dae22bd2a 100644 --- a/staging/src/kubesphere.io/api/tenant/v1beta1/types.go +++ b/staging/src/kubesphere.io/api/tenant/v1beta1/types.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package v1beta1 import ( diff --git a/staging/src/kubesphere.io/api/tenant/v1beta1/zz_generated.deepcopy.go b/staging/src/kubesphere.io/api/tenant/v1beta1/zz_generated.deepcopy.go index 8e4970982..d70f17311 100644 --- a/staging/src/kubesphere.io/api/tenant/v1beta1/zz_generated.deepcopy.go +++ b/staging/src/kubesphere.io/api/tenant/v1beta1/zz_generated.deepcopy.go @@ -1,5 +1,11 @@ //go:build !ignore_autogenerated +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Code generated by controller-gen. DO NOT EDIT. package v1beta1 diff --git a/staging/src/kubesphere.io/client-go/kubesphere/scheme/doc.go b/staging/src/kubesphere.io/client-go/kubesphere/scheme/doc.go index 14db57a58..42bffb66e 100644 --- a/staging/src/kubesphere.io/client-go/kubesphere/scheme/doc.go +++ b/staging/src/kubesphere.io/client-go/kubesphere/scheme/doc.go @@ -1,4 +1,8 @@ -// Code generated by client-gen. DO NOT EDIT. +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ // This package contains the scheme of the automatically generated clientset. package scheme diff --git a/staging/src/kubesphere.io/client-go/kubesphere/scheme/register.go b/staging/src/kubesphere.io/client-go/kubesphere/scheme/register.go index 61aed5cbe..bd790b342 100644 --- a/staging/src/kubesphere.io/client-go/kubesphere/scheme/register.go +++ b/staging/src/kubesphere.io/client-go/kubesphere/scheme/register.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package scheme import ( diff --git a/staging/src/kubesphere.io/utils/helm/executor.go b/staging/src/kubesphere.io/utils/helm/executor.go index 7163fb68c..80d494384 100644 --- a/staging/src/kubesphere.io/utils/helm/executor.go +++ b/staging/src/kubesphere.io/utils/helm/executor.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package helm import ( diff --git a/staging/src/kubesphere.io/utils/helm/repo_index.go b/staging/src/kubesphere.io/utils/helm/repo_index.go index e22848e90..be776feab 100644 --- a/staging/src/kubesphere.io/utils/helm/repo_index.go +++ b/staging/src/kubesphere.io/utils/helm/repo_index.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package helm import ( diff --git a/staging/src/kubesphere.io/utils/helm/rest_client_getter.go b/staging/src/kubesphere.io/utils/helm/rest_client_getter.go index ab90714a6..012af863a 100644 --- a/staging/src/kubesphere.io/utils/helm/rest_client_getter.go +++ b/staging/src/kubesphere.io/utils/helm/rest_client_getter.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package helm import ( diff --git a/staging/src/kubesphere.io/utils/helm/tls_util.go b/staging/src/kubesphere.io/utils/helm/tls_util.go index 2256db3fe..9fd1b9d13 100644 --- a/staging/src/kubesphere.io/utils/helm/tls_util.go +++ b/staging/src/kubesphere.io/utils/helm/tls_util.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package helm import ( diff --git a/staging/src/kubesphere.io/utils/s3/s3.go b/staging/src/kubesphere.io/utils/s3/s3.go index ee5bf3dab..443dc85f9 100644 --- a/staging/src/kubesphere.io/utils/s3/s3.go +++ b/staging/src/kubesphere.io/utils/s3/s3.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package s3 import ( diff --git a/test/e2e/constant/constants.go b/test/e2e/constant/constants.go index 4ff4b322a..70cf8d6d2 100644 --- a/test/e2e/constant/constants.go +++ b/test/e2e/constant/constants.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package constant const ( diff --git a/test/e2e/e2e.go b/test/e2e/e2e.go index 96cb3701a..02be080a0 100644 --- a/test/e2e/e2e.go +++ b/test/e2e/e2e.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package e2e import ( diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go index 3fe09ecaa..96ff394d3 100644 --- a/test/e2e/e2e_test.go +++ b/test/e2e/e2e_test.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package e2e import ( diff --git a/test/e2e/framework/expect.go b/test/e2e/framework/expect.go index 7ed9c9faa..a9ca78037 100644 --- a/test/e2e/framework/expect.go +++ b/test/e2e/framework/expect.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package framework import ( diff --git a/test/e2e/framework/framework.go b/test/e2e/framework/framework.go index 76ec146f6..369398b66 100644 --- a/test/e2e/framework/framework.go +++ b/test/e2e/framework/framework.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package framework import ( diff --git a/test/e2e/framework/ginkgowrapper/wrapper.go b/test/e2e/framework/ginkgowrapper/wrapper.go index a4942f9a2..972aeec32 100644 --- a/test/e2e/framework/ginkgowrapper/wrapper.go +++ b/test/e2e/framework/ginkgowrapper/wrapper.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + // Package ginkgowrapper wraps Ginkgo Fail and Skip functions to panic // with structured data instead of a constant string. package ginkgowrapper diff --git a/test/e2e/framework/log.go b/test/e2e/framework/log.go index 41fea94d8..4596de3b4 100644 --- a/test/e2e/framework/log.go +++ b/test/e2e/framework/log.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package framework import ( diff --git a/test/e2e/framework/test_context.go b/test/e2e/framework/test_context.go index eb16c4859..2925b1b9d 100644 --- a/test/e2e/framework/test_context.go +++ b/test/e2e/framework/test_context.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package framework import ( diff --git a/test/e2e/quick.go b/test/e2e/quick.go index 58ca3c423..263292a24 100644 --- a/test/e2e/quick.go +++ b/test/e2e/quick.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package e2e import ( diff --git a/test/e2e/users.go b/test/e2e/users.go index 18459c715..37f724c44 100644 --- a/test/e2e/users.go +++ b/test/e2e/users.go @@ -1,3 +1,9 @@ +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package e2e import ( diff --git a/tools/cmd/crd-doc-gen/main.go b/tools/cmd/crd-doc-gen/main.go index b79ac624a..4cecc019b 100644 --- a/tools/cmd/crd-doc-gen/main.go +++ b/tools/cmd/crd-doc-gen/main.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/tools/cmd/doc-gen/main.go b/tools/cmd/doc-gen/main.go index 34c8fd39f..1fddede39 100644 --- a/tools/cmd/doc-gen/main.go +++ b/tools/cmd/doc-gen/main.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/tools/lib/render.go b/tools/lib/render.go index 6b1d50adf..d2d096a8c 100644 --- a/tools/lib/render.go +++ b/tools/lib/render.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/tools/lib/storage.go b/tools/lib/storage.go index 26396359a..a8db4e9fb 100644 --- a/tools/lib/storage.go +++ b/tools/lib/storage.go @@ -1,4 +1,5 @@ /* + * Copyright 2024 the KubeSphere Authors. * Please refer to the LICENSE file in the root directory of the project. * https://github.com/kubesphere/kubesphere/blob/master/LICENSE */ diff --git a/tools/tools.go b/tools/tools.go index fc3e1c145..31a775f78 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -1,6 +1,12 @@ //go:build tools // +build tools +/* + * Copyright 2024 the KubeSphere Authors. + * Please refer to the LICENSE file in the root directory of the project. + * https://github.com/kubesphere/kubesphere/blob/master/LICENSE + */ + package tools import (