diff --git a/CISbenchmarks.md b/CISbenchmarks.md new file mode 100644 index 000000000..f4fe91b1b --- /dev/null +++ b/CISbenchmarks.md @@ -0,0 +1,409 @@ +# TKEStack 集群CIS安全基线扫描分析 + +## *任务描述*: + +为了提供更安全的K8s集群,有必要使集群遵循安全的配置基线。 + +## *建议方案*: + +建议使用Center for Internet Security(CIS) benchmarks 来评估和分析集群的安全性。 + +## 具体流程 + +### 搭建TKEStack集群 + +1. 在`Installer `节点执行脚本 + + ```shell + arch=amd64 version=v1.3.1 && wget https://tke-release-1251707795.cos.ap-guangzhou.myqcloud.com/tke-installer-linux-$arch-$version.run{,.sha256} && sha256sum --check --status tke-installer-linux-$arch-$version.run.sha256 && chmod +x tke-installer-linux-$arch-$version.run && ./tke-installer-linux-$arch-$version.run + ``` + +2. 控制台安装 + + 按照提示好global集群 + + 最终可以得到这个 + + ![image-20210915153621127](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915153621127.png) + +3. 访问控制台 + + ![image-20210915153800794](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915153800794.png) + +### 创建业务集群 + +在集群管理中选择新建独立集群,填写相关信息即可 + +![image-20210915153919020](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915153919020.png) + +### 使用 kube-bencht 扫描集群 + +Kube-Bench是一款针对Kubernete的安全检测工具,从本质上来说,Kube-Bench是一个基于Go开发的应用程序,它可以帮助研究人员对部署的Kubernete进行安全检测,安全检测原则遵循CIS Kubernetes Benchmark。 + +#### 安装部署 + +- 二进制安装 + + ```shell + wget https://github.com/aquasecurity/kube-bench/releases/download/v0.4.0/kube-bench_0.4.0_linux_amd64.tar.gz + tar -zxvf kube-bench_0.4.0_linux_amd64.tar.gz + mv kube-bench /usr/bin/ + ``` + +- + + ```shell + docker run --rm -v `pwd`:/host aquasec/kube-bench:latest install[root@VM-0-11-centos cis-1.6]# ls /etc/kube-bench/cfg/ + ack-1.0 aks-1.0 cis-1.20 cis-1.5 cis-1.6 config.yaml eks-1.0 gke-1.0 rh-0.7 rh-1.0 + # 根据这些文件对集群当中的组件扫描已有的配置 + [root@VM-0-11-centos cis-1.6]# cd /etc/kube-bench/cfg/cis-1.6 + [root@VM-0-11-centos cis-1.6]# ls + config.yaml controlplane.yaml etcd.yaml master.yaml node.yaml policies.yaml + ``` + +### 扫描结果 + +#### master + +```shell +[root@VM-0-11-centos cis-1.6]# kube-bench run --targets=master +[INFO] 1 Master Node Security Configuration +[INFO] 1.1 Master Node Configuration Files +[PASS] 1.1.1 Ensure that the API server pod specification file permissions are set to 644 or more restrictive (Automated) +[PASS] 1.1.2 Ensure that the API server pod specification file ownership is set to root:root (Automated) +[PASS] 1.1.3 Ensure that the controller manager pod specification file permissions are set to 644 or more restrictive (Automated) +[PASS] 1.1.4 Ensure that the controller manager pod specification file ownership is set to root:root (Automated) +[PASS] 1.1.5 Ensure that the scheduler pod specification file permissions are set to 644 or more restrictive (Automated) +[PASS] 1.1.6 Ensure that the scheduler pod specification file ownership is set to root:root (Automated) +[PASS] 1.1.7 Ensure that the etcd pod specification file permissions are set to 644 or more restrictive (Automated) +[PASS] 1.1.8 Ensure that the etcd pod specification file ownership is set to root:root (Automated) +[WARN] 1.1.9 Ensure that the Container Network Interface file permissions are set to 644 or more restrictive (Manual) +[PASS] 1.1.10 Ensure that the Container Network Interface file ownership is set to root:root (Manual) +[PASS] 1.1.11 Ensure that the etcd data directory permissions are set to 700 or more restrictive (Automated) +[FAIL] 1.1.12 Ensure that the etcd data directory ownership is set to etcd:etcd (Automated) +[PASS] 1.1.13 Ensure that the admin.conf file permissions are set to 644 or more restrictive (Automated) +[PASS] 1.1.14 Ensure that the admin.conf file ownership is set to root:root (Automated) +[PASS] 1.1.15 Ensure that the scheduler.conf file permissions are set to 644 or more restrictive (Automated) +[PASS] 1.1.16 Ensure that the scheduler.conf file ownership is set to root:root (Automated) +[PASS] 1.1.17 Ensure that the controller-manager.conf file permissions are set to 644 or more restrictive (Automated) +[PASS] 1.1.18 Ensure that the controller-manager.conf file ownership is set to root:root (Automated) +[PASS] 1.1.19 Ensure that the Kubernetes PKI directory and file ownership is set to root:root (Automated) +[PASS] 1.1.20 Ensure that the Kubernetes PKI certificate file permissions are set to 644 or more restrictive (Manual) +[WARN] 1.1.21 Ensure that the Kubernetes PKI key file permissions are set to 600 (Manual) +[INFO] 1.2 API Server +[WARN] 1.2.1 Ensure that the --anonymous-auth argument is set to false (Manual) +[PASS] 1.2.2 Ensure that the --basic-auth-file argument is not set (Automated) +[FAIL] 1.2.3 Ensure that the --token-auth-file parameter is not set (Automated) +[PASS] 1.2.4 Ensure that the --kubelet-https argument is set to true (Automated) +[PASS] 1.2.5 Ensure that the --kubelet-client-certificate and --kubelet-client-key arguments are set as appropriate (Automated) +[FAIL] 1.2.6 Ensure that the --kubelet-certificate-authority argument is set as appropriate (Automated) +[PASS] 1.2.7 Ensure that the --authorization-mode argument is not set to AlwaysAllow (Automated) +[PASS] 1.2.8 Ensure that the --authorization-mode argument includes Node (Automated) +[PASS] 1.2.9 Ensure that the --authorization-mode argument includes RBAC (Automated) +[WARN] 1.2.10 Ensure that the admission control plugin EventRateLimit is set (Manual) +[PASS] 1.2.11 Ensure that the admission control plugin AlwaysAdmit is not set (Automated) +[WARN] 1.2.12 Ensure that the admission control plugin AlwaysPullImages is set (Manual) +[WARN] 1.2.13 Ensure that the admission control plugin SecurityContextDeny is set if PodSecurityPolicy is not used (Manual) +[PASS] 1.2.14 Ensure that the admission control plugin ServiceAccount is set (Automated) +[PASS] 1.2.15 Ensure that the admission control plugin NamespaceLifecycle is set (Automated) +[FAIL] 1.2.16 Ensure that the admission control plugin PodSecurityPolicy is set (Automated) +[PASS] 1.2.17 Ensure that the admission control plugin NodeRestriction is set (Automated) +[PASS] 1.2.18 Ensure that the --insecure-bind-address argument is not set (Automated) +[PASS] 1.2.19 Ensure that the --insecure-port argument is set to 0 (Automated) +[PASS] 1.2.20 Ensure that the --secure-port argument is not set to 0 (Automated) +[FAIL] 1.2.21 Ensure that the --profiling argument is set to false (Automated) +[FAIL] 1.2.22 Ensure that the --audit-log-path argument is set (Automated) +[FAIL] 1.2.23 Ensure that the --audit-log-maxage argument is set to 30 or as appropriate (Automated) +[FAIL] 1.2.24 Ensure that the --audit-log-maxbackup argument is set to 10 or as appropriate (Automated) +[FAIL] 1.2.25 Ensure that the --audit-log-maxsize argument is set to 100 or as appropriate (Automated) +[WARN] 1.2.26 Ensure that the --request-timeout argument is set as appropriate (Automated) +[PASS] 1.2.27 Ensure that the --service-account-lookup argument is set to true (Automated) +[PASS] 1.2.28 Ensure that the --service-account-key-file argument is set as appropriate (Automated) +[PASS] 1.2.29 Ensure that the --etcd-certfile and --etcd-keyfile arguments are set as appropriate (Automated) +[PASS] 1.2.30 Ensure that the --tls-cert-file and --tls-private-key-file arguments are set as appropriate (Automated) +[PASS] 1.2.31 Ensure that the --client-ca-file argument is set as appropriate (Automated) +[PASS] 1.2.32 Ensure that the --etcd-cafile argument is set as appropriate (Automated) +[WARN] 1.2.33 Ensure that the --encryption-provider-config argument is set as appropriate (Manual) +[WARN] 1.2.34 Ensure that encryption providers are appropriately configured (Manual) +[WARN] 1.2.35 Ensure that the API Server only makes use of Strong Cryptographic Ciphers (Manual) +[INFO] 1.3 Controller Manager +[WARN] 1.3.1 Ensure that the --terminated-pod-gc-threshold argument is set as appropriate (Manual) +[FAIL] 1.3.2 Ensure that the --profiling argument is set to false (Automated) +[PASS] 1.3.3 Ensure that the --use-service-account-credentials argument is set to true (Automated) +[PASS] 1.3.4 Ensure that the --service-account-private-key-file argument is set as appropriate (Automated) +[PASS] 1.3.5 Ensure that the --root-ca-file argument is set as appropriate (Automated) +[PASS] 1.3.6 Ensure that the RotateKubeletServerCertificate argument is set to true (Automated) +[PASS] 1.3.7 Ensure that the --bind-address argument is set to 127.0.0.1 (Automated) +[INFO] 1.4 Scheduler +[FAIL] 1.4.1 Ensure that the --profiling argument is set to false (Automated) +[PASS] 1.4.2 Ensure that the --bind-address argument is set to 127.0.0.1 (Automated) + +== Remediations == +1.1.9 Run the below command (based on the file location on your system) on the master node. +For example, +chmod 644 + +1.1.12 On the etcd server node, get the etcd data directory, passed as an argument --data-dir, +from the below command: +ps -ef | grep etcd +Run the below command (based on the etcd data directory found above). +For example, chown etcd:etcd /var/lib/etcd + +1.1.21 Run the below command (based on the file location on your system) on the master node. +For example, +chmod -R 600 /etc/kubernetes/pki/*.key + +1.2.1 Edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +on the master node and set the below parameter. +--anonymous-auth=false + +1.2.3 Follow the documentation and configure alternate mechanisms for authentication. Then, +edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +on the master node and remove the --token-auth-file= parameter. + +1.2.6 Follow the Kubernetes documentation and setup the TLS connection between +the apiserver and kubelets. Then, edit the API server pod specification file +/etc/kubernetes/manifests/kube-apiserver.yaml on the master node and set the +--kubelet-certificate-authority parameter to the path to the cert file for the certificate authority. +--kubelet-certificate-authority= + +1.2.10 Follow the Kubernetes documentation and set the desired limits in a configuration file. +Then, edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +and set the below parameters. +--enable-admission-plugins=...,EventRateLimit,... +--admission-control-config-file= + +1.2.12 Edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +on the master node and set the --enable-admission-plugins parameter to include +AlwaysPullImages. +--enable-admission-plugins=...,AlwaysPullImages,... + +1.2.13 Edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +on the master node and set the --enable-admission-plugins parameter to include +SecurityContextDeny, unless PodSecurityPolicy is already in place. +--enable-admission-plugins=...,SecurityContextDeny,... + +1.2.16 Follow the documentation and create Pod Security Policy objects as per your environment. +Then, edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +on the master node and set the --enable-admission-plugins parameter to a +value that includes PodSecurityPolicy: +--enable-admission-plugins=...,PodSecurityPolicy,... +Then restart the API Server. + +1.2.21 Edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +on the master node and set the below parameter. +--profiling=false + +1.2.22 Edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +on the master node and set the --audit-log-path parameter to a suitable path and +file where you would like audit logs to be written, for example: +--audit-log-path=/var/log/apiserver/audit.log + +1.2.23 Edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +on the master node and set the --audit-log-maxage parameter to 30 or as an appropriate number of days: +--audit-log-maxage=30 + +1.2.24 Edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +on the master node and set the --audit-log-maxbackup parameter to 10 or to an appropriate +value. +--audit-log-maxbackup=10 + +1.2.25 Edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +on the master node and set the --audit-log-maxsize parameter to an appropriate size in MB. +For example, to set it as 100 MB: +--audit-log-maxsize=100 + +1.2.26 Edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +and set the below parameter as appropriate and if needed. +For example, +--request-timeout=300s + +1.2.33 Follow the Kubernetes documentation and configure a EncryptionConfig file. +Then, edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +on the master node and set the --encryption-provider-config parameter to the path of that file: --encryption-provider-config= + +1.2.34 Follow the Kubernetes documentation and configure a EncryptionConfig file. +In this file, choose aescbc, kms or secretbox as the encryption provider. + +1.2.35 Edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml +on the master node and set the below parameter. +--tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM +_SHA256,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_256_GCM +_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_AES_256_GCM +_SHA384 + +1.3.1 Edit the Controller Manager pod specification file /etc/kubernetes/manifests/kube-controller-manager.yaml +on the master node and set the --terminated-pod-gc-threshold to an appropriate threshold, +for example: +--terminated-pod-gc-threshold=10 + +1.3.2 Edit the Controller Manager pod specification file /etc/kubernetes/manifests/kube-controller-manager.yaml +on the master node and set the below parameter. +--profiling=false + +1.4.1 Edit the Scheduler pod specification file /etc/kubernetes/manifests/kube-scheduler.yaml file +on the master node and set the below parameter. +--profiling=false + + +== Summary == +43 checks PASS +11 checks FAIL +11 checks WARN +0 checks INFO + +``` + +#### node + +```shell +[root@VM-0-11-centos cis-1.6]# kube-bench run --targets=node +[INFO] 4 Worker Node Security Configuration +[INFO] 4.1 Worker Node Configuration Files +[PASS] 4.1.1 Ensure that the kubelet service file permissions are set to 644 or more restrictive (Automated) +[PASS] 4.1.2 Ensure that the kubelet service file ownership is set to root:root (Automated) +[PASS] 4.1.3 If proxy kubeconfig file exists ensure permissions are set to 644 or more restrictive (Manual) +[PASS] 4.1.4 Ensure that the proxy kubeconfig file ownership is set to root:root (Manual) +[PASS] 4.1.5 Ensure that the --kubeconfig kubelet.conf file permissions are set to 644 or more restrictive (Automated) +[PASS] 4.1.6 Ensure that the --kubeconfig kubelet.conf file ownership is set to root:root (Manual) +[PASS] 4.1.7 Ensure that the certificate authorities file permissions are set to 644 or more restrictive (Manual) +[PASS] 4.1.8 Ensure that the client certificate authorities file ownership is set to root:root (Manual) +[PASS] 4.1.9 Ensure that the kubelet --config configuration file has permissions set to 644 or more restrictive (Automated) +[PASS] 4.1.10 Ensure that the kubelet --config configuration file ownership is set to root:root (Automated) +[INFO] 4.2 Kubelet +[PASS] 4.2.1 Ensure that the anonymous-auth argument is set to false (Automated) +[PASS] 4.2.2 Ensure that the --authorization-mode argument is not set to AlwaysAllow (Automated) +[PASS] 4.2.3 Ensure that the --client-ca-file argument is set as appropriate (Automated) +[PASS] 4.2.4 Ensure that the --read-only-port argument is set to 0 (Manual) +[PASS] 4.2.5 Ensure that the --streaming-connection-idle-timeout argument is not set to 0 (Manual) +[FAIL] 4.2.6 Ensure that the --protect-kernel-defaults argument is set to true (Automated) +[PASS] 4.2.7 Ensure that the --make-iptables-util-chains argument is set to true (Automated) +[WARN] 4.2.8 Ensure that the --hostname-override argument is not set (Manual) +[WARN] 4.2.9 Ensure that the --event-qps argument is set to 0 or a level which ensures appropriate event capture (Manual) +[WARN] 4.2.10 Ensure that the --tls-cert-file and --tls-private-key-file arguments are set as appropriate (Manual) +[PASS] 4.2.11 Ensure that the --rotate-certificates argument is not set to false (Manual) +[PASS] 4.2.12 Verify that the RotateKubeletServerCertificate argument is set to true (Manual) +[WARN] 4.2.13 Ensure that the Kubelet only makes use of Strong Cryptographic Ciphers (Manual) + +== Remediations == +4.2.6 If using a Kubelet config file, edit the file to set protectKernelDefaults: true. +If using command line arguments, edit the kubelet service file +/etc/systemd/system/kubelet.service on each worker node and +set the below parameter in KUBELET_SYSTEM_PODS_ARGS variable. +--protect-kernel-defaults=true +Based on your system, restart the kubelet service. For example: +systemctl daemon-reload +systemctl restart kubelet.service + +4.2.8 Edit the kubelet service file /etc/systemd/system/kubelet.service +on each worker node and remove the --hostname-override argument from the +KUBELET_SYSTEM_PODS_ARGS variable. +Based on your system, restart the kubelet service. For example: +systemctl daemon-reload +systemctl restart kubelet.service + +4.2.9 If using a Kubelet config file, edit the file to set eventRecordQPS: to an appropriate level. +If using command line arguments, edit the kubelet service file +/etc/systemd/system/kubelet.service on each worker node and +set the below parameter in KUBELET_SYSTEM_PODS_ARGS variable. +Based on your system, restart the kubelet service. For example: +systemctl daemon-reload +systemctl restart kubelet.service + +4.2.10 If using a Kubelet config file, edit the file to set tlsCertFile to the location +of the certificate file to use to identify this Kubelet, and tlsPrivateKeyFile +to the location of the corresponding private key file. +If using command line arguments, edit the kubelet service file +/etc/systemd/system/kubelet.service on each worker node and +set the below parameters in KUBELET_CERTIFICATE_ARGS variable. +--tls-cert-file= +--tls-private-key-file= +Based on your system, restart the kubelet service. For example: +systemctl daemon-reload +systemctl restart kubelet.service + +4.2.13 If using a Kubelet config file, edit the file to set TLSCipherSuites: to +TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_GCM_SHA256 +or to a subset of these values. +If using executable arguments, edit the kubelet service file +/etc/systemd/system/kubelet.service on each worker node and +set the --tls-cipher-suites parameter as follows, or to a subset of these values. +--tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_GCM_SHA256 +Based on your system, restart the kubelet service. For example: +systemctl daemon-reload +systemctl restart kubelet.service + + +== Summary == +18 checks PASS +1 checks FAIL +4 checks WARN +0 checks INFO + +``` + +### 结果分析 + +我们按照CIS Kubernetes Benchmark进行分析 + +#### 1.1.12 + +![image-20210915162536350](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915162536350.png) + +#### 1.2.3 + +![image-20210915162614233](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915162614233.png) + +#### 1.2.6 + +![image-20210915162642312](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915162642312.png) + +#### 1.2.16 + +![image-20210915162714613](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915162714613.png) + +#### 1.2.21 + +![image-20210915162757078](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915162757078.png) + +#### 1.2.22 + +![image-20210915162841148](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915162841148.png) + +#### 1.2.23 + +![image-20210915162848073](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915162848073.png) + +#### 1.2.24 + +![image-20210915162855325](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915162855325.png) + +#### 1.2.25 + +#### ![image-20210915162902354](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915162902354.png) + +#### 1.3.2 + +![image-20210915162933815](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915162933815.png) + +#### 1.4.1 + +![image-20210915162955259](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915162955259.png) + +#### 4.2.6 + +![image-20210915163028273](https://gitee.com/Crescent_P/picture-bed/raw/master/image-20210915163028273.png) + +## 结语 + +以上资料参考 + +https://tkestack.github.io/docs/ + +https://cloud.tencent.com/developer/article/1680433 + +https://www.cisecurity.org/benchmark/kubernetes/ + +欢迎大家参与到TKEStack的建设中:https://github.com/tkestack + +**在这里十分感谢TKEStack的各位导师给我提供的资源和帮助** diff --git a/Makefile b/Makefile index 3e1169b21..7dcdf9768 100644 --- a/Makefile +++ b/Makefile @@ -123,6 +123,7 @@ deploy: .PHONY: clean clean: @$(MAKE) go.clean + git restore pkg/platform/registry/clusteraddontype/assets/assets.go ## lint: Check syntax and styling of go sources. .PHONY: lint @@ -139,7 +140,7 @@ release.build: ifeq ($(NEED_BUILD_PROVIDER),true) cd build/docker/tools/provider-res && make all endif - make push.multiarch + make asset && make push.multiarch ## release: Release tke .PHONY: release diff --git a/api/application/v1/conversion.go b/api/application/v1/conversion.go index c8816a8ad..f65c95ea4 100644 --- a/api/application/v1/conversion.go +++ b/api/application/v1/conversion.go @@ -47,6 +47,7 @@ func AddFieldLabelConversionsForApp(scheme *runtime.Scheme) error { case "spec.tenantID", "spec.name", "spec.targetCluster", + "spec.targetNamespace", "spec.type", "metadata.name": return label, value, nil diff --git a/api/client/clientset/internalversion/typed/platform/internalversion/clustergroupapiresourceitems.go b/api/client/clientset/internalversion/typed/platform/internalversion/clustergroupapiresourceitems.go new file mode 100644 index 000000000..ec89fa607 --- /dev/null +++ b/api/client/clientset/internalversion/typed/platform/internalversion/clustergroupapiresourceitems.go @@ -0,0 +1,84 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2020 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +// Code generated by client-gen. DO NOT EDIT. + +package internalversion + +import ( + "context" + "time" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + rest "k8s.io/client-go/rest" + scheme "tkestack.io/tke/api/client/clientset/internalversion/scheme" + platform "tkestack.io/tke/api/platform" +) + +// ClusterGroupAPIResourceItemsesGetter has a method to return a ClusterGroupAPIResourceItemsInterface. +// A group's client should implement this interface. +type ClusterGroupAPIResourceItemsesGetter interface { + ClusterGroupAPIResourceItemses() ClusterGroupAPIResourceItemsInterface +} + +// ClusterGroupAPIResourceItemsInterface has methods to work with ClusterGroupAPIResourceItems resources. +type ClusterGroupAPIResourceItemsInterface interface { + Get(ctx context.Context, name string, opts v1.GetOptions) (*platform.ClusterGroupAPIResourceItems, error) + List(ctx context.Context, opts v1.ListOptions) (*platform.ClusterGroupAPIResourceItemsList, error) + ClusterGroupAPIResourceItemsExpansion +} + +// clusterGroupAPIResourceItemses implements ClusterGroupAPIResourceItemsInterface +type clusterGroupAPIResourceItemses struct { + client rest.Interface +} + +// newClusterGroupAPIResourceItemses returns a ClusterGroupAPIResourceItemses +func newClusterGroupAPIResourceItemses(c *PlatformClient) *clusterGroupAPIResourceItemses { + return &clusterGroupAPIResourceItemses{ + client: c.RESTClient(), + } +} + +// Get takes name of the clusterGroupAPIResourceItems, and returns the corresponding clusterGroupAPIResourceItems object, and an error if there is any. +func (c *clusterGroupAPIResourceItemses) Get(ctx context.Context, name string, options v1.GetOptions) (result *platform.ClusterGroupAPIResourceItems, err error) { + result = &platform.ClusterGroupAPIResourceItems{} + err = c.client.Get(). + Resource("clustergroupapiresourceitemses"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of ClusterGroupAPIResourceItemses that match those selectors. +func (c *clusterGroupAPIResourceItemses) List(ctx context.Context, opts v1.ListOptions) (result *platform.ClusterGroupAPIResourceItemsList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &platform.ClusterGroupAPIResourceItemsList{} + err = c.client.Get(). + Resource("clustergroupapiresourceitemses"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} diff --git a/api/client/clientset/internalversion/typed/platform/internalversion/fake/fake_clustergroupapiresourceitems.go b/api/client/clientset/internalversion/typed/platform/internalversion/fake/fake_clustergroupapiresourceitems.go new file mode 100644 index 000000000..cbe67c61c --- /dev/null +++ b/api/client/clientset/internalversion/typed/platform/internalversion/fake/fake_clustergroupapiresourceitems.go @@ -0,0 +1,71 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2020 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + "context" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + labels "k8s.io/apimachinery/pkg/labels" + schema "k8s.io/apimachinery/pkg/runtime/schema" + testing "k8s.io/client-go/testing" + platform "tkestack.io/tke/api/platform" +) + +// FakeClusterGroupAPIResourceItemses implements ClusterGroupAPIResourceItemsInterface +type FakeClusterGroupAPIResourceItemses struct { + Fake *FakePlatform +} + +var clustergroupapiresourceitemsesResource = schema.GroupVersionResource{Group: "platform.tkestack.io", Version: "", Resource: "clustergroupapiresourceitemses"} + +var clustergroupapiresourceitemsesKind = schema.GroupVersionKind{Group: "platform.tkestack.io", Version: "", Kind: "ClusterGroupAPIResourceItems"} + +// Get takes name of the clusterGroupAPIResourceItems, and returns the corresponding clusterGroupAPIResourceItems object, and an error if there is any. +func (c *FakeClusterGroupAPIResourceItemses) Get(ctx context.Context, name string, options v1.GetOptions) (result *platform.ClusterGroupAPIResourceItems, err error) { + obj, err := c.Fake. + Invokes(testing.NewRootGetAction(clustergroupapiresourceitemsesResource, name), &platform.ClusterGroupAPIResourceItems{}) + if obj == nil { + return nil, err + } + return obj.(*platform.ClusterGroupAPIResourceItems), err +} + +// List takes label and field selectors, and returns the list of ClusterGroupAPIResourceItemses that match those selectors. +func (c *FakeClusterGroupAPIResourceItemses) List(ctx context.Context, opts v1.ListOptions) (result *platform.ClusterGroupAPIResourceItemsList, err error) { + obj, err := c.Fake. + Invokes(testing.NewRootListAction(clustergroupapiresourceitemsesResource, clustergroupapiresourceitemsesKind, opts), &platform.ClusterGroupAPIResourceItemsList{}) + if obj == nil { + return nil, err + } + + label, _, _ := testing.ExtractFromListOptions(opts) + if label == nil { + label = labels.Everything() + } + list := &platform.ClusterGroupAPIResourceItemsList{ListMeta: obj.(*platform.ClusterGroupAPIResourceItemsList).ListMeta} + for _, item := range obj.(*platform.ClusterGroupAPIResourceItemsList).Items { + if label.Matches(labels.Set(item.Labels)) { + list.Items = append(list.Items, item) + } + } + return list, err +} diff --git a/api/client/clientset/internalversion/typed/platform/internalversion/fake/fake_platform_client.go b/api/client/clientset/internalversion/typed/platform/internalversion/fake/fake_platform_client.go index b63568ae9..1a64cc02f 100644 --- a/api/client/clientset/internalversion/typed/platform/internalversion/fake/fake_platform_client.go +++ b/api/client/clientset/internalversion/typed/platform/internalversion/fake/fake_platform_client.go @@ -50,6 +50,10 @@ func (c *FakePlatform) ClusterCredentials() internalversion.ClusterCredentialInt return &FakeClusterCredentials{c} } +func (c *FakePlatform) ClusterGroupAPIResourceItemses() internalversion.ClusterGroupAPIResourceItemsInterface { + return &FakeClusterGroupAPIResourceItemses{c} +} + func (c *FakePlatform) ConfigMaps() internalversion.ConfigMapInterface { return &FakeConfigMaps{c} } diff --git a/api/client/clientset/internalversion/typed/platform/internalversion/generated_expansion.go b/api/client/clientset/internalversion/typed/platform/internalversion/generated_expansion.go index 6a9da218c..255cfa87d 100644 --- a/api/client/clientset/internalversion/typed/platform/internalversion/generated_expansion.go +++ b/api/client/clientset/internalversion/typed/platform/internalversion/generated_expansion.go @@ -30,6 +30,8 @@ type ClusterAddonTypeExpansion interface{} type ClusterCredentialExpansion interface{} +type ClusterGroupAPIResourceItemsExpansion interface{} + type ConfigMapExpansion interface{} type CronHPAExpansion interface{} diff --git a/api/client/clientset/internalversion/typed/platform/internalversion/platform_client.go b/api/client/clientset/internalversion/typed/platform/internalversion/platform_client.go index 9a1ba7b7e..0e4196c55 100644 --- a/api/client/clientset/internalversion/typed/platform/internalversion/platform_client.go +++ b/api/client/clientset/internalversion/typed/platform/internalversion/platform_client.go @@ -32,6 +32,7 @@ type PlatformInterface interface { ClusterAddonsGetter ClusterAddonTypesGetter ClusterCredentialsGetter + ClusterGroupAPIResourceItemsesGetter ConfigMapsGetter CronHPAsGetter HelmsGetter @@ -71,6 +72,10 @@ func (c *PlatformClient) ClusterCredentials() ClusterCredentialInterface { return newClusterCredentials(c) } +func (c *PlatformClient) ClusterGroupAPIResourceItemses() ClusterGroupAPIResourceItemsInterface { + return newClusterGroupAPIResourceItemses(c) +} + func (c *PlatformClient) ConfigMaps() ConfigMapInterface { return newConfigMaps(c) } diff --git a/api/client/clientset/versioned/typed/platform/v1/clustergroupapiresourceitems.go b/api/client/clientset/versioned/typed/platform/v1/clustergroupapiresourceitems.go new file mode 100644 index 000000000..19926f4a4 --- /dev/null +++ b/api/client/clientset/versioned/typed/platform/v1/clustergroupapiresourceitems.go @@ -0,0 +1,84 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2020 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + "context" + "time" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + rest "k8s.io/client-go/rest" + scheme "tkestack.io/tke/api/client/clientset/versioned/scheme" + platformv1 "tkestack.io/tke/api/platform/v1" +) + +// ClusterGroupAPIResourceItemsesGetter has a method to return a ClusterGroupAPIResourceItemsInterface. +// A group's client should implement this interface. +type ClusterGroupAPIResourceItemsesGetter interface { + ClusterGroupAPIResourceItemses() ClusterGroupAPIResourceItemsInterface +} + +// ClusterGroupAPIResourceItemsInterface has methods to work with ClusterGroupAPIResourceItems resources. +type ClusterGroupAPIResourceItemsInterface interface { + Get(ctx context.Context, name string, opts v1.GetOptions) (*platformv1.ClusterGroupAPIResourceItems, error) + List(ctx context.Context, opts v1.ListOptions) (*platformv1.ClusterGroupAPIResourceItemsList, error) + ClusterGroupAPIResourceItemsExpansion +} + +// clusterGroupAPIResourceItemses implements ClusterGroupAPIResourceItemsInterface +type clusterGroupAPIResourceItemses struct { + client rest.Interface +} + +// newClusterGroupAPIResourceItemses returns a ClusterGroupAPIResourceItemses +func newClusterGroupAPIResourceItemses(c *PlatformV1Client) *clusterGroupAPIResourceItemses { + return &clusterGroupAPIResourceItemses{ + client: c.RESTClient(), + } +} + +// Get takes name of the clusterGroupAPIResourceItems, and returns the corresponding clusterGroupAPIResourceItems object, and an error if there is any. +func (c *clusterGroupAPIResourceItemses) Get(ctx context.Context, name string, options v1.GetOptions) (result *platformv1.ClusterGroupAPIResourceItems, err error) { + result = &platformv1.ClusterGroupAPIResourceItems{} + err = c.client.Get(). + Resource("clustergroupapiresourceitemses"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of ClusterGroupAPIResourceItemses that match those selectors. +func (c *clusterGroupAPIResourceItemses) List(ctx context.Context, opts v1.ListOptions) (result *platformv1.ClusterGroupAPIResourceItemsList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &platformv1.ClusterGroupAPIResourceItemsList{} + err = c.client.Get(). + Resource("clustergroupapiresourceitemses"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} diff --git a/api/client/clientset/versioned/typed/platform/v1/fake/fake_clustergroupapiresourceitems.go b/api/client/clientset/versioned/typed/platform/v1/fake/fake_clustergroupapiresourceitems.go new file mode 100644 index 000000000..a8644e387 --- /dev/null +++ b/api/client/clientset/versioned/typed/platform/v1/fake/fake_clustergroupapiresourceitems.go @@ -0,0 +1,71 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2020 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + "context" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + labels "k8s.io/apimachinery/pkg/labels" + schema "k8s.io/apimachinery/pkg/runtime/schema" + testing "k8s.io/client-go/testing" + platformv1 "tkestack.io/tke/api/platform/v1" +) + +// FakeClusterGroupAPIResourceItemses implements ClusterGroupAPIResourceItemsInterface +type FakeClusterGroupAPIResourceItemses struct { + Fake *FakePlatformV1 +} + +var clustergroupapiresourceitemsesResource = schema.GroupVersionResource{Group: "platform.tkestack.io", Version: "v1", Resource: "clustergroupapiresourceitemses"} + +var clustergroupapiresourceitemsesKind = schema.GroupVersionKind{Group: "platform.tkestack.io", Version: "v1", Kind: "ClusterGroupAPIResourceItems"} + +// Get takes name of the clusterGroupAPIResourceItems, and returns the corresponding clusterGroupAPIResourceItems object, and an error if there is any. +func (c *FakeClusterGroupAPIResourceItemses) Get(ctx context.Context, name string, options v1.GetOptions) (result *platformv1.ClusterGroupAPIResourceItems, err error) { + obj, err := c.Fake. + Invokes(testing.NewRootGetAction(clustergroupapiresourceitemsesResource, name), &platformv1.ClusterGroupAPIResourceItems{}) + if obj == nil { + return nil, err + } + return obj.(*platformv1.ClusterGroupAPIResourceItems), err +} + +// List takes label and field selectors, and returns the list of ClusterGroupAPIResourceItemses that match those selectors. +func (c *FakeClusterGroupAPIResourceItemses) List(ctx context.Context, opts v1.ListOptions) (result *platformv1.ClusterGroupAPIResourceItemsList, err error) { + obj, err := c.Fake. + Invokes(testing.NewRootListAction(clustergroupapiresourceitemsesResource, clustergroupapiresourceitemsesKind, opts), &platformv1.ClusterGroupAPIResourceItemsList{}) + if obj == nil { + return nil, err + } + + label, _, _ := testing.ExtractFromListOptions(opts) + if label == nil { + label = labels.Everything() + } + list := &platformv1.ClusterGroupAPIResourceItemsList{ListMeta: obj.(*platformv1.ClusterGroupAPIResourceItemsList).ListMeta} + for _, item := range obj.(*platformv1.ClusterGroupAPIResourceItemsList).Items { + if label.Matches(labels.Set(item.Labels)) { + list.Items = append(list.Items, item) + } + } + return list, err +} diff --git a/api/client/clientset/versioned/typed/platform/v1/fake/fake_platform_client.go b/api/client/clientset/versioned/typed/platform/v1/fake/fake_platform_client.go index baf19d09b..764e70bbb 100644 --- a/api/client/clientset/versioned/typed/platform/v1/fake/fake_platform_client.go +++ b/api/client/clientset/versioned/typed/platform/v1/fake/fake_platform_client.go @@ -50,6 +50,10 @@ func (c *FakePlatformV1) ClusterCredentials() v1.ClusterCredentialInterface { return &FakeClusterCredentials{c} } +func (c *FakePlatformV1) ClusterGroupAPIResourceItemses() v1.ClusterGroupAPIResourceItemsInterface { + return &FakeClusterGroupAPIResourceItemses{c} +} + func (c *FakePlatformV1) ConfigMaps() v1.ConfigMapInterface { return &FakeConfigMaps{c} } diff --git a/api/client/clientset/versioned/typed/platform/v1/generated_expansion.go b/api/client/clientset/versioned/typed/platform/v1/generated_expansion.go index 4c373192e..5d3c68d93 100644 --- a/api/client/clientset/versioned/typed/platform/v1/generated_expansion.go +++ b/api/client/clientset/versioned/typed/platform/v1/generated_expansion.go @@ -30,6 +30,8 @@ type ClusterAddonTypeExpansion interface{} type ClusterCredentialExpansion interface{} +type ClusterGroupAPIResourceItemsExpansion interface{} + type ConfigMapExpansion interface{} type CronHPAExpansion interface{} diff --git a/api/client/clientset/versioned/typed/platform/v1/platform_client.go b/api/client/clientset/versioned/typed/platform/v1/platform_client.go index 42fe0f9bd..e3bf8fa3d 100644 --- a/api/client/clientset/versioned/typed/platform/v1/platform_client.go +++ b/api/client/clientset/versioned/typed/platform/v1/platform_client.go @@ -33,6 +33,7 @@ type PlatformV1Interface interface { ClusterAddonsGetter ClusterAddonTypesGetter ClusterCredentialsGetter + ClusterGroupAPIResourceItemsesGetter ConfigMapsGetter CronHPAsGetter HelmsGetter @@ -72,6 +73,10 @@ func (c *PlatformV1Client) ClusterCredentials() ClusterCredentialInterface { return newClusterCredentials(c) } +func (c *PlatformV1Client) ClusterGroupAPIResourceItemses() ClusterGroupAPIResourceItemsInterface { + return newClusterGroupAPIResourceItemses(c) +} + func (c *PlatformV1Client) ConfigMaps() ConfigMapInterface { return newConfigMaps(c) } diff --git a/api/client/listers/platform/internalversion/clustergroupapiresourceitems.go b/api/client/listers/platform/internalversion/clustergroupapiresourceitems.go new file mode 100644 index 000000000..bba3950a3 --- /dev/null +++ b/api/client/listers/platform/internalversion/clustergroupapiresourceitems.go @@ -0,0 +1,70 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2020 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +// Code generated by lister-gen. DO NOT EDIT. + +package internalversion + +import ( + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" + platform "tkestack.io/tke/api/platform" +) + +// ClusterGroupAPIResourceItemsLister helps list ClusterGroupAPIResourceItemses. +// All objects returned here must be treated as read-only. +type ClusterGroupAPIResourceItemsLister interface { + // List lists all ClusterGroupAPIResourceItemses in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*platform.ClusterGroupAPIResourceItems, err error) + // Get retrieves the ClusterGroupAPIResourceItems from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*platform.ClusterGroupAPIResourceItems, error) + ClusterGroupAPIResourceItemsListerExpansion +} + +// clusterGroupAPIResourceItemsLister implements the ClusterGroupAPIResourceItemsLister interface. +type clusterGroupAPIResourceItemsLister struct { + indexer cache.Indexer +} + +// NewClusterGroupAPIResourceItemsLister returns a new ClusterGroupAPIResourceItemsLister. +func NewClusterGroupAPIResourceItemsLister(indexer cache.Indexer) ClusterGroupAPIResourceItemsLister { + return &clusterGroupAPIResourceItemsLister{indexer: indexer} +} + +// List lists all ClusterGroupAPIResourceItemses in the indexer. +func (s *clusterGroupAPIResourceItemsLister) List(selector labels.Selector) (ret []*platform.ClusterGroupAPIResourceItems, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*platform.ClusterGroupAPIResourceItems)) + }) + return ret, err +} + +// Get retrieves the ClusterGroupAPIResourceItems from the index for a given name. +func (s *clusterGroupAPIResourceItemsLister) Get(name string) (*platform.ClusterGroupAPIResourceItems, error) { + obj, exists, err := s.indexer.GetByKey(name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(platform.Resource("clustergroupapiresourceitems"), name) + } + return obj.(*platform.ClusterGroupAPIResourceItems), nil +} diff --git a/api/client/listers/platform/internalversion/expansion_generated.go b/api/client/listers/platform/internalversion/expansion_generated.go index aff10cacc..c27609ad1 100644 --- a/api/client/listers/platform/internalversion/expansion_generated.go +++ b/api/client/listers/platform/internalversion/expansion_generated.go @@ -36,6 +36,10 @@ type ClusterAddonListerExpansion interface{} // ClusterCredentialLister. type ClusterCredentialListerExpansion interface{} +// ClusterGroupAPIResourceItemsListerExpansion allows custom methods to be added to +// ClusterGroupAPIResourceItemsLister. +type ClusterGroupAPIResourceItemsListerExpansion interface{} + // ConfigMapListerExpansion allows custom methods to be added to // ConfigMapLister. type ConfigMapListerExpansion interface{} diff --git a/api/client/listers/platform/v1/clustergroupapiresourceitems.go b/api/client/listers/platform/v1/clustergroupapiresourceitems.go new file mode 100644 index 000000000..4581f415f --- /dev/null +++ b/api/client/listers/platform/v1/clustergroupapiresourceitems.go @@ -0,0 +1,70 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2020 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" + v1 "tkestack.io/tke/api/platform/v1" +) + +// ClusterGroupAPIResourceItemsLister helps list ClusterGroupAPIResourceItemses. +// All objects returned here must be treated as read-only. +type ClusterGroupAPIResourceItemsLister interface { + // List lists all ClusterGroupAPIResourceItemses in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*v1.ClusterGroupAPIResourceItems, err error) + // Get retrieves the ClusterGroupAPIResourceItems from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*v1.ClusterGroupAPIResourceItems, error) + ClusterGroupAPIResourceItemsListerExpansion +} + +// clusterGroupAPIResourceItemsLister implements the ClusterGroupAPIResourceItemsLister interface. +type clusterGroupAPIResourceItemsLister struct { + indexer cache.Indexer +} + +// NewClusterGroupAPIResourceItemsLister returns a new ClusterGroupAPIResourceItemsLister. +func NewClusterGroupAPIResourceItemsLister(indexer cache.Indexer) ClusterGroupAPIResourceItemsLister { + return &clusterGroupAPIResourceItemsLister{indexer: indexer} +} + +// List lists all ClusterGroupAPIResourceItemses in the indexer. +func (s *clusterGroupAPIResourceItemsLister) List(selector labels.Selector) (ret []*v1.ClusterGroupAPIResourceItems, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1.ClusterGroupAPIResourceItems)) + }) + return ret, err +} + +// Get retrieves the ClusterGroupAPIResourceItems from the index for a given name. +func (s *clusterGroupAPIResourceItemsLister) Get(name string) (*v1.ClusterGroupAPIResourceItems, error) { + obj, exists, err := s.indexer.GetByKey(name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1.Resource("clustergroupapiresourceitems"), name) + } + return obj.(*v1.ClusterGroupAPIResourceItems), nil +} diff --git a/api/client/listers/platform/v1/expansion_generated.go b/api/client/listers/platform/v1/expansion_generated.go index dceb14b6a..abba5bfb8 100644 --- a/api/client/listers/platform/v1/expansion_generated.go +++ b/api/client/listers/platform/v1/expansion_generated.go @@ -36,6 +36,10 @@ type ClusterAddonListerExpansion interface{} // ClusterCredentialLister. type ClusterCredentialListerExpansion interface{} +// ClusterGroupAPIResourceItemsListerExpansion allows custom methods to be added to +// ClusterGroupAPIResourceItemsLister. +type ClusterGroupAPIResourceItemsListerExpansion interface{} + // ConfigMapListerExpansion allows custom methods to be added to // ConfigMapLister. type ConfigMapListerExpansion interface{} diff --git a/api/logagent/types.go b/api/logagent/types.go index a5a9aeb70..583a0e451 100644 --- a/api/logagent/types.go +++ b/api/logagent/types.go @@ -48,7 +48,6 @@ const ( AddonPhaseUnknown AddonPhase = "Unknown" ) - // +genclient // +genclient:nonNamespaced // +genclient:skipVerbs=deleteCollection @@ -80,7 +79,6 @@ type LogAgentList struct { Items []LogAgent } - // LogAgentSpec describes the attributes of a Logagent. type LogAgentSpec struct { TenantID string @@ -106,6 +104,7 @@ type LogAgentStatus struct { LastReInitializingTimestamp metav1.Time } +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // LogAgentProxyOptions is the query options to a kube-apiserver proxy call for LogAgent crd object. @@ -116,14 +115,12 @@ type LogAgentProxyOptions struct { Name string `json:"name,omitempty"` } - - // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // LogFileTree type LogFileTree struct { metav1.TypeMeta `json:",inline"` - Spec LogFileTreeSpec `json:"spec"` + Spec LogFileTreeSpec `json:"spec"` } type LogFileTreeSpec struct { @@ -133,7 +130,6 @@ type LogFileTreeSpec struct { Pod string `json:"pod,omitempty"` } - // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // LogFileContent diff --git a/api/logagent/v1/types.go b/api/logagent/v1/types.go index 14a499071..5588ef22d 100644 --- a/api/logagent/v1/types.go +++ b/api/logagent/v1/types.go @@ -96,6 +96,7 @@ type LogAgentStatus struct { LastReInitializingTimestamp metav1.Time `json:"lastReInitializingTimestamp" protobuf:"bytes,5,name=lastReInitializingTimestamp"` } +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // LogAgentProxyOptions is the query options to a kube-apiserver proxy call for LogAgent crd object. diff --git a/api/logagent/v1/zz_generated.conversion.go b/api/logagent/v1/zz_generated.conversion.go index 068dc38ca..6d6871c49 100644 --- a/api/logagent/v1/zz_generated.conversion.go +++ b/api/logagent/v1/zz_generated.conversion.go @@ -23,6 +23,7 @@ package v1 import ( + url "net/url" unsafe "unsafe" conversion "k8s.io/apimachinery/pkg/conversion" @@ -167,6 +168,11 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*LogAgentProxyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_LogAgentProxyOptions(a.(*url.Values), b.(*LogAgentProxyOptions), scope) + }); err != nil { + return err + } return nil } @@ -292,6 +298,31 @@ func Convert_logagent_LogAgentProxyOptions_To_v1_LogAgentProxyOptions(in *logage return autoConvert_logagent_LogAgentProxyOptions_To_v1_LogAgentProxyOptions(in, out, s) } +func autoConvert_url_Values_To_v1_LogAgentProxyOptions(in *url.Values, out *LogAgentProxyOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + if values, ok := map[string][]string(*in)["namespace"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Namespace, s); err != nil { + return err + } + } else { + out.Namespace = "" + } + if values, ok := map[string][]string(*in)["name"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Name, s); err != nil { + return err + } + } else { + out.Name = "" + } + return nil +} + +// Convert_url_Values_To_v1_LogAgentProxyOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_LogAgentProxyOptions(in *url.Values, out *LogAgentProxyOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_LogAgentProxyOptions(in, out, s) +} + func autoConvert_v1_LogAgentSpec_To_logagent_LogAgentSpec(in *LogAgentSpec, out *logagent.LogAgentSpec, s conversion.Scope) error { out.TenantID = in.TenantID out.ClusterName = in.ClusterName diff --git a/api/openapi/zz_generated.openapi.go b/api/openapi/zz_generated.openapi.go index 086857a9e..1a3b15be8 100644 --- a/api/openapi/zz_generated.openapi.go +++ b/api/openapi/zz_generated.openapi.go @@ -952,7 +952,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "tkestack.io/tke/api/notify/v1.TemplateText": schema_tke_api_notify_v1_TemplateText(ref), "tkestack.io/tke/api/notify/v1.TemplateWechat": schema_tke_api_notify_v1_TemplateWechat(ref), "tkestack.io/tke/api/platform/v1.AddonSpec": schema_tke_api_platform_v1_AddonSpec(ref), + "tkestack.io/tke/api/platform/v1.App": schema_tke_api_platform_v1_App(ref), "tkestack.io/tke/api/platform/v1.AuthzWebhookAddr": schema_tke_api_platform_v1_AuthzWebhookAddr(ref), + "tkestack.io/tke/api/platform/v1.BootstrapApp": schema_tke_api_platform_v1_BootstrapApp(ref), "tkestack.io/tke/api/platform/v1.BuiltinAuthzWebhookAddr": schema_tke_api_platform_v1_BuiltinAuthzWebhookAddr(ref), "tkestack.io/tke/api/platform/v1.CSIOperator": schema_tke_api_platform_v1_CSIOperator(ref), "tkestack.io/tke/api/platform/v1.CSIOperatorFeature": schema_tke_api_platform_v1_CSIOperatorFeature(ref), @@ -975,6 +977,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "tkestack.io/tke/api/platform/v1.ClusterCredential": schema_tke_api_platform_v1_ClusterCredential(ref), "tkestack.io/tke/api/platform/v1.ClusterCredentialList": schema_tke_api_platform_v1_ClusterCredentialList(ref), "tkestack.io/tke/api/platform/v1.ClusterFeature": schema_tke_api_platform_v1_ClusterFeature(ref), + "tkestack.io/tke/api/platform/v1.ClusterGroupAPIResourceItem": schema_tke_api_platform_v1_ClusterGroupAPIResourceItem(ref), + "tkestack.io/tke/api/platform/v1.ClusterGroupAPIResourceItems": schema_tke_api_platform_v1_ClusterGroupAPIResourceItems(ref), + "tkestack.io/tke/api/platform/v1.ClusterGroupAPIResourceItemsList": schema_tke_api_platform_v1_ClusterGroupAPIResourceItemsList(ref), + "tkestack.io/tke/api/platform/v1.ClusterGroupAPIResourceOptions": schema_tke_api_platform_v1_ClusterGroupAPIResourceOptions(ref), "tkestack.io/tke/api/platform/v1.ClusterList": schema_tke_api_platform_v1_ClusterList(ref), "tkestack.io/tke/api/platform/v1.ClusterMachine": schema_tke_api_platform_v1_ClusterMachine(ref), "tkestack.io/tke/api/platform/v1.ClusterProperty": schema_tke_api_platform_v1_ClusterProperty(ref), @@ -45900,6 +45906,30 @@ func schema_tke_api_platform_v1_AddonSpec(ref common.ReferenceCallback) common.O } } +func schema_tke_api_platform_v1_App(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Ref: ref("tkestack.io/tke/api/application/v1.AppSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "tkestack.io/tke/api/application/v1.AppSpec"}, + } +} + func schema_tke_api_platform_v1_AuthzWebhookAddr(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -45924,6 +45954,25 @@ func schema_tke_api_platform_v1_AuthzWebhookAddr(ref common.ReferenceCallback) c } } +func schema_tke_api_platform_v1_BootstrapApp(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "app": { + SchemaProps: spec.SchemaProps{ + Ref: ref("tkestack.io/tke/api/platform/v1.App"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "tkestack.io/tke/api/platform/v1.App"}, + } +} + func schema_tke_api_platform_v1_BuiltinAuthzWebhookAddr(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -46973,6 +47022,12 @@ func schema_tke_api_platform_v1_ClusterFeature(ref common.ReferenceCallback) com Format: "", }, }, + "containerRuntime": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, "upgrade": { SchemaProps: spec.SchemaProps{ Description: "Upgrade control upgrade process.", @@ -46980,6 +47035,7 @@ func schema_tke_api_platform_v1_ClusterFeature(ref common.ReferenceCallback) com }, }, }, + Required: []string{"containerRuntime"}, }, }, Dependencies: []string{ @@ -46987,6 +47043,234 @@ func schema_tke_api_platform_v1_ClusterFeature(ref common.ReferenceCallback) com } } +func schema_tke_api_platform_v1_ClusterGroupAPIResourceItem(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterGroupAPIResourceItem specifies the name of a resource and whether it is namespaced.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "Name": { + SchemaProps: spec.SchemaProps{ + Description: "name is the plural name of the resource.", + Type: []string{"string"}, + Format: "", + }, + }, + "SingularName": { + SchemaProps: spec.SchemaProps{ + Description: "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", + Type: []string{"string"}, + Format: "", + }, + }, + "Namespaced": { + SchemaProps: spec.SchemaProps{ + Description: "namespaced indicates if a resource is namespaced or not.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "Group": { + SchemaProps: spec.SchemaProps{ + Description: "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", + Type: []string{"string"}, + Format: "", + }, + }, + "Version": { + SchemaProps: spec.SchemaProps{ + Description: "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", + Type: []string{"string"}, + Format: "", + }, + }, + "Kind": { + SchemaProps: spec.SchemaProps{ + Description: "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + Type: []string{"string"}, + Format: "", + }, + }, + "Verbs": { + SchemaProps: spec.SchemaProps{ + Description: "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "ShortNames": { + SchemaProps: spec.SchemaProps{ + Description: "shortNames is a list of suggested short names of the resource.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "Categories": { + SchemaProps: spec.SchemaProps{ + Description: "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"Name", "SingularName", "Namespaced", "Group", "Version", "Kind", "Verbs", "ShortNames", "Categories"}, + }, + }, + } +} + +func schema_tke_api_platform_v1_ClusterGroupAPIResourceItems(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterGroupAPIResourceItems contains the GKV for the current kubernetes cluster", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "groupVersion": { + SchemaProps: spec.SchemaProps{ + Description: "groupVersion is the group and version this APIResourceList is for.", + Type: []string{"string"}, + Format: "", + }, + }, + "apiResources": { + SchemaProps: spec.SchemaProps{ + Description: "resources contains the name of the resources and if they are namespaced.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("tkestack.io/tke/api/platform/v1.ClusterGroupAPIResourceItem"), + }, + }, + }, + }, + }, + }, + Required: []string{"groupVersion", "apiResources"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "tkestack.io/tke/api/platform/v1.ClusterGroupAPIResourceItem"}, + } +} + +func schema_tke_api_platform_v1_ClusterGroupAPIResourceItemsList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterGroupAPIResourceItemsList is the whole list of all ClusterAPIResource.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "Items": { + SchemaProps: spec.SchemaProps{ + Description: "List of ClusterGroupAPIResourceItems", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("tkestack.io/tke/api/platform/v1.ClusterGroupAPIResourceItems"), + }, + }, + }, + }, + }, + }, + Required: []string{"Items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "tkestack.io/tke/api/platform/v1.ClusterGroupAPIResourceItems"}, + } +} + +func schema_tke_api_platform_v1_ClusterGroupAPIResourceOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterGroupAPIResourceOptions is the query options.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_tke_api_platform_v1_ClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -47436,12 +47720,25 @@ func schema_tke_api_platform_v1_ClusterSpec(ref common.ReferenceCallback) common }, }, }, + "bootstrapApps": { + SchemaProps: spec.SchemaProps{ + Description: "BootstrapApps will install apps during creating cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("tkestack.io/tke/api/platform/v1.BootstrapApp"), + }, + }, + }, + }, + }, }, Required: []string{"tenantID", "type", "version"}, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "tkestack.io/tke/api/platform/v1.ClusterFeature", "tkestack.io/tke/api/platform/v1.ClusterMachine", "tkestack.io/tke/api/platform/v1.ClusterProperty", "tkestack.io/tke/api/platform/v1.Etcd"}, + "k8s.io/api/core/v1.LocalObjectReference", "tkestack.io/tke/api/platform/v1.BootstrapApp", "tkestack.io/tke/api/platform/v1.ClusterFeature", "tkestack.io/tke/api/platform/v1.ClusterMachine", "tkestack.io/tke/api/platform/v1.ClusterProperty", "tkestack.io/tke/api/platform/v1.Etcd"}, } } diff --git a/api/platform/register.go b/api/platform/register.go index 30f41b9b0..960ef1508 100644 --- a/api/platform/register.go +++ b/api/platform/register.go @@ -118,6 +118,10 @@ func addKnownTypes(scheme *runtime.Scheme) error { &LBCF{}, &LBCFList{}, &LBCFProxyOptions{}, + + &ClusterGroupAPIResourceItems{}, + &ClusterGroupAPIResourceItemsList{}, + &ClusterGroupAPIResourceOptions{}, ) return nil } diff --git a/api/platform/types.go b/api/platform/types.go index 2a1ddfa99..02eeefb6b 100644 --- a/api/platform/types.go +++ b/api/platform/types.go @@ -23,6 +23,7 @@ import ( "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" + applicationv1 "tkestack.io/tke/api/application/v1" ) // +genclient @@ -150,6 +151,9 @@ type ClusterSpec struct { HostnameAsNodename bool // +optional NetworkArgs map[string]string + // BootstrapApps will install apps during creating cluster + // +optional + BootstrapApps BootstrapApps } // ClusterStatus represents information about the status of a cluster. @@ -227,6 +231,13 @@ const ( GPUVirtual GPUType = "Virtual" ) +type ContainerRuntimeType = string + +const ( + Containerd ContainerRuntimeType = "containerd" + Docker ContainerRuntimeType = "docker" +) + // ClusterPhase defines the phase of cluster constructor. type ClusterPhase string @@ -383,6 +394,8 @@ type ClusterFeature struct { EnableMetricsServer bool // +optional EnableCilium bool + + ContainerRuntime ContainerRuntimeType // +optional IPv6DualStack bool // Upgrade control upgrade process. @@ -390,6 +403,19 @@ type ClusterFeature struct { Upgrade Upgrade } +type BootstrapApps []BootstapApp + +type BootstapApp struct { + App App +} + +type App struct { + // +optional + metav1.ObjectMeta + // +optional + Spec applicationv1.AppSpec +} + type HA struct { TKEHA *TKEHA ThirdPartyHA *ThirdPartyHA @@ -662,6 +688,7 @@ type ClusterAddonTypeList struct { Items []ClusterAddonType } +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // ClusterApplyOptions is the query options to a kube-apiserver proxy call for cluster object. @@ -968,6 +995,7 @@ const ( AddonPhaseUnknown AddonPhase = "Unknown" ) +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // IPAMProxyOptions is the query options to a Helm-api proxy call. @@ -1165,6 +1193,7 @@ type TappControllerStatus struct { LastReInitializingTimestamp metav1.Time } +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // CSIProxyOptions is the query options to a kube-apiserver proxy call for CSI crd object. @@ -1235,6 +1264,7 @@ type CSIOperatorStatus struct { LastReInitializingTimestamp metav1.Time } +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // PVCRProxyOptions is the query options to a kube-apiserver proxy call for PVCR crd object. @@ -1312,6 +1342,7 @@ type VolumeDecoratorStatus struct { LastReInitializingTimestamp metav1.Time } +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // LogCollectorProxyOptions is the query options to a kube-apiserver proxy call for LogCollector crd object. @@ -1605,6 +1636,7 @@ type CronHPAStatus struct { LastReInitializingTimestamp metav1.Time } +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // LBCFProxyOptions is the query options to a kube-apiserver proxy call. @@ -1671,3 +1703,66 @@ type LBCFList struct { // List of CronHPAs Items []LBCF } + +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// ClusterGroupAPIResourceItemsList is the whole list of all ClusterAPIResource. +type ClusterGroupAPIResourceItemsList struct { + metav1.TypeMeta + // +optional + metav1.ListMeta + // List of ClusterAPIResource + Items []ClusterGroupAPIResourceItems +} + +// +genclient +// +genclient:nonNamespaced +// +genclient:onlyVerbs=list,get +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// ClusterGroupAPIResourceItems contains the GKV for the current kubernetes cluster +type ClusterGroupAPIResourceItems struct { + metav1.TypeMeta + // +optional + metav1.ObjectMeta + // groupVersion is the group and version this APIResourceList is for. + GroupVersion string + // resources contains the name of the resources and if they are namespaced. + APIResources []ClusterGroupAPIResourceItem +} + +// ClusterGroupAPIResourceItem specifies the name of a resource and whether it is namespaced. +type ClusterGroupAPIResourceItem struct { + // name is the plural name of the resource. + Name string + // singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + // The singularName is more correct for reporting status on a single item and both singular and plural are allowed + // from the kubectl CLI interface. + SingularName string + // namespaced indicates if a resource is namespaced or not. + Namespaced bool + // group is the preferred group of the resource. Empty implies the group of the containing resource list. + // For subresources, this may have a different value, for example: Scale". + Group string + // version is the preferred version of the resource. Empty implies the version of the containing resource list + // For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)". + Version string + // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + Kind string + // verbs is a list of supported kube verbs (this includes get, list, watch, create, + // update, patch, delete, deletecollection, and proxy) + Verbs []string + // shortNames is a list of suggested short names of the resource. + ShortNames []string + // categories is a list of the grouped resources this resource belongs to (e.g. 'all') + Categories []string +} + +// +k8s:conversion-gen:explicit-from=net/url.Values +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// ClusterGroupAPIResourceOptions is the query options. +type ClusterGroupAPIResourceOptions struct { + metav1.TypeMeta +} diff --git a/api/platform/v1/defaults.go b/api/platform/v1/defaults.go index bc61d8797..49020ffb4 100644 --- a/api/platform/v1/defaults.go +++ b/api/platform/v1/defaults.go @@ -126,3 +126,9 @@ func SetDefaults_LBCFStatus(obj *LBCFStatus) { obj.Phase = AddonPhaseInitializing } } + +func SetDefaults_ClusterFeature(obj *ClusterFeature) { + if obj.ContainerRuntime == "" { + obj.ContainerRuntime = Docker + } +} diff --git a/api/platform/v1/generated.pb.go b/api/platform/v1/generated.pb.go index 582f75e4b..2dfc1d809 100644 --- a/api/platform/v1/generated.pb.go +++ b/api/platform/v1/generated.pb.go @@ -27,7 +27,7 @@ import ( proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - v11 "k8s.io/api/core/v1" + v12 "k8s.io/api/core/v1" math "math" math_bits "math/bits" @@ -77,10 +77,38 @@ func (m *AddonSpec) XXX_DiscardUnknown() { var xxx_messageInfo_AddonSpec proto.InternalMessageInfo +func (m *App) Reset() { *m = App{} } +func (*App) ProtoMessage() {} +func (*App) Descriptor() ([]byte, []int) { + return fileDescriptor_6e12a3c1f6fbf61e, []int{1} +} +func (m *App) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *App) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *App) XXX_Merge(src proto.Message) { + xxx_messageInfo_App.Merge(m, src) +} +func (m *App) XXX_Size() int { + return m.Size() +} +func (m *App) XXX_DiscardUnknown() { + xxx_messageInfo_App.DiscardUnknown(m) +} + +var xxx_messageInfo_App proto.InternalMessageInfo + func (m *AuthzWebhookAddr) Reset() { *m = AuthzWebhookAddr{} } func (*AuthzWebhookAddr) ProtoMessage() {} func (*AuthzWebhookAddr) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{1} + return fileDescriptor_6e12a3c1f6fbf61e, []int{2} } func (m *AuthzWebhookAddr) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -105,10 +133,38 @@ func (m *AuthzWebhookAddr) XXX_DiscardUnknown() { var xxx_messageInfo_AuthzWebhookAddr proto.InternalMessageInfo +func (m *BootstrapApp) Reset() { *m = BootstrapApp{} } +func (*BootstrapApp) ProtoMessage() {} +func (*BootstrapApp) Descriptor() ([]byte, []int) { + return fileDescriptor_6e12a3c1f6fbf61e, []int{3} +} +func (m *BootstrapApp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BootstrapApp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *BootstrapApp) XXX_Merge(src proto.Message) { + xxx_messageInfo_BootstrapApp.Merge(m, src) +} +func (m *BootstrapApp) XXX_Size() int { + return m.Size() +} +func (m *BootstrapApp) XXX_DiscardUnknown() { + xxx_messageInfo_BootstrapApp.DiscardUnknown(m) +} + +var xxx_messageInfo_BootstrapApp proto.InternalMessageInfo + func (m *BuiltinAuthzWebhookAddr) Reset() { *m = BuiltinAuthzWebhookAddr{} } func (*BuiltinAuthzWebhookAddr) ProtoMessage() {} func (*BuiltinAuthzWebhookAddr) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{2} + return fileDescriptor_6e12a3c1f6fbf61e, []int{4} } func (m *BuiltinAuthzWebhookAddr) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -136,7 +192,7 @@ var xxx_messageInfo_BuiltinAuthzWebhookAddr proto.InternalMessageInfo func (m *CSIOperator) Reset() { *m = CSIOperator{} } func (*CSIOperator) ProtoMessage() {} func (*CSIOperator) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{3} + return fileDescriptor_6e12a3c1f6fbf61e, []int{5} } func (m *CSIOperator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -164,7 +220,7 @@ var xxx_messageInfo_CSIOperator proto.InternalMessageInfo func (m *CSIOperatorFeature) Reset() { *m = CSIOperatorFeature{} } func (*CSIOperatorFeature) ProtoMessage() {} func (*CSIOperatorFeature) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{4} + return fileDescriptor_6e12a3c1f6fbf61e, []int{6} } func (m *CSIOperatorFeature) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -192,7 +248,7 @@ var xxx_messageInfo_CSIOperatorFeature proto.InternalMessageInfo func (m *CSIOperatorList) Reset() { *m = CSIOperatorList{} } func (*CSIOperatorList) ProtoMessage() {} func (*CSIOperatorList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{5} + return fileDescriptor_6e12a3c1f6fbf61e, []int{7} } func (m *CSIOperatorList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -220,7 +276,7 @@ var xxx_messageInfo_CSIOperatorList proto.InternalMessageInfo func (m *CSIOperatorSpec) Reset() { *m = CSIOperatorSpec{} } func (*CSIOperatorSpec) ProtoMessage() {} func (*CSIOperatorSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{6} + return fileDescriptor_6e12a3c1f6fbf61e, []int{8} } func (m *CSIOperatorSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -248,7 +304,7 @@ var xxx_messageInfo_CSIOperatorSpec proto.InternalMessageInfo func (m *CSIOperatorStatus) Reset() { *m = CSIOperatorStatus{} } func (*CSIOperatorStatus) ProtoMessage() {} func (*CSIOperatorStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{7} + return fileDescriptor_6e12a3c1f6fbf61e, []int{9} } func (m *CSIOperatorStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -276,7 +332,7 @@ var xxx_messageInfo_CSIOperatorStatus proto.InternalMessageInfo func (m *CSIProxyOptions) Reset() { *m = CSIProxyOptions{} } func (*CSIProxyOptions) ProtoMessage() {} func (*CSIProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{8} + return fileDescriptor_6e12a3c1f6fbf61e, []int{10} } func (m *CSIProxyOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -304,7 +360,7 @@ var xxx_messageInfo_CSIProxyOptions proto.InternalMessageInfo func (m *Cluster) Reset() { *m = Cluster{} } func (*Cluster) ProtoMessage() {} func (*Cluster) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{9} + return fileDescriptor_6e12a3c1f6fbf61e, []int{11} } func (m *Cluster) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -332,7 +388,7 @@ var xxx_messageInfo_Cluster proto.InternalMessageInfo func (m *ClusterAddon) Reset() { *m = ClusterAddon{} } func (*ClusterAddon) ProtoMessage() {} func (*ClusterAddon) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{10} + return fileDescriptor_6e12a3c1f6fbf61e, []int{12} } func (m *ClusterAddon) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -360,7 +416,7 @@ var xxx_messageInfo_ClusterAddon proto.InternalMessageInfo func (m *ClusterAddonList) Reset() { *m = ClusterAddonList{} } func (*ClusterAddonList) ProtoMessage() {} func (*ClusterAddonList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{11} + return fileDescriptor_6e12a3c1f6fbf61e, []int{13} } func (m *ClusterAddonList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -388,7 +444,7 @@ var xxx_messageInfo_ClusterAddonList proto.InternalMessageInfo func (m *ClusterAddonSpec) Reset() { *m = ClusterAddonSpec{} } func (*ClusterAddonSpec) ProtoMessage() {} func (*ClusterAddonSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{12} + return fileDescriptor_6e12a3c1f6fbf61e, []int{14} } func (m *ClusterAddonSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -416,7 +472,7 @@ var xxx_messageInfo_ClusterAddonSpec proto.InternalMessageInfo func (m *ClusterAddonStatus) Reset() { *m = ClusterAddonStatus{} } func (*ClusterAddonStatus) ProtoMessage() {} func (*ClusterAddonStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{13} + return fileDescriptor_6e12a3c1f6fbf61e, []int{15} } func (m *ClusterAddonStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -444,7 +500,7 @@ var xxx_messageInfo_ClusterAddonStatus proto.InternalMessageInfo func (m *ClusterAddonType) Reset() { *m = ClusterAddonType{} } func (*ClusterAddonType) ProtoMessage() {} func (*ClusterAddonType) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{14} + return fileDescriptor_6e12a3c1f6fbf61e, []int{16} } func (m *ClusterAddonType) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -472,7 +528,7 @@ var xxx_messageInfo_ClusterAddonType proto.InternalMessageInfo func (m *ClusterAddonTypeList) Reset() { *m = ClusterAddonTypeList{} } func (*ClusterAddonTypeList) ProtoMessage() {} func (*ClusterAddonTypeList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{15} + return fileDescriptor_6e12a3c1f6fbf61e, []int{17} } func (m *ClusterAddonTypeList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -500,7 +556,7 @@ var xxx_messageInfo_ClusterAddonTypeList proto.InternalMessageInfo func (m *ClusterAddress) Reset() { *m = ClusterAddress{} } func (*ClusterAddress) ProtoMessage() {} func (*ClusterAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{16} + return fileDescriptor_6e12a3c1f6fbf61e, []int{18} } func (m *ClusterAddress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -528,7 +584,7 @@ var xxx_messageInfo_ClusterAddress proto.InternalMessageInfo func (m *ClusterApplyOptions) Reset() { *m = ClusterApplyOptions{} } func (*ClusterApplyOptions) ProtoMessage() {} func (*ClusterApplyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{17} + return fileDescriptor_6e12a3c1f6fbf61e, []int{19} } func (m *ClusterApplyOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -556,7 +612,7 @@ var xxx_messageInfo_ClusterApplyOptions proto.InternalMessageInfo func (m *ClusterComponent) Reset() { *m = ClusterComponent{} } func (*ClusterComponent) ProtoMessage() {} func (*ClusterComponent) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{18} + return fileDescriptor_6e12a3c1f6fbf61e, []int{20} } func (m *ClusterComponent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -584,7 +640,7 @@ var xxx_messageInfo_ClusterComponent proto.InternalMessageInfo func (m *ClusterComponentReplicas) Reset() { *m = ClusterComponentReplicas{} } func (*ClusterComponentReplicas) ProtoMessage() {} func (*ClusterComponentReplicas) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{19} + return fileDescriptor_6e12a3c1f6fbf61e, []int{21} } func (m *ClusterComponentReplicas) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -612,7 +668,7 @@ var xxx_messageInfo_ClusterComponentReplicas proto.InternalMessageInfo func (m *ClusterCondition) Reset() { *m = ClusterCondition{} } func (*ClusterCondition) ProtoMessage() {} func (*ClusterCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{20} + return fileDescriptor_6e12a3c1f6fbf61e, []int{22} } func (m *ClusterCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -640,7 +696,7 @@ var xxx_messageInfo_ClusterCondition proto.InternalMessageInfo func (m *ClusterCredential) Reset() { *m = ClusterCredential{} } func (*ClusterCredential) ProtoMessage() {} func (*ClusterCredential) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{21} + return fileDescriptor_6e12a3c1f6fbf61e, []int{23} } func (m *ClusterCredential) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -668,7 +724,7 @@ var xxx_messageInfo_ClusterCredential proto.InternalMessageInfo func (m *ClusterCredentialList) Reset() { *m = ClusterCredentialList{} } func (*ClusterCredentialList) ProtoMessage() {} func (*ClusterCredentialList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{22} + return fileDescriptor_6e12a3c1f6fbf61e, []int{24} } func (m *ClusterCredentialList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -696,7 +752,7 @@ var xxx_messageInfo_ClusterCredentialList proto.InternalMessageInfo func (m *ClusterFeature) Reset() { *m = ClusterFeature{} } func (*ClusterFeature) ProtoMessage() {} func (*ClusterFeature) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{23} + return fileDescriptor_6e12a3c1f6fbf61e, []int{25} } func (m *ClusterFeature) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -721,10 +777,122 @@ func (m *ClusterFeature) XXX_DiscardUnknown() { var xxx_messageInfo_ClusterFeature proto.InternalMessageInfo +func (m *ClusterGroupAPIResourceItem) Reset() { *m = ClusterGroupAPIResourceItem{} } +func (*ClusterGroupAPIResourceItem) ProtoMessage() {} +func (*ClusterGroupAPIResourceItem) Descriptor() ([]byte, []int) { + return fileDescriptor_6e12a3c1f6fbf61e, []int{26} +} +func (m *ClusterGroupAPIResourceItem) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClusterGroupAPIResourceItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ClusterGroupAPIResourceItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterGroupAPIResourceItem.Merge(m, src) +} +func (m *ClusterGroupAPIResourceItem) XXX_Size() int { + return m.Size() +} +func (m *ClusterGroupAPIResourceItem) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterGroupAPIResourceItem.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterGroupAPIResourceItem proto.InternalMessageInfo + +func (m *ClusterGroupAPIResourceItems) Reset() { *m = ClusterGroupAPIResourceItems{} } +func (*ClusterGroupAPIResourceItems) ProtoMessage() {} +func (*ClusterGroupAPIResourceItems) Descriptor() ([]byte, []int) { + return fileDescriptor_6e12a3c1f6fbf61e, []int{27} +} +func (m *ClusterGroupAPIResourceItems) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClusterGroupAPIResourceItems) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ClusterGroupAPIResourceItems) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterGroupAPIResourceItems.Merge(m, src) +} +func (m *ClusterGroupAPIResourceItems) XXX_Size() int { + return m.Size() +} +func (m *ClusterGroupAPIResourceItems) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterGroupAPIResourceItems.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterGroupAPIResourceItems proto.InternalMessageInfo + +func (m *ClusterGroupAPIResourceItemsList) Reset() { *m = ClusterGroupAPIResourceItemsList{} } +func (*ClusterGroupAPIResourceItemsList) ProtoMessage() {} +func (*ClusterGroupAPIResourceItemsList) Descriptor() ([]byte, []int) { + return fileDescriptor_6e12a3c1f6fbf61e, []int{28} +} +func (m *ClusterGroupAPIResourceItemsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClusterGroupAPIResourceItemsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ClusterGroupAPIResourceItemsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterGroupAPIResourceItemsList.Merge(m, src) +} +func (m *ClusterGroupAPIResourceItemsList) XXX_Size() int { + return m.Size() +} +func (m *ClusterGroupAPIResourceItemsList) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterGroupAPIResourceItemsList.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterGroupAPIResourceItemsList proto.InternalMessageInfo + +func (m *ClusterGroupAPIResourceOptions) Reset() { *m = ClusterGroupAPIResourceOptions{} } +func (*ClusterGroupAPIResourceOptions) ProtoMessage() {} +func (*ClusterGroupAPIResourceOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_6e12a3c1f6fbf61e, []int{29} +} +func (m *ClusterGroupAPIResourceOptions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClusterGroupAPIResourceOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ClusterGroupAPIResourceOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterGroupAPIResourceOptions.Merge(m, src) +} +func (m *ClusterGroupAPIResourceOptions) XXX_Size() int { + return m.Size() +} +func (m *ClusterGroupAPIResourceOptions) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterGroupAPIResourceOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterGroupAPIResourceOptions proto.InternalMessageInfo + func (m *ClusterList) Reset() { *m = ClusterList{} } func (*ClusterList) ProtoMessage() {} func (*ClusterList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{24} + return fileDescriptor_6e12a3c1f6fbf61e, []int{30} } func (m *ClusterList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -752,7 +920,7 @@ var xxx_messageInfo_ClusterList proto.InternalMessageInfo func (m *ClusterMachine) Reset() { *m = ClusterMachine{} } func (*ClusterMachine) ProtoMessage() {} func (*ClusterMachine) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{25} + return fileDescriptor_6e12a3c1f6fbf61e, []int{31} } func (m *ClusterMachine) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -780,7 +948,7 @@ var xxx_messageInfo_ClusterMachine proto.InternalMessageInfo func (m *ClusterProperty) Reset() { *m = ClusterProperty{} } func (*ClusterProperty) ProtoMessage() {} func (*ClusterProperty) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{26} + return fileDescriptor_6e12a3c1f6fbf61e, []int{32} } func (m *ClusterProperty) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -808,7 +976,7 @@ var xxx_messageInfo_ClusterProperty proto.InternalMessageInfo func (m *ClusterResource) Reset() { *m = ClusterResource{} } func (*ClusterResource) ProtoMessage() {} func (*ClusterResource) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{27} + return fileDescriptor_6e12a3c1f6fbf61e, []int{33} } func (m *ClusterResource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -836,7 +1004,7 @@ var xxx_messageInfo_ClusterResource proto.InternalMessageInfo func (m *ClusterSpec) Reset() { *m = ClusterSpec{} } func (*ClusterSpec) ProtoMessage() {} func (*ClusterSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{28} + return fileDescriptor_6e12a3c1f6fbf61e, []int{34} } func (m *ClusterSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -864,7 +1032,7 @@ var xxx_messageInfo_ClusterSpec proto.InternalMessageInfo func (m *ClusterStatus) Reset() { *m = ClusterStatus{} } func (*ClusterStatus) ProtoMessage() {} func (*ClusterStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{29} + return fileDescriptor_6e12a3c1f6fbf61e, []int{35} } func (m *ClusterStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -892,7 +1060,7 @@ var xxx_messageInfo_ClusterStatus proto.InternalMessageInfo func (m *ConfigMap) Reset() { *m = ConfigMap{} } func (*ConfigMap) ProtoMessage() {} func (*ConfigMap) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{30} + return fileDescriptor_6e12a3c1f6fbf61e, []int{36} } func (m *ConfigMap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -920,7 +1088,7 @@ var xxx_messageInfo_ConfigMap proto.InternalMessageInfo func (m *ConfigMapList) Reset() { *m = ConfigMapList{} } func (*ConfigMapList) ProtoMessage() {} func (*ConfigMapList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{31} + return fileDescriptor_6e12a3c1f6fbf61e, []int{37} } func (m *ConfigMapList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -948,7 +1116,7 @@ var xxx_messageInfo_ConfigMapList proto.InternalMessageInfo func (m *CronHPA) Reset() { *m = CronHPA{} } func (*CronHPA) ProtoMessage() {} func (*CronHPA) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{32} + return fileDescriptor_6e12a3c1f6fbf61e, []int{38} } func (m *CronHPA) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -976,7 +1144,7 @@ var xxx_messageInfo_CronHPA proto.InternalMessageInfo func (m *CronHPAList) Reset() { *m = CronHPAList{} } func (*CronHPAList) ProtoMessage() {} func (*CronHPAList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{33} + return fileDescriptor_6e12a3c1f6fbf61e, []int{39} } func (m *CronHPAList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1004,7 +1172,7 @@ var xxx_messageInfo_CronHPAList proto.InternalMessageInfo func (m *CronHPAProxyOptions) Reset() { *m = CronHPAProxyOptions{} } func (*CronHPAProxyOptions) ProtoMessage() {} func (*CronHPAProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{34} + return fileDescriptor_6e12a3c1f6fbf61e, []int{40} } func (m *CronHPAProxyOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1032,7 +1200,7 @@ var xxx_messageInfo_CronHPAProxyOptions proto.InternalMessageInfo func (m *CronHPASpec) Reset() { *m = CronHPASpec{} } func (*CronHPASpec) ProtoMessage() {} func (*CronHPASpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{35} + return fileDescriptor_6e12a3c1f6fbf61e, []int{41} } func (m *CronHPASpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1060,7 +1228,7 @@ var xxx_messageInfo_CronHPASpec proto.InternalMessageInfo func (m *CronHPAStatus) Reset() { *m = CronHPAStatus{} } func (*CronHPAStatus) ProtoMessage() {} func (*CronHPAStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{36} + return fileDescriptor_6e12a3c1f6fbf61e, []int{42} } func (m *CronHPAStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1088,7 +1256,7 @@ var xxx_messageInfo_CronHPAStatus proto.InternalMessageInfo func (m *Etcd) Reset() { *m = Etcd{} } func (*Etcd) ProtoMessage() {} func (*Etcd) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{37} + return fileDescriptor_6e12a3c1f6fbf61e, []int{43} } func (m *Etcd) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1116,7 +1284,7 @@ var xxx_messageInfo_Etcd proto.InternalMessageInfo func (m *ExternalAuthzWebhookAddr) Reset() { *m = ExternalAuthzWebhookAddr{} } func (*ExternalAuthzWebhookAddr) ProtoMessage() {} func (*ExternalAuthzWebhookAddr) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{38} + return fileDescriptor_6e12a3c1f6fbf61e, []int{44} } func (m *ExternalAuthzWebhookAddr) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1144,7 +1312,7 @@ var xxx_messageInfo_ExternalAuthzWebhookAddr proto.InternalMessageInfo func (m *ExternalEtcd) Reset() { *m = ExternalEtcd{} } func (*ExternalEtcd) ProtoMessage() {} func (*ExternalEtcd) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{39} + return fileDescriptor_6e12a3c1f6fbf61e, []int{45} } func (m *ExternalEtcd) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1172,7 +1340,7 @@ var xxx_messageInfo_ExternalEtcd proto.InternalMessageInfo func (m *File) Reset() { *m = File{} } func (*File) ProtoMessage() {} func (*File) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{40} + return fileDescriptor_6e12a3c1f6fbf61e, []int{46} } func (m *File) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1200,7 +1368,7 @@ var xxx_messageInfo_File proto.InternalMessageInfo func (m *HA) Reset() { *m = HA{} } func (*HA) ProtoMessage() {} func (*HA) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{41} + return fileDescriptor_6e12a3c1f6fbf61e, []int{47} } func (m *HA) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1228,7 +1396,7 @@ var xxx_messageInfo_HA proto.InternalMessageInfo func (m *Helm) Reset() { *m = Helm{} } func (*Helm) ProtoMessage() {} func (*Helm) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{42} + return fileDescriptor_6e12a3c1f6fbf61e, []int{48} } func (m *Helm) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1256,7 +1424,7 @@ var xxx_messageInfo_Helm proto.InternalMessageInfo func (m *HelmList) Reset() { *m = HelmList{} } func (*HelmList) ProtoMessage() {} func (*HelmList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{43} + return fileDescriptor_6e12a3c1f6fbf61e, []int{49} } func (m *HelmList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1284,7 +1452,7 @@ var xxx_messageInfo_HelmList proto.InternalMessageInfo func (m *HelmProxyOptions) Reset() { *m = HelmProxyOptions{} } func (*HelmProxyOptions) ProtoMessage() {} func (*HelmProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{44} + return fileDescriptor_6e12a3c1f6fbf61e, []int{50} } func (m *HelmProxyOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1312,7 +1480,7 @@ var xxx_messageInfo_HelmProxyOptions proto.InternalMessageInfo func (m *HelmSpec) Reset() { *m = HelmSpec{} } func (*HelmSpec) ProtoMessage() {} func (*HelmSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{45} + return fileDescriptor_6e12a3c1f6fbf61e, []int{51} } func (m *HelmSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1340,7 +1508,7 @@ var xxx_messageInfo_HelmSpec proto.InternalMessageInfo func (m *HelmStatus) Reset() { *m = HelmStatus{} } func (*HelmStatus) ProtoMessage() {} func (*HelmStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{46} + return fileDescriptor_6e12a3c1f6fbf61e, []int{52} } func (m *HelmStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1368,7 +1536,7 @@ var xxx_messageInfo_HelmStatus proto.InternalMessageInfo func (m *IPAM) Reset() { *m = IPAM{} } func (*IPAM) ProtoMessage() {} func (*IPAM) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{47} + return fileDescriptor_6e12a3c1f6fbf61e, []int{53} } func (m *IPAM) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1396,7 +1564,7 @@ var xxx_messageInfo_IPAM proto.InternalMessageInfo func (m *IPAMList) Reset() { *m = IPAMList{} } func (*IPAMList) ProtoMessage() {} func (*IPAMList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{48} + return fileDescriptor_6e12a3c1f6fbf61e, []int{54} } func (m *IPAMList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1424,7 +1592,7 @@ var xxx_messageInfo_IPAMList proto.InternalMessageInfo func (m *IPAMProxyOptions) Reset() { *m = IPAMProxyOptions{} } func (*IPAMProxyOptions) ProtoMessage() {} func (*IPAMProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{49} + return fileDescriptor_6e12a3c1f6fbf61e, []int{55} } func (m *IPAMProxyOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1452,7 +1620,7 @@ var xxx_messageInfo_IPAMProxyOptions proto.InternalMessageInfo func (m *IPAMSpec) Reset() { *m = IPAMSpec{} } func (*IPAMSpec) ProtoMessage() {} func (*IPAMSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{50} + return fileDescriptor_6e12a3c1f6fbf61e, []int{56} } func (m *IPAMSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1480,7 +1648,7 @@ var xxx_messageInfo_IPAMSpec proto.InternalMessageInfo func (m *IPAMStatus) Reset() { *m = IPAMStatus{} } func (*IPAMStatus) ProtoMessage() {} func (*IPAMStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{51} + return fileDescriptor_6e12a3c1f6fbf61e, []int{57} } func (m *IPAMStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1508,7 +1676,7 @@ var xxx_messageInfo_IPAMStatus proto.InternalMessageInfo func (m *LBCF) Reset() { *m = LBCF{} } func (*LBCF) ProtoMessage() {} func (*LBCF) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{52} + return fileDescriptor_6e12a3c1f6fbf61e, []int{58} } func (m *LBCF) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1536,7 +1704,7 @@ var xxx_messageInfo_LBCF proto.InternalMessageInfo func (m *LBCFList) Reset() { *m = LBCFList{} } func (*LBCFList) ProtoMessage() {} func (*LBCFList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{53} + return fileDescriptor_6e12a3c1f6fbf61e, []int{59} } func (m *LBCFList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1564,7 +1732,7 @@ var xxx_messageInfo_LBCFList proto.InternalMessageInfo func (m *LBCFProxyOptions) Reset() { *m = LBCFProxyOptions{} } func (*LBCFProxyOptions) ProtoMessage() {} func (*LBCFProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{54} + return fileDescriptor_6e12a3c1f6fbf61e, []int{60} } func (m *LBCFProxyOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1592,7 +1760,7 @@ var xxx_messageInfo_LBCFProxyOptions proto.InternalMessageInfo func (m *LBCFSpec) Reset() { *m = LBCFSpec{} } func (*LBCFSpec) ProtoMessage() {} func (*LBCFSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{55} + return fileDescriptor_6e12a3c1f6fbf61e, []int{61} } func (m *LBCFSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1620,7 +1788,7 @@ var xxx_messageInfo_LBCFSpec proto.InternalMessageInfo func (m *LBCFStatus) Reset() { *m = LBCFStatus{} } func (*LBCFStatus) ProtoMessage() {} func (*LBCFStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{56} + return fileDescriptor_6e12a3c1f6fbf61e, []int{62} } func (m *LBCFStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1648,7 +1816,7 @@ var xxx_messageInfo_LBCFStatus proto.InternalMessageInfo func (m *LocalEtcd) Reset() { *m = LocalEtcd{} } func (*LocalEtcd) ProtoMessage() {} func (*LocalEtcd) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{57} + return fileDescriptor_6e12a3c1f6fbf61e, []int{63} } func (m *LocalEtcd) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1676,7 +1844,7 @@ var xxx_messageInfo_LocalEtcd proto.InternalMessageInfo func (m *LogCollector) Reset() { *m = LogCollector{} } func (*LogCollector) ProtoMessage() {} func (*LogCollector) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{58} + return fileDescriptor_6e12a3c1f6fbf61e, []int{64} } func (m *LogCollector) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1704,7 +1872,7 @@ var xxx_messageInfo_LogCollector proto.InternalMessageInfo func (m *LogCollectorList) Reset() { *m = LogCollectorList{} } func (*LogCollectorList) ProtoMessage() {} func (*LogCollectorList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{59} + return fileDescriptor_6e12a3c1f6fbf61e, []int{65} } func (m *LogCollectorList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1732,7 +1900,7 @@ var xxx_messageInfo_LogCollectorList proto.InternalMessageInfo func (m *LogCollectorProxyOptions) Reset() { *m = LogCollectorProxyOptions{} } func (*LogCollectorProxyOptions) ProtoMessage() {} func (*LogCollectorProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{60} + return fileDescriptor_6e12a3c1f6fbf61e, []int{66} } func (m *LogCollectorProxyOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1760,7 +1928,7 @@ var xxx_messageInfo_LogCollectorProxyOptions proto.InternalMessageInfo func (m *LogCollectorSpec) Reset() { *m = LogCollectorSpec{} } func (*LogCollectorSpec) ProtoMessage() {} func (*LogCollectorSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{61} + return fileDescriptor_6e12a3c1f6fbf61e, []int{67} } func (m *LogCollectorSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1788,7 +1956,7 @@ var xxx_messageInfo_LogCollectorSpec proto.InternalMessageInfo func (m *LogCollectorStatus) Reset() { *m = LogCollectorStatus{} } func (*LogCollectorStatus) ProtoMessage() {} func (*LogCollectorStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{62} + return fileDescriptor_6e12a3c1f6fbf61e, []int{68} } func (m *LogCollectorStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1816,7 +1984,7 @@ var xxx_messageInfo_LogCollectorStatus proto.InternalMessageInfo func (m *Machine) Reset() { *m = Machine{} } func (*Machine) ProtoMessage() {} func (*Machine) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{63} + return fileDescriptor_6e12a3c1f6fbf61e, []int{69} } func (m *Machine) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1844,7 +2012,7 @@ var xxx_messageInfo_Machine proto.InternalMessageInfo func (m *MachineAddress) Reset() { *m = MachineAddress{} } func (*MachineAddress) ProtoMessage() {} func (*MachineAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{64} + return fileDescriptor_6e12a3c1f6fbf61e, []int{70} } func (m *MachineAddress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1872,7 +2040,7 @@ var xxx_messageInfo_MachineAddress proto.InternalMessageInfo func (m *MachineCondition) Reset() { *m = MachineCondition{} } func (*MachineCondition) ProtoMessage() {} func (*MachineCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{65} + return fileDescriptor_6e12a3c1f6fbf61e, []int{71} } func (m *MachineCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1900,7 +2068,7 @@ var xxx_messageInfo_MachineCondition proto.InternalMessageInfo func (m *MachineList) Reset() { *m = MachineList{} } func (*MachineList) ProtoMessage() {} func (*MachineList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{66} + return fileDescriptor_6e12a3c1f6fbf61e, []int{72} } func (m *MachineList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1928,7 +2096,7 @@ var xxx_messageInfo_MachineList proto.InternalMessageInfo func (m *MachineSpec) Reset() { *m = MachineSpec{} } func (*MachineSpec) ProtoMessage() {} func (*MachineSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{67} + return fileDescriptor_6e12a3c1f6fbf61e, []int{73} } func (m *MachineSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1956,7 +2124,7 @@ var xxx_messageInfo_MachineSpec proto.InternalMessageInfo func (m *MachineStatus) Reset() { *m = MachineStatus{} } func (*MachineStatus) ProtoMessage() {} func (*MachineStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{68} + return fileDescriptor_6e12a3c1f6fbf61e, []int{74} } func (m *MachineStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1984,7 +2152,7 @@ var xxx_messageInfo_MachineStatus proto.InternalMessageInfo func (m *MachineSystemInfo) Reset() { *m = MachineSystemInfo{} } func (*MachineSystemInfo) ProtoMessage() {} func (*MachineSystemInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{69} + return fileDescriptor_6e12a3c1f6fbf61e, []int{75} } func (m *MachineSystemInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2012,7 +2180,7 @@ var xxx_messageInfo_MachineSystemInfo proto.InternalMessageInfo func (m *PVCRProxyOptions) Reset() { *m = PVCRProxyOptions{} } func (*PVCRProxyOptions) ProtoMessage() {} func (*PVCRProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{70} + return fileDescriptor_6e12a3c1f6fbf61e, []int{76} } func (m *PVCRProxyOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2040,7 +2208,7 @@ var xxx_messageInfo_PVCRProxyOptions proto.InternalMessageInfo func (m *PersistentBackEnd) Reset() { *m = PersistentBackEnd{} } func (*PersistentBackEnd) ProtoMessage() {} func (*PersistentBackEnd) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{71} + return fileDescriptor_6e12a3c1f6fbf61e, []int{77} } func (m *PersistentBackEnd) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2068,7 +2236,7 @@ var xxx_messageInfo_PersistentBackEnd proto.InternalMessageInfo func (m *PersistentEvent) Reset() { *m = PersistentEvent{} } func (*PersistentEvent) ProtoMessage() {} func (*PersistentEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{72} + return fileDescriptor_6e12a3c1f6fbf61e, []int{78} } func (m *PersistentEvent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2096,7 +2264,7 @@ var xxx_messageInfo_PersistentEvent proto.InternalMessageInfo func (m *PersistentEventList) Reset() { *m = PersistentEventList{} } func (*PersistentEventList) ProtoMessage() {} func (*PersistentEventList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{73} + return fileDescriptor_6e12a3c1f6fbf61e, []int{79} } func (m *PersistentEventList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2124,7 +2292,7 @@ var xxx_messageInfo_PersistentEventList proto.InternalMessageInfo func (m *PersistentEventSpec) Reset() { *m = PersistentEventSpec{} } func (*PersistentEventSpec) ProtoMessage() {} func (*PersistentEventSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{74} + return fileDescriptor_6e12a3c1f6fbf61e, []int{80} } func (m *PersistentEventSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2152,7 +2320,7 @@ var xxx_messageInfo_PersistentEventSpec proto.InternalMessageInfo func (m *PersistentEventStatus) Reset() { *m = PersistentEventStatus{} } func (*PersistentEventStatus) ProtoMessage() {} func (*PersistentEventStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{75} + return fileDescriptor_6e12a3c1f6fbf61e, []int{81} } func (m *PersistentEventStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2180,7 +2348,7 @@ var xxx_messageInfo_PersistentEventStatus proto.InternalMessageInfo func (m *Prometheus) Reset() { *m = Prometheus{} } func (*Prometheus) ProtoMessage() {} func (*Prometheus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{76} + return fileDescriptor_6e12a3c1f6fbf61e, []int{82} } func (m *Prometheus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2208,7 +2376,7 @@ var xxx_messageInfo_Prometheus proto.InternalMessageInfo func (m *PrometheusList) Reset() { *m = PrometheusList{} } func (*PrometheusList) ProtoMessage() {} func (*PrometheusList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{77} + return fileDescriptor_6e12a3c1f6fbf61e, []int{83} } func (m *PrometheusList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2236,7 +2404,7 @@ var xxx_messageInfo_PrometheusList proto.InternalMessageInfo func (m *PrometheusRemoteAddr) Reset() { *m = PrometheusRemoteAddr{} } func (*PrometheusRemoteAddr) ProtoMessage() {} func (*PrometheusRemoteAddr) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{78} + return fileDescriptor_6e12a3c1f6fbf61e, []int{84} } func (m *PrometheusRemoteAddr) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2264,7 +2432,7 @@ var xxx_messageInfo_PrometheusRemoteAddr proto.InternalMessageInfo func (m *PrometheusSpec) Reset() { *m = PrometheusSpec{} } func (*PrometheusSpec) ProtoMessage() {} func (*PrometheusSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{79} + return fileDescriptor_6e12a3c1f6fbf61e, []int{85} } func (m *PrometheusSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2292,7 +2460,7 @@ var xxx_messageInfo_PrometheusSpec proto.InternalMessageInfo func (m *PrometheusStatus) Reset() { *m = PrometheusStatus{} } func (*PrometheusStatus) ProtoMessage() {} func (*PrometheusStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{80} + return fileDescriptor_6e12a3c1f6fbf61e, []int{86} } func (m *PrometheusStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2320,7 +2488,7 @@ var xxx_messageInfo_PrometheusStatus proto.InternalMessageInfo func (m *Registry) Reset() { *m = Registry{} } func (*Registry) ProtoMessage() {} func (*Registry) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{81} + return fileDescriptor_6e12a3c1f6fbf61e, []int{87} } func (m *Registry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2348,7 +2516,7 @@ var xxx_messageInfo_Registry proto.InternalMessageInfo func (m *RegistryList) Reset() { *m = RegistryList{} } func (*RegistryList) ProtoMessage() {} func (*RegistryList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{82} + return fileDescriptor_6e12a3c1f6fbf61e, []int{88} } func (m *RegistryList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2376,7 +2544,7 @@ var xxx_messageInfo_RegistryList proto.InternalMessageInfo func (m *RegistrySpec) Reset() { *m = RegistrySpec{} } func (*RegistrySpec) ProtoMessage() {} func (*RegistrySpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{83} + return fileDescriptor_6e12a3c1f6fbf61e, []int{89} } func (m *RegistrySpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2404,7 +2572,7 @@ var xxx_messageInfo_RegistrySpec proto.InternalMessageInfo func (m *ResourceRequirements) Reset() { *m = ResourceRequirements{} } func (*ResourceRequirements) ProtoMessage() {} func (*ResourceRequirements) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{84} + return fileDescriptor_6e12a3c1f6fbf61e, []int{90} } func (m *ResourceRequirements) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2432,7 +2600,7 @@ var xxx_messageInfo_ResourceRequirements proto.InternalMessageInfo func (m *StorageBackEndCLS) Reset() { *m = StorageBackEndCLS{} } func (*StorageBackEndCLS) ProtoMessage() {} func (*StorageBackEndCLS) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{85} + return fileDescriptor_6e12a3c1f6fbf61e, []int{91} } func (m *StorageBackEndCLS) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2460,7 +2628,7 @@ var xxx_messageInfo_StorageBackEndCLS proto.InternalMessageInfo func (m *StorageBackEndES) Reset() { *m = StorageBackEndES{} } func (*StorageBackEndES) ProtoMessage() {} func (*StorageBackEndES) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{86} + return fileDescriptor_6e12a3c1f6fbf61e, []int{92} } func (m *StorageBackEndES) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2488,7 +2656,7 @@ var xxx_messageInfo_StorageBackEndES proto.InternalMessageInfo func (m *TKEHA) Reset() { *m = TKEHA{} } func (*TKEHA) ProtoMessage() {} func (*TKEHA) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{87} + return fileDescriptor_6e12a3c1f6fbf61e, []int{93} } func (m *TKEHA) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2516,7 +2684,7 @@ var xxx_messageInfo_TKEHA proto.InternalMessageInfo func (m *TappController) Reset() { *m = TappController{} } func (*TappController) ProtoMessage() {} func (*TappController) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{88} + return fileDescriptor_6e12a3c1f6fbf61e, []int{94} } func (m *TappController) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2544,7 +2712,7 @@ var xxx_messageInfo_TappController proto.InternalMessageInfo func (m *TappControllerList) Reset() { *m = TappControllerList{} } func (*TappControllerList) ProtoMessage() {} func (*TappControllerList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{89} + return fileDescriptor_6e12a3c1f6fbf61e, []int{95} } func (m *TappControllerList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2572,7 +2740,7 @@ var xxx_messageInfo_TappControllerList proto.InternalMessageInfo func (m *TappControllerProxyOptions) Reset() { *m = TappControllerProxyOptions{} } func (*TappControllerProxyOptions) ProtoMessage() {} func (*TappControllerProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{90} + return fileDescriptor_6e12a3c1f6fbf61e, []int{96} } func (m *TappControllerProxyOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2600,7 +2768,7 @@ var xxx_messageInfo_TappControllerProxyOptions proto.InternalMessageInfo func (m *TappControllerSpec) Reset() { *m = TappControllerSpec{} } func (*TappControllerSpec) ProtoMessage() {} func (*TappControllerSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{91} + return fileDescriptor_6e12a3c1f6fbf61e, []int{97} } func (m *TappControllerSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2628,7 +2796,7 @@ var xxx_messageInfo_TappControllerSpec proto.InternalMessageInfo func (m *TappControllerStatus) Reset() { *m = TappControllerStatus{} } func (*TappControllerStatus) ProtoMessage() {} func (*TappControllerStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{92} + return fileDescriptor_6e12a3c1f6fbf61e, []int{98} } func (m *TappControllerStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2656,7 +2824,7 @@ var xxx_messageInfo_TappControllerStatus proto.InternalMessageInfo func (m *ThirdPartyHA) Reset() { *m = ThirdPartyHA{} } func (*ThirdPartyHA) ProtoMessage() {} func (*ThirdPartyHA) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{93} + return fileDescriptor_6e12a3c1f6fbf61e, []int{99} } func (m *ThirdPartyHA) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2684,7 +2852,7 @@ var xxx_messageInfo_ThirdPartyHA proto.InternalMessageInfo func (m *Upgrade) Reset() { *m = Upgrade{} } func (*Upgrade) ProtoMessage() {} func (*Upgrade) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{94} + return fileDescriptor_6e12a3c1f6fbf61e, []int{100} } func (m *Upgrade) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2712,7 +2880,7 @@ var xxx_messageInfo_Upgrade proto.InternalMessageInfo func (m *UpgradeStrategy) Reset() { *m = UpgradeStrategy{} } func (*UpgradeStrategy) ProtoMessage() {} func (*UpgradeStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{95} + return fileDescriptor_6e12a3c1f6fbf61e, []int{101} } func (m *UpgradeStrategy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2740,7 +2908,7 @@ var xxx_messageInfo_UpgradeStrategy proto.InternalMessageInfo func (m *VolumeDecorator) Reset() { *m = VolumeDecorator{} } func (*VolumeDecorator) ProtoMessage() {} func (*VolumeDecorator) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{96} + return fileDescriptor_6e12a3c1f6fbf61e, []int{102} } func (m *VolumeDecorator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2768,7 +2936,7 @@ var xxx_messageInfo_VolumeDecorator proto.InternalMessageInfo func (m *VolumeDecoratorList) Reset() { *m = VolumeDecoratorList{} } func (*VolumeDecoratorList) ProtoMessage() {} func (*VolumeDecoratorList) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{97} + return fileDescriptor_6e12a3c1f6fbf61e, []int{103} } func (m *VolumeDecoratorList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2796,7 +2964,7 @@ var xxx_messageInfo_VolumeDecoratorList proto.InternalMessageInfo func (m *VolumeDecoratorSpec) Reset() { *m = VolumeDecoratorSpec{} } func (*VolumeDecoratorSpec) ProtoMessage() {} func (*VolumeDecoratorSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{98} + return fileDescriptor_6e12a3c1f6fbf61e, []int{104} } func (m *VolumeDecoratorSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2824,7 +2992,7 @@ var xxx_messageInfo_VolumeDecoratorSpec proto.InternalMessageInfo func (m *VolumeDecoratorStatus) Reset() { *m = VolumeDecoratorStatus{} } func (*VolumeDecoratorStatus) ProtoMessage() {} func (*VolumeDecoratorStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6e12a3c1f6fbf61e, []int{99} + return fileDescriptor_6e12a3c1f6fbf61e, []int{105} } func (m *VolumeDecoratorStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2851,7 +3019,9 @@ var xxx_messageInfo_VolumeDecoratorStatus proto.InternalMessageInfo func init() { proto.RegisterType((*AddonSpec)(nil), "tkestack.io.tke.api.platform.v1.AddonSpec") + proto.RegisterType((*App)(nil), "tkestack.io.tke.api.platform.v1.App") proto.RegisterType((*AuthzWebhookAddr)(nil), "tkestack.io.tke.api.platform.v1.AuthzWebhookAddr") + proto.RegisterType((*BootstrapApp)(nil), "tkestack.io.tke.api.platform.v1.BootstrapApp") proto.RegisterType((*BuiltinAuthzWebhookAddr)(nil), "tkestack.io.tke.api.platform.v1.BuiltinAuthzWebhookAddr") proto.RegisterType((*CSIOperator)(nil), "tkestack.io.tke.api.platform.v1.CSIOperator") proto.RegisterType((*CSIOperatorFeature)(nil), "tkestack.io.tke.api.platform.v1.CSIOperatorFeature") @@ -2875,6 +3045,10 @@ func init() { proto.RegisterType((*ClusterCredentialList)(nil), "tkestack.io.tke.api.platform.v1.ClusterCredentialList") proto.RegisterType((*ClusterFeature)(nil), "tkestack.io.tke.api.platform.v1.ClusterFeature") proto.RegisterMapType((map[HookType]string)(nil), "tkestack.io.tke.api.platform.v1.ClusterFeature.HooksEntry") + proto.RegisterType((*ClusterGroupAPIResourceItem)(nil), "tkestack.io.tke.api.platform.v1.ClusterGroupAPIResourceItem") + proto.RegisterType((*ClusterGroupAPIResourceItems)(nil), "tkestack.io.tke.api.platform.v1.ClusterGroupAPIResourceItems") + proto.RegisterType((*ClusterGroupAPIResourceItemsList)(nil), "tkestack.io.tke.api.platform.v1.ClusterGroupAPIResourceItemsList") + proto.RegisterType((*ClusterGroupAPIResourceOptions)(nil), "tkestack.io.tke.api.platform.v1.ClusterGroupAPIResourceOptions") proto.RegisterType((*ClusterList)(nil), "tkestack.io.tke.api.platform.v1.ClusterList") proto.RegisterType((*ClusterMachine)(nil), "tkestack.io.tke.api.platform.v1.ClusterMachine") proto.RegisterMapType((map[string]string)(nil), "tkestack.io.tke.api.platform.v1.ClusterMachine.LabelsEntry") @@ -2977,371 +3151,393 @@ func init() { } var fileDescriptor_6e12a3c1f6fbf61e = []byte{ - // 5823 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x3d, 0x5b, 0x6c, 0x24, 0xd9, - 0x55, 0xdb, 0x2f, 0xbb, 0x7d, 0xda, 0xcf, 0x3b, 0x9e, 0x99, 0x5e, 0x6f, 0x32, 0x9e, 0xf4, 0x92, - 0x68, 0x36, 0xbb, 0xdb, 0xde, 0x99, 0xdd, 0x4c, 0x66, 0x77, 0xc9, 0xa3, 0x1f, 0x9e, 0x8c, 0x33, - 0xb6, 0xa7, 0x73, 0xdb, 0xe3, 0x21, 0x01, 0x92, 0x2d, 0x57, 0x5d, 0xdb, 0x15, 0x57, 0x57, 0xf5, - 0x56, 0xdd, 0xf6, 0x4c, 0x2f, 0x7c, 0x84, 0xc7, 0x07, 0x42, 0x80, 0x02, 0x91, 0x40, 0x0a, 0x04, - 0xc4, 0x06, 0x09, 0x44, 0x88, 0x14, 0x29, 0x7c, 0x45, 0x80, 0x00, 0x21, 0xb1, 0x42, 0x08, 0x45, - 0x7c, 0xad, 0x90, 0x62, 0x58, 0xf3, 0x10, 0x7c, 0x20, 0xf8, 0x65, 0xbe, 0xd0, 0x7d, 0x54, 0xd5, - 0xad, 0xea, 0x6e, 0x77, 0xd7, 0xac, 0xa7, 0xd7, 0x1f, 0xf3, 0xd7, 0x75, 0x5e, 0xf7, 0xd4, 0xbd, - 0xf7, 0xbc, 0xee, 0xa3, 0x1a, 0x56, 0xe8, 0x01, 0xf1, 0xa8, 0xa6, 0x1f, 0x94, 0x4d, 0x87, 0xfd, - 0x5e, 0xd1, 0xda, 0xe6, 0x4a, 0xdb, 0xd2, 0xe8, 0xae, 0xe3, 0xb6, 0x56, 0x0e, 0xaf, 0xae, 0xec, - 0x11, 0x9b, 0xb8, 0x1a, 0x25, 0x46, 0xb9, 0xed, 0x3a, 0xd4, 0x41, 0xcb, 0x0a, 0x43, 0x99, 0x1e, - 0x90, 0xb2, 0xd6, 0x36, 0xcb, 0x3e, 0x43, 0xf9, 0xf0, 0xea, 0xd2, 0x8b, 0x7b, 0x26, 0xdd, 0xef, - 0xec, 0x94, 0x75, 0xa7, 0xb5, 0xb2, 0xe7, 0xec, 0x39, 0x2b, 0x9c, 0x6f, 0xa7, 0xb3, 0xcb, 0x9f, - 0xf8, 0x03, 0xff, 0x25, 0xe4, 0x2d, 0x95, 0x0e, 0x6e, 0x78, 0xac, 0x6d, 0xd6, 0xae, 0xee, 0xb8, - 0xa4, 0x4f, 0x9b, 0x4b, 0xaf, 0x84, 0x34, 0x2d, 0x4d, 0xdf, 0x37, 0x6d, 0xe2, 0x76, 0x57, 0xda, - 0x07, 0x7b, 0x9c, 0xc9, 0x25, 0x9e, 0xd3, 0x71, 0x75, 0x92, 0x88, 0xcb, 0x5b, 0x69, 0x11, 0xaa, - 0xf5, 0x6b, 0x6b, 0x65, 0x10, 0x97, 0xdb, 0xb1, 0xa9, 0xd9, 0xea, 0x6d, 0xe6, 0xfa, 0x30, 0x06, - 0x4f, 0xdf, 0x27, 0x2d, 0xad, 0x87, 0xef, 0xe5, 0x41, 0x7c, 0x1d, 0x6a, 0x5a, 0x2b, 0xa6, 0x4d, - 0x3d, 0xea, 0xc6, 0x99, 0x4a, 0xbf, 0x9d, 0x82, 0xa9, 0x8a, 0x61, 0x38, 0x76, 0xb3, 0x4d, 0x74, - 0xf4, 0x02, 0xe4, 0x29, 0xb1, 0x35, 0x9b, 0xae, 0xd5, 0x8b, 0xa9, 0xcb, 0xa9, 0x2b, 0x53, 0xd5, - 0xf9, 0x77, 0x8e, 0x96, 0x9f, 0x3a, 0x3e, 0x5a, 0xce, 0x6f, 0x49, 0x38, 0x0e, 0x28, 0xd0, 0x27, - 0xa0, 0xa0, 0x5b, 0x1d, 0x8f, 0x12, 0x77, 0x53, 0x6b, 0x91, 0x62, 0x9a, 0x33, 0x9c, 0x93, 0x0c, - 0x85, 0x5a, 0x88, 0xc2, 0x2a, 0x1d, 0x7a, 0x0e, 0x26, 0x0f, 0x89, 0xeb, 0x99, 0x8e, 0x5d, 0xcc, - 0x70, 0x96, 0x39, 0xc9, 0x32, 0xb9, 0x2d, 0xc0, 0xd8, 0xc7, 0x97, 0xde, 0x4d, 0xc1, 0x7c, 0xa5, - 0x43, 0xf7, 0xdf, 0xba, 0x47, 0x76, 0xf6, 0x1d, 0xe7, 0xa0, 0x62, 0x18, 0x2e, 0xfa, 0x0a, 0x4c, - 0xee, 0x74, 0x4c, 0x8b, 0x9a, 0x36, 0xd7, 0xb1, 0x70, 0xed, 0x46, 0x79, 0xc8, 0x14, 0x2a, 0x57, - 0x05, 0x7d, 0x5c, 0x54, 0xb5, 0xc0, 0x5a, 0x95, 0x48, 0xec, 0x4b, 0x45, 0x3a, 0xe4, 0xc9, 0x03, - 0x4a, 0x5c, 0x5b, 0xb3, 0xf8, 0x4b, 0x15, 0xae, 0xbd, 0x3a, 0xb4, 0x85, 0x55, 0xc9, 0xd0, 0xd3, - 0xc4, 0x34, 0xeb, 0x3c, 0x1f, 0x8b, 0x03, 0xc1, 0xa5, 0xa7, 0xe1, 0xe2, 0x00, 0xad, 0x4a, 0xbf, - 0x97, 0x86, 0x42, 0xad, 0xb9, 0x76, 0xa7, 0xcd, 0x46, 0xca, 0x71, 0xd1, 0x1b, 0x90, 0x67, 0x93, - 0xcb, 0xd0, 0xa8, 0x26, 0xdf, 0xf8, 0xa5, 0xb2, 0x18, 0xeb, 0xb2, 0x3a, 0xd6, 0xe5, 0xf6, 0xc1, - 0x1e, 0x03, 0x78, 0x65, 0x46, 0xcd, 0x94, 0xba, 0xb3, 0xf3, 0x55, 0xa2, 0xd3, 0x0d, 0x42, 0xb5, - 0x2a, 0x92, 0x7d, 0x0c, 0x21, 0x0c, 0x07, 0x52, 0x11, 0x86, 0xac, 0xd7, 0x26, 0xba, 0x7c, 0xdb, - 0x97, 0x86, 0xbe, 0xad, 0xa2, 0x1d, 0x9b, 0x37, 0xd5, 0x69, 0x29, 0x3d, 0xcb, 0x9e, 0x30, 0x97, - 0x85, 0xbe, 0x04, 0x13, 0x1e, 0xd5, 0x68, 0xc7, 0xe3, 0xa3, 0x5c, 0xb8, 0x76, 0x2d, 0x91, 0x54, - 0xce, 0x59, 0x9d, 0x95, 0x72, 0x27, 0xc4, 0x33, 0x96, 0x12, 0x4b, 0x9f, 0x01, 0xa4, 0x10, 0xdf, - 0x24, 0x1a, 0xed, 0xb8, 0x91, 0x89, 0x95, 0x1a, 0x32, 0xb1, 0xfe, 0x3a, 0x05, 0x73, 0x8a, 0x84, - 0x75, 0xd3, 0xa3, 0xe8, 0xa7, 0x7a, 0xba, 0xb9, 0x3c, 0x5a, 0x37, 0x33, 0x6e, 0xde, 0xc9, 0x81, - 0xb1, 0xf8, 0x10, 0xa5, 0x8b, 0xbf, 0x00, 0x39, 0x93, 0x92, 0x96, 0x57, 0x4c, 0x5f, 0xce, 0x5c, - 0x29, 0x5c, 0x7b, 0x21, 0x49, 0x6f, 0x54, 0x67, 0xa4, 0xe0, 0xdc, 0x1a, 0x13, 0x81, 0x85, 0xa4, - 0xd2, 0xef, 0x47, 0x5f, 0xe2, 0x4c, 0x5a, 0xf0, 0xf7, 0x33, 0xb0, 0xd0, 0x33, 0xae, 0x09, 0x46, - 0x0a, 0x35, 0x60, 0xd1, 0xa3, 0x8e, 0xab, 0xed, 0x91, 0x6d, 0x62, 0x1b, 0x8e, 0x2b, 0x09, 0xa4, - 0xae, 0x1f, 0x92, 0x7c, 0x8b, 0xcd, 0x3e, 0x34, 0xb8, 0x2f, 0x27, 0xba, 0x0a, 0xb9, 0xf6, 0xbe, - 0xe6, 0x11, 0xa9, 0xfb, 0x33, 0x7e, 0xdf, 0x36, 0x18, 0xf0, 0xe1, 0xd1, 0x32, 0x70, 0x7f, 0xc8, - 0x9f, 0xb0, 0xa0, 0x44, 0x1f, 0x83, 0x09, 0x97, 0x68, 0x9e, 0x63, 0x17, 0xb3, 0x9c, 0x27, 0x98, - 0x97, 0x98, 0x43, 0xb1, 0xc4, 0xa2, 0x6b, 0x00, 0x2e, 0xa1, 0x6e, 0xb7, 0xe6, 0x74, 0x6c, 0x5a, - 0xcc, 0x5d, 0x4e, 0x5d, 0xc9, 0x85, 0x96, 0x87, 0x03, 0x0c, 0x56, 0xa8, 0xd0, 0xaf, 0xa7, 0xe0, - 0x19, 0x4b, 0xf3, 0x28, 0x26, 0x6b, 0xb6, 0x49, 0x4d, 0xcd, 0x32, 0xdf, 0x32, 0xed, 0xbd, 0x2d, - 0xb3, 0xc5, 0xa6, 0x47, 0xab, 0x5d, 0x9c, 0xe0, 0x53, 0xf1, 0xe3, 0xa3, 0x4d, 0x45, 0xc6, 0x56, - 0x7d, 0x56, 0xb6, 0xf8, 0xcc, 0xfa, 0x60, 0xb1, 0xf8, 0xa4, 0x36, 0x4b, 0x06, 0x9f, 0x58, 0x0d, - 0xd7, 0x79, 0xd0, 0xbd, 0xd3, 0xa6, 0xa6, 0x63, 0x7b, 0x68, 0x05, 0xa6, 0x6c, 0xad, 0x45, 0xbc, - 0xb6, 0xa6, 0x13, 0x39, 0x68, 0x0b, 0xb2, 0x9d, 0xa9, 0x4d, 0x1f, 0x81, 0x43, 0x1a, 0x74, 0x19, - 0xb2, 0x76, 0x38, 0xa9, 0x02, 0x0f, 0xc1, 0x67, 0x13, 0xc7, 0x94, 0xbe, 0x91, 0x86, 0x49, 0x39, - 0xc7, 0xc6, 0xe0, 0xe3, 0x36, 0x23, 0x3e, 0x6e, 0x04, 0xfb, 0x13, 0x9a, 0x0d, 0xf4, 0x6f, 0xdb, - 0x31, 0xff, 0x56, 0x1e, 0x59, 0xe2, 0xc9, 0xbe, 0xed, 0xed, 0x34, 0x4c, 0x4b, 0x4a, 0x3e, 0x11, - 0xc7, 0xd0, 0x35, 0xcd, 0x48, 0xd7, 0x5c, 0x1d, 0xf5, 0x45, 0x82, 0xbc, 0xa1, 0x6f, 0xff, 0xfc, - 0x64, 0xac, 0x7f, 0x5e, 0x4e, 0x26, 0xf6, 0xe4, 0x4e, 0xfa, 0x9b, 0x14, 0xcc, 0xab, 0xe4, 0x63, - 0x70, 0xe0, 0x38, 0xea, 0xc0, 0x5f, 0x4c, 0xf4, 0x3a, 0x03, 0x3c, 0xf8, 0x6f, 0xc4, 0x5e, 0x83, - 0xbb, 0xf0, 0xcb, 0x90, 0xa5, 0xdd, 0xb6, 0x6f, 0x64, 0x41, 0xd7, 0x6e, 0x75, 0xdb, 0x04, 0x73, - 0x0c, 0xf3, 0x60, 0x16, 0x39, 0x24, 0x96, 0xb4, 0xad, 0xc0, 0x83, 0xad, 0x33, 0x60, 0xe0, 0xc1, - 0xf8, 0x13, 0x16, 0x94, 0x49, 0x5c, 0xf6, 0xaf, 0xa4, 0x00, 0xf5, 0x0e, 0x45, 0x12, 0x9f, 0xfd, - 0xac, 0xef, 0x61, 0x85, 0x7e, 0x33, 0x11, 0x0f, 0xdb, 0xeb, 0x53, 0x33, 0x27, 0xf9, 0xd4, 0xd2, - 0xaf, 0x65, 0xa2, 0x7d, 0xc4, 0xfa, 0x61, 0x0c, 0x36, 0xe1, 0x8f, 0x42, 0x7a, 0xf8, 0x28, 0x64, - 0x46, 0x1e, 0x85, 0xd7, 0x61, 0xc6, 0xd2, 0x28, 0xf1, 0xa8, 0x1f, 0xc5, 0x44, 0x38, 0x39, 0x2f, - 0x59, 0x67, 0xd6, 0x55, 0x24, 0x8e, 0xd2, 0xb2, 0x60, 0x6d, 0x10, 0x4f, 0x77, 0x4d, 0xee, 0x91, - 0x79, 0x74, 0x51, 0x82, 0x75, 0x3d, 0x44, 0x61, 0x95, 0x0e, 0xdd, 0x81, 0xf3, 0xba, 0xd3, 0x6a, - 0x6b, 0xd4, 0xdc, 0xb1, 0x88, 0xec, 0x48, 0xf6, 0x16, 0xc5, 0x89, 0xcb, 0x99, 0x2b, 0x53, 0xd5, - 0xa7, 0x8f, 0x8f, 0x96, 0xcf, 0xd7, 0xfa, 0x11, 0xe0, 0xfe, 0x7c, 0xa5, 0xbf, 0x4f, 0xc1, 0x62, - 0x7c, 0x40, 0xc6, 0x60, 0x7f, 0xdb, 0x51, 0xfb, 0x4b, 0xe6, 0xa5, 0x98, 0x8e, 0x03, 0x6c, 0xf0, - 0x0f, 0x53, 0x30, 0x1b, 0x92, 0xba, 0xc4, 0x63, 0xb1, 0x4e, 0xb5, 0xc0, 0x67, 0xd4, 0xb1, 0x7f, - 0x78, 0xb4, 0x5c, 0x90, 0x64, 0xca, 0x54, 0xb8, 0x0c, 0xd9, 0x7d, 0xc7, 0xa3, 0xf1, 0xc9, 0x72, - 0xcb, 0xf1, 0x28, 0xe6, 0x18, 0x46, 0xd1, 0x76, 0x5c, 0xca, 0xe7, 0x4a, 0x2e, 0xa4, 0x68, 0x38, - 0x2e, 0xc5, 0x1c, 0xc3, 0x29, 0x34, 0xba, 0x2f, 0xa7, 0x44, 0x48, 0xa1, 0xd1, 0x7d, 0xcc, 0x31, - 0xa5, 0x9b, 0x70, 0xce, 0x57, 0xb4, 0xdd, 0xb6, 0x22, 0x91, 0xd9, 0xa1, 0x77, 0xdb, 0x86, 0x46, - 0x85, 0xca, 0x79, 0x25, 0x32, 0xfb, 0x08, 0x1c, 0xd2, 0x94, 0x7e, 0x10, 0x7a, 0x1d, 0x36, 0xf0, - 0x8e, 0x4d, 0x6c, 0x3a, 0x82, 0xd7, 0xf9, 0x85, 0x14, 0xe4, 0x5d, 0xd2, 0xb6, 0x4c, 0x5d, 0xf3, - 0x46, 0xae, 0x8b, 0xe2, 0xed, 0x60, 0x29, 0xa0, 0xfa, 0x82, 0x3f, 0xd4, 0x3e, 0xe4, 0xe1, 0xd1, - 0x72, 0x71, 0x10, 0x35, 0x0e, 0x1a, 0x66, 0xb3, 0x6f, 0x20, 0x19, 0xf3, 0x51, 0x06, 0xf1, 0x4c, - 0x97, 0x18, 0xfc, 0x3d, 0x72, 0xa1, 0x8f, 0xaa, 0x0b, 0x30, 0xf6, 0xf1, 0x8c, 0x54, 0xef, 0xb8, - 0x2e, 0xb1, 0xc5, 0xa8, 0x29, 0xa4, 0x35, 0x01, 0xc6, 0x3e, 0x9e, 0x75, 0xb0, 0x76, 0xa8, 0x99, - 0x96, 0xb6, 0x63, 0x11, 0x39, 0x80, 0x41, 0x07, 0x57, 0x7c, 0x04, 0x0e, 0x69, 0x98, 0xec, 0x0e, - 0xef, 0x6a, 0x83, 0x8f, 0xa6, 0x22, 0x5b, 0x8c, 0x80, 0x81, 0x7d, 0x7c, 0xe9, 0xdb, 0x19, 0x65, - 0x2c, 0x6c, 0xc3, 0xe4, 0x26, 0x3b, 0x7c, 0x2c, 0x5e, 0x0d, 0x82, 0xab, 0x98, 0x72, 0x1f, 0x89, - 0xc6, 0xc9, 0x87, 0x47, 0xcb, 0x73, 0x81, 0xb8, 0x68, 0xe8, 0x44, 0x7b, 0xcc, 0x07, 0x79, 0xb4, - 0xe1, 0x3a, 0x3b, 0x84, 0x65, 0x7c, 0x32, 0x3c, 0x27, 0x49, 0x30, 0x15, 0x7f, 0xa5, 0x08, 0xc2, - 0x51, 0xb9, 0xe8, 0x10, 0x10, 0x03, 0x6c, 0xb9, 0x9a, 0xed, 0x71, 0x45, 0x78, 0x6b, 0xd9, 0xc4, - 0xad, 0x2d, 0xc9, 0xd6, 0xd0, 0x7a, 0x8f, 0x34, 0xdc, 0xa7, 0x05, 0x25, 0xb0, 0xe4, 0x4e, 0x4c, - 0xd6, 0x9f, 0x83, 0xc9, 0x16, 0xf1, 0x3c, 0x6d, 0x8f, 0xf0, 0x1c, 0x5b, 0x09, 0x68, 0x1b, 0x02, - 0x8c, 0x7d, 0x7c, 0xe9, 0xff, 0x72, 0xb0, 0xe0, 0x8f, 0x92, 0x4b, 0x0c, 0x62, 0xb3, 0x9c, 0x79, - 0x0c, 0x41, 0x48, 0xad, 0xe6, 0xd2, 0x49, 0xab, 0xb9, 0xcc, 0x88, 0xd5, 0x5c, 0x19, 0x80, 0x50, - 0xdd, 0xa8, 0x55, 0x6a, 0xc4, 0xa5, 0x7c, 0x7c, 0xa6, 0xab, 0xb3, 0x4c, 0xa5, 0xd5, 0xad, 0x5a, - 0x5d, 0x40, 0xb1, 0x42, 0x81, 0x9e, 0x87, 0x29, 0xf1, 0x74, 0x9b, 0x74, 0x79, 0x17, 0x4f, 0x57, - 0x67, 0x98, 0x29, 0x08, 0xf2, 0xdb, 0xa4, 0x8b, 0x43, 0x3c, 0xaa, 0xc1, 0x02, 0x7b, 0xa8, 0x34, - 0xd6, 0x6a, 0x96, 0x49, 0x6c, 0xca, 0xdb, 0x98, 0xe0, 0x4c, 0xe7, 0x8f, 0x8f, 0x96, 0x17, 0x18, - 0x53, 0x04, 0x89, 0x7b, 0xe9, 0xd1, 0x67, 0x61, 0x3e, 0x02, 0x64, 0x0d, 0x4f, 0x72, 0x19, 0x8b, - 0xc7, 0x47, 0xcb, 0xf3, 0x11, 0x19, 0xac, 0xfd, 0x1e, 0x6a, 0x54, 0x82, 0x09, 0x5d, 0xe3, 0x6d, - 0xe7, 0x39, 0x1f, 0xb0, 0xf9, 0x20, 0xdf, 0x4d, 0x62, 0xd0, 0x32, 0xe4, 0x74, 0x8d, 0x89, 0x9e, - 0xe2, 0x24, 0x53, 0x2c, 0x52, 0x88, 0xf7, 0x11, 0x70, 0xd6, 0x51, 0x7a, 0xf8, 0x12, 0x10, 0x76, - 0x94, 0xa2, 0xbd, 0x42, 0xc1, 0x3a, 0x4a, 0x0f, 0xf4, 0x2d, 0x84, 0x1d, 0x15, 0x2a, 0x1a, 0xe2, - 0x59, 0xeb, 0xd4, 0x39, 0x20, 0x76, 0x71, 0x9a, 0x0f, 0x1b, 0x6f, 0x7d, 0x8b, 0x01, 0xb0, 0x80, - 0xa3, 0xd7, 0x60, 0x76, 0xc7, 0x71, 0xa8, 0x47, 0x5d, 0xad, 0xcd, 0x11, 0xc5, 0x19, 0x4e, 0x89, - 0x8e, 0x8f, 0x96, 0x67, 0xab, 0x11, 0x0c, 0x8e, 0x51, 0x32, 0x5e, 0x9d, 0xb8, 0xd4, 0xdc, 0x35, - 0x75, 0x8d, 0x12, 0xa6, 0xce, 0x6c, 0xc8, 0x5b, 0x8b, 0x60, 0x70, 0x8c, 0xb2, 0xf4, 0x0f, 0x29, - 0x38, 0xdf, 0x33, 0xf7, 0xc7, 0x10, 0xef, 0xef, 0x45, 0xe3, 0xfd, 0xb5, 0x91, 0x43, 0x4d, 0xa0, - 0xe4, 0x80, 0x80, 0xff, 0xbf, 0xf9, 0x20, 0xe0, 0xfb, 0x2b, 0x47, 0x1f, 0x82, 0xac, 0xd9, 0x3e, - 0xf4, 0x64, 0xf4, 0xcc, 0x33, 0x67, 0xbb, 0xd6, 0xd8, 0x6e, 0x62, 0x0e, 0x45, 0x57, 0x20, 0xdf, - 0xee, 0xec, 0x58, 0xa6, 0xbe, 0x5e, 0xe5, 0x56, 0x98, 0x17, 0x8b, 0x7a, 0x0d, 0x09, 0xc3, 0x01, - 0x96, 0xcd, 0x10, 0xd3, 0x16, 0x0b, 0x7c, 0xeb, 0x55, 0x6e, 0x80, 0x79, 0x31, 0x43, 0xd6, 0x02, - 0x28, 0x56, 0x28, 0xd0, 0x4b, 0x30, 0xb9, 0xd7, 0xee, 0xf0, 0x6c, 0x4c, 0x84, 0xfd, 0x0b, 0xcc, - 0xfd, 0x7c, 0xae, 0x71, 0x57, 0xa6, 0x1a, 0xfe, 0x4f, 0xec, 0x93, 0xa1, 0x06, 0x2c, 0x12, 0x9b, - 0x05, 0x99, 0x0d, 0x8d, 0xd7, 0x92, 0xfa, 0x3e, 0x31, 0x3a, 0x16, 0xe1, 0x76, 0x98, 0x0f, 0x97, - 0x43, 0x56, 0xfb, 0xd0, 0xe0, 0xbe, 0x9c, 0xe8, 0x75, 0x48, 0xef, 0x6b, 0x72, 0x95, 0xe1, 0xd9, - 0xa1, 0x9d, 0x7c, 0xab, 0x52, 0x9d, 0x38, 0x3e, 0x5a, 0x4e, 0xdf, 0xaa, 0xe0, 0xf4, 0xbe, 0xc6, - 0x26, 0x96, 0x77, 0x60, 0xb6, 0x83, 0x58, 0xe3, 0x15, 0x27, 0x79, 0x56, 0xc9, 0x27, 0x56, 0x33, - 0x82, 0xc1, 0x31, 0x4a, 0xf4, 0x79, 0xc8, 0xed, 0x9a, 0x16, 0xf1, 0x8a, 0x79, 0x3e, 0xc0, 0x1f, - 0x1d, 0xda, 0xf6, 0x4d, 0xd3, 0x52, 0x92, 0x38, 0xf6, 0xe4, 0x61, 0x21, 0x02, 0x1d, 0x40, 0x6e, - 0xdf, 0x71, 0x0e, 0xbc, 0xe2, 0x14, 0x97, 0xf5, 0xda, 0xa8, 0x93, 0x45, 0x4e, 0x80, 0xf2, 0x2d, - 0xc6, 0xbc, 0x6a, 0x53, 0xb7, 0x5b, 0x7d, 0xda, 0x6f, 0x80, 0xc3, 0x7e, 0xfe, 0x9f, 0x97, 0xf3, - 0xec, 0x07, 0x1f, 0x05, 0xd1, 0x06, 0xda, 0x85, 0x82, 0xee, 0x99, 0xfe, 0x92, 0x16, 0x77, 0x04, - 0x23, 0x95, 0xb7, 0x3d, 0x2b, 0x96, 0xd5, 0x39, 0xee, 0x98, 0x43, 0x38, 0x56, 0x05, 0x23, 0x0f, - 0xe6, 0xb5, 0xd8, 0xda, 0x30, 0x77, 0x23, 0xa3, 0x24, 0xbf, 0x3d, 0xeb, 0xd0, 0xdc, 0x53, 0xc6, - 0xa1, 0xb8, 0xa7, 0x01, 0xb4, 0x01, 0xe7, 0xe4, 0x34, 0x21, 0xd4, 0x35, 0x75, 0xaf, 0x49, 0xdc, - 0x43, 0xe2, 0x72, 0xaf, 0x94, 0x0f, 0x52, 0xe1, 0x73, 0xab, 0xbd, 0x24, 0xb8, 0x1f, 0x1f, 0xab, - 0x78, 0xcc, 0xf6, 0xe1, 0xf5, 0x7a, 0x47, 0xb3, 0x9a, 0x4c, 0x5f, 0xee, 0xb4, 0xf2, 0x61, 0x06, - 0xb1, 0xd6, 0x50, 0x90, 0x38, 0x4a, 0x8b, 0x6e, 0xc0, 0xb4, 0x90, 0x59, 0x33, 0x2d, 0xb3, 0xd3, - 0xe2, 0x4e, 0x2b, 0x5f, 0x5d, 0x94, 0xbc, 0xd3, 0xab, 0x0a, 0x0e, 0x47, 0x28, 0x51, 0x93, 0x65, - 0x60, 0x7b, 0xae, 0x66, 0x90, 0xe2, 0x05, 0xde, 0x63, 0x57, 0x86, 0xf6, 0xd8, 0x5d, 0x41, 0xaf, - 0xe6, 0x6a, 0x1c, 0x80, 0x7d, 0x49, 0x4b, 0x37, 0x00, 0xc2, 0x79, 0x82, 0xe6, 0x21, 0x73, 0x40, - 0xba, 0x22, 0x47, 0xc3, 0xec, 0x27, 0x5a, 0x84, 0xdc, 0xa1, 0x66, 0x75, 0x64, 0xcd, 0x88, 0xc5, - 0xc3, 0x6b, 0xe9, 0x1b, 0x29, 0x96, 0x71, 0xfb, 0xf1, 0x77, 0x0c, 0x9e, 0x73, 0x23, 0xea, 0x39, - 0xaf, 0x8c, 0x6a, 0x0c, 0x03, 0xfc, 0xe5, 0x7f, 0x65, 0x02, 0x7f, 0xb9, 0x21, 0x34, 0x43, 0x4b, - 0x90, 0x36, 0xdb, 0x32, 0x3d, 0x05, 0xc9, 0x94, 0x5e, 0x6b, 0xe0, 0xb4, 0xd9, 0x0e, 0x2a, 0x9d, - 0xf4, 0xc0, 0x4a, 0xe7, 0x05, 0xc8, 0x77, 0x3c, 0xe6, 0x02, 0x83, 0x24, 0x25, 0x78, 0x9b, 0xbb, - 0x12, 0x8e, 0x03, 0x0a, 0xee, 0x7d, 0x35, 0xcf, 0xbb, 0xef, 0xb8, 0x86, 0x4c, 0x4e, 0x84, 0xf7, - 0x95, 0x30, 0x1c, 0x60, 0x99, 0xf7, 0x6d, 0xbb, 0xe6, 0xa1, 0x8c, 0x70, 0xb9, 0x30, 0x3e, 0x37, - 0x02, 0x28, 0x56, 0x28, 0x38, 0xbd, 0xe6, 0x79, 0x8d, 0x7d, 0x57, 0xf3, 0x88, 0x4c, 0x4a, 0x04, - 0x7d, 0x00, 0xc5, 0x0a, 0x05, 0xd2, 0x61, 0xc2, 0xd2, 0x76, 0x88, 0x25, 0x9c, 0x5c, 0xe1, 0xda, - 0xeb, 0xa3, 0x76, 0xac, 0xec, 0xb6, 0xf2, 0x3a, 0xe7, 0x16, 0x6e, 0x26, 0xc8, 0x4a, 0x05, 0x10, - 0x4b, 0xd1, 0xa8, 0x02, 0x13, 0x54, 0x33, 0x6d, 0xea, 0xbb, 0xc5, 0xa7, 0x95, 0x89, 0x51, 0xd6, - 0x1d, 0x97, 0xf0, 0xbc, 0x98, 0x51, 0x84, 0x22, 0xf8, 0xa3, 0x87, 0x25, 0xe3, 0xd2, 0xab, 0x50, - 0x50, 0x5a, 0x4a, 0x34, 0x51, 0x7f, 0x94, 0x86, 0x39, 0xa9, 0x74, 0xc3, 0x75, 0xda, 0xc4, 0xa5, - 0x5d, 0xb4, 0x0e, 0x8b, 0x2d, 0xed, 0x81, 0xbf, 0x78, 0x49, 0xdc, 0x43, 0x53, 0x27, 0x9b, 0x9d, - 0x96, 0xac, 0xb0, 0x8a, 0x2c, 0xdc, 0x6c, 0xf4, 0xc1, 0xe3, 0xbe, 0x5c, 0xe8, 0x93, 0x30, 0xd3, - 0xd2, 0x1e, 0x6c, 0x3a, 0x06, 0x69, 0x38, 0x06, 0x13, 0x23, 0xe6, 0xc9, 0x02, 0x73, 0x06, 0x1b, - 0x2a, 0x02, 0x47, 0xe9, 0xd0, 0xd7, 0x52, 0x30, 0xe3, 0x1c, 0x12, 0xd7, 0x73, 0x2c, 0x03, 0x6b, - 0xd4, 0x74, 0x8a, 0x19, 0xde, 0x41, 0xb5, 0x51, 0x47, 0xc1, 0x7f, 0xa1, 0xf2, 0x1d, 0x55, 0x8a, - 0x18, 0x8d, 0xc0, 0x1f, 0x45, 0x70, 0x38, 0xda, 0xe0, 0xd2, 0x67, 0x01, 0xf5, 0xf2, 0x26, 0xea, - 0xdf, 0xff, 0xcc, 0x05, 0xfd, 0x8b, 0xe5, 0x36, 0x33, 0xfa, 0x59, 0xc8, 0xeb, 0x5a, 0x5b, 0xd3, - 0x4d, 0xca, 0x84, 0xb0, 0x57, 0xfa, 0xf4, 0xa8, 0xaf, 0xe4, 0xcb, 0x28, 0xd7, 0xa4, 0x00, 0xf1, - 0x36, 0x97, 0x7d, 0x73, 0xf2, 0xc1, 0x0f, 0x8f, 0x96, 0xa7, 0x7d, 0x5a, 0xe6, 0x30, 0x70, 0xd0, - 0x22, 0xfa, 0xa5, 0x14, 0x14, 0x34, 0xcb, 0x72, 0x74, 0x8d, 0xf2, 0xfa, 0x56, 0xf8, 0x8c, 0x4a, - 0x62, 0x0d, 0x2a, 0xa1, 0x0c, 0xa1, 0x84, 0xbf, 0x0b, 0x51, 0x50, 0x30, 0x3d, 0x7a, 0xa8, 0x4d, - 0xb3, 0x11, 0x9e, 0x92, 0xcf, 0xc4, 0x90, 0xa3, 0xfb, 0x99, 0x47, 0x55, 0x84, 0x18, 0x42, 0x8d, - 0x8f, 0x04, 0x95, 0xba, 0x0f, 0xef, 0x51, 0x22, 0x6c, 0x74, 0xe9, 0x00, 0x66, 0x22, 0x5d, 0xd9, - 0x67, 0x70, 0xeb, 0xea, 0xe0, 0x0e, 0x71, 0xdc, 0x65, 0xff, 0x2c, 0x41, 0xf9, 0x0b, 0x1d, 0xcd, - 0xa6, 0x26, 0xed, 0x2a, 0x93, 0x61, 0xc9, 0x86, 0xf9, 0x78, 0xaf, 0x3d, 0xd6, 0xf6, 0x2c, 0x98, - 0x8d, 0x76, 0xce, 0xe3, 0x6c, 0xad, 0xf4, 0x57, 0x8b, 0x41, 0xcc, 0xe3, 0xcb, 0xda, 0x9f, 0x01, - 0xd8, 0x35, 0x6d, 0xcd, 0x32, 0xdf, 0x22, 0xae, 0xc7, 0x27, 0xfa, 0x54, 0x75, 0x99, 0x79, 0xdb, - 0x9b, 0x01, 0xf4, 0xe1, 0xd1, 0xf2, 0x4c, 0xf0, 0xc4, 0x0b, 0x55, 0x85, 0x25, 0x79, 0x31, 0x6c, - 0x98, 0x5e, 0xdb, 0xd2, 0xba, 0xfd, 0x8a, 0xe1, 0x7a, 0x88, 0xc2, 0x2a, 0x5d, 0xb0, 0xf4, 0x92, - 0x1d, 0xb8, 0xf4, 0xa2, 0xac, 0x83, 0xe7, 0x86, 0xac, 0x83, 0xd7, 0xa1, 0x60, 0x13, 0x7a, 0xdf, - 0x71, 0x0f, 0xe4, 0x82, 0x2b, 0x23, 0x2f, 0xf9, 0x3a, 0x6c, 0x86, 0xa8, 0x87, 0xd1, 0x47, 0xac, - 0xb2, 0xb1, 0x14, 0x4a, 0x3e, 0xd6, 0x09, 0xf3, 0xa2, 0xbc, 0xf4, 0x55, 0x16, 0x8d, 0x37, 0x55, - 0x24, 0x8e, 0xd2, 0x2a, 0x6b, 0x02, 0xb5, 0xb5, 0x3a, 0xe6, 0xd5, 0x6f, 0xef, 0x9a, 0x00, 0x43, - 0x61, 0x95, 0x0e, 0x5d, 0x85, 0x82, 0x27, 0x7c, 0x36, 0x67, 0x3b, 0x27, 0x5e, 0x94, 0xb1, 0x34, - 0x43, 0x30, 0x56, 0x69, 0xd0, 0x0a, 0x4c, 0x19, 0xb6, 0x57, 0x77, 0x5a, 0x9a, 0x69, 0xf3, 0x12, - 0x5a, 0xd9, 0x20, 0xac, 0x6f, 0x36, 0x05, 0x02, 0x87, 0x34, 0x08, 0xc3, 0x05, 0x51, 0x38, 0x55, - 0x2c, 0x5e, 0x10, 0x51, 0xf3, 0x90, 0xf0, 0x9d, 0xc4, 0x22, 0xf0, 0xc9, 0xb1, 0x74, 0x7c, 0xb4, - 0x7c, 0xa1, 0xd1, 0x97, 0x02, 0x0f, 0xe0, 0x44, 0x0e, 0xe4, 0x77, 0x45, 0x6e, 0xed, 0xc9, 0x54, - 0x79, 0x25, 0x61, 0x29, 0x10, 0x8c, 0x4f, 0x5e, 0x02, 0xd8, 0xac, 0x8c, 0xd5, 0x8b, 0x38, 0x68, - 0x04, 0xdd, 0x67, 0x39, 0x07, 0x8f, 0x2b, 0x26, 0xf1, 0x78, 0x96, 0x3c, 0xd2, 0xf9, 0x89, 0x68, - 0x44, 0xaa, 0x7e, 0xd4, 0x5f, 0x05, 0x6a, 0x04, 0xb2, 0xf8, 0x12, 0x5e, 0x94, 0x0c, 0x2b, 0x4d, - 0xa1, 0xaf, 0xc0, 0x94, 0x26, 0xd6, 0xa1, 0x89, 0x57, 0x9c, 0xe1, 0xbe, 0x72, 0x25, 0x61, 0x3e, - 0x12, 0xda, 0x8f, 0x04, 0x78, 0x38, 0x94, 0x89, 0x7e, 0x31, 0x05, 0x73, 0x86, 0xa3, 0x1f, 0x10, - 0x77, 0xf5, 0x01, 0x75, 0xb5, 0x8a, 0xbb, 0xe7, 0x15, 0x67, 0x93, 0x05, 0x07, 0x66, 0xf7, 0xe5, - 0x7a, 0x54, 0x86, 0xf0, 0xca, 0x17, 0x65, 0xcb, 0x73, 0x31, 0x2c, 0x8e, 0x37, 0xc9, 0xe2, 0xd3, - 0xfc, 0x41, 0x67, 0x87, 0x58, 0x84, 0x86, 0x7a, 0xcc, 0x71, 0x3d, 0xaa, 0x89, 0xf4, 0xb8, 0x1d, - 0x13, 0x22, 0x14, 0x29, 0x4a, 0x45, 0xe6, 0xe3, 0x68, 0xdc, 0xd3, 0x2a, 0xfa, 0x7a, 0x0a, 0x90, - 0xd6, 0x36, 0x45, 0x65, 0x13, 0x2a, 0x33, 0xcf, 0x95, 0xa9, 0x27, 0x52, 0xa6, 0xd2, 0x23, 0x46, - 0xa8, 0x13, 0xac, 0x75, 0x56, 0x1a, 0x6b, 0x31, 0x02, 0xdc, 0xa7, 0x6d, 0xf4, 0xbd, 0x14, 0x2c, - 0xe9, 0x8e, 0x4d, 0x5d, 0xc7, 0xb2, 0xd8, 0xb8, 0xda, 0xda, 0x9e, 0xaa, 0xda, 0x02, 0x57, 0x6d, - 0x3d, 0x91, 0x6a, 0xb5, 0x81, 0xe2, 0x84, 0x8a, 0xbe, 0x7d, 0x2c, 0x0d, 0x26, 0xc4, 0x27, 0xe8, - 0xc4, 0x7b, 0xd1, 0x93, 0x8b, 0x0f, 0x8a, 0xaa, 0xe8, 0x11, 0x7a, 0xb1, 0xd9, 0x23, 0x26, 0xd6, - 0x8b, 0xbd, 0x04, 0xb8, 0x4f, 0xdb, 0xe8, 0x10, 0x16, 0xf5, 0xf8, 0xe2, 0x11, 0x26, 0xbb, 0xc5, - 0x45, 0x59, 0x3a, 0xf6, 0xc9, 0xc0, 0xd7, 0x1d, 0x5d, 0xb3, 0xc4, 0x9a, 0x2d, 0x26, 0xbb, 0xc4, - 0x25, 0xb6, 0x4e, 0x44, 0x2e, 0x5c, 0xeb, 0x23, 0x09, 0xf7, 0x95, 0x8f, 0x6a, 0x90, 0x25, 0x54, - 0x37, 0x8a, 0xe7, 0x79, 0x3b, 0xc3, 0x17, 0x40, 0x56, 0xa9, 0x6e, 0x88, 0xd5, 0x29, 0xf6, 0x0b, - 0x73, 0x66, 0xf4, 0x79, 0x40, 0xfb, 0x8e, 0x47, 0x59, 0xad, 0x54, 0xf1, 0x58, 0xbe, 0xcc, 0xeb, - 0xaa, 0x8b, 0xbc, 0x54, 0x0e, 0x3a, 0xe2, 0x56, 0x0f, 0x05, 0xee, 0xc3, 0x85, 0x68, 0x10, 0xb0, - 0xf8, 0x98, 0x14, 0xf9, 0x98, 0x7c, 0x2a, 0xd1, 0x98, 0x6c, 0x86, 0xfc, 0x62, 0x30, 0xce, 0xc5, - 0xe2, 0x1d, 0x1f, 0x05, 0xb5, 0x19, 0xe4, 0xc2, 0x9c, 0xa7, 0x6b, 0x96, 0x69, 0xef, 0xf9, 0x7e, - 0xa8, 0xf8, 0xf4, 0xa3, 0x39, 0xb4, 0xc0, 0xad, 0x34, 0xa3, 0xf2, 0x70, 0xbc, 0x81, 0xa5, 0x2a, - 0x2c, 0xf6, 0x73, 0x4c, 0x49, 0x92, 0xf9, 0xa5, 0x1a, 0x9c, 0xef, 0xeb, 0x54, 0x12, 0x09, 0x59, - 0x85, 0x8b, 0x03, 0x9c, 0x41, 0x22, 0x31, 0x1b, 0xb0, 0x3c, 0xc4, 0x70, 0x93, 0x6a, 0x35, 0xc0, - 0xb8, 0x12, 0x89, 0xf9, 0x34, 0xcc, 0xc7, 0xe7, 0x43, 0xa2, 0x72, 0xe9, 0xdb, 0x00, 0x33, 0x91, - 0x53, 0x33, 0xa8, 0x04, 0x13, 0x16, 0x1b, 0x37, 0x43, 0xae, 0xd5, 0xf2, 0x85, 0xfc, 0x75, 0x0e, - 0xc1, 0x12, 0xa3, 0x66, 0x68, 0xe9, 0x21, 0x19, 0xda, 0xcb, 0xd1, 0xb3, 0x60, 0x1f, 0x8e, 0x9f, - 0x05, 0xf3, 0x4f, 0xe2, 0x44, 0x4e, 0x2e, 0x10, 0x00, 0x3d, 0x5c, 0xf0, 0xcc, 0x26, 0xdb, 0x8e, - 0x0e, 0x16, 0x40, 0xc3, 0xad, 0x1f, 0x65, 0x8d, 0x54, 0x11, 0xac, 0xee, 0x4f, 0xe5, 0x4e, 0xde, - 0x9f, 0x52, 0xb6, 0xbc, 0x26, 0x4e, 0xdc, 0xf2, 0x7a, 0x43, 0x4d, 0x1a, 0x26, 0x93, 0xd9, 0x98, - 0xdc, 0xf5, 0x56, 0xb6, 0x3e, 0x7d, 0x49, 0x6a, 0xd6, 0xf0, 0x26, 0xe4, 0xfd, 0xaa, 0x80, 0x27, - 0x81, 0x09, 0xb2, 0x21, 0xbf, 0x26, 0x0b, 0x2a, 0xc7, 0xbc, 0x0f, 0x51, 0x72, 0x21, 0x1f, 0x84, - 0x83, 0x66, 0xc4, 0x70, 0xc8, 0x9d, 0x60, 0x91, 0x3b, 0x26, 0x1a, 0x0e, 0xc9, 0xa9, 0x0e, 0x87, - 0x2f, 0x0c, 0x2b, 0x82, 0x59, 0x26, 0xad, 0xa6, 0xc4, 0x85, 0x68, 0x26, 0x3d, 0x30, 0x2d, 0xae, - 0xc3, 0xbc, 0xed, 0x18, 0xfc, 0xf7, 0x86, 0xe6, 0x1d, 0x34, 0xcd, 0xb7, 0x08, 0x4f, 0x13, 0x73, - 0x61, 0xea, 0xb1, 0x19, 0xc3, 0xe3, 0x1e, 0x0e, 0xf4, 0x2c, 0xe4, 0x0c, 0xdb, 0x5b, 0x6b, 0xc8, - 0x3d, 0x9f, 0x60, 0xa1, 0xae, 0xbe, 0xd9, 0x5c, 0x6b, 0x60, 0x81, 0x63, 0x49, 0xbb, 0x4b, 0xf6, - 0x4c, 0x8f, 0xba, 0xdd, 0xb5, 0x86, 0x48, 0xd6, 0x64, 0xd2, 0x8e, 0x43, 0x30, 0x56, 0x69, 0xf8, - 0xe9, 0x4a, 0xc2, 0xe6, 0x9c, 0xe6, 0x76, 0x95, 0x57, 0x28, 0xce, 0xc5, 0x4e, 0x57, 0xf6, 0xa1, - 0xc1, 0x7d, 0x39, 0xe3, 0x05, 0xc7, 0xfc, 0x88, 0x05, 0x87, 0xaa, 0x88, 0x42, 0x54, 0x5c, 0x18, - 0xa0, 0x88, 0x2a, 0xa8, 0x2f, 0x27, 0x93, 0x18, 0xef, 0xc6, 0xb5, 0xc6, 0xe1, 0x2b, 0x45, 0xc4, - 0x3b, 0x3f, 0x90, 0xb8, 0xd9, 0x87, 0x06, 0xf7, 0xe5, 0x1c, 0x20, 0xf1, 0x3a, 0xaf, 0x8e, 0x4e, - 0x96, 0x78, 0xbd, 0xaf, 0xc4, 0xeb, 0xa8, 0x0e, 0xc0, 0xb2, 0x4c, 0x71, 0x3e, 0x95, 0xa7, 0x1b, - 0x53, 0xd5, 0x1f, 0xf3, 0xe7, 0xe1, 0xed, 0x00, 0xc3, 0x2a, 0x90, 0xf0, 0x89, 0x57, 0x88, 0x0a, - 0x5f, 0xe9, 0xbb, 0x19, 0x98, 0xaa, 0x39, 0xf6, 0xae, 0xb9, 0xb7, 0xa1, 0xb5, 0xc7, 0xb0, 0x2b, - 0xbd, 0x0d, 0x59, 0x2e, 0x5d, 0x2c, 0x15, 0xbd, 0x32, 0xdc, 0xd4, 0x7c, 0xdd, 0xca, 0x75, 0x8d, - 0x6a, 0x22, 0x2b, 0x08, 0x2a, 0x6b, 0x06, 0xc2, 0x5c, 0x1e, 0xb2, 0x01, 0x76, 0x4c, 0x5b, 0x73, - 0xbb, 0x0c, 0x26, 0xd7, 0x7f, 0x5e, 0x4b, 0x20, 0xbd, 0x1a, 0x30, 0x8b, 0x36, 0x82, 0xb7, 0x08, - 0x11, 0x58, 0x69, 0x61, 0xe9, 0x93, 0x30, 0x15, 0x10, 0x27, 0x0a, 0x6b, 0x9f, 0x82, 0xb9, 0x58, - 0x5b, 0xc3, 0xd8, 0xa7, 0xd5, 0xa8, 0xf6, 0x17, 0x29, 0x98, 0x09, 0xb4, 0x1e, 0xc3, 0x7e, 0xc0, - 0x9d, 0xe8, 0x7e, 0xc0, 0xc7, 0x47, 0xef, 0xd2, 0x01, 0x3b, 0x02, 0xfc, 0xe0, 0xae, 0xeb, 0xd8, - 0xb7, 0x1a, 0x95, 0xb3, 0x78, 0x70, 0x57, 0x68, 0x76, 0x9a, 0x07, 0x77, 0xa5, 0xc4, 0x93, 0xcf, - 0xa4, 0xf2, 0x4d, 0x1e, 0x41, 0x79, 0x26, 0x37, 0x79, 0x84, 0x6a, 0x03, 0x86, 0x74, 0x1f, 0xce, - 0x49, 0x82, 0xc7, 0x7d, 0xea, 0xfb, 0x5b, 0x61, 0x37, 0x9d, 0xc9, 0x1b, 0x0b, 0x3f, 0x4a, 0xc3, - 0x4c, 0x64, 0xc0, 0x93, 0x9c, 0x7c, 0xbd, 0x1a, 0x3d, 0xf9, 0x9a, 0xec, 0x6e, 0x41, 0x26, 0xc1, - 0xdd, 0x82, 0xec, 0xa9, 0xdc, 0x2d, 0xc8, 0x7d, 0x00, 0x77, 0x0b, 0xfe, 0x24, 0x05, 0xbc, 0x7c, - 0x45, 0xb7, 0x21, 0x67, 0xb1, 0x2a, 0x5a, 0x1a, 0xc7, 0x70, 0xb7, 0xc4, 0x6b, 0x6e, 0x5e, 0x03, - 0xf3, 0xd3, 0x31, 0xfc, 0x11, 0x0b, 0x19, 0xe8, 0x5e, 0xcf, 0x9d, 0xad, 0x17, 0x47, 0xbe, 0xb3, - 0xc5, 0x45, 0x0e, 0xba, 0xa7, 0xf5, 0x13, 0x50, 0x1c, 0x74, 0xb7, 0xeb, 0xfd, 0x6d, 0x83, 0x96, - 0xfe, 0x2c, 0x05, 0xd3, 0xaa, 0x0a, 0xfc, 0x60, 0x95, 0x6d, 0xb4, 0x1d, 0xbe, 0xfb, 0x27, 0x16, - 0xc8, 0xc5, 0xc1, 0x2a, 0x1f, 0x88, 0x43, 0x3c, 0x9b, 0x36, 0xba, 0x76, 0xd3, 0xb4, 0xfc, 0xa9, - 0x16, 0x4c, 0x9b, 0x5a, 0x85, 0x41, 0xb1, 0xc4, 0x32, 0xf3, 0xd2, 0x89, 0x4b, 0x39, 0x65, 0x6c, - 0xb3, 0xb5, 0x26, 0xe1, 0x38, 0xa0, 0x60, 0x53, 0xfd, 0x80, 0x74, 0x39, 0x71, 0x36, 0x3a, 0xd5, - 0x6f, 0x0b, 0x30, 0xf6, 0xf1, 0xa5, 0x3a, 0x64, 0x39, 0xcb, 0x87, 0x21, 0xe3, 0xb9, 0xba, 0xec, - 0x85, 0x82, 0x24, 0xcf, 0x34, 0x5d, 0x1d, 0x33, 0x38, 0x43, 0x1b, 0xc1, 0xc9, 0xd8, 0x00, 0x5d, - 0xf7, 0x28, 0x66, 0xf0, 0xd2, 0x1f, 0xa7, 0x20, 0x7d, 0xab, 0x82, 0x6a, 0x90, 0xa1, 0x07, 0x44, - 0xce, 0x84, 0x8f, 0x0d, 0x1d, 0xb9, 0xad, 0xdb, 0xab, 0xb7, 0x2a, 0xf2, 0x8c, 0x14, 0xfb, 0x89, - 0x19, 0x37, 0xfa, 0x0a, 0x00, 0xdd, 0x37, 0x5d, 0xa3, 0xa1, 0xb9, 0xb4, 0x3b, 0xf2, 0x2c, 0xd8, - 0x0a, 0x58, 0x6e, 0x55, 0xaa, 0xf3, 0xc7, 0x47, 0xcb, 0xd3, 0x2a, 0x04, 0x2b, 0x22, 0x4b, 0xbf, - 0x9c, 0x86, 0xec, 0x2d, 0x62, 0xb5, 0xc6, 0x10, 0xf4, 0x6e, 0x47, 0x82, 0xde, 0x73, 0xc3, 0xcf, - 0xe5, 0x10, 0xab, 0x35, 0x30, 0xe2, 0x35, 0x63, 0x11, 0xef, 0xf9, 0xd1, 0xc4, 0x9d, 0x1c, 0xee, - 0xfe, 0x34, 0x05, 0x79, 0x46, 0x36, 0x86, 0x58, 0xf7, 0xf9, 0x68, 0xac, 0xfb, 0xe8, 0x48, 0xea, - 0x0f, 0x08, 0x74, 0xaf, 0xc0, 0x3c, 0xc3, 0x46, 0xa2, 0x9c, 0x7f, 0xf4, 0x3a, 0x35, 0xf0, 0xe8, - 0xf5, 0x37, 0xe5, 0xcb, 0x9e, 0xc9, 0x88, 0xf5, 0x4f, 0x69, 0x80, 0x70, 0xc0, 0x9e, 0x84, 0xab, - 0x53, 0x0d, 0x57, 0xcc, 0xe6, 0xd7, 0x1a, 0x95, 0x8d, 0x33, 0x68, 0xf3, 0x4c, 0xad, 0x53, 0xb4, - 0x79, 0x2e, 0x6e, 0xb8, 0xcd, 0x33, 0xb2, 0xb3, 0x68, 0xf3, 0x4c, 0xaf, 0xc1, 0x36, 0xcf, 0xb0, - 0x8f, 0x60, 0xf3, 0x7e, 0x17, 0x9f, 0x49, 0x9b, 0x0f, 0x07, 0xec, 0x89, 0xcd, 0x9f, 0xba, 0xcd, - 0xaf, 0x57, 0x6b, 0x37, 0xcf, 0xa0, 0xcd, 0x33, 0xb5, 0x4e, 0xd1, 0xe6, 0xb9, 0xb8, 0xe1, 0x36, - 0xcf, 0xc8, 0xce, 0xa2, 0xcd, 0x33, 0xbd, 0x06, 0xd8, 0xfc, 0xaf, 0xa6, 0x60, 0x9e, 0xa1, 0x1f, - 0x73, 0x39, 0xcb, 0x6c, 0x43, 0xd3, 0xa9, 0xd9, 0x6b, 0x1b, 0x15, 0x0e, 0xc5, 0x12, 0xcb, 0xbd, - 0x89, 0x3f, 0x78, 0x67, 0xd2, 0x9b, 0x84, 0x53, 0xe1, 0x89, 0x37, 0x39, 0x55, 0x6f, 0xf2, 0x8f, - 0x69, 0x98, 0x0a, 0x4a, 0x57, 0x7e, 0x45, 0x4d, 0xa3, 0x5a, 0xdd, 0x74, 0xe3, 0x7d, 0x5b, 0x17, - 0x60, 0xec, 0xe3, 0xd1, 0x57, 0x61, 0x8a, 0x04, 0xfb, 0xe3, 0xc2, 0x24, 0x5e, 0x1d, 0xbd, 0x48, - 0x2e, 0xc7, 0x36, 0xc5, 0x83, 0x89, 0x1e, 0xee, 0x85, 0x87, 0xe2, 0xf9, 0x41, 0x7e, 0xbe, 0x07, - 0xc9, 0x8a, 0xc2, 0x66, 0x65, 0xd3, 0xe3, 0xeb, 0xaf, 0xfe, 0x41, 0xfe, 0x08, 0x06, 0xc7, 0x28, - 0xd1, 0x2b, 0x30, 0xdd, 0x26, 0x0a, 0x67, 0x96, 0x73, 0xf2, 0x52, 0xaa, 0xa1, 0xc0, 0x71, 0x84, - 0x6a, 0xe9, 0xc7, 0x61, 0xf6, 0xd1, 0x77, 0x16, 0xf9, 0x2d, 0xf9, 0x75, 0x67, 0xaf, 0xe6, 0x58, - 0x16, 0xd1, 0xc7, 0xf3, 0x91, 0x94, 0xa4, 0xb7, 0xe4, 0x55, 0xf5, 0x4e, 0xf1, 0x96, 0x7c, 0x44, - 0xec, 0xf0, 0x5b, 0xf2, 0x2a, 0xf9, 0x59, 0xbc, 0x25, 0xaf, 0xea, 0x37, 0xc0, 0x95, 0xb7, 0xa0, - 0xa8, 0x52, 0x3d, 0xee, 0x05, 0xca, 0xb7, 0x63, 0xbd, 0x76, 0x26, 0x3d, 0xf6, 0x71, 0x1a, 0x50, - 0xef, 0x4c, 0x78, 0xe2, 0xb9, 0x4f, 0xd5, 0x73, 0x7f, 0x23, 0x0d, 0x93, 0xfe, 0x95, 0x87, 0xb3, - 0xb7, 0xcf, 0x21, 0x35, 0x3b, 0xc5, 0x7d, 0x0e, 0x5f, 0xe2, 0xc9, 0x5e, 0xc5, 0x83, 0x59, 0x49, - 0xe8, 0xdf, 0x97, 0xbf, 0x1e, 0xb9, 0xaf, 0x5c, 0x8a, 0xdd, 0x97, 0x47, 0x51, 0xea, 0xe8, 0x51, - 0x5a, 0x79, 0x72, 0x20, 0x7e, 0x50, 0x43, 0xd2, 0x62, 0x1f, 0xcf, 0xef, 0x49, 0x4b, 0x39, 0x4f, - 0xee, 0x49, 0x9f, 0xd9, 0x7b, 0xd2, 0x3f, 0x48, 0x41, 0x41, 0x8e, 0xd2, 0x59, 0xdc, 0x02, 0xf3, - 0x8f, 0x89, 0xf5, 0x0f, 0x33, 0xdf, 0xc9, 0x05, 0xca, 0x7f, 0x40, 0x07, 0xd6, 0x1f, 0xe5, 0xf6, - 0xf6, 0xf0, 0x03, 0xeb, 0x62, 0x97, 0x22, 0x77, 0xe2, 0x2e, 0xc5, 0xc4, 0x48, 0x97, 0xb5, 0x26, - 0x13, 0x5d, 0xd6, 0xca, 0x27, 0xb8, 0xac, 0x35, 0x95, 0xf0, 0xb2, 0x16, 0x0c, 0xbd, 0xac, 0xf5, - 0x46, 0x70, 0x59, 0xab, 0xc0, 0x67, 0xc7, 0x8d, 0x24, 0xfe, 0x34, 0xe1, 0x4d, 0xad, 0xe9, 0x0f, - 0xe0, 0xa6, 0xd6, 0xff, 0x64, 0x60, 0x26, 0xe2, 0xaf, 0x47, 0x3a, 0x1a, 0xf7, 0x72, 0x34, 0xe8, - 0xf7, 0x9e, 0x77, 0x93, 0x22, 0x4f, 0x38, 0xef, 0x96, 0x19, 0xf1, 0x80, 0x55, 0xdc, 0x5b, 0x27, - 0x39, 0xef, 0x96, 0x1d, 0xf9, 0xbc, 0x5b, 0x6e, 0xf4, 0xf3, 0x6e, 0x13, 0x23, 0x9e, 0x77, 0x8b, - 0x86, 0xab, 0x21, 0xe7, 0xdd, 0x4c, 0x28, 0x48, 0x37, 0xb6, 0x66, 0xef, 0x3a, 0xdc, 0x42, 0x46, - 0xb9, 0xab, 0xee, 0x8f, 0x5c, 0xd7, 0xa3, 0xa4, 0xc5, 0x38, 0x43, 0x4b, 0xdf, 0x08, 0xc5, 0x61, - 0x55, 0x76, 0xe9, 0x3f, 0xb2, 0xb0, 0xd0, 0xc3, 0xc7, 0x12, 0x60, 0x9f, 0xa8, 0x1e, 0x4f, 0x80, - 0x7d, 0x51, 0x75, 0x1c, 0xd2, 0xb0, 0xe4, 0xcc, 0xe3, 0xec, 0x77, 0xef, 0x06, 0x7e, 0x29, 0x18, - 0x9a, 0x66, 0x80, 0xc1, 0x0a, 0x15, 0xeb, 0xef, 0x1d, 0xc7, 0x61, 0x7e, 0x2c, 0x96, 0xf8, 0x55, - 0x39, 0x14, 0x4b, 0x2c, 0x7a, 0x1d, 0x66, 0x0e, 0x88, 0x6b, 0x13, 0x6b, 0xc0, 0xf7, 0x8d, 0x6e, - 0xab, 0x48, 0x1c, 0xa5, 0x65, 0xe3, 0xef, 0x78, 0x6b, 0xad, 0x3e, 0xe7, 0x1d, 0xef, 0x34, 0x39, - 0x18, 0xfb, 0x78, 0xf4, 0x45, 0xb8, 0xa8, 0x3b, 0x36, 0x33, 0x22, 0xe2, 0x62, 0xf1, 0x55, 0x54, - 0xbf, 0x45, 0x11, 0xa2, 0x96, 0x25, 0xeb, 0xc5, 0x5a, 0x7f, 0x32, 0x3c, 0x88, 0x1f, 0x7d, 0x1a, - 0x66, 0xe5, 0xc1, 0x7f, 0x5f, 0xa2, 0xf0, 0x7a, 0x17, 0xa4, 0xc4, 0xd9, 0xdb, 0x11, 0x2c, 0x8e, - 0x51, 0xa3, 0xba, 0xb8, 0xae, 0xc0, 0x8b, 0x14, 0x5f, 0x82, 0xb8, 0x75, 0x13, 0xb9, 0x6a, 0xa0, - 0xe2, 0x71, 0x0f, 0x07, 0xaa, 0xc0, 0x9c, 0xc3, 0xaf, 0x81, 0x9b, 0xf6, 0x9e, 0x18, 0x13, 0x79, - 0xa5, 0x26, 0x38, 0xe1, 0x7c, 0x27, 0x8a, 0xc6, 0x71, 0x7a, 0x74, 0x03, 0xa6, 0x35, 0x57, 0xdf, - 0x37, 0x29, 0xd1, 0x69, 0xc7, 0x15, 0x2e, 0x73, 0x2a, 0xbc, 0x3c, 0x5d, 0x51, 0x70, 0x38, 0x42, - 0x59, 0x22, 0x30, 0xdf, 0xd8, 0xae, 0xe1, 0xc7, 0x5d, 0x67, 0x7d, 0x37, 0x05, 0x0b, 0x0d, 0xf6, - 0xbe, 0x1e, 0x25, 0x36, 0xad, 0x6a, 0xfa, 0xc1, 0xaa, 0x6d, 0xa0, 0x0d, 0xc8, 0xe8, 0x96, 0x27, - 0xb3, 0x85, 0xe1, 0x86, 0x24, 0xbf, 0xfb, 0x28, 0xb9, 0x6b, 0xeb, 0xcd, 0xea, 0xe4, 0xf1, 0xd1, - 0x72, 0xa6, 0xb6, 0xde, 0xc4, 0x4c, 0x0e, 0x5a, 0x83, 0x34, 0xf1, 0x46, 0x2e, 0xd9, 0xa3, 0xd2, - 0x56, 0x9b, 0xe2, 0x5b, 0x07, 0xab, 0x4d, 0x9c, 0x26, 0x5e, 0xe9, 0x3b, 0x69, 0x98, 0x0b, 0xf5, - 0x5d, 0x3d, 0x24, 0x36, 0x1d, 0xcf, 0x61, 0x3b, 0xa5, 0x2a, 0x18, 0x7e, 0xd8, 0x2e, 0xa6, 0xe1, - 0xc0, 0xea, 0xe0, 0xcb, 0xb1, 0xea, 0xe0, 0x7a, 0x62, 0xc9, 0x27, 0x57, 0x09, 0x7f, 0x97, 0x82, - 0x73, 0x31, 0x8e, 0x31, 0xa4, 0x84, 0x77, 0xa3, 0x29, 0xe1, 0x4b, 0x49, 0x5f, 0x6a, 0x40, 0x6a, - 0xf8, 0x76, 0xba, 0xe7, 0x65, 0xc6, 0xb7, 0x2a, 0xf0, 0x33, 0xb0, 0xd0, 0x8e, 0x9b, 0xc9, 0xc8, - 0xdf, 0xd4, 0xed, 0x31, 0xb0, 0xe0, 0xfb, 0x16, 0xbd, 0xb6, 0x87, 0x7b, 0xdb, 0x51, 0x17, 0x14, - 0xb2, 0x43, 0x96, 0x24, 0xfe, 0x3d, 0x0d, 0xe7, 0xfb, 0xce, 0x91, 0x27, 0xab, 0x12, 0xa7, 0xba, - 0x2a, 0xf1, 0x3b, 0x69, 0x80, 0x86, 0xeb, 0xb4, 0x08, 0xdd, 0x27, 0x1d, 0x6f, 0x0c, 0x2e, 0xe8, - 0x0b, 0x11, 0x17, 0x34, 0x3c, 0x81, 0x0a, 0x95, 0x1b, 0xe8, 0x7d, 0xbe, 0x18, 0xf3, 0x3e, 0x57, - 0x93, 0x08, 0x3d, 0xd9, 0xf1, 0xfc, 0x65, 0x0a, 0x66, 0x43, 0xe2, 0x31, 0xf8, 0x9c, 0x46, 0xd4, - 0xe7, 0x3c, 0x9f, 0xe0, 0x55, 0x06, 0x2e, 0x78, 0x2e, 0x86, 0x34, 0x98, 0xb4, 0x1c, 0xca, 0xb3, - 0x51, 0xf4, 0x3c, 0x4c, 0xdd, 0x77, 0x4d, 0xf1, 0xa0, 0x1e, 0x10, 0xbb, 0xe7, 0x03, 0x71, 0x88, - 0x67, 0xa5, 0x98, 0x4b, 0x34, 0x83, 0xd3, 0xa6, 0x39, 0xed, 0xb4, 0xb8, 0x53, 0x21, 0x60, 0x38, - 0xc0, 0x96, 0x7e, 0x77, 0x42, 0xed, 0xb1, 0xb3, 0xb8, 0xdc, 0x89, 0x3c, 0x00, 0xaf, 0xb3, 0x13, - 0x66, 0x95, 0xa3, 0x7d, 0x1a, 0x20, 0xfa, 0x52, 0xe5, 0x66, 0x20, 0x21, 0x76, 0x3e, 0x3c, 0x44, - 0x60, 0xa5, 0x19, 0xe4, 0xc2, 0x8c, 0x1b, 0x74, 0x3e, 0xf1, 0x3c, 0x69, 0xed, 0x9f, 0x48, 0xd0, - 0x6e, 0x38, 0x78, 0x61, 0x12, 0x8c, 0x55, 0x99, 0x38, 0xda, 0x04, 0xbf, 0xec, 0xed, 0x50, 0x73, - 0xb7, 0x2b, 0xcf, 0x19, 0xca, 0x7c, 0x36, 0xbc, 0xec, 0xad, 0x22, 0x71, 0x94, 0x16, 0xed, 0xc2, - 0x94, 0x7f, 0x2b, 0xc6, 0x93, 0xa5, 0xc8, 0x70, 0x65, 0x83, 0x1b, 0x35, 0xe4, 0xcd, 0x8e, 0xe9, - 0x92, 0x16, 0xb1, 0xa9, 0x52, 0xf4, 0xf8, 0x58, 0x0f, 0x87, 0xa2, 0xd9, 0x78, 0xbb, 0x1d, 0xfb, - 0x8e, 0x2d, 0xbe, 0x24, 0xc5, 0xd3, 0xdb, 0x7c, 0x38, 0xde, 0x38, 0x44, 0x61, 0x95, 0x0e, 0x6d, - 0xc0, 0x39, 0xcd, 0x22, 0x2e, 0xc5, 0xa4, 0x4d, 0x34, 0xca, 0x3f, 0x89, 0x75, 0xa8, 0x59, 0x32, - 0xb1, 0x0d, 0x3e, 0x2d, 0x54, 0xe9, 0x25, 0xc1, 0xfd, 0xf8, 0xd8, 0xf4, 0xb9, 0x6f, 0xd2, 0xfd, - 0xcd, 0x46, 0x9d, 0xe7, 0xb6, 0xf9, 0x70, 0xfa, 0xdc, 0x13, 0x60, 0xec, 0xe3, 0x97, 0x3e, 0x05, - 0x73, 0xb1, 0xc1, 0x4f, 0x54, 0x6b, 0xff, 0x66, 0x16, 0xe6, 0xe3, 0xfe, 0xe7, 0x49, 0x50, 0x3b, - 0xcd, 0xa0, 0x86, 0x3a, 0x11, 0x03, 0x9f, 0x18, 0xf1, 0x9e, 0x79, 0x7c, 0x50, 0x92, 0x9a, 0xf8, - 0xfb, 0x9d, 0x18, 0x7f, 0x9e, 0x82, 0xbc, 0x7f, 0xb7, 0x6a, 0x0c, 0x81, 0xf8, 0x4e, 0x24, 0x10, - 0xbf, 0x38, 0x82, 0x69, 0x0b, 0xd5, 0x06, 0x85, 0x61, 0x7e, 0x04, 0xd9, 0x27, 0x1a, 0x43, 0xa4, - 0xdc, 0x8c, 0x46, 0xca, 0xe7, 0x46, 0x7e, 0x81, 0x01, 0x71, 0xf2, 0x5b, 0xe9, 0x50, 0xfd, 0x47, - 0x0b, 0x5b, 0xea, 0x27, 0x42, 0xd2, 0x23, 0x7e, 0x22, 0xe4, 0x11, 0x17, 0x6a, 0x3f, 0x0c, 0x99, - 0x8e, 0x6b, 0xc9, 0x2c, 0x3a, 0x38, 0x08, 0x7d, 0x17, 0xaf, 0x63, 0x06, 0x67, 0xe1, 0xba, 0xe3, - 0x49, 0x91, 0x62, 0xf9, 0x63, 0xda, 0x5f, 0x63, 0xdd, 0x0c, 0xd6, 0x58, 0x37, 0xe3, 0x6b, 0xac, - 0x13, 0x21, 0x65, 0xef, 0x1a, 0x6b, 0xe9, 0xbf, 0x33, 0xb0, 0xd8, 0xcf, 0xbd, 0xa3, 0x2e, 0x4c, - 0x58, 0x66, 0xcb, 0x94, 0xc7, 0xcc, 0x47, 0xb1, 0xb4, 0x7e, 0x62, 0xca, 0xeb, 0x5c, 0x86, 0xb0, - 0xb4, 0x4b, 0xc1, 0x2a, 0x29, 0x07, 0xf6, 0x7c, 0x64, 0x47, 0x36, 0x88, 0x7e, 0x8e, 0x7f, 0x45, - 0xf8, 0xcd, 0x0e, 0xf1, 0xa8, 0x3f, 0x0f, 0x6a, 0x8f, 0xd6, 0x3a, 0x96, 0x52, 0x62, 0xdf, 0x3c, - 0xf2, 0xc1, 0xbd, 0xdf, 0x3c, 0xf2, 0x9b, 0x5d, 0x32, 0xa1, 0xa0, 0xa8, 0xfe, 0x58, 0xbf, 0xb9, - 0x73, 0x00, 0x33, 0x11, 0x3d, 0x1f, 0xeb, 0x27, 0x77, 0x2c, 0x58, 0xe8, 0x59, 0x0f, 0x61, 0x36, - 0x61, 0x39, 0x7b, 0x4d, 0xd2, 0xc7, 0x26, 0xd6, 0x25, 0x1c, 0x07, 0x14, 0x2c, 0xaa, 0x51, 0xa7, - 0x6d, 0xea, 0xc1, 0xd2, 0x60, 0x10, 0xd5, 0xb6, 0x04, 0x18, 0xfb, 0xf8, 0xd2, 0xf7, 0xd2, 0x30, - 0x1f, 0x5f, 0x30, 0x79, 0x9f, 0x5f, 0x86, 0xfb, 0x18, 0x4c, 0xf0, 0x3f, 0x37, 0x22, 0xf1, 0xa8, - 0xd7, 0xe4, 0x50, 0x2c, 0xb1, 0x68, 0x05, 0xa6, 0x4c, 0xdb, 0x20, 0x0f, 0xb8, 0xb5, 0x64, 0xa3, - 0xab, 0x51, 0x6b, 0x3e, 0x02, 0x87, 0x34, 0xac, 0x69, 0x66, 0x3f, 0xbe, 0x65, 0xf9, 0x4d, 0x33, - 0xeb, 0xc2, 0x1c, 0xc3, 0xba, 0x29, 0x66, 0x55, 0x41, 0x37, 0xf5, 0xd9, 0xbd, 0x60, 0x19, 0x10, - 0xe1, 0xc7, 0x60, 0xea, 0x5a, 0x57, 0xe4, 0x5a, 0x39, 0x25, 0x03, 0x0a, 0x51, 0x58, 0xa5, 0x2b, - 0xd5, 0x41, 0xdc, 0x57, 0x60, 0xce, 0xe0, 0x30, 0xe8, 0xa7, 0xc0, 0x19, 0x6c, 0xaf, 0x35, 0x30, - 0x83, 0xa3, 0x0f, 0x41, 0xf6, 0xd0, 0x35, 0x0d, 0xd9, 0x53, 0xfc, 0x8b, 0x0f, 0xdb, 0x78, 0xad, - 0x8e, 0x39, 0xb4, 0xf4, 0x47, 0x69, 0x98, 0xdd, 0xd2, 0xda, 0xed, 0xf0, 0xc2, 0xff, 0x18, 0x62, - 0xcf, 0xdd, 0x48, 0xec, 0x19, 0x7e, 0x4c, 0x25, 0xaa, 0xe0, 0xc0, 0x42, 0xf0, 0xa7, 0x63, 0x85, - 0xe0, 0x27, 0x92, 0x0a, 0x3e, 0xb9, 0x18, 0x7c, 0x27, 0x05, 0x28, 0xca, 0x30, 0x86, 0x30, 0xb7, - 0x15, 0x0d, 0x73, 0x2b, 0x09, 0x5f, 0x69, 0x40, 0xb0, 0xfb, 0xad, 0x14, 0x2c, 0x45, 0x09, 0xcf, - 0xca, 0xd1, 0xc6, 0x3f, 0xe8, 0xe9, 0xe4, 0x33, 0x79, 0x64, 0xe6, 0xdf, 0xd2, 0xb0, 0xd8, 0x6f, - 0xf2, 0x3c, 0xc9, 0xe4, 0x4f, 0x75, 0x79, 0x0a, 0x43, 0xe4, 0x02, 0xd5, 0x30, 0x57, 0xf7, 0x2c, - 0xe4, 0x0e, 0x95, 0xa8, 0x10, 0xcc, 0xfd, 0x6d, 0x1e, 0x16, 0x04, 0xae, 0xf4, 0xcd, 0x14, 0xf8, - 0x9f, 0x63, 0x45, 0x2b, 0x90, 0x6d, 0x39, 0x46, 0xcf, 0x9f, 0x33, 0x6c, 0x38, 0x06, 0xff, 0x8c, - 0x9a, 0x24, 0x63, 0x8f, 0x98, 0x13, 0xa2, 0x2f, 0x43, 0xde, 0xa3, 0xae, 0x46, 0xc9, 0x5e, 0x77, - 0xe4, 0x3f, 0x38, 0x93, 0x52, 0x9a, 0x92, 0x2f, 0x9c, 0xb9, 0x3e, 0x04, 0x07, 0x32, 0x4b, 0x7f, - 0x9b, 0x82, 0xb9, 0x18, 0x3d, 0x7a, 0x03, 0xa0, 0xa5, 0x3d, 0xb8, 0x6b, 0xbb, 0x44, 0x33, 0xba, - 0x43, 0x3d, 0x72, 0x87, 0x9a, 0x56, 0x59, 0xfc, 0x41, 0x5f, 0x79, 0xcd, 0xa6, 0x77, 0xdc, 0x26, - 0x75, 0x4d, 0x7b, 0x4f, 0xec, 0x6f, 0x6f, 0x04, 0x72, 0xb0, 0x22, 0x13, 0x61, 0xb8, 0x60, 0xb8, - 0x9a, 0x69, 0x6f, 0x3a, 0x06, 0xa9, 0x92, 0x5d, 0xc7, 0x25, 0x52, 0x07, 0xf9, 0x89, 0x6a, 0xfe, - 0xf5, 0xb4, 0x7a, 0x5f, 0x0a, 0x3c, 0x80, 0x93, 0xef, 0x70, 0x6c, 0x3b, 0x56, 0xa7, 0x45, 0xea, - 0x44, 0x77, 0xc6, 0xf5, 0xe7, 0x73, 0x49, 0x77, 0x38, 0x62, 0x1a, 0x9e, 0xe2, 0x0e, 0x47, 0x5c, - 0xf2, 0xf0, 0x1d, 0x8e, 0x18, 0xc7, 0x59, 0xdc, 0xe1, 0x88, 0xa9, 0x38, 0xe8, 0xbf, 0xe4, 0xd2, - 0x3d, 0x2f, 0x73, 0x26, 0x17, 0x02, 0xaf, 0x42, 0xe1, 0x90, 0xab, 0xb9, 0xd5, 0x6d, 0x13, 0xff, - 0xa8, 0x31, 0xff, 0xc6, 0xc9, 0x76, 0x08, 0xc6, 0x2a, 0x0d, 0xfa, 0x1c, 0x2c, 0xdc, 0x77, 0xdc, - 0x03, 0xcb, 0xd1, 0x8c, 0x8a, 0xd1, 0x32, 0xbd, 0xe0, 0xd3, 0x8d, 0xf9, 0x70, 0x2f, 0xe4, 0x5e, - 0x9c, 0x00, 0xf7, 0xf2, 0x94, 0xbe, 0x9f, 0x85, 0xf3, 0x7d, 0xa7, 0x48, 0xb2, 0x08, 0x12, 0x79, - 0x81, 0xf4, 0xa3, 0xbe, 0x40, 0x26, 0xf9, 0x0b, 0x0c, 0xfc, 0x2f, 0xbd, 0xec, 0xfb, 0xff, 0x2f, - 0xbd, 0xdc, 0x23, 0xc4, 0xc3, 0x89, 0x04, 0xf1, 0x70, 0xf2, 0x54, 0xe2, 0x61, 0x7e, 0xfc, 0xf1, - 0xb0, 0x7a, 0xe5, 0x9d, 0xf7, 0x2e, 0x3d, 0xf5, 0xc3, 0xf7, 0x2e, 0x3d, 0xf5, 0xee, 0x7b, 0x97, - 0x9e, 0xfa, 0xda, 0xf1, 0xa5, 0xd4, 0x3b, 0xc7, 0x97, 0x52, 0x3f, 0x3c, 0xbe, 0x94, 0x7a, 0xf7, - 0xf8, 0x52, 0xea, 0x5f, 0x8e, 0x2f, 0xa5, 0xbe, 0xfe, 0xaf, 0x97, 0x9e, 0xfa, 0x52, 0xfa, 0xf0, - 0xea, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x89, 0x67, 0x2c, 0x3b, 0x77, 0x00, 0x00, + // 6169 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x7d, 0x5b, 0x6c, 0x24, 0xc7, + 0x75, 0xa8, 0xe6, 0x45, 0x0e, 0x0f, 0xdf, 0xb5, 0x5c, 0x69, 0x44, 0xc9, 0xcb, 0xf5, 0xc8, 0x36, + 0x56, 0x96, 0x34, 0xd4, 0xae, 0xe4, 0xf5, 0xca, 0xf2, 0x6b, 0x1e, 0x94, 0x96, 0x5e, 0x92, 0x3b, + 0xae, 0xd9, 0xa5, 0xae, 0x7d, 0xef, 0xb5, 0xd5, 0xec, 0x29, 0x92, 0x6d, 0xf6, 0x74, 0xb7, 0xbb, + 0x6b, 0xa8, 0xa5, 0x92, 0x0f, 0xe7, 0xf1, 0x11, 0x04, 0x49, 0xe0, 0xc4, 0x40, 0x02, 0x38, 0x71, + 0x1e, 0x76, 0x80, 0x04, 0x71, 0x0c, 0x18, 0x71, 0xe0, 0x0f, 0xc3, 0x09, 0x82, 0x20, 0x40, 0x84, + 0x20, 0x08, 0x8c, 0x7c, 0x19, 0x01, 0xcc, 0xc4, 0x8c, 0x13, 0x24, 0x1f, 0x41, 0xbe, 0xb3, 0x5f, + 0x41, 0x3d, 0xba, 0xba, 0xba, 0x67, 0x86, 0x33, 0xbd, 0xe2, 0x8e, 0xf9, 0xb1, 0x7f, 0xd3, 0xe7, + 0x55, 0xa7, 0x5e, 0xe7, 0x9c, 0x3a, 0xf5, 0x18, 0x58, 0xa5, 0x07, 0x24, 0xa0, 0x86, 0x79, 0x50, + 0xb1, 0x5c, 0xf6, 0x7b, 0xd5, 0xf0, 0xac, 0x55, 0xcf, 0x36, 0xe8, 0xae, 0xeb, 0x77, 0x56, 0x0f, + 0xaf, 0xae, 0xee, 0x11, 0x87, 0xf8, 0x06, 0x25, 0xed, 0x8a, 0xe7, 0xbb, 0xd4, 0x45, 0x2b, 0x1a, + 0x43, 0x85, 0x1e, 0x90, 0x8a, 0xe1, 0x59, 0x95, 0x90, 0xa1, 0x72, 0x78, 0x75, 0xf9, 0x85, 0x3d, + 0x8b, 0xee, 0x77, 0x77, 0x2a, 0xa6, 0xdb, 0x59, 0xdd, 0x73, 0xf7, 0xdc, 0x55, 0xce, 0xb7, 0xd3, + 0xdd, 0xe5, 0x5f, 0xfc, 0x83, 0xff, 0x12, 0xf2, 0x96, 0xcb, 0x07, 0x37, 0x02, 0x56, 0x36, 0x2b, + 0xd7, 0x74, 0x7d, 0xd2, 0xa7, 0xcc, 0xe5, 0x97, 0x23, 0x9a, 0x8e, 0x61, 0xee, 0x5b, 0x0e, 0xf1, + 0x8f, 0x56, 0xbd, 0x83, 0x3d, 0xce, 0xe4, 0x93, 0xc0, 0xed, 0xfa, 0x26, 0x49, 0xc5, 0x15, 0xac, + 0x76, 0x08, 0x35, 0xfa, 0x95, 0xb5, 0x3a, 0x88, 0xcb, 0xef, 0x3a, 0xd4, 0xea, 0xf4, 0x16, 0x73, + 0x7d, 0x18, 0x43, 0x60, 0xee, 0x93, 0x8e, 0xd1, 0xc3, 0xf7, 0xd2, 0x20, 0xbe, 0x2e, 0xb5, 0xec, + 0x55, 0xcb, 0xa1, 0x01, 0xf5, 0x7b, 0x98, 0xae, 0xf5, 0xeb, 0x2e, 0xc3, 0xf3, 0x6c, 0xcb, 0x34, + 0xa8, 0xe5, 0x3a, 0x7d, 0x6a, 0x54, 0xfe, 0xed, 0x0c, 0x4c, 0x55, 0xdb, 0x6d, 0xd7, 0x69, 0x79, + 0xc4, 0x44, 0xcf, 0x43, 0x91, 0x12, 0xc7, 0x70, 0xe8, 0x7a, 0xa3, 0x94, 0xb9, 0x9c, 0xb9, 0x32, + 0x55, 0x5b, 0x78, 0xe7, 0x78, 0xe5, 0xb1, 0x93, 0xe3, 0x95, 0xe2, 0x1d, 0x09, 0xc7, 0x8a, 0x02, + 0x7d, 0x08, 0xa6, 0x4d, 0xbb, 0x1b, 0x50, 0xe2, 0x6f, 0x19, 0x1d, 0x52, 0xca, 0x72, 0x86, 0x0b, + 0x92, 0x61, 0xba, 0x1e, 0xa1, 0xb0, 0x4e, 0x87, 0x9e, 0x85, 0xc9, 0x43, 0xe2, 0x07, 0x96, 0xeb, + 0x94, 0x72, 0x9c, 0x65, 0x5e, 0xb2, 0x4c, 0x6e, 0x0b, 0x30, 0x0e, 0xf1, 0xe5, 0xef, 0x66, 0x20, + 0x57, 0xf5, 0x3c, 0xf4, 0x26, 0x14, 0x59, 0x97, 0xb4, 0x0d, 0x6a, 0x70, 0xbd, 0xa6, 0xaf, 0xbd, + 0x58, 0x11, 0x2d, 0x54, 0xd1, 0x5b, 0xa8, 0xe2, 0x1d, 0xec, 0x31, 0x40, 0x50, 0x61, 0xd4, 0x95, + 0xc3, 0xab, 0x95, 0xdb, 0x3b, 0x5f, 0x20, 0x26, 0xdd, 0x24, 0xd4, 0xa8, 0x21, 0x59, 0x0a, 0x44, + 0x30, 0xac, 0xa4, 0xa2, 0x4d, 0xc8, 0x07, 0x1e, 0x31, 0x79, 0x25, 0xa6, 0xaf, 0x3d, 0x57, 0xe9, + 0x37, 0x90, 0xb5, 0xa6, 0x64, 0xb2, 0xab, 0x9e, 0xc7, 0x1a, 0xad, 0x36, 0x23, 0x05, 0xe7, 0xd9, + 0x17, 0xe6, 0x62, 0xca, 0x3f, 0xcc, 0xc0, 0x42, 0xb5, 0x4b, 0xf7, 0xdf, 0x7e, 0x83, 0xec, 0xec, + 0xbb, 0xee, 0x41, 0xb5, 0xdd, 0xf6, 0xd1, 0xe7, 0x61, 0x72, 0xa7, 0x6b, 0xd9, 0xd4, 0x72, 0x64, + 0x25, 0x6e, 0x54, 0x86, 0xcc, 0x97, 0x4a, 0x4d, 0xd0, 0x27, 0x45, 0xd5, 0xa6, 0x59, 0x73, 0x49, + 0x24, 0x0e, 0xa5, 0x22, 0x13, 0x8a, 0xe4, 0x1e, 0x25, 0xbe, 0x63, 0xd8, 0xb2, 0x22, 0xaf, 0x0c, + 0x2d, 0x61, 0x4d, 0x32, 0xf4, 0x14, 0x31, 0xc3, 0x7a, 0x3d, 0xc4, 0x62, 0x25, 0xb8, 0xdc, 0x82, + 0x99, 0x9a, 0xeb, 0xb2, 0x01, 0x68, 0x78, 0xac, 0x6f, 0xea, 0x90, 0x33, 0x3c, 0x4f, 0xd6, 0xe8, + 0x7d, 0x43, 0xcb, 0xab, 0x7a, 0x5e, 0x6d, 0x5a, 0xb6, 0x18, 0xeb, 0x5b, 0xcc, 0xb8, 0xcb, 0x4f, + 0xc2, 0x13, 0x03, 0xaa, 0x5a, 0xfe, 0xbd, 0x2c, 0x4c, 0xd7, 0x5b, 0xeb, 0xb7, 0x3d, 0x36, 0x6e, + 0x5d, 0x7f, 0x0c, 0x63, 0x01, 0xc7, 0xc6, 0xc2, 0x8b, 0x43, 0xab, 0xa4, 0x69, 0x37, 0x68, 0x40, + 0xa0, 0xcf, 0xc2, 0x44, 0x40, 0x0d, 0xda, 0x0d, 0xf8, 0x98, 0x9f, 0xbe, 0x76, 0x2d, 0x95, 0x54, + 0xce, 0x59, 0x9b, 0x93, 0x72, 0x27, 0xc4, 0x37, 0x96, 0x12, 0xcb, 0x9f, 0x00, 0xa4, 0x11, 0xbf, + 0x46, 0x0c, 0xda, 0xf5, 0x63, 0xd3, 0x2c, 0x33, 0x64, 0x9a, 0xfd, 0x75, 0x06, 0xe6, 0x35, 0x09, + 0x1b, 0x56, 0x40, 0xd1, 0xff, 0xeb, 0x69, 0xe6, 0xca, 0x68, 0xcd, 0xcc, 0xb8, 0x79, 0x23, 0x2b, + 0xd3, 0x11, 0x42, 0xb4, 0x26, 0xfe, 0x34, 0x14, 0x2c, 0x4a, 0x3a, 0x41, 0x29, 0x7b, 0x39, 0x77, + 0x65, 0xfa, 0xda, 0xf3, 0x69, 0x5a, 0xa3, 0x36, 0x2b, 0x05, 0x17, 0xd6, 0x99, 0x08, 0x2c, 0x24, + 0x95, 0xff, 0x20, 0x5e, 0x89, 0x73, 0x69, 0xcf, 0xbe, 0x93, 0x83, 0xc5, 0x9e, 0x7e, 0x4d, 0xd1, + 0x53, 0xa8, 0x09, 0x4b, 0x01, 0x75, 0x7d, 0x63, 0x8f, 0x6c, 0x13, 0xa7, 0xed, 0xfa, 0x92, 0x40, + 0xea, 0xfa, 0xb4, 0xe4, 0x5b, 0x6a, 0xf5, 0xa1, 0xc1, 0x7d, 0x39, 0xd1, 0x55, 0x28, 0x78, 0xfb, + 0x46, 0x40, 0xa4, 0xee, 0x4f, 0x85, 0x6d, 0xdb, 0x64, 0xc0, 0xfb, 0xc7, 0x2b, 0xc0, 0xbd, 0x03, + 0xff, 0xc2, 0x82, 0x12, 0x7d, 0x00, 0x26, 0x7c, 0x62, 0x04, 0xae, 0x53, 0xca, 0x73, 0x1e, 0x35, + 0x2e, 0x31, 0x87, 0x62, 0x89, 0x45, 0xd7, 0x00, 0x7c, 0x42, 0xfd, 0xa3, 0xba, 0xdb, 0x75, 0x68, + 0xa9, 0x70, 0x39, 0x73, 0xa5, 0x10, 0xcd, 0x3c, 0xac, 0x30, 0x58, 0xa3, 0x42, 0xbf, 0x9e, 0x81, + 0xa7, 0x6c, 0x23, 0xa0, 0x98, 0xac, 0x3b, 0x16, 0xb5, 0x0c, 0xdb, 0x7a, 0xdb, 0x72, 0xf6, 0xee, + 0x58, 0x1d, 0x36, 0x3c, 0x3a, 0x5e, 0x69, 0x82, 0x0f, 0xc5, 0x0f, 0x8e, 0x36, 0x14, 0x19, 0x5b, + 0xed, 0x19, 0x59, 0xe2, 0x53, 0x1b, 0x83, 0xc5, 0xe2, 0xd3, 0xca, 0x2c, 0xb7, 0xf9, 0xc0, 0x6a, + 0xfa, 0xee, 0xbd, 0xa3, 0xdb, 0x1e, 0xb3, 0xfe, 0x01, 0x5a, 0x85, 0x29, 0xc7, 0xe8, 0x90, 0xc0, + 0x33, 0x4c, 0x22, 0x3b, 0x6d, 0x51, 0x96, 0x33, 0xb5, 0x15, 0x22, 0x70, 0x44, 0x83, 0x2e, 0x43, + 0xde, 0x89, 0x06, 0x95, 0xb2, 0x10, 0x7c, 0x34, 0x71, 0x4c, 0xf9, 0x2b, 0x59, 0x98, 0x94, 0x63, + 0x6c, 0x0c, 0x36, 0x6e, 0x2b, 0x66, 0xe3, 0x46, 0x98, 0x7f, 0x42, 0xb3, 0x81, 0xf6, 0x6d, 0x3b, + 0x61, 0xdf, 0x2a, 0x23, 0x4b, 0x3c, 0xdd, 0xb6, 0x7d, 0x3d, 0x0b, 0x33, 0x92, 0x92, 0x0f, 0xc4, + 0x31, 0x34, 0x4d, 0x2b, 0xd6, 0x34, 0x57, 0x47, 0xad, 0x88, 0x8a, 0xa2, 0xfa, 0xb6, 0xcf, 0xff, + 0x4d, 0xb4, 0xcf, 0x4b, 0xe9, 0xc4, 0x9e, 0xde, 0x48, 0x7f, 0x93, 0x81, 0x05, 0x9d, 0x7c, 0x0c, + 0x06, 0x1c, 0xc7, 0x0d, 0xf8, 0x0b, 0xa9, 0xaa, 0x33, 0xc0, 0x82, 0xff, 0x46, 0xa2, 0x1a, 0xdc, + 0x84, 0x5f, 0x86, 0x3c, 0x3d, 0xf2, 0xc2, 0x49, 0xa6, 0x9a, 0xf6, 0xce, 0x91, 0x47, 0x30, 0xc7, + 0x30, 0x0b, 0x66, 0x93, 0x43, 0x62, 0xcb, 0xb9, 0xa5, 0x2c, 0xd8, 0x06, 0x03, 0x2a, 0x0b, 0xc6, + 0xbf, 0xb0, 0xa0, 0x4c, 0x63, 0xb2, 0x7f, 0x25, 0x03, 0xa8, 0xb7, 0x2b, 0xd2, 0xd8, 0xec, 0x67, + 0x42, 0x0b, 0x2b, 0xf4, 0x9b, 0x8d, 0x59, 0xd8, 0x5e, 0x9b, 0x9a, 0x3b, 0xcd, 0xa6, 0x96, 0x7f, + 0x2d, 0x17, 0x6f, 0x23, 0xd6, 0x0e, 0x63, 0x98, 0x13, 0x61, 0x2f, 0x64, 0x87, 0xf7, 0x42, 0x6e, + 0xe4, 0x5e, 0x78, 0x15, 0x66, 0x6d, 0x83, 0x92, 0x80, 0x86, 0x5e, 0x4c, 0xb8, 0x93, 0x8b, 0x92, + 0x75, 0x76, 0x43, 0x47, 0xe2, 0x38, 0x2d, 0x73, 0xd6, 0x6d, 0x12, 0x98, 0xbe, 0xc5, 0x2d, 0x32, + 0xf7, 0x2e, 0x9a, 0xb3, 0x6e, 0x44, 0x28, 0xac, 0xd3, 0xa1, 0xdb, 0x70, 0xd1, 0x74, 0x3b, 0x9e, + 0x41, 0xad, 0x1d, 0x9b, 0xc8, 0x86, 0x64, 0xb5, 0x28, 0x4d, 0x5c, 0xce, 0x5d, 0x99, 0xaa, 0x3d, + 0x79, 0x72, 0xbc, 0x72, 0xb1, 0xde, 0x8f, 0x00, 0xf7, 0xe7, 0x2b, 0xff, 0x7d, 0x06, 0x96, 0x92, + 0x1d, 0x32, 0x86, 0xf9, 0xb7, 0x1d, 0x9f, 0x7f, 0xe9, 0xac, 0x14, 0xd3, 0x71, 0xc0, 0x1c, 0xfc, + 0xa3, 0x0c, 0xcc, 0x45, 0xa4, 0x3e, 0x09, 0x98, 0xaf, 0xd3, 0x67, 0xe0, 0x53, 0x7a, 0xdf, 0xdf, + 0x3f, 0x5e, 0x99, 0x96, 0x64, 0xda, 0x50, 0xb8, 0x0c, 0xf9, 0x7d, 0x37, 0xa0, 0xc9, 0xc1, 0x72, + 0xd3, 0x0d, 0x28, 0xe6, 0x18, 0x46, 0xe1, 0xb9, 0x3e, 0xe5, 0x63, 0xa5, 0x10, 0x51, 0x34, 0x5d, + 0x9f, 0x62, 0x8e, 0xe1, 0x14, 0x06, 0xdd, 0x97, 0x43, 0x22, 0xa2, 0x30, 0xe8, 0x3e, 0xe6, 0x98, + 0xf2, 0x6b, 0x70, 0x21, 0x54, 0xd4, 0xf3, 0xec, 0x98, 0x67, 0x76, 0xe9, 0x5d, 0xaf, 0x6d, 0x50, + 0xa1, 0x72, 0x51, 0xf3, 0xcc, 0x21, 0x02, 0x47, 0x34, 0xe5, 0xef, 0x45, 0x56, 0x87, 0x75, 0xbc, + 0xeb, 0x10, 0x87, 0x8e, 0x60, 0x75, 0x7e, 0x21, 0x03, 0x45, 0x9f, 0xf0, 0x05, 0x61, 0x30, 0xf2, + 0x62, 0x2b, 0x59, 0x0e, 0x96, 0x02, 0x6a, 0xcf, 0x87, 0x5d, 0x1d, 0x42, 0xee, 0x1f, 0xaf, 0x94, + 0x06, 0x51, 0x63, 0x55, 0x30, 0x1b, 0x7d, 0x03, 0xc9, 0x98, 0x8d, 0x6a, 0x93, 0xc0, 0xf2, 0x49, + 0x9b, 0xd7, 0xa3, 0x10, 0xd9, 0xa8, 0x86, 0x00, 0xe3, 0x10, 0xcf, 0x48, 0xcd, 0xae, 0xef, 0x13, + 0x47, 0xf4, 0x9a, 0x46, 0x5a, 0x17, 0x60, 0x1c, 0xe2, 0x59, 0x03, 0x1b, 0x87, 0x86, 0x65, 0x1b, + 0x3b, 0x36, 0x91, 0x1d, 0xa8, 0x1a, 0xb8, 0x1a, 0x22, 0x70, 0x44, 0xc3, 0x64, 0x77, 0x79, 0x53, + 0xb7, 0x79, 0x6f, 0x6a, 0xb2, 0x45, 0x0f, 0xb4, 0x71, 0x88, 0x2f, 0x7f, 0x23, 0xa7, 0xf5, 0x85, + 0xd3, 0xb6, 0xf8, 0x94, 0x1d, 0xde, 0x17, 0xaf, 0x28, 0xe7, 0x2a, 0x86, 0xdc, 0x7b, 0xe3, 0x7e, + 0xf2, 0xfe, 0xf1, 0xca, 0xbc, 0x12, 0x17, 0x77, 0x9d, 0x68, 0x8f, 0xd9, 0xa0, 0x80, 0x36, 0x7d, + 0x77, 0x87, 0xb0, 0x88, 0x4f, 0xba, 0xe7, 0x34, 0x01, 0xa6, 0x66, 0xaf, 0x34, 0x41, 0x38, 0x2e, + 0x17, 0x1d, 0x02, 0x62, 0x80, 0x3b, 0xbe, 0xe1, 0x04, 0x5c, 0x11, 0x5e, 0x5a, 0x3e, 0x75, 0x69, + 0xcb, 0xb2, 0x34, 0xb4, 0xd1, 0x23, 0x0d, 0xf7, 0x29, 0x41, 0x73, 0x2c, 0x85, 0x53, 0x83, 0xf5, + 0x67, 0x61, 0xb2, 0x43, 0x82, 0xc0, 0xd8, 0x23, 0x3c, 0xc6, 0xd6, 0x1c, 0xda, 0xa6, 0x00, 0xe3, + 0x10, 0x5f, 0xfe, 0x9f, 0x02, 0x2c, 0x86, 0xbd, 0xe4, 0x93, 0x36, 0x71, 0x58, 0xcc, 0x3c, 0x06, + 0x27, 0xa4, 0xaf, 0xe6, 0xb2, 0x69, 0x57, 0x73, 0xb9, 0x11, 0x57, 0x73, 0x15, 0x00, 0x42, 0xcd, + 0x76, 0xbd, 0x5a, 0x27, 0x3e, 0xe5, 0xfd, 0x33, 0x53, 0x9b, 0x63, 0x2a, 0xad, 0xdd, 0xa9, 0x37, + 0x04, 0x14, 0x6b, 0x14, 0xe8, 0x39, 0x98, 0x12, 0x5f, 0xb7, 0xc8, 0x11, 0x6f, 0xe2, 0x99, 0xda, + 0x2c, 0x9b, 0x0a, 0x82, 0xfc, 0x16, 0x39, 0xc2, 0x11, 0x1e, 0xd5, 0x61, 0x91, 0x7d, 0x54, 0x9b, + 0xeb, 0x75, 0xdb, 0x22, 0x0e, 0xe5, 0x65, 0x4c, 0x70, 0xa6, 0x8b, 0x27, 0xc7, 0x2b, 0x8b, 0x8c, + 0x29, 0x86, 0xc4, 0xbd, 0xf4, 0xe8, 0x93, 0xb0, 0x10, 0x03, 0xb2, 0x82, 0x27, 0xb9, 0x8c, 0xa5, + 0x93, 0xe3, 0x95, 0x85, 0x98, 0x0c, 0x56, 0x7e, 0x0f, 0x35, 0x2a, 0xc3, 0x84, 0x69, 0xf0, 0xb2, + 0x8b, 0x9c, 0x0f, 0xd8, 0x78, 0x90, 0x75, 0x93, 0x18, 0xb4, 0x02, 0x05, 0xd3, 0x60, 0xa2, 0xa7, + 0x38, 0xc9, 0x14, 0xf3, 0x14, 0xa2, 0x3e, 0x02, 0xce, 0x1a, 0xca, 0x8c, 0x2a, 0x01, 0x51, 0x43, + 0x69, 0xda, 0x6b, 0x14, 0xac, 0xa1, 0x4c, 0xa5, 0xef, 0x74, 0xd4, 0x50, 0x91, 0xa2, 0x11, 0x9e, + 0x95, 0x4e, 0xdd, 0x03, 0xe2, 0x94, 0x66, 0x78, 0xb7, 0xf1, 0xd2, 0xef, 0x30, 0x00, 0x16, 0x70, + 0xf4, 0x11, 0x98, 0xdb, 0x09, 0xb3, 0x50, 0x1c, 0x51, 0x9a, 0xe5, 0x94, 0xe8, 0xe4, 0x78, 0x65, + 0xae, 0x16, 0xc3, 0xe0, 0x04, 0x25, 0xe3, 0x35, 0x89, 0x4f, 0xad, 0x5d, 0xcb, 0x34, 0x28, 0x61, + 0xea, 0xcc, 0x45, 0xbc, 0xf5, 0x18, 0x06, 0x27, 0x28, 0xcb, 0xff, 0x90, 0x81, 0x8b, 0x3d, 0x63, + 0x7f, 0x0c, 0xfe, 0xfe, 0x8d, 0xb8, 0xbf, 0xbf, 0x36, 0xb2, 0xab, 0x51, 0x4a, 0x0e, 0x70, 0xf8, + 0xdf, 0x9d, 0x52, 0x0e, 0x3f, 0xcc, 0x1c, 0x3d, 0x0d, 0x79, 0xcb, 0x3b, 0x0c, 0xa4, 0xf7, 0x2c, + 0x32, 0x63, 0xbb, 0xde, 0xdc, 0x6e, 0x61, 0x0e, 0x45, 0x57, 0xa0, 0xe8, 0x75, 0x77, 0x6c, 0xcb, + 0xdc, 0xa8, 0xf1, 0x59, 0x58, 0x14, 0x99, 0xc2, 0xa6, 0x84, 0x61, 0x85, 0x65, 0x23, 0xc4, 0x72, + 0x44, 0xd6, 0x70, 0xa3, 0xc6, 0x27, 0x60, 0x51, 0x8c, 0x90, 0x75, 0x05, 0xc5, 0x1a, 0x05, 0x7a, + 0x11, 0x26, 0xf7, 0xbc, 0x2e, 0x8f, 0xc6, 0x84, 0xdb, 0x7f, 0x9c, 0x99, 0x9f, 0xd7, 0x9b, 0x77, + 0x65, 0xa8, 0x11, 0xfe, 0xc4, 0x21, 0x19, 0x6a, 0xc2, 0x12, 0x71, 0x98, 0x93, 0xd9, 0x34, 0xf8, + 0x5a, 0xd2, 0xdc, 0x27, 0xed, 0xae, 0x4d, 0xf8, 0x3c, 0x2c, 0x46, 0xe9, 0x90, 0xb5, 0x3e, 0x34, + 0xb8, 0x2f, 0x27, 0x7a, 0x15, 0xb2, 0xfb, 0x86, 0xcc, 0x32, 0x3c, 0x33, 0xb4, 0x91, 0x6f, 0x56, + 0x6b, 0x13, 0x27, 0xc7, 0x2b, 0xd9, 0x9b, 0x55, 0x9c, 0xdd, 0x37, 0xd8, 0xc0, 0x0a, 0x0e, 0x2c, + 0x4f, 0xf9, 0x9a, 0xa0, 0x34, 0xc9, 0xa3, 0x4a, 0x3e, 0xb0, 0x5a, 0x31, 0x0c, 0x4e, 0x50, 0xa2, + 0x4f, 0x41, 0x61, 0xd7, 0xb2, 0x49, 0x50, 0x2a, 0xf2, 0x0e, 0x7e, 0xff, 0xd0, 0xb2, 0x5f, 0xb3, + 0x6c, 0x2d, 0x88, 0x63, 0x5f, 0x01, 0x16, 0x22, 0xd0, 0x01, 0x14, 0xf6, 0x5d, 0xf7, 0x20, 0x28, + 0x4d, 0x71, 0x59, 0x1f, 0x19, 0x75, 0xb0, 0xc8, 0x01, 0x50, 0xb9, 0xc9, 0x98, 0xd7, 0x1c, 0xea, + 0x1f, 0xd5, 0x9e, 0x0c, 0x0b, 0xe0, 0xb0, 0x9f, 0xff, 0xe7, 0x95, 0x22, 0xfb, 0xc1, 0x7b, 0x41, + 0x94, 0x81, 0x76, 0x61, 0xda, 0x0c, 0xac, 0x30, 0xa5, 0xc5, 0x0d, 0xc1, 0x48, 0xcb, 0xdb, 0x9e, + 0x8c, 0x65, 0x6d, 0x9e, 0x1b, 0xe6, 0x08, 0x8e, 0x75, 0xc1, 0x28, 0x80, 0x05, 0x23, 0x91, 0x1b, + 0xe6, 0x66, 0x64, 0x94, 0xe0, 0xb7, 0x27, 0xb9, 0xcd, 0x2d, 0x65, 0x12, 0x8a, 0x7b, 0x0a, 0x40, + 0x9b, 0x70, 0x41, 0x0e, 0x13, 0x42, 0x7d, 0xcb, 0x0c, 0x5a, 0xc4, 0x3f, 0x24, 0x3e, 0xb7, 0x4a, + 0x45, 0x15, 0x0a, 0x5f, 0x58, 0xeb, 0x25, 0xc1, 0xfd, 0xf8, 0xd8, 0x8a, 0xc7, 0xf2, 0x0e, 0xaf, + 0x37, 0xba, 0x86, 0xdd, 0x62, 0xfa, 0x72, 0xa3, 0x55, 0x8c, 0x22, 0x88, 0xf5, 0xa6, 0x86, 0xc4, + 0x71, 0x5a, 0x74, 0x03, 0x66, 0x84, 0xcc, 0xba, 0x65, 0x5b, 0xdd, 0x0e, 0x37, 0x5a, 0xc5, 0xda, + 0x92, 0xe4, 0x9d, 0x59, 0xd3, 0x70, 0x38, 0x46, 0x89, 0x1a, 0xb0, 0x60, 0xba, 0x0e, 0x35, 0x98, + 0x01, 0xc2, 0x62, 0xe3, 0xa9, 0x34, 0xcf, 0x67, 0x58, 0x49, 0x72, 0x2f, 0xd4, 0x13, 0x78, 0xdc, + 0xc3, 0x81, 0x5a, 0x2c, 0x8e, 0xdb, 0xf3, 0x8d, 0x36, 0x29, 0x3d, 0xce, 0xdb, 0xfd, 0xca, 0xd0, + 0x76, 0xbf, 0x2b, 0xe8, 0xf5, 0x88, 0x8f, 0x03, 0x70, 0x28, 0x69, 0xf9, 0x06, 0x40, 0x34, 0xda, + 0xd0, 0x02, 0xe4, 0x0e, 0xc8, 0x91, 0x88, 0xf4, 0x30, 0xfb, 0x89, 0x96, 0xa0, 0x70, 0x68, 0xd8, + 0x5d, 0xb9, 0xf2, 0xc4, 0xe2, 0xe3, 0x23, 0xd9, 0x1b, 0x99, 0xf2, 0xef, 0xe7, 0xe0, 0x29, 0x39, + 0x6e, 0x5f, 0xf7, 0xdd, 0xae, 0x57, 0x6d, 0xae, 0x63, 0xb9, 0xdb, 0xc7, 0x0c, 0x9c, 0xca, 0xb8, + 0x65, 0x06, 0x65, 0xdc, 0x58, 0x83, 0x06, 0x96, 0xb3, 0xd7, 0xb5, 0x0d, 0x3d, 0xe1, 0xab, 0x1a, + 0xb4, 0xa5, 0xe1, 0x70, 0x8c, 0x12, 0x5d, 0x03, 0x50, 0xa9, 0xbd, 0xb6, 0xb4, 0x6c, 0x2a, 0x76, + 0x51, 0xf9, 0xbf, 0x36, 0xd6, 0xa8, 0xd0, 0x33, 0x50, 0xd8, 0x63, 0x7a, 0x4a, 0xdb, 0xa6, 0x66, + 0x2e, 0x57, 0x1e, 0x0b, 0x9c, 0x9e, 0x56, 0x28, 0x0c, 0x49, 0x2b, 0x5c, 0x86, 0xfc, 0x81, 0xe5, + 0xb4, 0x65, 0xb4, 0xa6, 0xea, 0x77, 0xcb, 0x72, 0xda, 0x98, 0x63, 0x98, 0x13, 0x3d, 0x24, 0xfe, + 0x4e, 0x68, 0x85, 0xb8, 0x13, 0xdd, 0x66, 0x00, 0x2c, 0xe0, 0xcc, 0x40, 0x07, 0xfb, 0xae, 0x4f, + 0xb9, 0xc6, 0xdc, 0xf0, 0x4c, 0x09, 0x03, 0xdd, 0x52, 0x50, 0xac, 0x51, 0x70, 0x97, 0x6f, 0x50, + 0xb2, 0xe7, 0xfa, 0x16, 0x11, 0xc6, 0x45, 0xd2, 0xd7, 0x15, 0x14, 0x6b, 0x14, 0xe5, 0x3f, 0xcb, + 0xc2, 0xd3, 0xa7, 0x74, 0x51, 0x30, 0x86, 0x98, 0xf1, 0x06, 0xcc, 0xf0, 0x96, 0x8d, 0x27, 0xca, + 0x55, 0x1f, 0xbf, 0xae, 0xe1, 0x70, 0x8c, 0x12, 0x1d, 0xc2, 0x8c, 0xe1, 0x59, 0xa1, 0xbe, 0x41, + 0x29, 0xc7, 0x6d, 0xe9, 0x47, 0x47, 0xb5, 0xa5, 0xfd, 0x2a, 0x1c, 0x95, 0xab, 0x21, 0x02, 0x1c, + 0x2b, 0xa7, 0xfc, 0x93, 0x0c, 0x5c, 0x3e, 0xad, 0xd1, 0x7a, 0x82, 0x8d, 0xdc, 0x99, 0x07, 0x1b, + 0x3b, 0xf1, 0x60, 0xe3, 0x63, 0xef, 0xa6, 0xce, 0xc1, 0x80, 0xb8, 0xe3, 0x32, 0x5c, 0x1a, 0xc0, + 0x25, 0x57, 0xf2, 0x6c, 0x61, 0x1e, 0x86, 0xe9, 0x63, 0x08, 0xb0, 0x36, 0xe3, 0x75, 0xbe, 0x32, + 0x6a, 0x9d, 0x07, 0x54, 0xef, 0x3f, 0x73, 0x2a, 0xac, 0xda, 0x14, 0x9a, 0xa1, 0x65, 0xc8, 0x5a, + 0x9e, 0x34, 0x47, 0x20, 0x99, 0xb2, 0xeb, 0x4d, 0x9c, 0xb5, 0x3c, 0x95, 0x10, 0xc9, 0x0e, 0x4c, + 0x88, 0x3c, 0x0f, 0xc5, 0x6e, 0xc0, 0x22, 0x25, 0xb5, 0x96, 0x51, 0xb5, 0xb9, 0x2b, 0xe1, 0x58, + 0x51, 0xf0, 0x20, 0xcd, 0x08, 0x82, 0xb7, 0x5c, 0xbf, 0x2d, 0xd7, 0x30, 0x22, 0x48, 0x93, 0x30, + 0xac, 0xb0, 0x6c, 0x4e, 0x7b, 0xbe, 0x75, 0x28, 0x03, 0xe1, 0x42, 0x14, 0xc6, 0x37, 0x15, 0x14, + 0x6b, 0x14, 0x9c, 0xde, 0x08, 0x82, 0xe6, 0xbe, 0x6f, 0x04, 0x44, 0xae, 0x5d, 0x04, 0xbd, 0x82, + 0x62, 0x8d, 0x02, 0x99, 0x30, 0x61, 0x1b, 0x3b, 0xc4, 0x16, 0x56, 0x68, 0xfa, 0xda, 0xab, 0xa3, + 0x36, 0xac, 0x6c, 0xb6, 0xca, 0x06, 0xe7, 0x16, 0xd1, 0x88, 0x5a, 0xbc, 0x0a, 0x20, 0x96, 0xa2, + 0x51, 0x15, 0x26, 0x98, 0xaf, 0xa2, 0x61, 0xf4, 0xf4, 0xa4, 0x36, 0x30, 0x2a, 0xa6, 0xeb, 0x13, + 0xbe, 0x7c, 0x66, 0x14, 0x91, 0x08, 0xfe, 0x19, 0x60, 0xc9, 0xb8, 0xfc, 0x0a, 0x4c, 0x6b, 0x25, + 0xa5, 0xf2, 0x44, 0x3f, 0xca, 0xc2, 0xbc, 0x54, 0xba, 0xe9, 0xbb, 0x1e, 0xf1, 0xe9, 0x11, 0xda, + 0x80, 0xa5, 0x8e, 0x71, 0x2f, 0xdc, 0xe3, 0x20, 0xfe, 0xa1, 0x65, 0x92, 0xad, 0x6e, 0x47, 0x26, + 0x62, 0x4a, 0x2c, 0x2a, 0xdd, 0xec, 0x83, 0xc7, 0x7d, 0xb9, 0xd0, 0x87, 0x61, 0xb6, 0x63, 0xdc, + 0xdb, 0x72, 0xdb, 0xa4, 0xe9, 0xb6, 0x99, 0x18, 0x31, 0x4e, 0x16, 0x59, 0xcc, 0xb0, 0xa9, 0x23, + 0x70, 0x9c, 0x0e, 0x7d, 0x29, 0x03, 0xb3, 0x2e, 0xf3, 0x18, 0xae, 0xdd, 0xc6, 0x06, 0xb5, 0x5c, + 0x69, 0xc6, 0xea, 0xa3, 0xf6, 0x42, 0x58, 0xa1, 0xca, 0x6d, 0x5d, 0x8a, 0xe8, 0x0d, 0x15, 0xb6, + 0xc4, 0x70, 0x38, 0x5e, 0xe0, 0xf2, 0x27, 0x01, 0xf5, 0xf2, 0xa6, 0x6a, 0xdf, 0xff, 0x28, 0xa8, + 0xf6, 0x0d, 0x6d, 0x04, 0xfa, 0x59, 0x28, 0x9a, 0x86, 0x67, 0x98, 0x16, 0x65, 0x42, 0x58, 0x95, + 0x3e, 0x3e, 0x6a, 0x95, 0x42, 0x19, 0x95, 0xba, 0x14, 0x20, 0x6a, 0x73, 0x39, 0x9c, 0x4e, 0x21, + 0xf8, 0xfe, 0xf1, 0xca, 0x4c, 0x48, 0xcb, 0x0c, 0x06, 0x56, 0x25, 0xa2, 0x5f, 0xca, 0xc0, 0xb4, + 0x61, 0xdb, 0xae, 0x69, 0x50, 0x9e, 0x06, 0x13, 0x36, 0xa3, 0x9a, 0x5a, 0x83, 0x6a, 0x24, 0x43, + 0x28, 0x11, 0x6e, 0x56, 0x4e, 0x6b, 0x98, 0x1e, 0x3d, 0xf4, 0xa2, 0x59, 0x0f, 0x4f, 0xc9, 0x6f, + 0x1e, 0x8a, 0x30, 0x45, 0x3e, 0xf1, 0xa0, 0x8a, 0x90, 0xb6, 0x50, 0xe3, 0xbd, 0x2a, 0xa1, 0x17, + 0xc2, 0x7b, 0x94, 0x88, 0x0a, 0x5d, 0x3e, 0x80, 0xd9, 0x58, 0x53, 0xf6, 0xe9, 0xdc, 0x86, 0xde, + 0xb9, 0x43, 0x0c, 0x77, 0x25, 0x3c, 0xb4, 0x55, 0xf9, 0x74, 0xd7, 0x70, 0xa8, 0x45, 0x8f, 0xb4, + 0xc1, 0xb0, 0xec, 0xc0, 0x42, 0xb2, 0xd5, 0x1e, 0x6a, 0x79, 0x36, 0xcc, 0xc5, 0x1b, 0xe7, 0x61, + 0x96, 0x56, 0xfe, 0xd6, 0x45, 0xe5, 0xf3, 0xf8, 0xee, 0xd7, 0x27, 0x00, 0x76, 0x2d, 0xc7, 0xb0, + 0xad, 0xb7, 0x89, 0x1f, 0xf0, 0x81, 0x3e, 0x55, 0x5b, 0x61, 0xd6, 0xf6, 0x35, 0x05, 0xbd, 0x7f, + 0xbc, 0x32, 0xab, 0xbe, 0x78, 0xac, 0xaa, 0xb1, 0xa4, 0xcf, 0x99, 0xb5, 0xad, 0xc0, 0xb3, 0x8d, + 0xa3, 0x7e, 0x39, 0xb3, 0x46, 0x84, 0xc2, 0x3a, 0x9d, 0xca, 0xd0, 0xe6, 0x07, 0x66, 0x68, 0x53, + 0xc4, 0xb5, 0x0d, 0x98, 0x76, 0x08, 0x7d, 0xcb, 0xf5, 0x0f, 0xe4, 0xbe, 0x0c, 0x23, 0x2f, 0x87, + 0x3a, 0x6c, 0x45, 0xa8, 0xfb, 0xf1, 0x4f, 0xac, 0xb3, 0xb1, 0x95, 0x96, 0xfc, 0x6c, 0x10, 0x66, + 0x45, 0x79, 0x86, 0x4c, 0xdb, 0x5b, 0xda, 0xd2, 0x91, 0x38, 0x4e, 0xab, 0xa5, 0x0e, 0xeb, 0xeb, + 0x0d, 0xcc, 0x93, 0x64, 0xbd, 0xa9, 0x43, 0x86, 0xc2, 0x3a, 0x1d, 0xba, 0x0a, 0xd3, 0x81, 0xb0, + 0xd9, 0x9c, 0xed, 0x82, 0xa8, 0x28, 0x63, 0x69, 0x45, 0x60, 0xac, 0xd3, 0xa0, 0x55, 0x98, 0x6a, + 0x3b, 0x41, 0xc3, 0xed, 0x18, 0x96, 0xc3, 0x33, 0x6d, 0xda, 0x39, 0x82, 0xc6, 0x56, 0x4b, 0x20, + 0x70, 0x44, 0x83, 0x30, 0x3c, 0x2e, 0xf2, 0x2b, 0x55, 0x9b, 0xe7, 0x4d, 0xa8, 0x75, 0x48, 0x44, + 0xf8, 0x0e, 0x7c, 0x70, 0x2c, 0x9f, 0x1c, 0xaf, 0x3c, 0xde, 0xec, 0x4b, 0x81, 0x07, 0x70, 0x22, + 0x17, 0x8a, 0xbb, 0x62, 0x09, 0x1e, 0xc8, 0x15, 0xf5, 0x6a, 0xca, 0x8c, 0x81, 0xea, 0x9f, 0xa2, + 0x04, 0xb0, 0x51, 0x99, 0x48, 0x2b, 0x61, 0x55, 0x08, 0x7a, 0x8b, 0xc5, 0x1c, 0xdc, 0xaf, 0xb0, + 0x75, 0xc4, 0xcc, 0xa8, 0xc7, 0xac, 0xe2, 0x1e, 0xa9, 0xf6, 0xfe, 0x30, 0xf0, 0x6f, 0x2a, 0x59, + 0x3c, 0xd3, 0x1f, 0x27, 0xc3, 0x5a, 0x51, 0xe8, 0xf3, 0x30, 0x65, 0x88, 0xed, 0x2a, 0x12, 0x94, + 0x66, 0xb9, 0xad, 0x5c, 0x4d, 0x19, 0x8f, 0x44, 0xf3, 0x47, 0x02, 0x02, 0x1c, 0xc9, 0x44, 0xbf, + 0x98, 0x81, 0xf9, 0xb6, 0x6b, 0x1e, 0x10, 0x7f, 0xed, 0x1e, 0xf5, 0x8d, 0xaa, 0xbf, 0x17, 0x94, + 0xe6, 0xd2, 0x39, 0x07, 0x36, 0xef, 0x2b, 0x8d, 0xb8, 0x0c, 0x61, 0x95, 0x9f, 0x90, 0x25, 0xcf, + 0x27, 0xb0, 0x38, 0x59, 0x24, 0xf3, 0x4f, 0x0b, 0x07, 0xdd, 0x1d, 0x62, 0x13, 0x1a, 0xe9, 0x31, + 0xcf, 0xf5, 0xa8, 0xa5, 0xd2, 0xe3, 0x56, 0x42, 0x88, 0x50, 0x44, 0x65, 0x0d, 0x92, 0x68, 0xdc, + 0x53, 0x2a, 0xfa, 0x72, 0x06, 0x90, 0xe1, 0x59, 0x22, 0x01, 0x12, 0x29, 0xb3, 0xc0, 0x95, 0x69, + 0xa4, 0x52, 0xa6, 0xda, 0x23, 0x46, 0xa8, 0xa3, 0xb6, 0x44, 0xaa, 0xcd, 0xf5, 0x04, 0x01, 0xee, + 0x53, 0x36, 0xfa, 0x76, 0x06, 0x96, 0x4d, 0xd7, 0xa1, 0xbe, 0x6b, 0xdb, 0xac, 0x5f, 0x1d, 0x63, + 0x4f, 0x57, 0x6d, 0x91, 0xab, 0xb6, 0x91, 0x4a, 0xb5, 0xfa, 0x40, 0x71, 0x42, 0xc5, 0x70, 0x7e, + 0x2c, 0x0f, 0x26, 0xc4, 0xa7, 0xe8, 0xc4, 0x5b, 0x31, 0x90, 0x39, 0x4a, 0x4d, 0x55, 0xf4, 0x00, + 0xad, 0xd8, 0xea, 0x11, 0x93, 0x68, 0xc5, 0x5e, 0x02, 0xdc, 0xa7, 0x6c, 0x74, 0x08, 0x4b, 0x66, + 0x32, 0xc7, 0x8c, 0xc9, 0x6e, 0x69, 0x49, 0xe6, 0x86, 0xfa, 0x44, 0xe0, 0x1b, 0xae, 0x69, 0xd8, + 0x62, 0x99, 0x8e, 0xc9, 0x2e, 0xf1, 0x89, 0x63, 0x12, 0x11, 0x0b, 0xd7, 0xfb, 0x48, 0xc2, 0x7d, + 0xe5, 0xa3, 0x3a, 0xe4, 0x09, 0x35, 0xdb, 0xa5, 0x8b, 0xbc, 0x9c, 0xe1, 0x79, 0xd2, 0x35, 0x6a, + 0xb6, 0x45, 0x12, 0x9b, 0xfd, 0xc2, 0x9c, 0x19, 0x7d, 0x0a, 0xd0, 0xbe, 0x1b, 0x50, 0xb6, 0x56, + 0xaa, 0x06, 0x2c, 0x5e, 0xe6, 0xeb, 0xaa, 0x27, 0x78, 0x22, 0x47, 0x35, 0xc4, 0xcd, 0x1e, 0x0a, + 0xdc, 0x87, 0x0b, 0x51, 0xe5, 0xb0, 0x78, 0x9f, 0x94, 0xd2, 0xad, 0x99, 0x79, 0x9f, 0x6c, 0x45, + 0xfc, 0xa2, 0x33, 0x2e, 0x24, 0xfc, 0x1d, 0xef, 0x05, 0xbd, 0x18, 0xe4, 0xc3, 0x7c, 0x60, 0x1a, + 0xb6, 0xe5, 0xec, 0x85, 0x76, 0xa8, 0xf4, 0xe4, 0x83, 0x19, 0x34, 0x65, 0x56, 0x5a, 0x71, 0x79, + 0x38, 0x59, 0x00, 0xfa, 0x02, 0xcc, 0xee, 0x68, 0x47, 0x7f, 0x83, 0xd2, 0xf2, 0x88, 0x87, 0x7f, + 0xf4, 0x03, 0xc3, 0x91, 0x0f, 0xd6, 0xa1, 0x01, 0x8e, 0x8b, 0x5e, 0xae, 0xc1, 0x52, 0x3f, 0x23, + 0x98, 0x66, 0xe1, 0xb0, 0x5c, 0x87, 0x8b, 0x7d, 0x0d, 0x58, 0x2a, 0x21, 0x6b, 0xf0, 0xc4, 0x00, + 0xc3, 0x93, 0x4a, 0xcc, 0x26, 0xac, 0x0c, 0x31, 0x12, 0x69, 0xb5, 0x1a, 0x30, 0x91, 0x53, 0x89, + 0xf9, 0x38, 0x2c, 0x24, 0xc7, 0x5e, 0xaa, 0xa5, 0xd9, 0x37, 0x00, 0x66, 0x63, 0x07, 0xf9, 0x50, + 0x19, 0x26, 0x6c, 0xd6, 0x6f, 0x6d, 0xb9, 0x7d, 0xc4, 0xf7, 0x16, 0x37, 0x38, 0x04, 0x4b, 0x8c, + 0x1e, 0x0d, 0x66, 0x87, 0x44, 0x83, 0x2f, 0xc5, 0x8f, 0xa7, 0xbe, 0x27, 0x79, 0x3c, 0x35, 0x3c, + 0x1c, 0x18, 0x3b, 0x4c, 0x45, 0x00, 0xcc, 0x68, 0x0f, 0x26, 0x9f, 0xee, 0x84, 0x8c, 0xda, 0x93, + 0x89, 0x32, 0x8b, 0xda, 0xb6, 0x8d, 0x26, 0x58, 0xdf, 0x32, 0x2f, 0x9c, 0xbe, 0x65, 0xae, 0xed, + 0xc2, 0x4f, 0x9c, 0xba, 0x0b, 0xff, 0xa6, 0x1e, 0xa0, 0x4c, 0xa6, 0x9b, 0xcf, 0xf2, 0x20, 0x8e, + 0x76, 0x1a, 0x23, 0x94, 0xa4, 0x47, 0x28, 0x5f, 0x84, 0x62, 0xb8, 0x02, 0xe1, 0x01, 0x67, 0x8a, + 0xc8, 0x2b, 0x5c, 0xff, 0xa9, 0x55, 0x6a, 0x31, 0x84, 0x68, 0x71, 0x57, 0x08, 0xc2, 0xaa, 0x18, + 0xd1, 0x1d, 0xf2, 0x70, 0x8a, 0x88, 0x53, 0x53, 0x75, 0x87, 0xe4, 0xd4, 0xbb, 0x23, 0x14, 0x86, + 0x35, 0xc1, 0x2c, 0x6a, 0xd7, 0xc3, 0xef, 0xe9, 0x78, 0xd4, 0x3e, 0x30, 0x04, 0x6f, 0xc0, 0x82, + 0xe3, 0xb6, 0xf9, 0xef, 0x4d, 0x23, 0x38, 0x68, 0x59, 0x6f, 0x13, 0x1e, 0x92, 0x16, 0xa2, 0x30, + 0x67, 0x2b, 0x81, 0xc7, 0x3d, 0x1c, 0xe8, 0x19, 0x28, 0xb4, 0x9d, 0x60, 0xbd, 0x29, 0xb7, 0xa1, + 0x55, 0x52, 0xb0, 0xb1, 0xd5, 0x5a, 0x6f, 0x62, 0x81, 0x63, 0x0b, 0x04, 0x9f, 0xec, 0x59, 0x01, + 0xf5, 0x8f, 0xd6, 0x9b, 0x22, 0x30, 0x94, 0x0b, 0x04, 0x1c, 0x81, 0xb1, 0x4e, 0xc3, 0x0f, 0x7c, + 0x13, 0x36, 0xe6, 0x0c, 0xff, 0x48, 0xab, 0x82, 0xdc, 0xbe, 0x89, 0x0e, 0x7c, 0xf7, 0xa1, 0xc1, + 0x7d, 0x39, 0x93, 0x8b, 0x9b, 0x85, 0x11, 0x17, 0x37, 0xba, 0x22, 0x1a, 0x51, 0x69, 0x71, 0x80, + 0x22, 0xba, 0xa0, 0xbe, 0x9c, 0x4c, 0x62, 0xb2, 0x19, 0xd7, 0x9b, 0x87, 0x2f, 0x97, 0x10, 0x6f, + 0x7c, 0x25, 0x71, 0xab, 0x0f, 0x0d, 0xee, 0xcb, 0x39, 0x40, 0xe2, 0x75, 0xbe, 0x12, 0x3b, 0x5d, + 0xe2, 0xf5, 0xbe, 0x12, 0xaf, 0xa3, 0x06, 0x00, 0x8b, 0x68, 0xc5, 0x91, 0x79, 0x1e, 0xda, 0x4c, + 0xd5, 0xde, 0x17, 0x8e, 0xc3, 0x5b, 0x0a, 0xc3, 0x56, 0x3b, 0xd1, 0x17, 0x5f, 0x8d, 0x6a, 0x7c, + 0xe5, 0x6f, 0xe5, 0x60, 0xaa, 0xee, 0x3a, 0xbb, 0xd6, 0xde, 0xa6, 0x31, 0x8e, 0xcb, 0x4c, 0xdb, + 0x90, 0xe7, 0xd2, 0x45, 0x5a, 0xea, 0xe5, 0xe1, 0x53, 0x2d, 0xd4, 0xad, 0xd2, 0x30, 0xa8, 0x21, + 0x22, 0x10, 0xb5, 0x8a, 0x67, 0x20, 0xcc, 0xe5, 0x21, 0x07, 0x60, 0xc7, 0x72, 0x0c, 0xff, 0xa8, + 0x21, 0xf6, 0x1d, 0x46, 0xdc, 0x5c, 0x56, 0xd2, 0x6b, 0x8a, 0x59, 0x94, 0xa1, 0x6a, 0x11, 0x21, + 0xb0, 0x56, 0xc2, 0xf2, 0x87, 0x61, 0x4a, 0x11, 0xa7, 0x72, 0x6b, 0x1f, 0x83, 0xf9, 0x44, 0x59, + 0xc3, 0xd8, 0x67, 0x74, 0xaf, 0xf6, 0x97, 0x19, 0x98, 0x55, 0x5a, 0x8f, 0x61, 0xef, 0xe1, 0x76, + 0x7c, 0xef, 0xe1, 0x83, 0xa3, 0x37, 0xe9, 0x80, 0xdd, 0x07, 0x7e, 0x97, 0xc0, 0x77, 0x9d, 0x9b, + 0xcd, 0xea, 0x79, 0xbc, 0x4b, 0x20, 0x34, 0x3b, 0xcb, 0xbb, 0x04, 0x52, 0xe2, 0xe9, 0xc7, 0xe4, + 0xf9, 0x86, 0x92, 0xa0, 0x3c, 0x97, 0x1b, 0x4a, 0x42, 0xb5, 0x01, 0x5d, 0xba, 0x0f, 0x17, 0x24, + 0xc1, 0xc3, 0xbe, 0x88, 0xf2, 0xb5, 0xa8, 0x99, 0xce, 0xe5, 0x25, 0xaa, 0x1f, 0x65, 0x61, 0x36, + 0xd6, 0xe1, 0x69, 0x0e, 0xe3, 0x5f, 0x8d, 0x1f, 0xc6, 0x4f, 0x77, 0xdd, 0x29, 0x97, 0xe2, 0xba, + 0x53, 0xfe, 0x4c, 0xae, 0x3b, 0x15, 0x7e, 0x0a, 0xd7, 0x9d, 0xfe, 0x34, 0x03, 0x7c, 0xa9, 0x8c, + 0x6e, 0x41, 0xc1, 0x66, 0x2b, 0x76, 0x39, 0x39, 0x86, 0x9b, 0x25, 0xbe, 0xbe, 0xe7, 0xeb, 0x6d, + 0x7e, 0xd6, 0x80, 0x7f, 0x62, 0x21, 0x03, 0xbd, 0xd1, 0x73, 0x37, 0xf5, 0x85, 0x91, 0xef, 0xa6, + 0x72, 0x91, 0x83, 0xee, 0xa3, 0xfe, 0x1f, 0x28, 0x0d, 0xba, 0xc3, 0xfa, 0xee, 0xb6, 0x5c, 0xcb, + 0xdf, 0xcf, 0xc0, 0x8c, 0xae, 0x02, 0x3f, 0xeb, 0xe9, 0xb4, 0x3d, 0x97, 0xef, 0x34, 0x8a, 0x64, + 0xbc, 0x38, 0xeb, 0x19, 0x02, 0x71, 0x84, 0x67, 0xc3, 0xc6, 0x34, 0x5e, 0xb3, 0xec, 0x70, 0xa8, + 0xa9, 0x61, 0x53, 0xaf, 0x32, 0x28, 0x96, 0x58, 0x36, 0xbd, 0x4c, 0xe2, 0x53, 0x4e, 0x99, 0xd8, + 0xd8, 0xad, 0x4b, 0x38, 0x56, 0x14, 0x6c, 0xa8, 0x1f, 0x90, 0x23, 0x4e, 0x9c, 0x8f, 0x0f, 0xf5, + 0x5b, 0x02, 0x8c, 0x43, 0x7c, 0xb9, 0x01, 0x79, 0xce, 0xf2, 0x1e, 0xc8, 0x05, 0xbe, 0x29, 0x5b, + 0x41, 0x5d, 0xbd, 0x6d, 0xf9, 0x26, 0x66, 0x70, 0x86, 0x6e, 0xab, 0xc3, 0xfa, 0x0a, 0xdd, 0x08, + 0x28, 0x66, 0xf0, 0xf2, 0x9f, 0x64, 0x20, 0x7b, 0xb3, 0x8a, 0xea, 0x90, 0xa3, 0x07, 0x44, 0x8e, + 0x84, 0x0f, 0x0c, 0xed, 0xb9, 0x3b, 0xb7, 0xd6, 0x6e, 0x56, 0xe5, 0xb1, 0x4d, 0xf6, 0x13, 0x33, + 0x6e, 0xf4, 0x79, 0x00, 0xba, 0x6f, 0xf9, 0xed, 0xa6, 0xe1, 0xd3, 0xa3, 0x91, 0x47, 0xc1, 0x1d, + 0xc5, 0x72, 0xb3, 0x5a, 0x5b, 0x38, 0x39, 0x5e, 0x99, 0xd1, 0x21, 0x58, 0x13, 0x59, 0xfe, 0xe5, + 0x2c, 0xe4, 0x6f, 0x12, 0xbb, 0x33, 0x06, 0xa7, 0x77, 0x2b, 0xe6, 0xf4, 0x9e, 0x1d, 0x7e, 0x54, + 0x90, 0xd8, 0x9d, 0x81, 0x1e, 0xaf, 0x95, 0xf0, 0x78, 0xcf, 0x8d, 0x26, 0xee, 0x74, 0x77, 0xf7, + 0xe7, 0x19, 0x28, 0x32, 0xb2, 0x31, 0xf8, 0xba, 0x4f, 0xc5, 0x7d, 0xdd, 0xfb, 0x47, 0x52, 0x7f, + 0x80, 0xa3, 0x7b, 0x19, 0x16, 0x18, 0x36, 0xe6, 0xe5, 0xc2, 0xdb, 0x20, 0x99, 0x81, 0xb7, 0x41, + 0xbe, 0x2a, 0x2b, 0x7b, 0x2e, 0x3d, 0xd6, 0x3f, 0x65, 0x01, 0xa2, 0x0e, 0x7b, 0xe4, 0xae, 0xce, + 0xd4, 0x5d, 0xb1, 0x39, 0xbf, 0xde, 0xac, 0x6e, 0x9e, 0xc3, 0x39, 0xcf, 0xd4, 0x3a, 0xc3, 0x39, + 0xcf, 0xc5, 0x0d, 0x9f, 0xf3, 0x8c, 0xec, 0x3c, 0xce, 0x79, 0xa6, 0xd7, 0xe0, 0x39, 0xcf, 0xb0, + 0x0f, 0x30, 0xe7, 0xc3, 0x26, 0x3e, 0x97, 0x73, 0x3e, 0xea, 0xb0, 0x47, 0x73, 0xfe, 0xcc, 0xe7, + 0xfc, 0x46, 0xad, 0xfe, 0xda, 0x39, 0x9c, 0xf3, 0x4c, 0xad, 0x33, 0x9c, 0xf3, 0x5c, 0xdc, 0xf0, + 0x39, 0xcf, 0xc8, 0xce, 0xe3, 0x9c, 0x67, 0x7a, 0x0d, 0x98, 0xf3, 0xbf, 0x9a, 0x81, 0x05, 0x86, + 0x7e, 0xc8, 0xcb, 0x59, 0x36, 0x37, 0x0c, 0x93, 0x5a, 0xbd, 0x73, 0xa3, 0xca, 0xa1, 0x58, 0x62, + 0xb9, 0x35, 0x09, 0x3b, 0xef, 0x5c, 0x5a, 0x93, 0x68, 0x28, 0x3c, 0xb2, 0x26, 0x67, 0x6a, 0x4d, + 0xfe, 0x31, 0x0b, 0x53, 0x6a, 0xe9, 0xca, 0x6f, 0xcd, 0x1a, 0xd4, 0x68, 0x58, 0x7e, 0xb2, 0x6d, + 0x1b, 0x02, 0x8c, 0x43, 0x3c, 0xfa, 0x02, 0x4c, 0x11, 0xb5, 0x17, 0x2f, 0xa6, 0xc4, 0x2b, 0xa3, + 0x2f, 0x92, 0x2b, 0x89, 0x0d, 0x78, 0x35, 0xd0, 0xa3, 0x7d, 0xf7, 0x48, 0x3c, 0xbf, 0x5b, 0xc4, + 0xf7, 0x20, 0xd9, 0xa2, 0xb0, 0x55, 0xdd, 0x12, 0x07, 0xd2, 0xc3, 0xbb, 0x45, 0x31, 0x0c, 0x4e, + 0x50, 0xa2, 0x97, 0x61, 0xc6, 0x23, 0x1a, 0x67, 0x9e, 0x73, 0xf2, 0xa5, 0x54, 0x53, 0x83, 0xe3, + 0x18, 0xd5, 0xf2, 0x47, 0x61, 0xee, 0xc1, 0x77, 0x16, 0xf9, 0xc3, 0x1d, 0x1b, 0xee, 0x5e, 0xdd, + 0xb5, 0x6d, 0x62, 0x8e, 0xe7, 0xdd, 0xa6, 0xb4, 0x0f, 0x77, 0xe8, 0xea, 0x9d, 0xe1, 0xc3, 0x1d, + 0x31, 0xb1, 0xc3, 0x1f, 0xee, 0xd0, 0xc9, 0xcf, 0xe3, 0xc3, 0x1d, 0xba, 0x7e, 0x03, 0x4c, 0x79, + 0x07, 0x4a, 0x3a, 0xd5, 0xc3, 0x4e, 0x50, 0x7e, 0x3d, 0xd1, 0x6a, 0xe7, 0xd2, 0x62, 0x9f, 0x64, + 0x01, 0xf5, 0x8e, 0x84, 0x47, 0x96, 0xfb, 0x4c, 0x2d, 0xf7, 0x57, 0xb2, 0x30, 0x19, 0x5e, 0xaf, + 0x38, 0x7f, 0xfb, 0x1c, 0x52, 0xb3, 0x33, 0xdc, 0xe7, 0x08, 0x25, 0x9e, 0x6e, 0x55, 0x02, 0x98, + 0x93, 0x84, 0xe1, 0x13, 0x1e, 0xd7, 0x63, 0x4f, 0x28, 0x94, 0x13, 0x4f, 0x78, 0xa0, 0x38, 0x75, + 0xfc, 0xd8, 0xae, 0x3c, 0x39, 0x90, 0x3c, 0xa8, 0x21, 0x69, 0x71, 0x88, 0xe7, 0x4f, 0x37, 0x48, + 0x39, 0x8f, 0x9e, 0x6e, 0x38, 0xb7, 0x4f, 0x37, 0x7c, 0x2f, 0x03, 0xd3, 0xb2, 0x97, 0xce, 0xe3, + 0x16, 0x58, 0x78, 0x24, 0xad, 0xbf, 0x9b, 0xf9, 0x66, 0x41, 0x29, 0xff, 0x53, 0x3a, 0x1c, 0xff, + 0x20, 0x0f, 0x4a, 0x0c, 0x3f, 0x1c, 0x2f, 0x76, 0x29, 0x0a, 0xa7, 0xee, 0x52, 0x4c, 0x8c, 0x74, + 0x31, 0x6c, 0x32, 0xd5, 0xc5, 0xb0, 0x62, 0x8a, 0x8b, 0x61, 0x53, 0x29, 0x2f, 0x86, 0xc1, 0xd0, + 0x8b, 0x61, 0x6f, 0xaa, 0x8b, 0x61, 0xd3, 0x7c, 0x74, 0xdc, 0x48, 0x63, 0x4f, 0x53, 0xde, 0x0a, + 0x9b, 0xf9, 0x29, 0xdc, 0x0a, 0xfb, 0xef, 0x1c, 0xcc, 0xc6, 0xec, 0xf5, 0x48, 0x47, 0xe3, 0x5e, + 0x8a, 0x3b, 0xfd, 0xde, 0xf3, 0x6e, 0x52, 0xe4, 0x29, 0xe7, 0xdd, 0x72, 0x23, 0x1e, 0xb0, 0x4a, + 0x5a, 0xeb, 0x34, 0xe7, 0xdd, 0xf2, 0x23, 0x9f, 0x77, 0x2b, 0x8c, 0x7e, 0xde, 0x6d, 0x62, 0xc4, + 0xf3, 0x6e, 0x71, 0x77, 0x35, 0xe4, 0xbc, 0x9b, 0x05, 0xd3, 0xd2, 0x8c, 0xad, 0x3b, 0xbb, 0x2e, + 0x9f, 0x21, 0xa3, 0x3c, 0x9f, 0x11, 0xf6, 0xdc, 0x51, 0x40, 0x49, 0x87, 0x71, 0x46, 0x33, 0x7d, + 0x33, 0x12, 0x87, 0x75, 0xd9, 0xe5, 0x7f, 0xcf, 0xc3, 0x62, 0x0f, 0x1f, 0x0b, 0x80, 0x43, 0xa2, + 0x46, 0x32, 0x00, 0x0e, 0x45, 0x35, 0x70, 0x44, 0xc3, 0x82, 0xb3, 0x80, 0xb3, 0xdf, 0xbd, 0xab, + 0xec, 0x92, 0xea, 0x9a, 0x96, 0xc2, 0x60, 0x8d, 0x8a, 0xb5, 0xf7, 0x8e, 0xeb, 0x32, 0x3b, 0x96, + 0x08, 0xfc, 0x6a, 0x1c, 0x8a, 0x25, 0x16, 0xbd, 0x0a, 0xb3, 0x07, 0xc4, 0x77, 0x88, 0x3d, 0xe0, + 0xc9, 0xb5, 0x5b, 0x3a, 0x12, 0xc7, 0x69, 0x59, 0xff, 0xbb, 0xc1, 0x7a, 0xa7, 0xcf, 0x79, 0xc7, + 0xdb, 0x2d, 0x0e, 0xc6, 0x21, 0x1e, 0x7d, 0x06, 0x9e, 0x48, 0xbe, 0x1f, 0x10, 0x96, 0x28, 0x5c, + 0xd4, 0x8a, 0x64, 0x7d, 0xa2, 0xde, 0x9f, 0x0c, 0x0f, 0xe2, 0x47, 0x1f, 0x87, 0x39, 0x79, 0xc9, + 0x20, 0x94, 0x28, 0xac, 0xde, 0xe3, 0x52, 0xe2, 0xdc, 0xad, 0x18, 0x16, 0x27, 0xa8, 0x51, 0x43, + 0x5c, 0x8d, 0xe0, 0x8b, 0x94, 0x50, 0x42, 0x31, 0xfe, 0x18, 0xc2, 0xad, 0x04, 0x1e, 0xf7, 0x70, + 0xa0, 0x2a, 0xcc, 0xbb, 0xfc, 0x65, 0x0a, 0xcb, 0xd9, 0x13, 0x7d, 0x22, 0xaf, 0xef, 0xa8, 0xd3, + 0xd4, 0xb7, 0xe3, 0x68, 0x9c, 0xa4, 0x47, 0x37, 0x60, 0xc6, 0xf0, 0xcd, 0x7d, 0x8b, 0x12, 0x93, + 0x76, 0x7d, 0x61, 0x32, 0xb5, 0xab, 0xe9, 0x55, 0x0d, 0x87, 0x63, 0x94, 0x65, 0x02, 0x0b, 0xcd, + 0xed, 0x3a, 0x7e, 0xd8, 0xeb, 0xac, 0x6f, 0x65, 0x60, 0xb1, 0xc9, 0xea, 0x1b, 0x50, 0xe2, 0xd0, + 0x9a, 0x61, 0x1e, 0xac, 0x39, 0x6d, 0xb4, 0x09, 0x39, 0xd3, 0x0e, 0x64, 0xb4, 0x30, 0x7c, 0x22, + 0xc9, 0xa7, 0x68, 0x25, 0x77, 0x7d, 0xa3, 0x55, 0x9b, 0x3c, 0x39, 0x5e, 0xc9, 0xd5, 0x37, 0x5a, + 0x98, 0xc9, 0x41, 0xeb, 0x90, 0x25, 0xc1, 0xc8, 0x4b, 0xf6, 0xb8, 0xb4, 0xb5, 0x96, 0x78, 0x7e, + 0x65, 0xad, 0x85, 0xb3, 0x24, 0x28, 0x7f, 0x33, 0x0b, 0xf3, 0x91, 0xbe, 0x6b, 0x87, 0xc4, 0xa1, + 0xe3, 0x39, 0x6c, 0xa7, 0xad, 0x0a, 0x86, 0x1f, 0xb6, 0x4b, 0x68, 0x38, 0x70, 0x75, 0xf0, 0xb9, + 0xc4, 0xea, 0xe0, 0x7a, 0x6a, 0xc9, 0xa7, 0xaf, 0x12, 0xfe, 0x2e, 0x03, 0x17, 0x12, 0x1c, 0x63, + 0x08, 0x09, 0xef, 0xc6, 0x43, 0xc2, 0x17, 0xd3, 0x56, 0x6a, 0x40, 0x68, 0xf8, 0xf5, 0x6c, 0x4f, + 0x65, 0xc6, 0x97, 0x15, 0xf8, 0x19, 0x58, 0xf4, 0x92, 0xd3, 0x64, 0xe4, 0x67, 0xbe, 0x7b, 0x26, + 0x98, 0x7a, 0x72, 0xa7, 0x77, 0xee, 0xe1, 0xde, 0x72, 0xf4, 0x84, 0x42, 0x7e, 0x48, 0x4a, 0xe2, + 0xdf, 0xb2, 0x70, 0xb1, 0xef, 0x18, 0x79, 0x94, 0x95, 0x38, 0xd3, 0xac, 0xc4, 0xef, 0x64, 0x01, + 0x9a, 0xbe, 0xdb, 0x21, 0x74, 0x9f, 0x74, 0xc7, 0xf1, 0xc8, 0xc9, 0xa7, 0x63, 0x26, 0x68, 0x78, + 0x00, 0x15, 0x29, 0x37, 0xd0, 0xfa, 0x7c, 0x26, 0x61, 0x7d, 0xae, 0xa6, 0x11, 0x7a, 0xba, 0xe1, + 0xf9, 0xab, 0x0c, 0xcc, 0x45, 0xc4, 0x63, 0xb0, 0x39, 0xcd, 0xb8, 0xcd, 0x79, 0x2e, 0x45, 0x55, + 0x06, 0x26, 0x3c, 0x97, 0x22, 0x1a, 0x4c, 0x3a, 0x2e, 0xe5, 0xd1, 0x28, 0x7a, 0x0e, 0xa6, 0xde, + 0xf2, 0x2d, 0xf1, 0xa1, 0x1f, 0x10, 0x7b, 0x23, 0x04, 0xe2, 0x08, 0xcf, 0x96, 0x62, 0x3e, 0x31, + 0xda, 0x9c, 0x36, 0xcb, 0x69, 0x67, 0xc4, 0x9d, 0x0a, 0x01, 0xc3, 0x0a, 0x5b, 0xfe, 0xdd, 0x09, + 0xbd, 0xc5, 0xce, 0x63, 0xba, 0x13, 0x05, 0x00, 0x41, 0x77, 0x27, 0x8a, 0x2a, 0x47, 0x7b, 0x86, + 0x20, 0x5e, 0xa9, 0x4a, 0x4b, 0x49, 0x48, 0x9c, 0x0f, 0x8f, 0x10, 0x58, 0x2b, 0x06, 0xf9, 0x30, + 0xeb, 0xab, 0xc6, 0x27, 0x41, 0x20, 0x67, 0xfb, 0x87, 0x52, 0x94, 0x1b, 0x75, 0x5e, 0x14, 0x04, + 0x63, 0x5d, 0x26, 0x8e, 0x17, 0xc1, 0x2f, 0x96, 0xbb, 0xd4, 0xda, 0x3d, 0x92, 0xe7, 0x0c, 0x65, + 0x3c, 0x1b, 0x5d, 0x2c, 0xd7, 0x91, 0x38, 0x4e, 0x8b, 0x76, 0x61, 0xca, 0x57, 0x0f, 0x0a, 0x4d, + 0x8e, 0xa8, 0xac, 0xba, 0x51, 0x43, 0xbe, 0xd8, 0xb5, 0x7c, 0xd2, 0x21, 0x0e, 0xd5, 0x16, 0x3d, + 0xd1, 0x33, 0x42, 0x91, 0x68, 0xd6, 0xdf, 0x7e, 0xd7, 0xb9, 0xed, 0x88, 0xc7, 0xed, 0x78, 0x78, + 0x5b, 0x8c, 0xfa, 0x1b, 0x47, 0x28, 0xac, 0xd3, 0xa1, 0x4d, 0xb8, 0x60, 0xd8, 0xc4, 0xa7, 0x98, + 0x78, 0xc4, 0xa0, 0xfc, 0x95, 0xbe, 0x43, 0xc3, 0x96, 0x81, 0xad, 0x7a, 0xed, 0xac, 0xda, 0x4b, + 0x82, 0xfb, 0xf1, 0xb1, 0xe1, 0xf3, 0x96, 0x45, 0xf7, 0xb7, 0x9a, 0x0d, 0x1e, 0xdb, 0x16, 0xa3, + 0xe1, 0xf3, 0x86, 0x00, 0xe3, 0x10, 0xbf, 0xfc, 0x31, 0x98, 0x4f, 0x74, 0x7e, 0xaa, 0xb5, 0xf6, + 0x6f, 0xe6, 0x61, 0x21, 0x69, 0x7f, 0x1e, 0x39, 0xb5, 0xb3, 0x74, 0x6a, 0xa8, 0x1b, 0x9b, 0xe0, + 0x13, 0x23, 0xde, 0x69, 0x4f, 0x76, 0x4a, 0xda, 0x29, 0xfe, 0x6e, 0x07, 0xc6, 0x5f, 0x64, 0xa0, + 0x18, 0xde, 0xad, 0x1a, 0x83, 0x23, 0xbe, 0x1d, 0x73, 0xc4, 0x2f, 0x8c, 0x30, 0xb5, 0x85, 0x6a, + 0x03, 0xff, 0x47, 0xe8, 0xfb, 0x19, 0x98, 0x09, 0x89, 0xc6, 0xe0, 0x29, 0xb7, 0xe2, 0x9e, 0xf2, + 0xd9, 0x91, 0x2b, 0x30, 0xc0, 0x4f, 0x7e, 0x2d, 0x1b, 0xa9, 0xff, 0x60, 0x6e, 0x4b, 0x7f, 0x8e, + 0x24, 0x3b, 0xe2, 0x73, 0x24, 0x0f, 0x98, 0xa8, 0x7d, 0x0f, 0xe4, 0xba, 0xbe, 0x2d, 0xa3, 0x68, + 0x75, 0x10, 0xfa, 0x2e, 0xde, 0xc0, 0x0c, 0xce, 0xdc, 0x75, 0x37, 0x90, 0x22, 0x45, 0xfa, 0x63, + 0x26, 0xcc, 0xb1, 0x6e, 0xa9, 0x1c, 0xeb, 0x56, 0x32, 0xc7, 0x3a, 0x11, 0x51, 0xf6, 0xe6, 0x58, + 0xcb, 0xff, 0x95, 0x83, 0xa5, 0x7e, 0xe6, 0x1d, 0x1d, 0xc1, 0x84, 0x6d, 0x75, 0x2c, 0x79, 0xcc, + 0x7c, 0x94, 0x99, 0xd6, 0x4f, 0x4c, 0x65, 0x83, 0xcb, 0x10, 0x33, 0xed, 0x92, 0xca, 0x92, 0x72, + 0x60, 0xcf, 0x83, 0x3e, 0xb2, 0x40, 0xf4, 0x73, 0xfc, 0x61, 0xf3, 0x2f, 0x76, 0x49, 0x40, 0xc3, + 0x71, 0x50, 0x7f, 0xb0, 0xd2, 0xb1, 0x94, 0x92, 0x78, 0x5f, 0x29, 0x04, 0xf7, 0xbe, 0xaf, 0x14, + 0x16, 0xbb, 0x6c, 0xc1, 0xb4, 0xa6, 0xfa, 0x43, 0x7d, 0xdf, 0xe7, 0x00, 0x66, 0x63, 0x7a, 0x3e, + 0xd4, 0xe7, 0x7d, 0x6c, 0x58, 0xec, 0xc9, 0x87, 0xb0, 0x39, 0x61, 0xbb, 0x7b, 0x2d, 0xd2, 0x67, + 0x4e, 0x6c, 0x48, 0x38, 0x56, 0x14, 0xcc, 0xab, 0x51, 0xd7, 0xb3, 0x4c, 0x95, 0x1a, 0x54, 0x5e, + 0xed, 0x8e, 0x00, 0xe3, 0x10, 0x5f, 0xfe, 0x76, 0x16, 0x16, 0x92, 0x09, 0x93, 0x77, 0xf9, 0x0a, + 0xdd, 0x07, 0x60, 0x82, 0xff, 0x63, 0x1d, 0x49, 0x7a, 0xbd, 0x16, 0x87, 0x62, 0x89, 0x45, 0xab, + 0x30, 0x65, 0x39, 0x6d, 0x72, 0x8f, 0xcf, 0x96, 0x7c, 0x3c, 0x1b, 0xb5, 0x1e, 0x22, 0x70, 0x44, + 0xc3, 0x8a, 0x66, 0xf3, 0x27, 0x9c, 0x59, 0x61, 0xd1, 0x6c, 0x76, 0x61, 0x8e, 0x61, 0xcd, 0x94, + 0x98, 0x55, 0xaa, 0x99, 0xfa, 0xec, 0x5e, 0xb0, 0x08, 0x88, 0xf0, 0x63, 0x30, 0x0d, 0xe3, 0x48, + 0xc4, 0x5a, 0x05, 0x2d, 0x02, 0x8a, 0x50, 0x58, 0xa7, 0x2b, 0x37, 0x40, 0xdc, 0x57, 0x60, 0xc6, + 0xe0, 0x50, 0xb5, 0x93, 0x32, 0x06, 0xdb, 0xeb, 0x4d, 0xcc, 0xe0, 0xe8, 0x69, 0xc8, 0x1f, 0xfa, + 0x56, 0x5b, 0xb6, 0x14, 0x7f, 0x5d, 0x62, 0x1b, 0xaf, 0x37, 0x30, 0x87, 0x96, 0xff, 0x38, 0x0b, + 0x73, 0x77, 0x0c, 0xcf, 0x8b, 0x2e, 0xfc, 0x8f, 0xc1, 0xf7, 0xdc, 0x8d, 0xf9, 0x9e, 0xe1, 0xc7, + 0x54, 0xe2, 0x0a, 0x0e, 0x5c, 0x08, 0xfe, 0xff, 0xc4, 0x42, 0xf0, 0x43, 0x69, 0x05, 0x9f, 0xbe, + 0x18, 0x7c, 0x27, 0x03, 0x28, 0xce, 0x30, 0x06, 0x37, 0x77, 0x27, 0xee, 0xe6, 0x56, 0x53, 0x56, + 0x69, 0x80, 0xb3, 0xfb, 0xad, 0x0c, 0x2c, 0xc7, 0x09, 0xcf, 0xcb, 0xd1, 0xc6, 0x3f, 0xec, 0x69, + 0xe4, 0x73, 0x79, 0x64, 0xe6, 0x27, 0x59, 0x58, 0xea, 0x37, 0x78, 0x1e, 0x45, 0xf2, 0x67, 0x9a, + 0x9e, 0xc2, 0x10, 0xbb, 0x40, 0x35, 0xcc, 0xd4, 0x3d, 0x03, 0x85, 0x43, 0xcd, 0x2b, 0xa8, 0xb1, + 0xbf, 0xcd, 0xdd, 0x82, 0xc0, 0x95, 0xbf, 0x9a, 0x81, 0xf0, 0x6d, 0x67, 0xb4, 0x0a, 0xf9, 0x8e, + 0xdb, 0xee, 0xf9, 0xbf, 0x98, 0x4d, 0xb7, 0xcd, 0x9f, 0x6c, 0x93, 0x64, 0xec, 0x13, 0x73, 0x42, + 0xf4, 0x39, 0x28, 0x06, 0xd4, 0x37, 0x28, 0xd9, 0x3b, 0x1a, 0xf9, 0x3f, 0x17, 0xa5, 0x94, 0x96, + 0xe4, 0x8b, 0x46, 0x6e, 0x08, 0xc1, 0x4a, 0x66, 0xf9, 0x6f, 0x33, 0x30, 0x9f, 0xa0, 0x47, 0x6f, + 0x02, 0x74, 0x8c, 0x7b, 0x77, 0x1d, 0x9f, 0x18, 0xed, 0xa3, 0xa1, 0x16, 0xb9, 0x4b, 0x2d, 0xbb, + 0x22, 0xfe, 0x75, 0xb5, 0xb2, 0xee, 0xd0, 0xdb, 0x7e, 0x8b, 0xfa, 0x96, 0xb3, 0x27, 0xf6, 0xb7, + 0x37, 0x95, 0x1c, 0xac, 0xc9, 0x44, 0x18, 0x1e, 0x6f, 0xfb, 0x86, 0xe5, 0x6c, 0xb9, 0x6d, 0x52, + 0x23, 0xbb, 0xae, 0x4f, 0xa4, 0x0e, 0xf2, 0xd5, 0x7c, 0xfe, 0x52, 0x5b, 0xa3, 0x2f, 0x05, 0x1e, + 0xc0, 0xc9, 0x77, 0x38, 0xb6, 0x5d, 0xbb, 0xdb, 0x21, 0x0d, 0x62, 0xba, 0xe3, 0xfa, 0x3f, 0xcc, + 0xb4, 0x3b, 0x1c, 0x09, 0x0d, 0xcf, 0x70, 0x87, 0x23, 0x29, 0x79, 0xf8, 0x0e, 0x47, 0x82, 0xe3, + 0x3c, 0xee, 0x70, 0x24, 0x54, 0x1c, 0xf4, 0xf7, 0x96, 0xd9, 0x9e, 0xca, 0x9c, 0xcb, 0x44, 0xe0, + 0x55, 0x98, 0x3e, 0xe4, 0x6a, 0xde, 0x39, 0xf2, 0x48, 0x78, 0xd4, 0x98, 0xbf, 0x71, 0xb2, 0x1d, + 0x81, 0xb1, 0x4e, 0x83, 0x5e, 0x87, 0xc5, 0xb7, 0x5c, 0xff, 0xc0, 0x76, 0x8d, 0x76, 0xb5, 0xdd, + 0xb1, 0x02, 0xf5, 0x4c, 0x64, 0x31, 0xda, 0x0b, 0x79, 0x23, 0x49, 0x80, 0x7b, 0x79, 0xca, 0xdf, + 0xc9, 0xc3, 0xc5, 0xbe, 0x43, 0x24, 0x9d, 0x07, 0x89, 0x55, 0x20, 0xfb, 0xa0, 0x15, 0xc8, 0xa5, + 0xaf, 0xc0, 0xc0, 0xbf, 0xf7, 0xcc, 0xbf, 0xfb, 0xbf, 0xf7, 0x2c, 0x3c, 0x80, 0x3f, 0x9c, 0x48, + 0xe1, 0x0f, 0x27, 0xcf, 0xc4, 0x1f, 0x16, 0xc7, 0xef, 0x0f, 0x6b, 0x57, 0xde, 0xf9, 0xf1, 0xa5, + 0xc7, 0x7e, 0xf0, 0xe3, 0x4b, 0x8f, 0xfd, 0xf0, 0xc7, 0x97, 0x1e, 0xfb, 0xd2, 0xc9, 0xa5, 0xcc, + 0x3b, 0x27, 0x97, 0x32, 0x3f, 0x38, 0xb9, 0x94, 0xf9, 0xe1, 0xc9, 0xa5, 0xcc, 0xbf, 0x9c, 0x5c, + 0xca, 0x7c, 0xf9, 0x5f, 0x2f, 0x3d, 0xf6, 0xd9, 0xec, 0xe1, 0xd5, 0xff, 0x0d, 0x00, 0x00, 0xff, + 0xff, 0xf7, 0x2c, 0xe3, 0x69, 0x10, 0x7d, 0x00, 0x00, } func (m *AddonSpec) Marshal() (dAtA []byte, err error) { @@ -3382,6 +3578,49 @@ func (m *AddonSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *App) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *App) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *App) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func (m *AuthzWebhookAddr) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3429,6 +3668,39 @@ func (m *AuthzWebhookAddr) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *BootstrapApp) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BootstrapApp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BootstrapApp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.App.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func (m *BuiltinAuthzWebhookAddr) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4452,6 +4724,11 @@ func (m *ClusterFeature) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x1 i-- dAtA[i] = 0xb2 + i -= len(m.ContainerRuntime) + copy(dAtA[i:], m.ContainerRuntime) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContainerRuntime))) + i-- + dAtA[i] = 0x7a i-- if m.EnableCilium { dAtA[i] = 1 @@ -4607,7 +4884,7 @@ func (m *ClusterFeature) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ClusterList) Marshal() (dAtA []byte, err error) { +func (m *ClusterGroupAPIResourceItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4617,20 +4894,103 @@ func (m *ClusterList) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ClusterList) MarshalTo(dAtA []byte) (int, error) { +func (m *ClusterGroupAPIResourceItem) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ClusterList) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ClusterGroupAPIResourceItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Categories) > 0 { + for iNdEx := len(m.Categories) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Categories[iNdEx]) + copy(dAtA[i:], m.Categories[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Categories[iNdEx]))) + i-- + dAtA[i] = 0x4a + } + } + if len(m.ShortNames) > 0 { + for iNdEx := len(m.ShortNames) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ShortNames[iNdEx]) + copy(dAtA[i:], m.ShortNames[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ShortNames[iNdEx]))) + i-- + dAtA[i] = 0x42 + } + } + if len(m.Verbs) > 0 { + for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Verbs[iNdEx]) + copy(dAtA[i:], m.Verbs[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0x32 + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x2a + i -= len(m.Group) + copy(dAtA[i:], m.Group) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) + i-- + dAtA[i] = 0x22 + i-- + if m.Namespaced { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + i -= len(m.SingularName) + copy(dAtA[i:], m.SingularName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SingularName))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ClusterGroupAPIResourceItems) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ClusterGroupAPIResourceItems) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClusterGroupAPIResourceItems) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.APIResources) > 0 { + for iNdEx := len(m.APIResources) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.APIResources[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -4638,11 +4998,16 @@ func (m *ClusterList) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } } + i -= len(m.GroupVersion) + copy(dAtA[i:], m.GroupVersion) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.GroupVersion))) + i-- + dAtA[i] = 0x12 { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -4654,7 +5019,7 @@ func (m *ClusterList) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ClusterMachine) Marshal() (dAtA []byte, err error) { +func (m *ClusterGroupAPIResourceItemsList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4664,20 +5029,30 @@ func (m *ClusterMachine) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ClusterMachine) MarshalTo(dAtA []byte) (int, error) { +func (m *ClusterGroupAPIResourceItemsList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ClusterMachine) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ClusterGroupAPIResourceItemsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Taints) > 0 { - for iNdEx := len(m.Taints) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Taints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -4685,71 +5060,13 @@ func (m *ClusterMachine) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x42 - } - } - if len(m.Labels) > 0 { - keysForLabels := make([]string, 0, len(m.Labels)) - for k := range m.Labels { - keysForLabels = append(keysForLabels, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) - for iNdEx := len(keysForLabels) - 1; iNdEx >= 0; iNdEx-- { - v := m.Labels[string(keysForLabels[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- dAtA[i] = 0x12 - i -= len(keysForLabels[iNdEx]) - copy(dAtA[i:], keysForLabels[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForLabels[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x3a } } - if m.PassPhrase != nil { - i -= len(m.PassPhrase) - copy(dAtA[i:], m.PassPhrase) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PassPhrase))) - i-- - dAtA[i] = 0x32 - } - if m.PrivateKey != nil { - i -= len(m.PrivateKey) - copy(dAtA[i:], m.PrivateKey) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PrivateKey))) - i-- - dAtA[i] = 0x2a - } - if m.Password != nil { - i -= len(m.Password) - copy(dAtA[i:], m.Password) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Password))) - i-- - dAtA[i] = 0x22 - } - i -= len(m.Username) - copy(dAtA[i:], m.Username) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Username))) - i-- - dAtA[i] = 0x1a - i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) - i-- - dAtA[i] = 0x10 - i -= len(m.IP) - copy(dAtA[i:], m.IP) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.IP))) - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *ClusterProperty) Marshal() (dAtA []byte, err error) { +func (m *ClusterGroupAPIResourceOptions) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4759,12 +5076,177 @@ func (m *ClusterProperty) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ClusterProperty) MarshalTo(dAtA []byte) (int, error) { +func (m *ClusterGroupAPIResourceOptions) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ClusterProperty) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ClusterGroupAPIResourceOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *ClusterList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ClusterList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClusterList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ClusterMachine) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ClusterMachine) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClusterMachine) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Taints) > 0 { + for iNdEx := len(m.Taints) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Taints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.Labels) > 0 { + keysForLabels := make([]string, 0, len(m.Labels)) + for k := range m.Labels { + keysForLabels = append(keysForLabels, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) + for iNdEx := len(keysForLabels) - 1; iNdEx >= 0; iNdEx-- { + v := m.Labels[string(keysForLabels[iNdEx])] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(keysForLabels[iNdEx]) + copy(dAtA[i:], keysForLabels[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForLabels[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x3a + } + } + if m.PassPhrase != nil { + i -= len(m.PassPhrase) + copy(dAtA[i:], m.PassPhrase) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PassPhrase))) + i-- + dAtA[i] = 0x32 + } + if m.PrivateKey != nil { + i -= len(m.PrivateKey) + copy(dAtA[i:], m.PrivateKey) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PrivateKey))) + i-- + dAtA[i] = 0x2a + } + if m.Password != nil { + i -= len(m.Password) + copy(dAtA[i:], m.Password) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Password))) + i-- + dAtA[i] = 0x22 + } + i -= len(m.Username) + copy(dAtA[i:], m.Username) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Username))) + i-- + dAtA[i] = 0x1a + i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) + i-- + dAtA[i] = 0x10 + i -= len(m.IP) + copy(dAtA[i:], m.IP) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.IP))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ClusterProperty) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ClusterProperty) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClusterProperty) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4936,6 +5418,22 @@ func (m *ClusterSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.BootstrapApps) > 0 { + for iNdEx := len(m.BootstrapApps) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BootstrapApps[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd2 + } + } if len(m.ScalingMachines) > 0 { for iNdEx := len(m.ScalingMachines) - 1; iNdEx >= 0; iNdEx-- { { @@ -8939,6 +9437,19 @@ func (m *AddonSpec) Size() (n int) { return n } +func (m *App) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + func (m *AuthzWebhookAddr) Size() (n int) { if m == nil { return 0 @@ -8956,6 +9467,17 @@ func (m *AuthzWebhookAddr) Size() (n int) { return n } +func (m *BootstrapApp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.App.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + func (m *BuiltinAuthzWebhookAddr) Size() (n int) { if m == nil { return 0 @@ -9379,61 +9901,63 @@ func (m *ClusterFeature) Size() (n int) { n += 2 n += 2 n += 2 + l = len(m.ContainerRuntime) + n += 1 + l + sovGenerated(uint64(l)) l = m.Upgrade.Size() n += 2 + l + sovGenerated(uint64(l)) return n } -func (m *ClusterList) Size() (n int) { +func (m *ClusterGroupAPIResourceItem) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = m.ListMeta.Size() + l = len(m.Name) n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() + l = len(m.SingularName) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + l = len(m.Group) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Verbs) > 0 { + for _, s := range m.Verbs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.ShortNames) > 0 { + for _, s := range m.ShortNames { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Categories) > 0 { + for _, s := range m.Categories { + l = len(s) n += 1 + l + sovGenerated(uint64(l)) } } return n } -func (m *ClusterMachine) Size() (n int) { +func (m *ClusterGroupAPIResourceItems) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.IP) + l = m.ObjectMeta.Size() n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Port)) - l = len(m.Username) + l = len(m.GroupVersion) n += 1 + l + sovGenerated(uint64(l)) - if m.Password != nil { - l = len(m.Password) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.PrivateKey != nil { - l = len(m.PrivateKey) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.PassPhrase != nil { - l = len(m.PassPhrase) - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Labels) > 0 { - for k, v := range m.Labels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.Taints) > 0 { - for _, e := range m.Taints { + if len(m.APIResources) > 0 { + for _, e := range m.APIResources { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } @@ -9441,16 +9965,99 @@ func (m *ClusterMachine) Size() (n int) { return n } -func (m *ClusterProperty) Size() (n int) { +func (m *ClusterGroupAPIResourceItemsList) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.MaxClusterServiceNum != nil { - n += 1 + sovGenerated(uint64(*m.MaxClusterServiceNum)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } } - if m.MaxNodePodNum != nil { + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ClusterGroupAPIResourceOptions) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *ClusterList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ClusterMachine) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.IP) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Port)) + l = len(m.Username) + n += 1 + l + sovGenerated(uint64(l)) + if m.Password != nil { + l = len(m.Password) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.PrivateKey != nil { + l = len(m.PrivateKey) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.PassPhrase != nil { + l = len(m.PassPhrase) + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.Labels) > 0 { + for k, v := range m.Labels { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.Taints) > 0 { + for _, e := range m.Taints { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ClusterProperty) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxClusterServiceNum != nil { + n += 1 + sovGenerated(uint64(*m.MaxClusterServiceNum)) + } + if m.MaxNodePodNum != nil { n += 1 + sovGenerated(uint64(*m.MaxNodePodNum)) } if len(m.OversoldRatio) > 0 { @@ -9611,6 +10218,12 @@ func (m *ClusterSpec) Size() (n int) { n += 2 + l + sovGenerated(uint64(l)) } } + if len(m.BootstrapApps) > 0 { + for _, e := range m.BootstrapApps { + l = e.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + } return n } @@ -10960,6 +11573,17 @@ func (this *AddonSpec) String() string { }, "") return s } +func (this *App) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&App{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Spec), "AppSpec", "v11.AppSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} func (this *AuthzWebhookAddr) String() string { if this == nil { return "nil" @@ -10971,6 +11595,16 @@ func (this *AuthzWebhookAddr) String() string { }, "") return s } +func (this *BootstrapApp) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BootstrapApp{`, + `App:` + strings.Replace(strings.Replace(this.App.String(), "App", "App", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} func (this *BuiltinAuthzWebhookAddr) String() string { if this == nil { return "nil" @@ -11286,11 +11920,72 @@ func (this *ClusterFeature) String() string { `EnableMetricsServer:` + fmt.Sprintf("%v", this.EnableMetricsServer) + `,`, `IPv6DualStack:` + fmt.Sprintf("%v", this.IPv6DualStack) + `,`, `EnableCilium:` + fmt.Sprintf("%v", this.EnableCilium) + `,`, + `ContainerRuntime:` + fmt.Sprintf("%v", this.ContainerRuntime) + `,`, `Upgrade:` + strings.Replace(strings.Replace(this.Upgrade.String(), "Upgrade", "Upgrade", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } +func (this *ClusterGroupAPIResourceItem) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ClusterGroupAPIResourceItem{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `SingularName:` + fmt.Sprintf("%v", this.SingularName) + `,`, + `Namespaced:` + fmt.Sprintf("%v", this.Namespaced) + `,`, + `Group:` + fmt.Sprintf("%v", this.Group) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, + `ShortNames:` + fmt.Sprintf("%v", this.ShortNames) + `,`, + `Categories:` + fmt.Sprintf("%v", this.Categories) + `,`, + `}`, + }, "") + return s +} +func (this *ClusterGroupAPIResourceItems) String() string { + if this == nil { + return "nil" + } + repeatedStringForAPIResources := "[]ClusterGroupAPIResourceItem{" + for _, f := range this.APIResources { + repeatedStringForAPIResources += strings.Replace(strings.Replace(f.String(), "ClusterGroupAPIResourceItem", "ClusterGroupAPIResourceItem", 1), `&`, ``, 1) + "," + } + repeatedStringForAPIResources += "}" + s := strings.Join([]string{`&ClusterGroupAPIResourceItems{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `GroupVersion:` + fmt.Sprintf("%v", this.GroupVersion) + `,`, + `APIResources:` + repeatedStringForAPIResources + `,`, + `}`, + }, "") + return s +} +func (this *ClusterGroupAPIResourceItemsList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]ClusterGroupAPIResourceItems{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ClusterGroupAPIResourceItems", "ClusterGroupAPIResourceItems", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&ClusterGroupAPIResourceItemsList{`, + `Items:` + repeatedStringForItems + `,`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ClusterGroupAPIResourceOptions) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ClusterGroupAPIResourceOptions{`, + `}`, + }, "") + return s +} func (this *ClusterList) String() string { if this == nil { return "nil" @@ -11417,6 +12112,11 @@ func (this *ClusterSpec) String() string { repeatedStringForScalingMachines += strings.Replace(strings.Replace(f.String(), "ClusterMachine", "ClusterMachine", 1), `&`, ``, 1) + "," } repeatedStringForScalingMachines += "}" + repeatedStringForBootstrapApps := "[]BootstrapApp{" + for _, f := range this.BootstrapApps { + repeatedStringForBootstrapApps += strings.Replace(strings.Replace(f.String(), "BootstrapApp", "BootstrapApp", 1), `&`, ``, 1) + "," + } + repeatedStringForBootstrapApps += "}" keysForDockerExtraArgs := make([]string, 0, len(this.DockerExtraArgs)) for k := range this.DockerExtraArgs { keysForDockerExtraArgs = append(keysForDockerExtraArgs, k) @@ -11497,11 +12197,12 @@ func (this *ClusterSpec) String() string { `ControllerManagerExtraArgs:` + mapStringForControllerManagerExtraArgs + `,`, `SchedulerExtraArgs:` + mapStringForSchedulerExtraArgs + `,`, `ServiceCIDR:` + valueToStringGenerated(this.ServiceCIDR) + `,`, - `ClusterCredentialRef:` + strings.Replace(fmt.Sprintf("%v", this.ClusterCredentialRef), "LocalObjectReference", "v11.LocalObjectReference", 1) + `,`, + `ClusterCredentialRef:` + strings.Replace(fmt.Sprintf("%v", this.ClusterCredentialRef), "LocalObjectReference", "v12.LocalObjectReference", 1) + `,`, `Etcd:` + strings.Replace(this.Etcd.String(), "Etcd", "Etcd", 1) + `,`, `HostnameAsNodename:` + fmt.Sprintf("%v", this.HostnameAsNodename) + `,`, `NetworkArgs:` + mapStringForNetworkArgs + `,`, `ScalingMachines:` + repeatedStringForScalingMachines + `,`, + `BootstrapApps:` + repeatedStringForBootstrapApps + `,`, `}`, }, "") return s @@ -12732,7 +13433,7 @@ func (m *AddonSpec) Unmarshal(dAtA []byte) error { } return nil } -func (m *AuthzWebhookAddr) Unmarshal(dAtA []byte) error { +func (m *App) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12755,15 +13456,15 @@ func (m *AuthzWebhookAddr) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AuthzWebhookAddr: wiretype end group for non-group") + return fmt.Errorf("proto: App: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AuthzWebhookAddr: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: App: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Builtin", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12790,16 +13491,13 @@ func (m *AuthzWebhookAddr) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Builtin == nil { - m.Builtin = &BuiltinAuthzWebhookAddr{} - } - if err := m.Builtin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field External", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12826,10 +13524,7 @@ func (m *AuthzWebhookAddr) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.External == nil { - m.External = &ExternalAuthzWebhookAddr{} - } - if err := m.External.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12857,7 +13552,7 @@ func (m *AuthzWebhookAddr) Unmarshal(dAtA []byte) error { } return nil } -func (m *BuiltinAuthzWebhookAddr) Unmarshal(dAtA []byte) error { +func (m *AuthzWebhookAddr) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12880,12 +13575,84 @@ func (m *BuiltinAuthzWebhookAddr) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BuiltinAuthzWebhookAddr: wiretype end group for non-group") + return fmt.Errorf("proto: AuthzWebhookAddr: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BuiltinAuthzWebhookAddr: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AuthzWebhookAddr: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Builtin", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Builtin == nil { + m.Builtin = &BuiltinAuthzWebhookAddr{} + } + if err := m.Builtin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field External", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.External == nil { + m.External = &ExternalAuthzWebhookAddr{} + } + if err := m.External.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) @@ -12910,7 +13677,7 @@ func (m *BuiltinAuthzWebhookAddr) Unmarshal(dAtA []byte) error { } return nil } -func (m *CSIOperator) Unmarshal(dAtA []byte) error { +func (m *BootstrapApp) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12933,15 +13700,15 @@ func (m *CSIOperator) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CSIOperator: wiretype end group for non-group") + return fmt.Errorf("proto: BootstrapApp: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CSIOperator: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BootstrapApp: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field App", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12968,25 +13735,164 @@ func (m *CSIOperator) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.App.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BuiltinAuthzWebhookAddr) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BuiltinAuthzWebhookAddr: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BuiltinAuthzWebhookAddr: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CSIOperator) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CSIOperator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CSIOperator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -16602,11 +17508,590 @@ func (m *ClusterFeature) Unmarshal(dAtA []byte) error { iNdEx += skippy } } - m.Hooks[HookType(mapkey)] = mapvalue - iNdEx = postIndex - case 10: + m.Hooks[HookType(mapkey)] = mapvalue + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CSIOperator", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CSIOperator == nil { + m.CSIOperator = &CSIOperatorFeature{} + } + if err := m.CSIOperator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthzWebhookAddr", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthzWebhookAddr == nil { + m.AuthzWebhookAddr = &AuthzWebhookAddr{} + } + if err := m.AuthzWebhookAddr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EnableMetricsServer", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EnableMetricsServer = bool(v != 0) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IPv6DualStack", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IPv6DualStack = bool(v != 0) + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EnableCilium", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EnableCilium = bool(v != 0) + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerRuntime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerRuntime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Upgrade", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Upgrade.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClusterGroupAPIResourceItem) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClusterGroupAPIResourceItem: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterGroupAPIResourceItem: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SingularName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SingularName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespaced", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Namespaced = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Group = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ShortNames", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ShortNames = append(m.ShortNames, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Categories", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Categories = append(m.Categories, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClusterGroupAPIResourceItems) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClusterGroupAPIResourceItems: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterGroupAPIResourceItems: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CSIOperator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16633,18 +18118,15 @@ func (m *ClusterFeature) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CSIOperator == nil { - m.CSIOperator = &CSIOperatorFeature{} - } - if err := m.CSIOperator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 11: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthzWebhookAddr", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GroupVersion", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -16654,33 +18136,29 @@ func (m *ClusterFeature) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - if m.AuthzWebhookAddr == nil { - m.AuthzWebhookAddr = &AuthzWebhookAddr{} - } - if err := m.AuthzWebhookAddr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.GroupVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EnableMetricsServer", wireType) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIResources", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -16690,37 +18168,84 @@ func (m *ClusterFeature) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.EnableMetricsServer = bool(v != 0) - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IPv6DualStack", wireType) + if msglen < 0 { + return ErrInvalidLengthGenerated } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated } - m.IPv6DualStack = bool(v != 0) - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EnableCilium", wireType) + if postIndex > l { + return io.ErrUnexpectedEOF } - var v int + m.APIResources = append(m.APIResources, ClusterGroupAPIResourceItem{}) + if err := m.APIResources[len(m.APIResources)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClusterGroupAPIResourceItemsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClusterGroupAPIResourceItemsList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterGroupAPIResourceItemsList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -16730,15 +18255,29 @@ func (m *ClusterFeature) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.EnableCilium = bool(v != 0) - case 22: + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, ClusterGroupAPIResourceItems{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Upgrade", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16765,7 +18304,7 @@ func (m *ClusterFeature) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Upgrade.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -16793,6 +18332,59 @@ func (m *ClusterFeature) Unmarshal(dAtA []byte) error { } return nil } +func (m *ClusterGroupAPIResourceOptions) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClusterGroupAPIResourceOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterGroupAPIResourceOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ClusterList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17283,7 +18875,7 @@ func (m *ClusterMachine) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Taints = append(m.Taints, v11.Taint{}) + m.Taints = append(m.Taints, v12.Taint{}) if err := m.Taints[len(m.Taints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -19119,7 +20711,7 @@ func (m *ClusterSpec) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ClusterCredentialRef == nil { - m.ClusterCredentialRef = &v11.LocalObjectReference{} + m.ClusterCredentialRef = &v12.LocalObjectReference{} } if err := m.ClusterCredentialRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -19342,6 +20934,40 @@ func (m *ClusterSpec) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 26: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BootstrapApps", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BootstrapApps = append(m.BootstrapApps, BootstrapApp{}) + if err := m.BootstrapApps[len(m.BootstrapApps)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) @@ -26170,7 +27796,7 @@ func (m *MachineSpec) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Taints = append(m.Taints, v11.Taint{}) + m.Taints = append(m.Taints, v12.Taint{}) if err := m.Taints[len(m.Taints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/api/platform/v1/generated.proto b/api/platform/v1/generated.proto index 44b2186c0..29e54f957 100644 --- a/api/platform/v1/generated.proto +++ b/api/platform/v1/generated.proto @@ -28,6 +28,7 @@ import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; +import "tkestack.io/tke/api/application/v1/generated.proto"; // Package-wide variables from generator "generated". option go_package = "v1"; @@ -41,6 +42,14 @@ message AddonSpec { optional string version = 3; } +message App { + // +optional + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + // +optional + optional tkestack.io.tke.api.application.v1.AppSpec spec = 2; +} + message AuthzWebhookAddr { // +optional optional BuiltinAuthzWebhookAddr builtin = 1; @@ -49,6 +58,10 @@ message AuthzWebhookAddr { optional ExternalAuthzWebhookAddr external = 2; } +message BootstrapApp { + optional App app = 1; +} + message BuiltinAuthzWebhookAddr { } @@ -380,11 +393,73 @@ message ClusterFeature { // +optional optional bool enableCilium = 14; + optional string containerRuntime = 15; + // Upgrade control upgrade process. // +optional optional Upgrade upgrade = 22; } +// ClusterGroupAPIResourceItem specifies the name of a resource and whether it is namespaced. +message ClusterGroupAPIResourceItem { + // name is the plural name of the resource. + optional string name = 1; + + // singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + // The singularName is more correct for reporting status on a single item and both singular and plural are allowed + // from the kubectl CLI interface. + optional string singularName = 2; + + // namespaced indicates if a resource is namespaced or not. + optional bool namespaced = 3; + + // group is the preferred group of the resource. Empty implies the group of the containing resource list. + // For subresources, this may have a different value, for example: Scale". + optional string group = 4; + + // version is the preferred version of the resource. Empty implies the version of the containing resource list + // For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)". + optional string version = 5; + + // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + optional string kind = 6; + + // verbs is a list of supported kube verbs (this includes get, list, watch, create, + // update, patch, delete, deletecollection, and proxy) + repeated string verbs = 7; + + // shortNames is a list of suggested short names of the resource. + repeated string shortNames = 8; + + // categories is a list of the grouped resources this resource belongs to (e.g. 'all') + repeated string categories = 9; +} + +// ClusterGroupAPIResourceItems contains the GKV for the current kubernetes cluster +message ClusterGroupAPIResourceItems { + // +optional + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + // groupVersion is the group and version this APIResourceList is for. + optional string groupVersion = 2; + + // resources contains the name of the resources and if they are namespaced. + repeated ClusterGroupAPIResourceItem apiResources = 3; +} + +// ClusterGroupAPIResourceItemsList is the whole list of all ClusterAPIResource. +message ClusterGroupAPIResourceItemsList { + // +optional + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 3; + + // List of ClusterGroupAPIResourceItems + repeated ClusterGroupAPIResourceItems items = 2; +} + +// ClusterGroupAPIResourceOptions is the query options. +message ClusterGroupAPIResourceOptions { +} + // ClusterList is the whole list of all clusters which owned by a tenant. message ClusterList { // +optional @@ -524,6 +599,10 @@ message ClusterSpec { // +optional repeated ClusterMachine scalingMachines = 25; + + // BootstrapApps will install apps during creating cluster + // +optional + repeated BootstrapApp bootstrapApps = 26; } // ClusterStatus represents information about the status of a cluster. diff --git a/api/platform/v1/register.go b/api/platform/v1/register.go index 898cf6e68..07f97396a 100644 --- a/api/platform/v1/register.go +++ b/api/platform/v1/register.go @@ -106,6 +106,10 @@ func addKnownTypes(scheme *runtime.Scheme) error { &LBCF{}, &LBCFList{}, &LBCFProxyOptions{}, + + &ClusterGroupAPIResourceItems{}, + &ClusterGroupAPIResourceItemsList{}, + &ClusterGroupAPIResourceOptions{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil diff --git a/api/platform/v1/types.go b/api/platform/v1/types.go index 59a9c1ecb..2a59079f5 100644 --- a/api/platform/v1/types.go +++ b/api/platform/v1/types.go @@ -23,6 +23,7 @@ import ( "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" + applicationv1 "tkestack.io/tke/api/application/v1" ) // +genclient @@ -156,6 +157,9 @@ type ClusterSpec struct { NetworkArgs map[string]string `json:"networkArgs,omitempty" protobuf:"bytes,24,name=networkArgs"` // +optional ScalingMachines []ClusterMachine `json:"scalingMachines,omitempty" protobuf:"bytes,25,opt,name=scalingMachines"` + // BootstrapApps will install apps during creating cluster + // +optional + BootstrapApps BootstrapApps `json:"bootstrapApps,omitempty" protobuf:"bytes,26,opt,name=bootstrapApps"` } // ClusterStatus represents information about the status of a cluster. @@ -233,6 +237,13 @@ const ( GPUVirtual GPUType = "Virtual" ) +type ContainerRuntimeType = string + +const ( + Containerd ContainerRuntimeType = "containerd" + Docker ContainerRuntimeType = "docker" +) + // ClusterPhase defines the phase of cluster constructor. type ClusterPhase string @@ -391,11 +402,26 @@ type ClusterFeature struct { IPv6DualStack bool `json:"ipv6DualStack,omitempty" protobuf:"bytes,13,opt,name=ipv6DualStack"` // +optional EnableCilium bool `json:"enableCilium,omitempty" protobuf:"bytes,14,opt,name=enableCilium"` + + ContainerRuntime ContainerRuntimeType `json:"containerRuntime" protobuf:"bytes,15,opt,name=containerRuntime"` // Upgrade control upgrade process. // +optional Upgrade Upgrade `json:"upgrade,omitempty" protobuf:"bytes,22,opt,name=upgrade"` } +type BootstrapApps []BootstrapApp + +type BootstrapApp struct { + App App `json:"app,omitempty" protobuf:"bytes,1,opt,name=app"` +} + +type App struct { + // +optional + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // +optional + Spec applicationv1.AppSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` +} + type HA struct { TKEHA *TKEHA `json:"tke,omitempty" protobuf:"bytes,1,opt,name=tke"` ThirdPartyHA *ThirdPartyHA `json:"thirdParty,omitempty" protobuf:"bytes,2,opt,name=thirdParty"` @@ -677,6 +703,7 @@ type ClusterAddonTypeList struct { Items []ClusterAddonType `json:"items,omitempty" protobuf:"bytes,2,opt,name=items"` } +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // ClusterApplyOptions is the query options to a kube-apiserver proxy call for cluster object. @@ -990,6 +1017,7 @@ const ( AddonPhaseUnknown AddonPhase = "Unknown" ) +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // IPAMProxyOptions is the query options to a ipam-api proxy call. @@ -1188,6 +1216,7 @@ type TappControllerStatus struct { LastReInitializingTimestamp metav1.Time `json:"lastReInitializingTimestamp" protobuf:"bytes,5,name=lastReInitializingTimestamp"` } +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // CSIProxyOptions is the query options to a kube-apiserver proxy call for CSI crd object. @@ -1258,6 +1287,7 @@ type CSIOperatorStatus struct { LastReInitializingTimestamp metav1.Time `json:"lastReInitializingTimestamp" protobuf:"bytes,6,name=lastReInitializingTimestamp"` } +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // PVCRProxyOptions is the query options to a kube-apiserver proxy call for PVCR crd object. @@ -1335,6 +1365,7 @@ type VolumeDecoratorStatus struct { LastReInitializingTimestamp metav1.Time `json:"lastReInitializingTimestamp" protobuf:"bytes,8,name=lastReInitializingTimestamp"` } +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // LogCollectorProxyOptions is the query options to a kube-apiserver proxy call for LogCollector crd object. @@ -1633,6 +1664,7 @@ type CronHPAStatus struct { LastReInitializingTimestamp metav1.Time `json:"lastReInitializingTimestamp" protobuf:"bytes,5,name=lastReInitializingTimestamp"` } +// +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // LBCFProxyOptions is the query options to a kube-apiserver proxy call. @@ -1699,3 +1731,66 @@ type LBCFStatus struct { // +optional LastReInitializingTimestamp metav1.Time `json:"lastReInitializingTimestamp" protobuf:"bytes,5,name=lastReInitializingTimestamp"` } + +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// ClusterGroupAPIResourceItemsList is the whole list of all ClusterAPIResource. +type ClusterGroupAPIResourceItemsList struct { + metav1.TypeMeta `json:",inline"` + // +optional + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,3,opt,name=metadata"` + // List of ClusterGroupAPIResourceItems + Items []ClusterGroupAPIResourceItems `protobuf:"bytes,2,rep,name=items"` +} + +// +genclient +// +genclient:nonNamespaced +// +genclient:onlyVerbs=list,get +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// ClusterGroupAPIResourceItems contains the GKV for the current kubernetes cluster +type ClusterGroupAPIResourceItems struct { + metav1.TypeMeta `json:",inline"` + // +optional + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // groupVersion is the group and version this APIResourceList is for. + GroupVersion string `json:"groupVersion" protobuf:"bytes,2,opt,name=groupVersion"` + // resources contains the name of the resources and if they are namespaced. + APIResources []ClusterGroupAPIResourceItem `json:"apiResources" protobuf:"bytes,3,rep,name=apiResources"` +} + +// ClusterGroupAPIResourceItem specifies the name of a resource and whether it is namespaced. +type ClusterGroupAPIResourceItem struct { + // name is the plural name of the resource. + Name string `protobuf:"bytes,1,opt,name=name"` + // singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + // The singularName is more correct for reporting status on a single item and both singular and plural are allowed + // from the kubectl CLI interface. + SingularName string `protobuf:"bytes,2,opt,name=singularName"` + // namespaced indicates if a resource is namespaced or not. + Namespaced bool `protobuf:"varint,3,opt,name=namespaced"` + // group is the preferred group of the resource. Empty implies the group of the containing resource list. + // For subresources, this may have a different value, for example: Scale". + Group string `protobuf:"bytes,4,opt,name=group"` + // version is the preferred version of the resource. Empty implies the version of the containing resource list + // For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)". + Version string `protobuf:"bytes,5,opt,name=version"` + // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + Kind string `protobuf:"bytes,6,opt,name=kind"` + // verbs is a list of supported kube verbs (this includes get, list, watch, create, + // update, patch, delete, deletecollection, and proxy) + Verbs []string `protobuf:"bytes,7,rep,name=verbs"` + // shortNames is a list of suggested short names of the resource. + ShortNames []string `protobuf:"bytes,8,rep,name=shortNames"` + // categories is a list of the grouped resources this resource belongs to (e.g. 'all') + Categories []string `protobuf:"bytes,9,rep,name=categories"` +} + +// +k8s:conversion-gen:explicit-from=net/url.Values +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// ClusterGroupAPIResourceOptions is the query options. +type ClusterGroupAPIResourceOptions struct { + metav1.TypeMeta `json:",inline"` +} diff --git a/api/platform/v1/types_swagger_doc_generated.go b/api/platform/v1/types_swagger_doc_generated.go index 5f8d5e8ab..3adc41cbe 100644 --- a/api/platform/v1/types_swagger_doc_generated.go +++ b/api/platform/v1/types_swagger_doc_generated.go @@ -235,6 +235,50 @@ func (ClusterFeature) SwaggerDoc() map[string]string { return map_ClusterFeature } +var map_ClusterGroupAPIResourceItem = map[string]string{ + "": "ClusterGroupAPIResourceItem specifies the name of a resource and whether it is namespaced.", + "Name": "name is the plural name of the resource.", + "SingularName": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", + "Namespaced": "namespaced indicates if a resource is namespaced or not.", + "Group": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", + "Version": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", + "Kind": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "Verbs": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + "ShortNames": "shortNames is a list of suggested short names of the resource.", + "Categories": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", +} + +func (ClusterGroupAPIResourceItem) SwaggerDoc() map[string]string { + return map_ClusterGroupAPIResourceItem +} + +var map_ClusterGroupAPIResourceItems = map[string]string{ + "": "ClusterGroupAPIResourceItems contains the GKV for the current kubernetes cluster", + "groupVersion": "groupVersion is the group and version this APIResourceList is for.", + "apiResources": "resources contains the name of the resources and if they are namespaced.", +} + +func (ClusterGroupAPIResourceItems) SwaggerDoc() map[string]string { + return map_ClusterGroupAPIResourceItems +} + +var map_ClusterGroupAPIResourceItemsList = map[string]string{ + "": "ClusterGroupAPIResourceItemsList is the whole list of all ClusterAPIResource.", + "Items": "List of ClusterGroupAPIResourceItems", +} + +func (ClusterGroupAPIResourceItemsList) SwaggerDoc() map[string]string { + return map_ClusterGroupAPIResourceItemsList +} + +var map_ClusterGroupAPIResourceOptions = map[string]string{ + "": "ClusterGroupAPIResourceOptions is the query options.", +} + +func (ClusterGroupAPIResourceOptions) SwaggerDoc() map[string]string { + return map_ClusterGroupAPIResourceOptions +} + var map_ClusterList = map[string]string{ "": "ClusterList is the whole list of all clusters which owned by a tenant.", "items": "List of clusters", @@ -279,6 +323,7 @@ var map_ClusterSpec = map[string]string{ "clusterCredentialRef": "ClusterCredentialRef for isolate sensitive information. If not specified, cluster controller will create one; If specified, provider must make sure is valid.", "etcd": "Etcd holds configuration for etcd.", "hostnameAsNodename": "If true will use hostname as nodename, if false will use machine IP as nodename.", + "bootstrapApps": "BootstrapApps will install apps during creating cluster", } func (ClusterSpec) SwaggerDoc() map[string]string { diff --git a/api/platform/v1/zz_generated.conversion.go b/api/platform/v1/zz_generated.conversion.go index 7be5c397c..298d9a4f8 100644 --- a/api/platform/v1/zz_generated.conversion.go +++ b/api/platform/v1/zz_generated.conversion.go @@ -50,6 +50,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*App)(nil), (*platform.App)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_App_To_platform_App(a.(*App), b.(*platform.App), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*platform.App)(nil), (*App)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_platform_App_To_v1_App(a.(*platform.App), b.(*App), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*AuthzWebhookAddr)(nil), (*platform.AuthzWebhookAddr)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_AuthzWebhookAddr_To_platform_AuthzWebhookAddr(a.(*AuthzWebhookAddr), b.(*platform.AuthzWebhookAddr), scope) }); err != nil { @@ -280,6 +290,46 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*ClusterGroupAPIResourceItem)(nil), (*platform.ClusterGroupAPIResourceItem)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ClusterGroupAPIResourceItem_To_platform_ClusterGroupAPIResourceItem(a.(*ClusterGroupAPIResourceItem), b.(*platform.ClusterGroupAPIResourceItem), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*platform.ClusterGroupAPIResourceItem)(nil), (*ClusterGroupAPIResourceItem)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_platform_ClusterGroupAPIResourceItem_To_v1_ClusterGroupAPIResourceItem(a.(*platform.ClusterGroupAPIResourceItem), b.(*ClusterGroupAPIResourceItem), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*ClusterGroupAPIResourceItems)(nil), (*platform.ClusterGroupAPIResourceItems)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ClusterGroupAPIResourceItems_To_platform_ClusterGroupAPIResourceItems(a.(*ClusterGroupAPIResourceItems), b.(*platform.ClusterGroupAPIResourceItems), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*platform.ClusterGroupAPIResourceItems)(nil), (*ClusterGroupAPIResourceItems)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_platform_ClusterGroupAPIResourceItems_To_v1_ClusterGroupAPIResourceItems(a.(*platform.ClusterGroupAPIResourceItems), b.(*ClusterGroupAPIResourceItems), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*ClusterGroupAPIResourceItemsList)(nil), (*platform.ClusterGroupAPIResourceItemsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ClusterGroupAPIResourceItemsList_To_platform_ClusterGroupAPIResourceItemsList(a.(*ClusterGroupAPIResourceItemsList), b.(*platform.ClusterGroupAPIResourceItemsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*platform.ClusterGroupAPIResourceItemsList)(nil), (*ClusterGroupAPIResourceItemsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_platform_ClusterGroupAPIResourceItemsList_To_v1_ClusterGroupAPIResourceItemsList(a.(*platform.ClusterGroupAPIResourceItemsList), b.(*ClusterGroupAPIResourceItemsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*ClusterGroupAPIResourceOptions)(nil), (*platform.ClusterGroupAPIResourceOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ClusterGroupAPIResourceOptions_To_platform_ClusterGroupAPIResourceOptions(a.(*ClusterGroupAPIResourceOptions), b.(*platform.ClusterGroupAPIResourceOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*platform.ClusterGroupAPIResourceOptions)(nil), (*ClusterGroupAPIResourceOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_platform_ClusterGroupAPIResourceOptions_To_v1_ClusterGroupAPIResourceOptions(a.(*platform.ClusterGroupAPIResourceOptions), b.(*ClusterGroupAPIResourceOptions), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*ClusterList)(nil), (*platform.ClusterList)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_ClusterList_To_platform_ClusterList(a.(*ClusterList), b.(*platform.ClusterList), scope) }); err != nil { @@ -1040,6 +1090,21 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*CSIProxyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_CSIProxyOptions(a.(*url.Values), b.(*CSIProxyOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*ClusterApplyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_ClusterApplyOptions(a.(*url.Values), b.(*ClusterApplyOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*ClusterGroupAPIResourceOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_ClusterGroupAPIResourceOptions(a.(*url.Values), b.(*ClusterGroupAPIResourceOptions), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*CronHPAProxyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_url_Values_To_v1_CronHPAProxyOptions(a.(*url.Values), b.(*CronHPAProxyOptions), scope) }); err != nil { @@ -1050,6 +1115,26 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*IPAMProxyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_IPAMProxyOptions(a.(*url.Values), b.(*IPAMProxyOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*LBCFProxyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_LBCFProxyOptions(a.(*url.Values), b.(*LBCFProxyOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*LogCollectorProxyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_LogCollectorProxyOptions(a.(*url.Values), b.(*LogCollectorProxyOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*PVCRProxyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_PVCRProxyOptions(a.(*url.Values), b.(*PVCRProxyOptions), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*TappControllerProxyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_url_Values_To_v1_TappControllerProxyOptions(a.(*url.Values), b.(*TappControllerProxyOptions), scope) }); err != nil { @@ -1082,6 +1167,28 @@ func Convert_platform_AddonSpec_To_v1_AddonSpec(in *platform.AddonSpec, out *Add return autoConvert_platform_AddonSpec_To_v1_AddonSpec(in, out, s) } +func autoConvert_v1_App_To_platform_App(in *App, out *platform.App, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Spec = in.Spec + return nil +} + +// Convert_v1_App_To_platform_App is an autogenerated conversion function. +func Convert_v1_App_To_platform_App(in *App, out *platform.App, s conversion.Scope) error { + return autoConvert_v1_App_To_platform_App(in, out, s) +} + +func autoConvert_platform_App_To_v1_App(in *platform.App, out *App, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Spec = in.Spec + return nil +} + +// Convert_platform_App_To_v1_App is an autogenerated conversion function. +func Convert_platform_App_To_v1_App(in *platform.App, out *App, s conversion.Scope) error { + return autoConvert_platform_App_To_v1_App(in, out, s) +} + func autoConvert_v1_AuthzWebhookAddr_To_platform_AuthzWebhookAddr(in *AuthzWebhookAddr, out *platform.AuthzWebhookAddr, s conversion.Scope) error { out.Builtin = (*platform.BuiltinAuthzWebhookAddr)(unsafe.Pointer(in.Builtin)) out.External = (*platform.ExternalAuthzWebhookAddr)(unsafe.Pointer(in.External)) @@ -1272,6 +1379,31 @@ func Convert_platform_CSIProxyOptions_To_v1_CSIProxyOptions(in *platform.CSIProx return autoConvert_platform_CSIProxyOptions_To_v1_CSIProxyOptions(in, out, s) } +func autoConvert_url_Values_To_v1_CSIProxyOptions(in *url.Values, out *CSIProxyOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + if values, ok := map[string][]string(*in)["namespace"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Namespace, s); err != nil { + return err + } + } else { + out.Namespace = "" + } + if values, ok := map[string][]string(*in)["name"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Name, s); err != nil { + return err + } + } else { + out.Name = "" + } + return nil +} + +// Convert_url_Values_To_v1_CSIProxyOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_CSIProxyOptions(in *url.Values, out *CSIProxyOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_CSIProxyOptions(in, out, s) +} + func autoConvert_v1_Cluster_To_platform_Cluster(in *Cluster, out *platform.Cluster, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_ClusterSpec_To_platform_ClusterSpec(&in.Spec, &out.Spec, s); err != nil { @@ -1504,6 +1636,24 @@ func Convert_platform_ClusterApplyOptions_To_v1_ClusterApplyOptions(in *platform return autoConvert_platform_ClusterApplyOptions_To_v1_ClusterApplyOptions(in, out, s) } +func autoConvert_url_Values_To_v1_ClusterApplyOptions(in *url.Values, out *ClusterApplyOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + if values, ok := map[string][]string(*in)["notUpdate"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_bool(&values, &out.NotUpdate, s); err != nil { + return err + } + } else { + out.NotUpdate = false + } + return nil +} + +// Convert_url_Values_To_v1_ClusterApplyOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_ClusterApplyOptions(in *url.Values, out *ClusterApplyOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_ClusterApplyOptions(in, out, s) +} + func autoConvert_v1_ClusterComponent_To_platform_ClusterComponent(in *ClusterComponent, out *platform.ClusterComponent, s conversion.Scope) error { out.Type = in.Type if err := Convert_v1_ClusterComponentReplicas_To_platform_ClusterComponentReplicas(&in.Replicas, &out.Replicas, s); err != nil { @@ -1669,6 +1819,7 @@ func autoConvert_v1_ClusterFeature_To_platform_ClusterFeature(in *ClusterFeature out.EnableMetricsServer = in.EnableMetricsServer out.IPv6DualStack = in.IPv6DualStack out.EnableCilium = in.EnableCilium + out.ContainerRuntime = in.ContainerRuntime if err := Convert_v1_Upgrade_To_platform_Upgrade(&in.Upgrade, &out.Upgrade, s); err != nil { return err } @@ -1694,6 +1845,7 @@ func autoConvert_platform_ClusterFeature_To_v1_ClusterFeature(in *platform.Clust out.AuthzWebhookAddr = (*AuthzWebhookAddr)(unsafe.Pointer(in.AuthzWebhookAddr)) out.EnableMetricsServer = in.EnableMetricsServer out.EnableCilium = in.EnableCilium + out.ContainerRuntime = in.ContainerRuntime out.IPv6DualStack = in.IPv6DualStack if err := Convert_platform_Upgrade_To_v1_Upgrade(&in.Upgrade, &out.Upgrade, s); err != nil { return err @@ -1706,6 +1858,117 @@ func Convert_platform_ClusterFeature_To_v1_ClusterFeature(in *platform.ClusterFe return autoConvert_platform_ClusterFeature_To_v1_ClusterFeature(in, out, s) } +func autoConvert_v1_ClusterGroupAPIResourceItem_To_platform_ClusterGroupAPIResourceItem(in *ClusterGroupAPIResourceItem, out *platform.ClusterGroupAPIResourceItem, s conversion.Scope) error { + out.Name = in.Name + out.SingularName = in.SingularName + out.Namespaced = in.Namespaced + out.Group = in.Group + out.Version = in.Version + out.Kind = in.Kind + out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) + out.ShortNames = *(*[]string)(unsafe.Pointer(&in.ShortNames)) + out.Categories = *(*[]string)(unsafe.Pointer(&in.Categories)) + return nil +} + +// Convert_v1_ClusterGroupAPIResourceItem_To_platform_ClusterGroupAPIResourceItem is an autogenerated conversion function. +func Convert_v1_ClusterGroupAPIResourceItem_To_platform_ClusterGroupAPIResourceItem(in *ClusterGroupAPIResourceItem, out *platform.ClusterGroupAPIResourceItem, s conversion.Scope) error { + return autoConvert_v1_ClusterGroupAPIResourceItem_To_platform_ClusterGroupAPIResourceItem(in, out, s) +} + +func autoConvert_platform_ClusterGroupAPIResourceItem_To_v1_ClusterGroupAPIResourceItem(in *platform.ClusterGroupAPIResourceItem, out *ClusterGroupAPIResourceItem, s conversion.Scope) error { + out.Name = in.Name + out.SingularName = in.SingularName + out.Namespaced = in.Namespaced + out.Group = in.Group + out.Version = in.Version + out.Kind = in.Kind + out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) + out.ShortNames = *(*[]string)(unsafe.Pointer(&in.ShortNames)) + out.Categories = *(*[]string)(unsafe.Pointer(&in.Categories)) + return nil +} + +// Convert_platform_ClusterGroupAPIResourceItem_To_v1_ClusterGroupAPIResourceItem is an autogenerated conversion function. +func Convert_platform_ClusterGroupAPIResourceItem_To_v1_ClusterGroupAPIResourceItem(in *platform.ClusterGroupAPIResourceItem, out *ClusterGroupAPIResourceItem, s conversion.Scope) error { + return autoConvert_platform_ClusterGroupAPIResourceItem_To_v1_ClusterGroupAPIResourceItem(in, out, s) +} + +func autoConvert_v1_ClusterGroupAPIResourceItems_To_platform_ClusterGroupAPIResourceItems(in *ClusterGroupAPIResourceItems, out *platform.ClusterGroupAPIResourceItems, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.GroupVersion = in.GroupVersion + out.APIResources = *(*[]platform.ClusterGroupAPIResourceItem)(unsafe.Pointer(&in.APIResources)) + return nil +} + +// Convert_v1_ClusterGroupAPIResourceItems_To_platform_ClusterGroupAPIResourceItems is an autogenerated conversion function. +func Convert_v1_ClusterGroupAPIResourceItems_To_platform_ClusterGroupAPIResourceItems(in *ClusterGroupAPIResourceItems, out *platform.ClusterGroupAPIResourceItems, s conversion.Scope) error { + return autoConvert_v1_ClusterGroupAPIResourceItems_To_platform_ClusterGroupAPIResourceItems(in, out, s) +} + +func autoConvert_platform_ClusterGroupAPIResourceItems_To_v1_ClusterGroupAPIResourceItems(in *platform.ClusterGroupAPIResourceItems, out *ClusterGroupAPIResourceItems, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.GroupVersion = in.GroupVersion + out.APIResources = *(*[]ClusterGroupAPIResourceItem)(unsafe.Pointer(&in.APIResources)) + return nil +} + +// Convert_platform_ClusterGroupAPIResourceItems_To_v1_ClusterGroupAPIResourceItems is an autogenerated conversion function. +func Convert_platform_ClusterGroupAPIResourceItems_To_v1_ClusterGroupAPIResourceItems(in *platform.ClusterGroupAPIResourceItems, out *ClusterGroupAPIResourceItems, s conversion.Scope) error { + return autoConvert_platform_ClusterGroupAPIResourceItems_To_v1_ClusterGroupAPIResourceItems(in, out, s) +} + +func autoConvert_v1_ClusterGroupAPIResourceItemsList_To_platform_ClusterGroupAPIResourceItemsList(in *ClusterGroupAPIResourceItemsList, out *platform.ClusterGroupAPIResourceItemsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]platform.ClusterGroupAPIResourceItems)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_ClusterGroupAPIResourceItemsList_To_platform_ClusterGroupAPIResourceItemsList is an autogenerated conversion function. +func Convert_v1_ClusterGroupAPIResourceItemsList_To_platform_ClusterGroupAPIResourceItemsList(in *ClusterGroupAPIResourceItemsList, out *platform.ClusterGroupAPIResourceItemsList, s conversion.Scope) error { + return autoConvert_v1_ClusterGroupAPIResourceItemsList_To_platform_ClusterGroupAPIResourceItemsList(in, out, s) +} + +func autoConvert_platform_ClusterGroupAPIResourceItemsList_To_v1_ClusterGroupAPIResourceItemsList(in *platform.ClusterGroupAPIResourceItemsList, out *ClusterGroupAPIResourceItemsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ClusterGroupAPIResourceItems)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_platform_ClusterGroupAPIResourceItemsList_To_v1_ClusterGroupAPIResourceItemsList is an autogenerated conversion function. +func Convert_platform_ClusterGroupAPIResourceItemsList_To_v1_ClusterGroupAPIResourceItemsList(in *platform.ClusterGroupAPIResourceItemsList, out *ClusterGroupAPIResourceItemsList, s conversion.Scope) error { + return autoConvert_platform_ClusterGroupAPIResourceItemsList_To_v1_ClusterGroupAPIResourceItemsList(in, out, s) +} + +func autoConvert_v1_ClusterGroupAPIResourceOptions_To_platform_ClusterGroupAPIResourceOptions(in *ClusterGroupAPIResourceOptions, out *platform.ClusterGroupAPIResourceOptions, s conversion.Scope) error { + return nil +} + +// Convert_v1_ClusterGroupAPIResourceOptions_To_platform_ClusterGroupAPIResourceOptions is an autogenerated conversion function. +func Convert_v1_ClusterGroupAPIResourceOptions_To_platform_ClusterGroupAPIResourceOptions(in *ClusterGroupAPIResourceOptions, out *platform.ClusterGroupAPIResourceOptions, s conversion.Scope) error { + return autoConvert_v1_ClusterGroupAPIResourceOptions_To_platform_ClusterGroupAPIResourceOptions(in, out, s) +} + +func autoConvert_platform_ClusterGroupAPIResourceOptions_To_v1_ClusterGroupAPIResourceOptions(in *platform.ClusterGroupAPIResourceOptions, out *ClusterGroupAPIResourceOptions, s conversion.Scope) error { + return nil +} + +// Convert_platform_ClusterGroupAPIResourceOptions_To_v1_ClusterGroupAPIResourceOptions is an autogenerated conversion function. +func Convert_platform_ClusterGroupAPIResourceOptions_To_v1_ClusterGroupAPIResourceOptions(in *platform.ClusterGroupAPIResourceOptions, out *ClusterGroupAPIResourceOptions, s conversion.Scope) error { + return autoConvert_platform_ClusterGroupAPIResourceOptions_To_v1_ClusterGroupAPIResourceOptions(in, out, s) +} + +func autoConvert_url_Values_To_v1_ClusterGroupAPIResourceOptions(in *url.Values, out *ClusterGroupAPIResourceOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + return nil +} + +// Convert_url_Values_To_v1_ClusterGroupAPIResourceOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_ClusterGroupAPIResourceOptions(in *url.Values, out *ClusterGroupAPIResourceOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_ClusterGroupAPIResourceOptions(in, out, s) +} + func autoConvert_v1_ClusterList_To_platform_ClusterList(in *ClusterList, out *platform.ClusterList, s conversion.Scope) error { out.ListMeta = in.ListMeta if in.Items != nil { @@ -1859,6 +2122,7 @@ func autoConvert_v1_ClusterSpec_To_platform_ClusterSpec(in *ClusterSpec, out *pl out.HostnameAsNodename = in.HostnameAsNodename out.NetworkArgs = *(*map[string]string)(unsafe.Pointer(&in.NetworkArgs)) out.ScalingMachines = *(*[]platform.ClusterMachine)(unsafe.Pointer(&in.ScalingMachines)) + out.BootstrapApps = *(*platform.BootstrapApps)(unsafe.Pointer(&in.BootstrapApps)) return nil } @@ -1896,6 +2160,7 @@ func autoConvert_platform_ClusterSpec_To_v1_ClusterSpec(in *platform.ClusterSpec out.Etcd = (*Etcd)(unsafe.Pointer(in.Etcd)) out.HostnameAsNodename = in.HostnameAsNodename out.NetworkArgs = *(*map[string]string)(unsafe.Pointer(&in.NetworkArgs)) + out.BootstrapApps = *(*BootstrapApps)(unsafe.Pointer(&in.BootstrapApps)) return nil } @@ -2495,6 +2760,24 @@ func Convert_platform_IPAMProxyOptions_To_v1_IPAMProxyOptions(in *platform.IPAMP return autoConvert_platform_IPAMProxyOptions_To_v1_IPAMProxyOptions(in, out, s) } +func autoConvert_url_Values_To_v1_IPAMProxyOptions(in *url.Values, out *IPAMProxyOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + if values, ok := map[string][]string(*in)["path"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Path, s); err != nil { + return err + } + } else { + out.Path = "" + } + return nil +} + +// Convert_url_Values_To_v1_IPAMProxyOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_IPAMProxyOptions(in *url.Values, out *IPAMProxyOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_IPAMProxyOptions(in, out, s) +} + func autoConvert_v1_IPAMSpec_To_platform_IPAMSpec(in *IPAMSpec, out *platform.IPAMSpec, s conversion.Scope) error { out.TenantID = in.TenantID out.ClusterName = in.ClusterName @@ -2625,6 +2908,38 @@ func Convert_platform_LBCFProxyOptions_To_v1_LBCFProxyOptions(in *platform.LBCFP return autoConvert_platform_LBCFProxyOptions_To_v1_LBCFProxyOptions(in, out, s) } +func autoConvert_url_Values_To_v1_LBCFProxyOptions(in *url.Values, out *LBCFProxyOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + if values, ok := map[string][]string(*in)["namespace"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Namespace, s); err != nil { + return err + } + } else { + out.Namespace = "" + } + if values, ok := map[string][]string(*in)["name"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Name, s); err != nil { + return err + } + } else { + out.Name = "" + } + if values, ok := map[string][]string(*in)["action"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Action, s); err != nil { + return err + } + } else { + out.Action = "" + } + return nil +} + +// Convert_url_Values_To_v1_LBCFProxyOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_LBCFProxyOptions(in *url.Values, out *LBCFProxyOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_LBCFProxyOptions(in, out, s) +} + func autoConvert_v1_LBCFSpec_To_platform_LBCFSpec(in *LBCFSpec, out *platform.LBCFSpec, s conversion.Scope) error { out.TenantID = in.TenantID out.ClusterName = in.ClusterName @@ -2779,6 +3094,31 @@ func Convert_platform_LogCollectorProxyOptions_To_v1_LogCollectorProxyOptions(in return autoConvert_platform_LogCollectorProxyOptions_To_v1_LogCollectorProxyOptions(in, out, s) } +func autoConvert_url_Values_To_v1_LogCollectorProxyOptions(in *url.Values, out *LogCollectorProxyOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + if values, ok := map[string][]string(*in)["namespace"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Namespace, s); err != nil { + return err + } + } else { + out.Namespace = "" + } + if values, ok := map[string][]string(*in)["name"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Name, s); err != nil { + return err + } + } else { + out.Name = "" + } + return nil +} + +// Convert_url_Values_To_v1_LogCollectorProxyOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_LogCollectorProxyOptions(in *url.Values, out *LogCollectorProxyOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_LogCollectorProxyOptions(in, out, s) +} + func autoConvert_v1_LogCollectorSpec_To_platform_LogCollectorSpec(in *LogCollectorSpec, out *platform.LogCollectorSpec, s conversion.Scope) error { out.TenantID = in.TenantID out.ClusterName = in.ClusterName @@ -3075,6 +3415,31 @@ func Convert_platform_PVCRProxyOptions_To_v1_PVCRProxyOptions(in *platform.PVCRP return autoConvert_platform_PVCRProxyOptions_To_v1_PVCRProxyOptions(in, out, s) } +func autoConvert_url_Values_To_v1_PVCRProxyOptions(in *url.Values, out *PVCRProxyOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + if values, ok := map[string][]string(*in)["namespace"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Namespace, s); err != nil { + return err + } + } else { + out.Namespace = "" + } + if values, ok := map[string][]string(*in)["name"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Name, s); err != nil { + return err + } + } else { + out.Name = "" + } + return nil +} + +// Convert_url_Values_To_v1_PVCRProxyOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_PVCRProxyOptions(in *url.Values, out *PVCRProxyOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_PVCRProxyOptions(in, out, s) +} + func autoConvert_v1_PersistentBackEnd_To_platform_PersistentBackEnd(in *PersistentBackEnd, out *platform.PersistentBackEnd, s conversion.Scope) error { out.CLS = (*platform.StorageBackEndCLS)(unsafe.Pointer(in.CLS)) out.ES = (*platform.StorageBackEndES)(unsafe.Pointer(in.ES)) diff --git a/api/platform/v1/zz_generated.deepcopy.go b/api/platform/v1/zz_generated.deepcopy.go index 06fcd3ccf..7ad76261d 100644 --- a/api/platform/v1/zz_generated.deepcopy.go +++ b/api/platform/v1/zz_generated.deepcopy.go @@ -44,6 +44,24 @@ func (in *AddonSpec) DeepCopy() *AddonSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *App) DeepCopyInto(out *App) { + *out = *in + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new App. +func (in *App) DeepCopy() *App { + if in == nil { + return nil + } + out := new(App) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuthzWebhookAddr) DeepCopyInto(out *AuthzWebhookAddr) { *out = *in @@ -70,6 +88,45 @@ func (in *AuthzWebhookAddr) DeepCopy() *AuthzWebhookAddr { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BootstrapApp) DeepCopyInto(out *BootstrapApp) { + *out = *in + in.App.DeepCopyInto(&out.App) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapApp. +func (in *BootstrapApp) DeepCopy() *BootstrapApp { + if in == nil { + return nil + } + out := new(BootstrapApp) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in BootstrapApps) DeepCopyInto(out *BootstrapApps) { + { + in := &in + *out = make(BootstrapApps, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + return + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapApps. +func (in BootstrapApps) DeepCopy() BootstrapApps { + if in == nil { + return nil + } + out := new(BootstrapApps) + in.DeepCopyInto(out) + return *out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *BuiltinAuthzWebhookAddr) DeepCopyInto(out *BuiltinAuthzWebhookAddr) { *out = *in @@ -681,6 +738,128 @@ func (in *ClusterFeature) DeepCopy() *ClusterFeature { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterGroupAPIResourceItem) DeepCopyInto(out *ClusterGroupAPIResourceItem) { + *out = *in + if in.Verbs != nil { + in, out := &in.Verbs, &out.Verbs + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ShortNames != nil { + in, out := &in.ShortNames, &out.ShortNames + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Categories != nil { + in, out := &in.Categories, &out.Categories + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupAPIResourceItem. +func (in *ClusterGroupAPIResourceItem) DeepCopy() *ClusterGroupAPIResourceItem { + if in == nil { + return nil + } + out := new(ClusterGroupAPIResourceItem) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterGroupAPIResourceItems) DeepCopyInto(out *ClusterGroupAPIResourceItems) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.APIResources != nil { + in, out := &in.APIResources, &out.APIResources + *out = make([]ClusterGroupAPIResourceItem, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupAPIResourceItems. +func (in *ClusterGroupAPIResourceItems) DeepCopy() *ClusterGroupAPIResourceItems { + if in == nil { + return nil + } + out := new(ClusterGroupAPIResourceItems) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterGroupAPIResourceItems) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterGroupAPIResourceItemsList) DeepCopyInto(out *ClusterGroupAPIResourceItemsList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ClusterGroupAPIResourceItems, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupAPIResourceItemsList. +func (in *ClusterGroupAPIResourceItemsList) DeepCopy() *ClusterGroupAPIResourceItemsList { + if in == nil { + return nil + } + out := new(ClusterGroupAPIResourceItemsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterGroupAPIResourceItemsList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterGroupAPIResourceOptions) DeepCopyInto(out *ClusterGroupAPIResourceOptions) { + *out = *in + out.TypeMeta = in.TypeMeta + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupAPIResourceOptions. +func (in *ClusterGroupAPIResourceOptions) DeepCopy() *ClusterGroupAPIResourceOptions { + if in == nil { + return nil + } + out := new(ClusterGroupAPIResourceOptions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterGroupAPIResourceOptions) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterList) DeepCopyInto(out *ClusterList) { *out = *in @@ -915,6 +1094,13 @@ func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.BootstrapApps != nil { + in, out := &in.BootstrapApps, &out.BootstrapApps + *out = make(BootstrapApps, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } diff --git a/api/platform/v1/zz_generated.defaults.go b/api/platform/v1/zz_generated.defaults.go index bf0ada0d2..7ca063ada 100644 --- a/api/platform/v1/zz_generated.defaults.go +++ b/api/platform/v1/zz_generated.defaults.go @@ -24,6 +24,7 @@ package v1 import ( runtime "k8s.io/apimachinery/pkg/runtime" + applicationv1 "tkestack.io/tke/api/application/v1" ) // RegisterDefaults adds defaulters functions to the given scheme. @@ -72,6 +73,11 @@ func SetObjectDefaults_CSIOperatorList(in *CSIOperatorList) { func SetObjectDefaults_Cluster(in *Cluster) { SetDefaults_ClusterSpec(&in.Spec) + SetDefaults_ClusterFeature(&in.Spec.Features) + for i := range in.Spec.BootstrapApps { + a := &in.Spec.BootstrapApps[i] + applicationv1.SetDefaults_AppSpec(&a.App.Spec) + } SetDefaults_ClusterStatus(&in.Status) } diff --git a/api/platform/validation/cluster.go b/api/platform/validation/cluster.go index bdfa30ac9..37928c0ec 100644 --- a/api/platform/validation/cluster.go +++ b/api/platform/validation/cluster.go @@ -23,6 +23,7 @@ import ( "os" "path" "path/filepath" + "reflect" "strings" apimachineryvalidation "k8s.io/apimachinery/pkg/api/validation" @@ -66,10 +67,19 @@ func ValidateClusterUpdate(cluster *types.Cluster, oldCluster *types.Cluster) fi allErrs = append(allErrs, ValidatClusterSpec(&cluster.Spec, field.NewPath("spec"), false)...) allErrs = append(allErrs, ValidateClusterByProvider(cluster)...) allErrs = append(allErrs, ValidateClusterScale(cluster.Cluster, oldCluster.Cluster, fldPath.Child("machines"))...) + allErrs = append(allErrs, ValidateBootstrapApps(cluster.Cluster, oldCluster.Cluster, fldPath.Child("bootstrapApps"))...) return allErrs } +func ValidateBootstrapApps(cluster *platform.Cluster, oldCluster *platform.Cluster, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if !reflect.DeepEqual(cluster.Spec.BootstrapApps, oldCluster.Spec.BootstrapApps) { + allErrs = append(allErrs, field.Invalid(fldPath, "bootstrapApps", "bootstrap apps are not allowed be edited")) + } + return allErrs +} + // ValidateClusterScale tests if master scale up/down to a cluster is valid. func ValidateClusterScale(cluster *platform.Cluster, oldCluster *platform.Cluster, fldPath *field.Path) field.ErrorList { diff --git a/api/platform/zz_generated.deepcopy.go b/api/platform/zz_generated.deepcopy.go index 624333b9f..1d716a0fe 100644 --- a/api/platform/zz_generated.deepcopy.go +++ b/api/platform/zz_generated.deepcopy.go @@ -43,6 +43,24 @@ func (in *AddonSpec) DeepCopy() *AddonSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *App) DeepCopyInto(out *App) { + *out = *in + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new App. +func (in *App) DeepCopy() *App { + if in == nil { + return nil + } + out := new(App) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuthzWebhookAddr) DeepCopyInto(out *AuthzWebhookAddr) { *out = *in @@ -69,6 +87,45 @@ func (in *AuthzWebhookAddr) DeepCopy() *AuthzWebhookAddr { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BootstapApp) DeepCopyInto(out *BootstapApp) { + *out = *in + in.App.DeepCopyInto(&out.App) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstapApp. +func (in *BootstapApp) DeepCopy() *BootstapApp { + if in == nil { + return nil + } + out := new(BootstapApp) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in BootstrapApps) DeepCopyInto(out *BootstrapApps) { + { + in := &in + *out = make(BootstrapApps, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + return + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapApps. +func (in BootstrapApps) DeepCopy() BootstrapApps { + if in == nil { + return nil + } + out := new(BootstrapApps) + in.DeepCopyInto(out) + return *out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *BuiltinAuthzWebhookAddr) DeepCopyInto(out *BuiltinAuthzWebhookAddr) { *out = *in @@ -680,6 +737,128 @@ func (in *ClusterFeature) DeepCopy() *ClusterFeature { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterGroupAPIResourceItem) DeepCopyInto(out *ClusterGroupAPIResourceItem) { + *out = *in + if in.Verbs != nil { + in, out := &in.Verbs, &out.Verbs + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ShortNames != nil { + in, out := &in.ShortNames, &out.ShortNames + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Categories != nil { + in, out := &in.Categories, &out.Categories + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupAPIResourceItem. +func (in *ClusterGroupAPIResourceItem) DeepCopy() *ClusterGroupAPIResourceItem { + if in == nil { + return nil + } + out := new(ClusterGroupAPIResourceItem) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterGroupAPIResourceItems) DeepCopyInto(out *ClusterGroupAPIResourceItems) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.APIResources != nil { + in, out := &in.APIResources, &out.APIResources + *out = make([]ClusterGroupAPIResourceItem, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupAPIResourceItems. +func (in *ClusterGroupAPIResourceItems) DeepCopy() *ClusterGroupAPIResourceItems { + if in == nil { + return nil + } + out := new(ClusterGroupAPIResourceItems) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterGroupAPIResourceItems) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterGroupAPIResourceItemsList) DeepCopyInto(out *ClusterGroupAPIResourceItemsList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ClusterGroupAPIResourceItems, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupAPIResourceItemsList. +func (in *ClusterGroupAPIResourceItemsList) DeepCopy() *ClusterGroupAPIResourceItemsList { + if in == nil { + return nil + } + out := new(ClusterGroupAPIResourceItemsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterGroupAPIResourceItemsList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterGroupAPIResourceOptions) DeepCopyInto(out *ClusterGroupAPIResourceOptions) { + *out = *in + out.TypeMeta = in.TypeMeta + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupAPIResourceOptions. +func (in *ClusterGroupAPIResourceOptions) DeepCopy() *ClusterGroupAPIResourceOptions { + if in == nil { + return nil + } + out := new(ClusterGroupAPIResourceOptions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterGroupAPIResourceOptions) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterList) DeepCopyInto(out *ClusterList) { *out = *in @@ -914,6 +1093,13 @@ func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { (*out)[key] = val } } + if in.BootstrapApps != nil { + in, out := &in.BootstrapApps, &out.BootstrapApps + *out = make(BootstrapApps, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } diff --git a/build/docker/tke-auth-api/build.sh b/build/docker/tke-auth-api/build.sh index 00acda5e2..8bdbe5967 100755 --- a/build/docker/tke-auth-api/build.sh +++ b/build/docker/tke-auth-api/build.sh @@ -1,3 +1,19 @@ #!/usr/bin/env bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + cp -r pkg/auth/web "$DST_DIR" diff --git a/build/docker/tke-auth-controller/build.sh b/build/docker/tke-auth-controller/build.sh index 0c484dc34..668201ab5 100755 --- a/build/docker/tke-auth-controller/build.sh +++ b/build/docker/tke-auth-controller/build.sh @@ -1,3 +1,19 @@ #!/usr/bin/env bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + cp -r hack/auth "$DST_DIR" diff --git a/build/docker/tke-gateway/build.sh b/build/docker/tke-gateway/build.sh index bc61c6a34..8f48b26df 100755 --- a/build/docker/tke-gateway/build.sh +++ b/build/docker/tke-gateway/build.sh @@ -1,5 +1,21 @@ #!/usr/bin/env bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + set -o xtrace set -e diff --git a/build/docker/tools/code-generator/code.sh b/build/docker/tools/code-generator/code.sh index ba4e91bc6..543331b11 100644 --- a/build/docker/tools/code-generator/code.sh +++ b/build/docker/tools/code-generator/code.sh @@ -3,7 +3,7 @@ # Tencent is pleased to support the open source community by making TKEStack # available. # -# Copyright (C) 2012-2020 Tencent. All Rights Reserved. +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. # # 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 diff --git a/build/docker/tools/code-generator/openapi.sh b/build/docker/tools/code-generator/openapi.sh index bdb8c8d80..9ecaf86e7 100644 --- a/build/docker/tools/code-generator/openapi.sh +++ b/build/docker/tools/code-generator/openapi.sh @@ -3,7 +3,7 @@ # Tencent is pleased to support the open source community by making TKEStack # available. # -# Copyright (C) 2012-2020 Tencent. All Rights Reserved. +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. # # 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 diff --git a/build/docker/tools/provider-res/Dockerfile b/build/docker/tools/provider-res/Dockerfile index ddeb0595e..6c0dd4281 100644 --- a/build/docker/tools/provider-res/Dockerfile +++ b/build/docker/tools/provider-res/Dockerfile @@ -26,9 +26,15 @@ COPY linux-arm64/cni-*.tar.gz res/linux-arm64/ COPY linux-amd64/conntrack-tools-*.tar.gz res/linux-amd64/ COPY linux-arm64/conntrack-tools-*.tar.gz res/linux-arm64/ +COPY linux-amd64/nerdctl-*.tar.gz res/linux-amd64/ +COPY linux-arm64/nerdctl-*.tar.gz res/linux-arm64/ + COPY linux-amd64/docker-*.tar.gz res/linux-amd64/ COPY linux-arm64/docker-*.tar.gz res/linux-arm64/ +COPY linux-amd64/containerd-*.tar.gz res/linux-amd64/ +COPY linux-arm64/containerd-*.tar.gz res/linux-arm64/ + COPY linux-amd64/kubernetes-*.tar.gz res/linux-amd64/ COPY linux-arm64/kubernetes-*.tar.gz res/linux-arm64/ @@ -36,4 +42,9 @@ COPY linux-amd64/NVIDIA-*.tar.gz res/linux-amd64/ COPY linux-amd64/nvidia-container-*.tar.gz res/linux-amd64/ +COPY containerd/* res/containerd/ +COPY gpu-manager/* res/gpu-manager/ + +COPY cilium* res/cilium/ + ENTRYPOINT ["sh"] diff --git a/build/docker/tools/provider-res/Makefile b/build/docker/tools/provider-res/Makefile index e42b1e10d..df5c50a01 100644 --- a/build/docker/tools/provider-res/Makefile +++ b/build/docker/tools/provider-res/Makefile @@ -15,7 +15,7 @@ # specific language governing permissions and limitations under the License. IMAGE = provider-res -VERSION = v1.20.4-1 +VERSION = v1.21.4-1 REGISTRY_PREFIX ?= tkestack COMMON_SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST))) @@ -34,6 +34,9 @@ include $(ROOT_DIR)/build/lib/docker-buildx.mk .PHONY: per.build per.build: download @cp "$(ROOT_DIR)/build/docker/tools/$(IMAGE)/Dockerfile" "$(WORK_DIR)/Dockerfile" + @cp -r "$(ROOT_DIR)/pkg/platform/provider/baremetal/conf/containerd" "$(WORK_DIR)/containerd" + @cp -r "$(ROOT_DIR)/pkg/platform/provider/baremetal/manifests/cilium" "$(WORK_DIR)/cilium" + @cp -r "$(ROOT_DIR)/pkg/platform/provider/baremetal/manifests/gpu-manager" "$(WORK_DIR)/gpu-manager" .PHONY: download download: @@ -64,7 +67,7 @@ manifest.multiarch: per.build #@rm -rf "$(WORK_DIR)" @echo "===========> Pushing manifest $(REGISTRY_PREFIX)/$(IMAGE):$(VERSION) and then remove the local manifest list" REGISTRY_PREFIX=$(REGISTRY_PREFIX) PLATFROMS="$(PLATFORMS)" IMAGE=$(IMAGE) VERSION=$(VERSION) \ - DOCKER_CLI_EXPERIMENTAL=enabled $(ROOT_DIR)/build/lib/create-manifest.sh + DOCKER_CLI_EXPERIMENTAL=enabled $(ROOT_DIR)/build/lib/create-manifest.sh ## help: Show this help info. .PHONY: help diff --git a/build/docker/tools/provider-res/download.sh b/build/docker/tools/provider-res/download.sh index 6f030a8e0..cec33ca76 100755 --- a/build/docker/tools/provider-res/download.sh +++ b/build/docker/tools/provider-res/download.sh @@ -3,7 +3,7 @@ # Tencent is pleased to support the open source community by making TKEStack # available. # -# Copyright (C) 2012-2019 Tencent. All Rights Reserved. +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. # # 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 @@ -56,6 +56,41 @@ function download::docker() { done } +function download::containerd() { + if [ "${arch}" == "amd64" ]; then + containerd_arch=amd64 + for version in ${CONTAINERD_VERSIONS}; do + wget -c "https://github.com/containerd/containerd/releases/download/v${version}/cri-containerd-cni-${version}-linux-${containerd_arch}.tar.gz" \ + -O "containerd-${platform}-${version}.tar.gz" + done + elif [ "${arch}" == "arm64" ]; then + containerd_arch=arm64 + for version in ${CONTAINERD_VERSIONS}; do + wget -c "https://tke-release-1251707795.cos.ap-guangzhou.myqcloud.com/cri-containerd-cni-${version}-linux-${containerd_arch}.tar.gz" \ + -O "containerd-${platform}-${version}.tar.gz" + done + else + echo "[ERROR] Fail to get containerd ${arch} on ${platform} platform." + exit 255 + fi +} + +function download::nerdctl() { + if [ "${arch}" == "amd64" ]; then + nerdctl_arch=x86_64 + elif [ "${arch}" == "arm64" ]; then + nerdctl_arch=arm64 + else + echo "[ERROR] Fail to get nerdctl ${arch} on ${platform} platform." + exit 255 + fi + + for version in ${NERDCTL_VERSIONS}; do + wget -c "https://github.com/containerd/nerdctl/releases/download/v${version}/nerdctl-${version}-linux-${arch}.tar.gz" \ + -O "nerdctl-${platform}-${version}.tar.gz" + done +} + function download::kubernetes() { for version in ${K8S_VERSIONS}; do if [[ "${version}" =~ "tke" ]]; then @@ -115,6 +150,8 @@ for os in ${OSS}; do download::cni_plugins download::docker + download::containerd + download::nerdctl download::kubernetes download::nvidia_driver download::nvidia_container_runtime diff --git a/build/docker/tools/provider-res/run.sh b/build/docker/tools/provider-res/run.sh index e2fbff565..6bd612d3f 100755 --- a/build/docker/tools/provider-res/run.sh +++ b/build/docker/tools/provider-res/run.sh @@ -1,5 +1,21 @@ #!/usr/bin/env bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + set -o errexit set -o nounset set -o pipefail @@ -15,4 +31,4 @@ VERSION=$(echo /${RPM_DIR}/${PKG}* | grep -oP '\d+\.\d+\.\d+') cd ${INSTALL_DIR} for rpm in ${RPM_DIR}/*.rpm; do rpm2cpio $rpm | cpio -idm; done -tar -cvzf /output/${PKG}-${OS}-${ARCH}-${VERSION}.tar.gz * \ No newline at end of file +tar -cvzf /output/${PKG}-${OS}-${ARCH}-${VERSION}.tar.gz * diff --git a/build/docker/tools/tke-installer/Dockerfile b/build/docker/tools/tke-installer/Dockerfile index 86a1defaa..bbf9aa627 100644 --- a/build/docker/tools/tke-installer/Dockerfile +++ b/build/docker/tools/tke-installer/Dockerfile @@ -14,7 +14,7 @@ # WARRANTIES OF ANY KIND, either express or implied. See the License for the # specific language governing permissions and limitations under the License. -FROM alpine:3.10 +FROM docker:20.10.8-dind RUN echo "hosts: files dns" >> /etc/nsswitch.conf @@ -22,6 +22,7 @@ WORKDIR /app ENV PATH="/app/bin:$PATH" ENV DOCKER_CLI_EXPERIMENTAL=enabled +ARG ENV_ARCH RUN apk add --no-cache \ bash \ @@ -32,9 +33,12 @@ RUN apk add --no-cache \ ansible RUN apk --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted add lrzsz +RUN wget -O nerdctl-0.11.0-linux.tar.gz https://github.com/containerd/nerdctl/releases/download/v0.11.0/nerdctl-0.11.0-linux-"$ENV_ARCH".tar.gz \ + && tar -zvxf nerdctl-0.11.0-linux.tar.gz -C /usr/local/bin/ \ + && rm -rf nerdctl-0.11.0-linux.tar.gz ADD . /app RUN ln -s /app/.docker /root/.docker -ENTRYPOINT ["/app/bin/tke-installer"] +ENTRYPOINT ["/bin/sh", "-c" , "/app/run.sh"] diff --git a/build/docker/tools/tke-installer/build.sh b/build/docker/tools/tke-installer/build.sh index 2b8406e91..bcd600f92 100755 --- a/build/docker/tools/tke-installer/build.sh +++ b/build/docker/tools/tke-installer/build.sh @@ -3,7 +3,7 @@ # Tencent is pleased to support the open source community by making TKEStack # available. # -# Copyright (C) 2012-2019 Tencent. All Rights Reserved. +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. # # 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 @@ -16,7 +16,6 @@ # WARRANTIES OF ANY KIND, either express or implied. See the License for the # specific language governing permissions and limitations under the License. - set -o errexit set -o nounset set -o pipefail diff --git a/build/docker/tools/tke-installer/dockerd-entrypoint.sh b/build/docker/tools/tke-installer/dockerd-entrypoint.sh new file mode 100755 index 000000000..4749a863f --- /dev/null +++ b/build/docker/tools/tke-installer/dockerd-entrypoint.sh @@ -0,0 +1,208 @@ +#!/bin/sh + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + +set -eu + +_tls_ensure_private() { + local f="$1"; shift + [ -s "$f" ] || openssl genrsa -out "$f" 4096 +} +_tls_san() { + { + ip -oneline address | awk '{ gsub(/\/.+$/, "", $4); print "IP:" $4 }' + { + cat /etc/hostname + echo 'docker' + echo 'localhost' + hostname -f + hostname -s + } | sed 's/^/DNS:/' + [ -z "${DOCKER_TLS_SAN:-}" ] || echo "$DOCKER_TLS_SAN" + } | sort -u | xargs printf '%s,' | sed "s/,\$//" +} +_tls_generate_certs() { + local dir="$1"; shift + + # if ca/key.pem || !ca/cert.pem, generate CA public if necessary + # if ca/key.pem, generate server public + # if ca/key.pem, generate client public + # (regenerating public certs every startup to account for SAN/IP changes and/or expiration) + + # https://github.com/FiloSottile/mkcert/issues/174 + local certValidDays='825' + + if [ -s "$dir/ca/key.pem" ] || [ ! -s "$dir/ca/cert.pem" ]; then + # if we either have a CA private key or do *not* have a CA public key, then we should create/manage the CA + mkdir -p "$dir/ca" + _tls_ensure_private "$dir/ca/key.pem" + openssl req -new -key "$dir/ca/key.pem" \ + -out "$dir/ca/cert.pem" \ + -subj '/CN=docker:dind CA' -x509 -days "$certValidDays" + fi + + if [ -s "$dir/ca/key.pem" ]; then + # if we have a CA private key, we should create/manage a server key + mkdir -p "$dir/server" + _tls_ensure_private "$dir/server/key.pem" + openssl req -new -key "$dir/server/key.pem" \ + -out "$dir/server/csr.pem" \ + -subj '/CN=docker:dind server' + cat > "$dir/server/openssl.cnf" <<-EOF + [ x509_exts ] + subjectAltName = $(_tls_san) + EOF + openssl x509 -req \ + -in "$dir/server/csr.pem" \ + -CA "$dir/ca/cert.pem" \ + -CAkey "$dir/ca/key.pem" \ + -CAcreateserial \ + -out "$dir/server/cert.pem" \ + -days "$certValidDays" \ + -extfile "$dir/server/openssl.cnf" \ + -extensions x509_exts + cp "$dir/ca/cert.pem" "$dir/server/ca.pem" + openssl verify -CAfile "$dir/server/ca.pem" "$dir/server/cert.pem" + fi + + if [ -s "$dir/ca/key.pem" ]; then + # if we have a CA private key, we should create/manage a client key + mkdir -p "$dir/client" + _tls_ensure_private "$dir/client/key.pem" + chmod 0644 "$dir/client/key.pem" # openssl defaults to 0600 for the private key, but this one needs to be shared with arbitrary client contexts + openssl req -new \ + -key "$dir/client/key.pem" \ + -out "$dir/client/csr.pem" \ + -subj '/CN=docker:dind client' + cat > "$dir/client/openssl.cnf" <<-'EOF' + [ x509_exts ] + extendedKeyUsage = clientAuth + EOF + openssl x509 -req \ + -in "$dir/client/csr.pem" \ + -CA "$dir/ca/cert.pem" \ + -CAkey "$dir/ca/key.pem" \ + -CAcreateserial \ + -out "$dir/client/cert.pem" \ + -days "$certValidDays" \ + -extfile "$dir/client/openssl.cnf" \ + -extensions x509_exts + cp "$dir/ca/cert.pem" "$dir/client/ca.pem" + openssl verify -CAfile "$dir/client/ca.pem" "$dir/client/cert.pem" + fi +} + +# no arguments passed +# or first arg is `-f` or `--some-option` +if [ "$#" -eq 0 ] || [ "${1#-}" != "$1" ]; then + # set "dockerSocket" to the default "--host" *unix socket* value (for both standard or rootless) + uid="$(id -u)" + if [ "$uid" = '0' ]; then + dockerSocket='unix:///var/run/docker.sock' + else + # if we're not root, we must be trying to run rootless + : "${XDG_RUNTIME_DIR:=/run/user/$uid}" + dockerSocket="unix://$XDG_RUNTIME_DIR/docker.sock" + fi + case "${DOCKER_HOST:-}" in + unix://*) + dockerSocket="$DOCKER_HOST" + ;; + esac + + # add our default arguments + if [ -n "${DOCKER_TLS_CERTDIR:-}" ] \ + && _tls_generate_certs "$DOCKER_TLS_CERTDIR" \ + && [ -s "$DOCKER_TLS_CERTDIR/server/ca.pem" ] \ + && [ -s "$DOCKER_TLS_CERTDIR/server/cert.pem" ] \ + && [ -s "$DOCKER_TLS_CERTDIR/server/key.pem" ] \ + ; then + # generate certs and use TLS if requested/possible (default in 19.03+) + set -- dockerd \ + --host="$dockerSocket" \ + --host=tcp://0.0.0.0:2376 \ + --tlsverify \ + --tlscacert "$DOCKER_TLS_CERTDIR/server/ca.pem" \ + --tlscert "$DOCKER_TLS_CERTDIR/server/cert.pem" \ + --tlskey "$DOCKER_TLS_CERTDIR/server/key.pem" \ + "$@" + DOCKERD_ROOTLESS_ROOTLESSKIT_FLAGS="${DOCKERD_ROOTLESS_ROOTLESSKIT_FLAGS:-} -p 0.0.0.0:2376:2376/tcp" + else + # TLS disabled (-e DOCKER_TLS_CERTDIR='') or missing certs + set -- dockerd \ + --host="$dockerSocket" \ + --host=tcp://0.0.0.0:2375 \ + "$@" + DOCKERD_ROOTLESS_ROOTLESSKIT_FLAGS="${DOCKERD_ROOTLESS_ROOTLESSKIT_FLAGS:-} -p 0.0.0.0:2375:2375/tcp" + fi +fi + +if [ "$1" = 'dockerd' ]; then + # explicitly remove Docker's default PID file to ensure that it can start properly if it was stopped uncleanly (and thus didn't clean up the PID file) + find /run /var/run -iname 'docker*.pid' -delete || : + + if dockerd --version | grep -qF ' 20.10.'; then + # XXX inject "docker-init" (tini) as pid1 to workaround https://github.com/docker-library/docker/issues/318 (zombie container-shim processes) + set -- docker-init -- "$@" + fi + + uid="$(id -u)" + if [ "$uid" != '0' ]; then + # if we're not root, we must be trying to run rootless + if ! command -v rootlesskit > /dev/null; then + echo >&2 "error: attempting to run rootless dockerd but missing 'rootlesskit' (perhaps the 'docker:dind-rootless' image variant is intended?)" + exit 1 + fi + user="$(id -un 2>/dev/null || :)" + if ! grep -qE "^($uid${user:+|$user}):" /etc/subuid || ! grep -qE "^($uid${user:+|$user}):" /etc/subgid; then + echo >&2 "error: attempting to run rootless dockerd but missing necessary entries in /etc/subuid and/or /etc/subgid for $uid" + exit 1 + fi + : "${XDG_RUNTIME_DIR:=/run/user/$uid}" + export XDG_RUNTIME_DIR + if ! mkdir -p "$XDG_RUNTIME_DIR" || [ ! -w "$XDG_RUNTIME_DIR" ] || ! mkdir -p "$HOME/.local/share/docker" || [ ! -w "$HOME/.local/share/docker" ]; then + echo >&2 "error: attempting to run rootless dockerd but need writable HOME ($HOME) and XDG_RUNTIME_DIR ($XDG_RUNTIME_DIR) for user $uid" + exit 1 + fi + if [ -f /proc/sys/kernel/unprivileged_userns_clone ] && unprivClone="$(cat /proc/sys/kernel/unprivileged_userns_clone)" && [ "$unprivClone" != '1' ]; then + echo >&2 "error: attempting to run rootless dockerd but need 'kernel.unprivileged_userns_clone' (/proc/sys/kernel/unprivileged_userns_clone) set to 1" + exit 1 + fi + if [ -f /proc/sys/user/max_user_namespaces ] && maxUserns="$(cat /proc/sys/user/max_user_namespaces)" && [ "$maxUserns" = '0' ]; then + echo >&2 "error: attempting to run rootless dockerd but need 'user.max_user_namespaces' (/proc/sys/user/max_user_namespaces) set to a sufficiently large value" + exit 1 + fi + # TODO overlay support detection? + exec rootlesskit \ + --net="${DOCKERD_ROOTLESS_ROOTLESSKIT_NET:-vpnkit}" \ + --mtu="${DOCKERD_ROOTLESS_ROOTLESSKIT_MTU:-1500}" \ + --disable-host-loopback \ + --port-driver=builtin \ + --copy-up=/etc \ + --copy-up=/run \ + ${DOCKERD_ROOTLESS_ROOTLESSKIT_FLAGS:-} \ + "$@" + elif [ -x '/usr/local/bin/dind' ]; then + # if we have the (mostly defunct now) Docker-in-Docker wrapper script, use it + set -- '/usr/local/bin/dind' "$@" + fi +else + # if it isn't `dockerd` we're trying to run, pass it through `docker-entrypoint.sh` so it gets `DOCKER_HOST` set appropriately too + set -- docker-entrypoint.sh "$@" +fi + +exec "$@" diff --git a/build/docker/tools/tke-installer/init_installer.sh b/build/docker/tools/tke-installer/init_installer.sh index afefd43ee..70a5b3dbb 100755 --- a/build/docker/tools/tke-installer/init_installer.sh +++ b/build/docker/tools/tke-installer/init_installer.sh @@ -3,7 +3,7 @@ # Tencent is pleased to support the open source community by making TKEStack # available. # -# Copyright (C) 2012-2019 Tencent. All Rights Reserved. +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. # # 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 diff --git a/build/docker/tools/tke-installer/install.sh b/build/docker/tools/tke-installer/install.sh index 369c563bc..f33492e93 100755 --- a/build/docker/tools/tke-installer/install.sh +++ b/build/docker/tools/tke-installer/install.sh @@ -3,7 +3,7 @@ # Tencent is pleased to support the open source community by making TKEStack # available. # -# Copyright (C) 2012-2019 Tencent. All Rights Reserved. +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. # # 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 @@ -32,16 +32,30 @@ VERSION=latest INSTALL_DIR=/opt/tke-installer DATA_DIR=$INSTALL_DIR/data +REGISTRY_DIR=$INSTALL_DIR/registry +REGISTRY_VERSION=2.7.1 OPTIONS="--name tke-installer -d --privileged --net=host --restart=always -v /etc/hosts:/app/hosts --v /etc/docker:/etc/docker --v /var/run/docker.sock:/var/run/docker.sock -v $DATA_DIR:/app/data +-v /var/run/containerd/containerd.sock:/var/run/containerd/containerd.sock +-v /run/containerd/:/run/containerd/ -v $INSTALL_DIR/conf:/app/conf -v registry-certs:/app/certs -v tke-installer-bin:/app/bin " +RegistryHTTPOptions="--name registry-http -d --net=host --restart=always -p 80:5000 +-e REGISTRY_HTTP_ADDR=0.0.0.0:80 \ +-v $REGISTRY_DIR:/var/lib/registry +" +RegistryHTTPSOptions="--name registry-https -d --net=host --restart=always -p 443:443 +-v $REGISTRY_DIR:/var/lib/registry +-v registry-certs:/certs +-e REGISTRY_HTTP_ADDR=0.0.0.0:443 +-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/server.crt +-e REGISTRY_HTTP_TLS_KEY=/certs/server.key +" + declare -A archMap=( [x86_64]=amd64 [aarch64]=arm64 @@ -56,6 +70,7 @@ function preflight() { echo "Step.1 preflight" check::root + check::docker check::disk '/opt' 30 check::disk '/var/lib' 20 } @@ -81,50 +96,61 @@ function check::disk() { echo "available disk space($path): $disk_avail GiB" } -function ensure_docker() { - echo "Step.2 check docker status" +function check::docker() { + echo "check docker status" - if ! [ -x "$(command -v docker)" ]; then - echo "command docker not find" - install_docker + if systemctl is-active --quiet docker; then + echo "docker is running,please stop docker before using containerd runtime" + echo "if the migration case please follow the migration doc:" + echo "https://tkestack.github.io/web/zh/blog/2021/09/01/container-runtime-migraion/" + exit 1 fi - if ! systemctl is-active --quiet docker; then - echo "docker status is not running" - install_docker +} + +function ensure_containerd() { + echo "Step.2 check containerd status" + + if ! [ -x "$(command -v nerdctl)" ]; then + echo "command nerdctl not find" + install_containerd + fi + if ! systemctl is-active --quiet containerd; then + echo "containerd status is not running" + install_containerd fi } -function install_docker() { - echo "install docker [in process]" +function install_containerd() { + echo "install containerd [in process]" - tar xvaf "res/docker.tgz" -C /usr/bin --strip-components=1 - cp -v res/docker.service /etc/systemd/system - mkdir -p /etc/docker - cp -v res/daemon.json /etc/docker/ + # Install containerd exclude cni binaries and cni config file. + tar xvaf "res/containerd.tar.gz" -C / --exclude=etc/cni --exclude=opt + tar xvaf "res/nerdctl.tar.gz" -C /usr/local/bin/ systemctl daemon-reload # becuase first start docker may be restart some times - systemctl start docker || : + systemctl start containerd || : maxSecond=60 for i in $(seq 1 $maxSecond); do - if systemctl is-active --quiet docker; then + if systemctl is-active --quiet containerd; then break fi sleep 1 done if ((i == maxSecond)); then - echo "start docker failed, please check docker service." + echo "start containerd failed, please check containerd service." exit 1 fi - echo "install docker [done]" + echo "install containerd [done]" } function load_image() { echo "Step.3 load tke-installer image [in process]" - docker load -i res/tke-installer.tgz + nerdctl load -i res/tke-installer.tar + nerdctl load -i res/registry.tar echo "Step.3 load tke-installer image [done]" } @@ -132,8 +158,11 @@ function load_image() { function clean_old_data() { echo "Step.4 clean old data [in process]" - docker rm -f tke-installer >/dev/null 2>&1 || : - docker volume prune -f >/dev/null 2>&1 || : + nerdctl stop tke-installer >/dev/null 2>&1 && nerdctl rm tke-installer >/dev/null 2>&1 || : + nerdctl stop registry-http >/dev/null 2>&1 && nerdctl rm registry-http >/dev/null 2>&1 || : + nerdctl stop registry-https >/dev/null 2>&1 && nerdctl rm registry-https >/dev/null 2>&1 || : + nerdctl volume rm tke-installer-bin >/dev/null 2>&1 || : + nerdctl volume rm registry-certs >/dev/null 2>&1 || : if [ -d "$DATA_DIR" ]; then rm -f $DATA_DIR/tke.json >/dev/null 2>&1 || : @@ -145,12 +174,21 @@ function clean_old_data() { function start_installer() { echo "Step.5 start tke-installer [in process]" - - docker run $OPTIONS "tkestack/tke-installer-${ARCH}:$VERSION" $@ + mkdir -p $DATA_DIR + mkdir -p $INSTALL_DIR/conf + nerdctl run $OPTIONS "tkestack/tke-installer-${ARCH}:$VERSION" $@ echo "Step.5 start tke-installer [done]" } +function start_registry() { + echo "Step.6 start regisry [in process]" + + mkdir -p $REGISTRY_DIR + nerdctl run $RegistryHTTPOptions "tkestack/registry-${ARCH}:$REGISTRY_VERSION" $@ + nerdctl run $RegistryHTTPSOptions "tkestack/registry-${ARCH}:$REGISTRY_VERSION" $@ + echo "Step.6 start registry [done]" +} function check_installer() { s=10 @@ -169,13 +207,14 @@ function check_installer() { fi done echo "check installer status error" - docker logs tke-installer - exit 1 + nerdctl logs tke-installer + exit 1 } preflight -ensure_docker +ensure_containerd load_image clean_old_data start_installer $@ +start_registry $@ check_installer diff --git a/build/docker/tools/tke-installer/release.sh b/build/docker/tools/tke-installer/release.sh index d9073ae3d..b48e4f4f1 100755 --- a/build/docker/tools/tke-installer/release.sh +++ b/build/docker/tools/tke-installer/release.sh @@ -3,7 +3,7 @@ # Tencent is pleased to support the open source community by making TKEStack # available. # -# Copyright (C) 2012-2019 Tencent. All Rights Reserved. +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. # # 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 @@ -23,9 +23,12 @@ set -o pipefail REGISTRY_PREFIX=${REGISTRY_PREFIX:-tkestack} BUILDER=${BUILDER:-default} VERSION=${VERSION:-$(git describe --dirty --always --tags | sed 's/-/./g')} -PROVIDER_RES_VERSION=v1.20.4-1 +PROVIDER_RES_VERSION=v1.21.4-1 K8S_VERSION=${PROVIDER_RES_VERSION%-*} DOCKER_VERSION=19.03.14 +CONTAINERD_VERSION=1.5.4 +NERDCTL_VERSION=0.11.0 +REGISTRY_VERSION=2.7.1 OSS=(linux) ARCHS=(amd64 arm64) OUTPUT_DIR=_output @@ -75,6 +78,8 @@ function prepare::tke_installer() { cp -rv cmd/tke-installer/app/installer/hooks "${DST_DIR}" cp -rv "${SCRIPT_DIR}/certs" "${DST_DIR}" cp -rv "${SCRIPT_DIR}/.docker" "${DST_DIR}" + cp -rv "${SCRIPT_DIR}/run.sh" "${DST_DIR}" + cp -rv "${SCRIPT_DIR}/dockerd-entrypoint.sh" "${DST_DIR}" make web.build.installer cp -rv web/installer/build "${DST_DIR}/assets" @@ -83,7 +88,7 @@ function prepare::tke_installer() { function build::installer_image() { local -r arch="$1" - docker build --platform="${arch}" --pull -t "${REGISTRY_PREFIX}/tke-installer-${arch}:$VERSION" -f "${SCRIPT_DIR}/Dockerfile" "${DST_DIR}" + docker build --platform="${arch}" --build-arg ENV_ARCH="${arch}" --pull -t "${REGISTRY_PREFIX}/tke-installer-${arch}:$VERSION" -f "${SCRIPT_DIR}/Dockerfile" "${DST_DIR}" } function build::installer() { @@ -102,10 +107,15 @@ function build::installer() { "${INSTALLER_DIR}/res/docker.tgz" cp -v pkg/platform/provider/baremetal/conf/docker/docker.service "${INSTALLER_DIR}/res/" cp -v build/docker/tools/tke-installer/daemon.json "${INSTALLER_DIR}/res/" + cp -v "${DST_DIR}/provider/baremetal/res/${target_platform}/containerd-${target_platform}-${CONTAINERD_VERSION}.tar.gz" "${INSTALLER_DIR}/res/containerd.tar.gz" + cp -v "${DST_DIR}/provider/baremetal/res/${target_platform}/nerdctl-${target_platform}-${NERDCTL_VERSION}.tar.gz" "${INSTALLER_DIR}/res/nerdctl.tar.gz" - docker save "${REGISTRY_PREFIX}/tke-installer-${arch}:$VERSION" | gzip -c > "${INSTALLER_DIR}/res/tke-installer.tgz" + docker save "${REGISTRY_PREFIX}/tke-installer-${arch}:$VERSION" -o "${INSTALLER_DIR}/res/tke-installer.tar" + docker pull "${REGISTRY_PREFIX}/registry-${arch}:$REGISTRY_VERSION" + docker save "${REGISTRY_PREFIX}/registry-${arch}:$REGISTRY_VERSION" -o "${INSTALLER_DIR}/res/registry.tar" sed -i "s;VERSION=.*;VERSION=$VERSION;g" "${INSTALLER_DIR}/install.sh" + sed -i "s;REGISTRY_VERSION=.*;REGISTRY_VERSION=$REGISTRY_VERSION;g" "${INSTALLER_DIR}/install.sh" "${INSTALLER_DIR}/build.sh" "${installer}" cp -v "${INSTALLER_DIR}/${installer}" $OUTPUT_DIR diff --git a/build/docker/tools/tke-installer/run.sh b/build/docker/tools/tke-installer/run.sh new file mode 100755 index 000000000..cc25da5ff --- /dev/null +++ b/build/docker/tools/tke-installer/run.sh @@ -0,0 +1,52 @@ +#!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + +# Start the first process +./dockerd-entrypoint.sh& +status=$? +if [ $status -ne 0 ]; then + echo "Failed to start my_first_process: $status" + exit $status +fi + +# Start the second process +./bin/tke-installer +status=$? +if [ $status -ne 0 ]; then + echo "Failed to start my_second_process: $status" + exit $status +fi + +# Naive check runs checks once a minute to see if either of the processes exited. +# This illustrates part of the heavy lifting you need to do if you want to run +# more than one service in a container. The container exits with an error +# if it detects that either of the processes has exited. +# Otherwise it loops forever, waking up every 60 seconds + +while sleep 60; do + ps aux |grep tke-installer |grep -q -v grep + PROCESS_1_STATUS=$? + ps aux |grep docker-init |grep -q -v grep + PROCESS_2_STATUS=$? + # If the greps above find anything, they exit with 0 status + # If they are not both 0, then something is wrong + if [ $PROCESS_1_STATUS -ne 0 -o $PROCESS_2_STATUS -ne 0 ]; then + echo "One of the processes has already exited." + exit 1 + fi +done diff --git a/build/lib/create-manifest.sh b/build/lib/create-manifest.sh index bf671600c..0ac63b273 100755 --- a/build/lib/create-manifest.sh +++ b/build/lib/create-manifest.sh @@ -3,7 +3,7 @@ # Tencent is pleased to support the open source community by making TKEStack # available. # -# Copyright (C) 2012-2019 Tencent. All Rights Reserved. +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. # # 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 diff --git a/build/lib/web.mk b/build/lib/web.mk index 4f6ce51cc..ea5cd1b72 100644 --- a/build/lib/web.mk +++ b/build/lib/web.mk @@ -14,29 +14,30 @@ # WARRANTIES OF ANY KIND, either express or implied. See the License for the # specific language governing permissions and limitations under the License. -NODE_SUPPORTED_VERSION = v12 -NPM = npm +NVM_VERSION = v0.38.0 .PHONY: web.build web.build: web.verify web.build.console web.build.installer .PHONY: web.verify +.ONESHELL: web.verify: - @echo "===========> Check Node.js version" -ifneq ($(shell node -v | cut -f1 -d.), $(NODE_SUPPORTED_VERSION)) - @echo "===========> Install Node.js v12" - curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - - sudo apt-get install -y nodejs -endif + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$(NVM_VERSION)/install.sh | bash .PHONY: web.build.console +.ONESHELL: web.build.console: web.verify @echo "===========> Building the console web app" - @mkdir -p $(ROOT_DIR)/web/console/build - @cd $(ROOT_DIR)/web/console && $(NPM) run build + @cd $(ROOT_DIR)/web/console + @source $(HOME)/.nvm/nvm.sh + @nvm install + @npm run build .PHONY: web.build.installer +.ONESHELL: web.build.installer: web.verify - @echo "===========> Building the installer web app" - @mkdir -p $(ROOT_DIR)/web/installer/build - @cd $(ROOT_DIR)/web/installer && $(NPM) run build + @echo "===========> Building the Installer web app" + @cd $(ROOT_DIR)/web/installer + @source $(HOME)/.nvm/nvm.sh + @nvm install + @npm run build diff --git a/build/script/openapi.sh b/build/script/openapi.sh index ca72888cb..d95fbef6b 100755 --- a/build/script/openapi.sh +++ b/build/script/openapi.sh @@ -3,7 +3,7 @@ # Tencent is pleased to support the open source community by making TKEStack # available. # -# Copyright (C) 2012-2019 Tencent. All Rights Reserved. +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. # # 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 diff --git a/cmd/setup-env/main.go b/cmd/setup-env/main.go index 10e15c482..62b9738f2 100644 --- a/cmd/setup-env/main.go +++ b/cmd/setup-env/main.go @@ -33,6 +33,8 @@ func main() { env = append(env, fmt.Sprintf("OSS=%s", strings.Join(spec.OSs, " "))) env = append(env, fmt.Sprintf("K8S_VERSIONS=%s", strings.Join(spec.K8sVersionsWithV, " "))) env = append(env, fmt.Sprintf("DOCKER_VERSIONS=%s", strings.Join(spec.DockerVersions, " "))) + env = append(env, fmt.Sprintf("CONTAINERD_VERSIONS=%s", strings.Join(spec.ContainerdVersions, " "))) + env = append(env, fmt.Sprintf("NERDCTL_VERSIONS=%s", strings.Join(spec.NerdctlVersions, " "))) env = append(env, fmt.Sprintf("CNI_PLUGINS_VERSIONS=%s", strings.Join(spec.CNIPluginsVersions, " "))) env = append(env, fmt.Sprintf("NVIDIA_DRIVER_VERSIONS=%s", strings.Join(spec.NvidiaDriverVersions, " "))) env = append(env, fmt.Sprintf("NVIDIA_CONTAINER_RUNTIME_VERSIONS=%s", strings.Join(spec.NvidiaContainerRuntimeVersions, " "))) diff --git a/cmd/tke-auth-api/app/config/config.go b/cmd/tke-auth-api/app/config/config.go index 5006c6c92..ea1813d83 100644 --- a/cmd/tke-auth-api/app/config/config.go +++ b/cmd/tke-auth-api/app/config/config.go @@ -47,7 +47,6 @@ import ( "k8s.io/apiserver/pkg/authorization/authorizer" genericapiserver "k8s.io/apiserver/pkg/server" serverstorage "k8s.io/apiserver/pkg/server/storage" - k8sinformers "k8s.io/client-go/informers" authapi "tkestack.io/tke/api/auth" authinternalclient "tkestack.io/tke/api/client/clientset/internalversion/typed/auth/internalversion" @@ -71,7 +70,6 @@ import ( "tkestack.io/tke/pkg/auth/authorization/aggregation" dexutil "tkestack.io/tke/pkg/auth/util/dex" casbinlogger "tkestack.io/tke/pkg/auth/util/logger" - "tkestack.io/tke/pkg/util/apiclient" "tkestack.io/tke/pkg/util/log" "tkestack.io/tke/pkg/util/log/dex" ) @@ -87,7 +85,6 @@ type Config struct { OIDCExternalAddress string GenericAPIServerConfig *genericapiserver.Config VersionedSharedInformerFactory versionedinformers.SharedInformerFactory - K8sSharedInformerFactory k8sinformers.SharedInformerFactory StorageFactory *serverstorage.DefaultStorageFactory DexConfig *dexserver.Config @@ -148,11 +145,6 @@ func CreateConfigFromOptions(serverName string, opts *options.Options) (*Config, } versionedInformers := versionedinformers.NewSharedInformerFactory(clientgoExternalClient, 10*time.Minute) - k8sClient, err := apiclient.BuildKubeClient() - if err != nil { - return nil, fmt.Errorf("failed to create real external clientset: %v", err) - } - k8sInformers := k8sinformers.NewSharedInformerFactory(k8sClient, 1*time.Minute) enforcer, err := setupCasbinEnforcer(opts.Authorization) if err != nil { return nil, err @@ -169,7 +161,7 @@ func CreateConfigFromOptions(serverName string, opts *options.Options) (*Config, return nil, err } - aggregateAuthz, err := aggregation.NewAuthorizer(authClient, opts.Authorization, opts.Auth, enforcer, opts.Authentication.PrivilegedUsername, k8sInformers) + aggregateAuthz, err := aggregation.NewAuthorizer(authClient, opts.Authorization, opts.Auth, enforcer, opts.Authentication.PrivilegedUsername) if err != nil { return nil, err } @@ -208,7 +200,6 @@ func CreateConfigFromOptions(serverName string, opts *options.Options) (*Config, GenericAPIServerConfig: genericAPIServerConfig, StorageFactory: storageFactory, VersionedSharedInformerFactory: versionedInformers, - K8sSharedInformerFactory: k8sInformers, DexConfig: dexConfig, DexStorage: dexConfig.Storage, CasbinEnforcer: enforcer, diff --git a/cmd/tke-auth-api/app/server.go b/cmd/tke-auth-api/app/server.go index 931da5d08..64b6cb3d7 100644 --- a/cmd/tke-auth-api/app/server.go +++ b/cmd/tke-auth-api/app/server.go @@ -41,7 +41,6 @@ func CreateServerChain(cfg *config.Config) (*genericapiserver.GenericAPIServer, apiServer.GenericAPIServer.AddPostStartHookOrDie("start-auth-api-server-informers", func(context genericapiserver.PostStartHookContext) error { cfg.VersionedSharedInformerFactory.Start(context.StopCh) - cfg.K8sSharedInformerFactory.Start(context.StopCh) return nil }) diff --git a/cmd/tke-business-api/app/config/config.go b/cmd/tke-business-api/app/config/config.go index 991d7a378..ddc8a57e3 100644 --- a/cmd/tke-business-api/app/config/config.go +++ b/cmd/tke-business-api/app/config/config.go @@ -44,7 +44,6 @@ import ( "tkestack.io/tke/pkg/auth/filter" "tkestack.io/tke/pkg/business/apiserver" controllerconfig "tkestack.io/tke/pkg/controller/config" - "tkestack.io/tke/pkg/util/log" ) const ( @@ -132,11 +131,7 @@ func CreateConfigFromOptions(serverName string, opts *options.Options) (*Config, if err != nil { return nil, err } - clusterInspector, err := filter.NewClusterInspector(platformClient.PlatformV1(), opts.Authentication.PrivilegedUsername) - if err != nil { - log.Errorf("create clusterInspector failed: %+v", err) - return nil, err - } + clusterInspector := filter.NewClusterInspector(platformClient.PlatformV1(), opts.Authentication.PrivilegedUsername) genericAPIServerConfig.BuildHandlerChainFunc = handler.BuildHandlerChain(nil, nil, []filter.Inspector{clusterInspector}) cfg := &Config{ diff --git a/cmd/tke-installer/app/installer/images/images.go b/cmd/tke-installer/app/installer/images/images.go index e7014f712..03ee6968f 100644 --- a/cmd/tke-installer/app/installer/images/images.go +++ b/cmd/tke-installer/app/installer/images/images.go @@ -76,7 +76,7 @@ var components = Components{ InfluxDB: containerregistry.Image{Name: "influxdb", Tag: "1.7.9"}, Thanos: containerregistry.Image{Name: "thanos", Tag: "v0.15.0"}, - ProviderRes: containerregistry.Image{Name: "provider-res", Tag: "v1.20.4-1"}, + ProviderRes: containerregistry.Image{Name: "provider-res", Tag: "v1.21.4-1"}, TKEAuthAPI: containerregistry.Image{Name: "tke-auth-api", Tag: Version}, TKEAuthController: containerregistry.Image{Name: "tke-auth-controller", Tag: Version}, diff --git a/cmd/tke-installer/app/installer/installer.go b/cmd/tke-installer/app/installer/installer.go index 086ee343e..d248edff2 100644 --- a/cmd/tke-installer/app/installer/installer.go +++ b/cmd/tke-installer/app/installer/installer.go @@ -31,7 +31,6 @@ import ( "os" "os/exec" "path" - goruntime "runtime" "sort" "strings" "time" @@ -753,6 +752,7 @@ func (t *TKE) setClusterDefault(cluster *platformv1.Cluster, config *types.Confi } cluster.Spec.Features.EnableMasterSchedule = true + cluster.Spec.PublicAlternativeNames = append(cluster.Spec.PublicAlternativeNames, t.Para.Config.Gateway.Domain) if config.HA != nil { if t.Para.Config.HA.TKEHA != nil { cluster.Spec.Features.HA = &platformv1.HA{ @@ -1128,14 +1128,18 @@ func (t *TKE) runAfterClusterReady() bool { func (t *TKE) generateCertificates(ctx context.Context) error { var dnsNames []string + ips := []net.IP{net.ParseIP("127.0.0.1")} if t.Para.Config.Gateway != nil && t.Para.Config.Gateway.Domain != "" { - dnsNames = append(dnsNames, t.Para.Config.Gateway.Domain) + if ip := net.ParseIP(t.Para.Config.Gateway.Domain); ip != nil { + ips = append(ips, ip) + } else { + dnsNames = append(dnsNames, t.Para.Config.Gateway.Domain) + } } if t.Para.Config.Registry.TKERegistry != nil { dnsNames = append(dnsNames, t.Para.Config.Registry.TKERegistry.Domain, "*."+t.Para.Config.Registry.TKERegistry.Domain) } - ips := []net.IP{net.ParseIP("127.0.0.1")} for _, one := range t.Cluster.Spec.Machines { ips = append(ips, net.ParseIP(one.IP)) } @@ -1184,6 +1188,8 @@ func (t *TKE) createGlobalCluster(ctx context.Context) error { } t.completeWithProvider() + t.Cluster.Spec.Features.ContainerRuntime = platformv1.Containerd + if t.Cluster.Spec.ClusterCredentialRef == nil { credential := &platformv1.ClusterCredential{ ObjectMeta: metav1.ObjectMeta{ @@ -1258,18 +1264,13 @@ func (t *TKE) tagImages(ctx context.Context) error { func (t *TKE) setupLocalRegistry(ctx context.Context) error { server := t.Para.Config.Registry.Domain() - err := t.startLocalRegistry() - if err != nil { - return errors.Wrap(err, "start local registry error") - } - // for push image to local registry localHosts := hosts.LocalHosts{Host: server, File: "hosts"} - err = localHosts.Set("127.0.0.1") + err := localHosts.Set("127.0.0.1") if err != nil { return err } - localHosts.File = "/etc/hosts" + localHosts.File = "/app/hosts" err = localHosts.Set("127.0.0.1") if err != nil { return err @@ -1284,33 +1285,6 @@ func (t *TKE) setupLocalRegistry(ctx context.Context) error { return nil } -func (t *TKE) startLocalRegistry() error { - err := t.stopLocalRegistry(context.Background()) - if err != nil { - return err - } - - err = t.docker.ClearLocalManifests() - if err != nil { - return err - } - - registryImage := strings.ReplaceAll(images.Get().Registry.FullName(), ":", fmt.Sprintf("-%s:", goruntime.GOARCH)) - - err = t.docker.RunImage(registryImage, constants.RegistryHTTPOptions, "") - if err != nil { - return err - } - - // for docker manifest create which --insecure is not working - err = t.docker.RunImage(registryImage, constants.RegistryHTTPSOptions, "") - if err != nil { - return err - } - - return nil -} - func (t *TKE) readOrGenerateString(filename string) string { var ( data []byte @@ -1491,6 +1465,7 @@ func (t *TKE) prepareBaremetalProviderConfig(ctx context.Context) error { providerConfig.Business.Enabled = true } providerConfig.PlatformAPIClientConfig = "conf/tke-platform-config.yaml" + providerConfig.ApplicationAPIClientConfig = "conf/tke-application-config.yaml" // todo using ingress to expose authz service for ha.( // users do not known nodeport when assigned vport in third party loadbalance) providerConfig.AuthzWebhook.Endpoint = t.authzWebhookBuiltinEndpoint() @@ -1572,7 +1547,7 @@ func (t *TKE) prepareImages(ctx context.Context) error { if err != nil { return err } - cmdString := fmt.Sprintf("docker pull %s", images.Get().TKEGateway.FullName()) + cmdString := fmt.Sprintf("nerdctl --insecure-registry --namespace k8s.io pull %s", images.Get().TKEGateway.FullName()) _, err = machineSSH.CombinedOutput(cmdString) if err != nil { return errors.Wrap(err, machine.IP) @@ -2345,7 +2320,7 @@ func (t *TKE) preparePushImagesToTKERegistry(ctx context.Context) error { if err != nil { return err } - localHosts.File = "/etc/hosts" + localHosts.File = "/app/hosts" err = localHosts.Set(t.servers[0]) if err != nil { return err diff --git a/cmd/tke-installer/app/installer/manifests/tke-application-api/tke-application-api.yaml b/cmd/tke-installer/app/installer/manifests/tke-application-api/tke-application-api.yaml index 719e1b981..a4537ef17 100644 --- a/cmd/tke-installer/app/installer/manifests/tke-application-api/tke-application-api.yaml +++ b/cmd/tke-installer/app/installer/manifests/tke-application-api/tke-application-api.yaml @@ -123,12 +123,6 @@ data: group_headers = "X-Remote-Group" extra_headers_prefix = "X-Remote-Extra-" - [authorization] -{{- if .EnableAuth }} - mode = "Webhook" - webhook_config_file = "/app/conf/tke-auth-webhook.yaml" -{{- end }} - [secure_serving] tls_cert_file = "/app/certs/server.crt" tls_private_key_file = "/app/certs/server.key" diff --git a/cmd/tke-installer/app/installer/manifests/tke-auth-api/tke-auth-api.yaml b/cmd/tke-installer/app/installer/manifests/tke-auth-api/tke-auth-api.yaml index 06a287f3c..8eedcb0ac 100644 --- a/cmd/tke-installer/app/installer/manifests/tke-auth-api/tke-auth-api.yaml +++ b/cmd/tke-installer/app/installer/manifests/tke-auth-api/tke-auth-api.yaml @@ -1,21 +1,4 @@ --- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - annotations: - rbac.authorization.kubernetes.io/autoupdate: "true" - labels: - kubernetes.io/bootstrapping: rbac-defaults - name: tke-bind -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: cluster-admin -subjects: - - kind: ServiceAccount - name: default - namespace: tke ---- kind: Service apiVersion: v1 metadata: diff --git a/cmd/tke-installer/app/installer/manifests/tke-business-api/tke-business-api.yaml b/cmd/tke-installer/app/installer/manifests/tke-business-api/tke-business-api.yaml index 2d9d06cb2..2047da149 100644 --- a/cmd/tke-installer/app/installer/manifests/tke-business-api/tke-business-api.yaml +++ b/cmd/tke-installer/app/installer/manifests/tke-business-api/tke-business-api.yaml @@ -138,12 +138,6 @@ data: group_headers = "X-Remote-Group" extra_headers_prefix = "X-Remote-Extra-" - [authorization] -{{- if .EnableAuth }} - mode = "Webhook" - webhook_config_file = "/app/conf/tke-auth-webhook.yaml" -{{- end }} - [client] [client.platform] diff --git a/cmd/tke-installer/app/installer/manifests/tke-logagent-api/tke-logagent-api.yaml b/cmd/tke-installer/app/installer/manifests/tke-logagent-api/tke-logagent-api.yaml index d50905446..1e0c61048 100644 --- a/cmd/tke-installer/app/installer/manifests/tke-logagent-api/tke-logagent-api.yaml +++ b/cmd/tke-installer/app/installer/manifests/tke-logagent-api/tke-logagent-api.yaml @@ -138,12 +138,6 @@ data: group_headers = "X-Remote-Group" extra_headers_prefix = "X-Remote-Extra-" - [authorization] -{{- if .EnableAuth }} - mode = "Webhook" - webhook_config_file = "/app/conf/tke-auth-webhook.yaml" -{{- end }} - [client] [client.platform] diff --git a/cmd/tke-installer/app/installer/manifests/tke-mesh-api/tke-mesh-api.yaml b/cmd/tke-installer/app/installer/manifests/tke-mesh-api/tke-mesh-api.yaml index b93d76a23..9577c2ded 100644 --- a/cmd/tke-installer/app/installer/manifests/tke-mesh-api/tke-mesh-api.yaml +++ b/cmd/tke-installer/app/installer/manifests/tke-mesh-api/tke-mesh-api.yaml @@ -140,12 +140,6 @@ data: group_headers = "X-Remote-Group" extra_headers_prefix = "X-Remote-Extra-" - [authorization] -{{- if .EnableAuth }} - mode = "Webhook" - webhook_config_file = "/app/conf/tke-auth-webhook.yaml" -{{- end }} - [client] [client.platform] diff --git a/cmd/tke-installer/app/installer/manifests/tke-monitor-api/tke-monitor-api.yaml b/cmd/tke-installer/app/installer/manifests/tke-monitor-api/tke-monitor-api.yaml index e0e633e0f..fe14985a9 100644 --- a/cmd/tke-installer/app/installer/manifests/tke-monitor-api/tke-monitor-api.yaml +++ b/cmd/tke-installer/app/installer/manifests/tke-monitor-api/tke-monitor-api.yaml @@ -140,12 +140,6 @@ data: group_headers = "X-Remote-Group" extra_headers_prefix = "X-Remote-Extra-" - [authorization] -{{- if .EnableAuth }} - mode = "Webhook" - webhook_config_file = "/app/conf/tke-auth-webhook.yaml" -{{- end }} - [client] [client.platform] diff --git a/cmd/tke-installer/app/installer/manifests/tke-notify-api/tke-notify-api.yaml b/cmd/tke-installer/app/installer/manifests/tke-notify-api/tke-notify-api.yaml index e8a5a2297..88a31e143 100644 --- a/cmd/tke-installer/app/installer/manifests/tke-notify-api/tke-notify-api.yaml +++ b/cmd/tke-installer/app/installer/manifests/tke-notify-api/tke-notify-api.yaml @@ -135,12 +135,6 @@ data: group_headers = "X-Remote-Group" extra_headers_prefix = "X-Remote-Extra-" - [authorization] -{{- if .EnableAuth }} - mode = "Webhook" - webhook_config_file = "/app/conf/tke-auth-webhook.yaml" -{{- end }} - [client] [client.platform] diff --git a/cmd/tke-installer/app/installer/manifests/tke-platform-api/tke-platform-api.yaml b/cmd/tke-installer/app/installer/manifests/tke-platform-api/tke-platform-api.yaml index 25ee47f82..2dbe097d0 100644 --- a/cmd/tke-installer/app/installer/manifests/tke-platform-api/tke-platform-api.yaml +++ b/cmd/tke-installer/app/installer/manifests/tke-platform-api/tke-platform-api.yaml @@ -68,16 +68,12 @@ spec: mountPath: /app/provider/baremetal/conf/kubeadm/ - name: gpu-manifests-volume mountPath: /app/provider/baremetal/manifests/gpu/ - - name: gpu-manager-manifests-volume - mountPath: /app/provider/baremetal/manifests/gpu-manager/ - name: csi-operator-manifests-volume mountPath: /app/provider/baremetal/manifests/csi-operator/ - name: keepalived-manifests-volume mountPath: /app/provider/baremetal/manifests/keepalived/ - name: metrics-server-manifests-volume mountPath: /app/provider/baremetal/manifests/metrics-server/ - - name: cilium-manifests-volume - mountPath: /app/provider/baremetal/manifests/cilium/ ports: - containerPort: 9443 readinessProbe: @@ -125,9 +121,6 @@ spec: - name: gpu-manifests-volume configMap: name: gpu-manifests - - name: gpu-manager-manifests-volume - configMap: - name: gpu-manager-manifests - name: csi-operator-manifests-volume configMap: name: csi-operator-manifests @@ -137,9 +130,6 @@ spec: - name: metrics-server-manifests-volume configMap: name: metrics-server-manifests - - name: cilium-manifests-volume - configMap: - name: cilium-manifests --- kind: ConfigMap apiVersion: v1 @@ -197,12 +187,6 @@ data: group_headers = "X-Remote-Group" extra_headers_prefix = "X-Remote-Extra-" - [authorization] -{{- if .EnableAuth }} - mode = "Webhook" - webhook_config_file = "/app/conf/tke-authz-webhook.yaml" -{{- end }} - tke-platform-config.yaml: | apiVersion: v1 kind: Config diff --git a/cmd/tke-installer/app/installer/manifests/tke-platform-controller/tke-platform-controller.yaml b/cmd/tke-installer/app/installer/manifests/tke-platform-controller/tke-platform-controller.yaml index 4b9ee3a83..56bd6836e 100644 --- a/cmd/tke-installer/app/installer/manifests/tke-platform-controller/tke-platform-controller.yaml +++ b/cmd/tke-installer/app/installer/manifests/tke-platform-controller/tke-platform-controller.yaml @@ -58,14 +58,10 @@ spec: mountPath: /app/provider/baremetal/conf/kubeadm/ - name: gpu-manifests-volume mountPath: /app/provider/baremetal/manifests/gpu/ - - name: gpu-manager-manifests-volume - mountPath: /app/provider/baremetal/manifests/gpu-manager/ - name: keepalived-manifests-volume mountPath: /app/provider/baremetal/manifests/keepalived/ - name: metrics-server-manifests-volume mountPath: /app/provider/baremetal/manifests/metrics-server/ - - name: cilium-manifests-volume - mountPath: /app/provider/baremetal/manifests/cilium/ ports: - containerPort: 9445 livenessProbe: @@ -106,18 +102,12 @@ spec: - name: gpu-manifests-volume configMap: name: gpu-manifests - - name: gpu-manager-manifests-volume - configMap: - name: gpu-manager-manifests - name: keepalived-manifests-volume configMap: name: keepalived-manifests - name: metrics-server-manifests-volume configMap: name: metrics-server-manifests - - name: cilium-manifests-volume - configMap: - name: cilium-manifests --- kind: ConfigMap apiVersion: v1 @@ -137,6 +127,10 @@ data: api_server = "https://tke-platform-api" api_server_client_config = "/app/conf/tke-platform-config.yaml" + [client.application] + api_server = "https://tke-application-api" + api_server_client_config = "/app/conf/tke-application-config.yaml" + [registry] container_domain = "{{ .RegistryDomain }}" container_namespace = "{{ .RegistryNamespace }}" @@ -164,3 +158,23 @@ data: cluster: tke user: admin-cert name: tke + + tke-application-config.yaml: | + apiVersion: v1 + kind: Config + clusters: + - name: tke + cluster: + certificate-authority: /app/certs/ca.crt + server: https://tke-application-api + users: + - name: admin-cert + user: + client-certificate: /app/certs/admin.crt + client-key: /app/certs/admin.key + current-context: tke + contexts: + - context: + cluster: tke + user: admin-cert + name: tke diff --git a/cmd/tke-installer/app/installer/manifests/tke-registry-api/tke-registry-api.yaml b/cmd/tke-installer/app/installer/manifests/tke-registry-api/tke-registry-api.yaml index 73a90f4a2..855e3c15e 100644 --- a/cmd/tke-installer/app/installer/manifests/tke-registry-api/tke-registry-api.yaml +++ b/cmd/tke-installer/app/installer/manifests/tke-registry-api/tke-registry-api.yaml @@ -154,12 +154,6 @@ data: group_headers = "X-Remote-Group" extra_headers_prefix = "X-Remote-Extra-" - [authorization] -{{- if .EnableAuth }} - mode = "Webhook" - webhook_config_file = "/app/conf/tke-auth-webhook.yaml" -{{- end }} - [secure_serving] tls_cert_file = "/app/certs/server.crt" tls_private_key_file = "/app/certs/server.key" diff --git a/cmd/tke-installer/app/installer/upgrader.go b/cmd/tke-installer/app/installer/upgrader.go index 9771a9bf7..831e3684f 100644 --- a/cmd/tke-installer/app/installer/upgrader.go +++ b/cmd/tke-installer/app/installer/upgrader.go @@ -121,6 +121,10 @@ func (t *TKE) upgradeSteps() { }...) } t.steps = append(t.steps, []types.Handler{ + { + Name: "Prepare images before upgrade", + Func: t.prepareImages, + }, { Name: "Upgrade tke-platform-api", Func: t.upgradeTKEPlatformAPI, @@ -137,6 +141,27 @@ func (t *TKE) upgradeSteps() { Name: "Upgrade tke-monitor-controller", Func: t.upgradeTKEMonitorController, }, + { + Name: "Upgrade tke-application-api", + Func: t.upgradeTKEApplicationAPI, + }, + { + Name: "Upgrade tke-application-controller", + Func: t.upgradeTKEApplicationController, + }, + { + Name: "Upgrade tke-logagent-api", + Func: t.upgradeTKELogagentAPI, + }, + { + Name: "Upgrade tke-logagent-controller", + Func: t.upgradeTKELogagentController, + }, + // upgrade gateway should always be the last com to upgrade + { + Name: "Upgrade tke-gateway", + Func: t.upgradeTKEGateway, + }, }...) t.steps = append(t.steps, []types.Handler{ @@ -179,29 +204,7 @@ func (t *TKE) upgradeSteps() { } func (t *TKE) upgradeTKEPlatformAPI(ctx context.Context) error { - com := "tke-platform-api" - depl, err := t.globalClient.AppsV1().Deployments(t.namespace).Get(ctx, com, metav1.GetOptions{}) - if err != nil { - return err - } - - if len(depl.Spec.Template.Spec.Containers) == 0 { - return fmt.Errorf("%s has no containers", com) - } - depl.Spec.Template.Spec.Containers[0].Image = images.Get().TKEPlatformAPI.FullName() - - _, err = t.globalClient.AppsV1().Deployments(t.namespace).Update(ctx, depl, metav1.UpdateOptions{}) - if err != nil { - return err - } - - return wait.PollImmediate(5*time.Second, 10*time.Minute, func() (bool, error) { - ok, err := apiclient.CheckDeployment(ctx, t.globalClient, t.namespace, com) - if err != nil { - return false, nil - } - return ok, nil - }) + return t.upgradeDeplImage(ctx, images.Get().TKEPlatformAPI) } func (t *TKE) upgradeTKEPlatformController(ctx context.Context) error { @@ -237,7 +240,31 @@ func (t *TKE) upgradeTKEPlatformController(ctx context.Context) error { } func (t *TKE) upgradeTKEMonitorAPI(ctx context.Context) error { - com := "tke-monitor-api" + return t.upgradeDeplImage(ctx, images.Get().TKEMonitorAPI) +} + +func (t *TKE) upgradeTKEMonitorController(ctx context.Context) error { + return t.upgradeDeplImage(ctx, images.Get().TKEMonitorController) +} + +func (t *TKE) upgradeTKEApplicationAPI(ctx context.Context) error { + return t.upgradeDeplImage(ctx, images.Get().TKEApplicationAPI) +} + +func (t *TKE) upgradeTKEApplicationController(ctx context.Context) error { + return t.upgradeDeplImage(ctx, images.Get().TKEApplicationController) +} + +func (t *TKE) upgradeTKELogagentAPI(ctx context.Context) error { + return t.upgradeDeplImage(ctx, images.Get().TKELogagentAPI) +} + +func (t *TKE) upgradeTKELogagentController(ctx context.Context) error { + return t.upgradeDeplImage(ctx, images.Get().TKELogagentController) +} + +func (t *TKE) upgradeDeplImage(ctx context.Context, image containerregistry.Image) error { + com := image.Name depl, err := t.globalClient.AppsV1().Deployments(t.namespace).Get(ctx, com, metav1.GetOptions{}) if err != nil { return err @@ -246,7 +273,7 @@ func (t *TKE) upgradeTKEMonitorAPI(ctx context.Context) error { if len(depl.Spec.Template.Spec.Containers) == 0 { return fmt.Errorf("%s has no containers", com) } - depl.Spec.Template.Spec.Containers[0].Image = images.Get().TKEMonitorAPI.FullName() + depl.Spec.Template.Spec.Containers[0].Image = images.Get().TKEMonitorController.FullName() _, err = t.globalClient.AppsV1().Deployments(t.namespace).Update(ctx, depl, metav1.UpdateOptions{}) if err != nil { @@ -262,25 +289,25 @@ func (t *TKE) upgradeTKEMonitorAPI(ctx context.Context) error { }) } -func (t *TKE) upgradeTKEMonitorController(ctx context.Context) error { - com := "tke-monitor-controller" - depl, err := t.globalClient.AppsV1().Deployments(t.namespace).Get(ctx, com, metav1.GetOptions{}) +func (t *TKE) upgradeTKEGateway(ctx context.Context) error { + com := "tke-gateway" + ds, err := t.globalClient.AppsV1().DaemonSets(t.namespace).Get(ctx, com, metav1.GetOptions{}) if err != nil { return err } - if len(depl.Spec.Template.Spec.Containers) == 0 { + if len(ds.Spec.Template.Spec.Containers) == 0 { return fmt.Errorf("%s has no containers", com) } - depl.Spec.Template.Spec.Containers[0].Image = images.Get().TKEMonitorController.FullName() + ds.Spec.Template.Spec.Containers[0].Image = images.Get().TKEGateway.FullName() - _, err = t.globalClient.AppsV1().Deployments(t.namespace).Update(ctx, depl, metav1.UpdateOptions{}) + _, err = t.globalClient.AppsV1().DaemonSets(t.namespace).Update(ctx, ds, metav1.UpdateOptions{}) if err != nil { return err } return wait.PollImmediate(5*time.Second, 10*time.Minute, func() (bool, error) { - ok, err := apiclient.CheckDeployment(ctx, t.globalClient, t.namespace, com) + ok, err := apiclient.CheckDaemonset(ctx, t.globalClient, t.namespace, com) if err != nil { return false, nil } diff --git a/cmd/tke-platform-api/app/config/config.go b/cmd/tke-platform-api/app/config/config.go index 7f6c013ad..3171724c7 100644 --- a/cmd/tke-platform-api/app/config/config.go +++ b/cmd/tke-platform-api/app/config/config.go @@ -41,7 +41,6 @@ import ( "tkestack.io/tke/pkg/apiserver/util" "tkestack.io/tke/pkg/auth/filter" "tkestack.io/tke/pkg/platform/apiserver" - "tkestack.io/tke/pkg/util/log" ) const ( @@ -105,11 +104,7 @@ func CreateConfigFromOptions(serverName string, opts *options.Options) (*Config, if err != nil { return nil, fmt.Errorf("failed to create real external clientset: %v", err) } - clusterInspector, err := filter.NewClusterInspector(clientgoExternalClient.PlatformV1(), opts.Authentication.PrivilegedUsername) - if err != nil { - log.Errorf("create clusterInspector failed: %+v", err) - return nil, err - } + clusterInspector := filter.NewClusterInspector(clientgoExternalClient.PlatformV1(), opts.Authentication.PrivilegedUsername) genericAPIServerConfig.BuildHandlerChainFunc = handler.BuildHandlerChain(nil, nil, []filter.Inspector{clusterInspector}) versionedInformers := versionedinformers.NewSharedInformerFactory(clientgoExternalClient, 10*time.Minute) diff --git a/cmd/tke-platform-controller/app/config/config.go b/cmd/tke-platform-controller/app/config/config.go index f5420144d..c4a8cc30a 100644 --- a/cmd/tke-platform-controller/app/config/config.go +++ b/cmd/tke-platform-controller/app/config/config.go @@ -46,8 +46,10 @@ type Config struct { LeaderElectionClient *versionedclientset.Clientset // the rest config for the platform apiserver PlatformAPIServerClientConfig *restclient.Config - Component controlleroptions.ComponentConfiguration - Features *options.FeatureOptions + // the rest config for the application apiserver + ApplicationAPIServerClientConfig *restclient.Config + Component controlleroptions.ComponentConfiguration + Features *options.FeatureOptions ClusterController clusterconfig.ClusterControllerConfiguration MachineController machineconfig.MachineControllerConfiguration @@ -73,6 +75,11 @@ func CreateConfigFromOptions(serverName string, opts *options.Options) (*Config, config.Timeout = opts.Component.LeaderElection.RenewDeadline leaderElectionClient := versionedclientset.NewForConfigOrDie(restclient.AddUserAgent(&config, "leader-election")) + applicationAPIServerClientConfig, _, err := controllerconfig.BuildClientConfig(opts.ApplicationAPIClient) + if err != nil { + return nil, err + } + controllerManagerConfig := &Config{ ServerName: serverName, LeaderElectionClient: leaderElectionClient, @@ -83,7 +90,8 @@ func CreateConfigFromOptions(serverName string, opts *options.Options) (*Config, Authentication: apiserver.AuthenticationInfo{ Authenticator: anonymous.NewAuthenticator(), }, - Features: opts.FeatureOptions, + Features: opts.FeatureOptions, + ApplicationAPIServerClientConfig: applicationAPIServerClientConfig, } if err := opts.Component.ApplyTo(&controllerManagerConfig.Component); err != nil { diff --git a/cmd/tke-platform-controller/app/context.go b/cmd/tke-platform-controller/app/context.go index 5428ed967..a86d8cfb3 100755 --- a/cmd/tke-platform-controller/app/context.go +++ b/cmd/tke-platform-controller/app/context.go @@ -26,7 +26,10 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/util/wait" cacheddiscovery "k8s.io/client-go/discovery/cached" + "k8s.io/client-go/rest" "k8s.io/client-go/restmapper" + versionedclientset "tkestack.io/tke/api/client/clientset/versioned" + applicationv1 "tkestack.io/tke/api/client/clientset/versioned/typed/application/v1" versionedinformers "tkestack.io/tke/api/client/informers/externalversions" "tkestack.io/tke/cmd/tke-platform-controller/app/config" "tkestack.io/tke/pkg/controller" @@ -71,8 +74,9 @@ type ControllerContext struct { ControllerStartInterval time.Duration // Remote write/read address for prometheus - RemoteAddresses []string - RemoteType string + RemoteAddresses []string + RemoteType string + ApplicationClient applicationv1.ApplicationV1Interface } // IsControllerEnabled returns whether the controller has been enabled @@ -84,6 +88,15 @@ func (c ControllerContext) IsControllerEnabled(name string) bool { // controllers such as the cloud provider and clientBuilder. rootClientBuilder is only used for // the shared-informers client and token controller. func CreateControllerContext(cfg *config.Config, rootClientBuilder controller.ClientBuilder, stop <-chan struct{}) (ControllerContext, error) { + var applicationClientset *versionedclientset.Clientset + var applicationClient applicationv1.ApplicationV1Interface + var err error + if cfg.ApplicationAPIServerClientConfig != nil { + applicationClientset, err = versionedclientset.NewForConfig(rest.AddUserAgent(cfg.ApplicationAPIServerClientConfig, "tke-platform-controller")) + if err != nil { + return ControllerContext{}, fmt.Errorf("failed to create the application client: %v", err) + } + } versionedClient := rootClientBuilder.ClientOrDie("shared-informers") sharedInformers := versionedinformers.NewSharedInformerFactory(versionedClient, controller.ResyncPeriod(&cfg.Component)()) @@ -105,6 +118,11 @@ func CreateControllerContext(cfg *config.Config, rootClientBuilder controller.Cl if err != nil { return ControllerContext{}, err } + if applicationClientset != nil { + applicationClient = applicationClientset.ApplicationV1() + } else { + applicationClient = nil + } ctx := ControllerContext{ ClientBuilder: rootClientBuilder, @@ -118,6 +136,7 @@ func CreateControllerContext(cfg *config.Config, rootClientBuilder controller.Cl ControllerStartInterval: cfg.Component.ControllerStartInterval, RemoteAddresses: cfg.Features.MonitorStorageAddresses, RemoteType: cfg.Features.MonitorStorageType, + ApplicationClient: applicationClient, } return ctx, nil } diff --git a/cmd/tke-platform-controller/app/controller.go b/cmd/tke-platform-controller/app/controller.go index da5b4ad92..fb99e0d8a 100644 --- a/cmd/tke-platform-controller/app/controller.go +++ b/cmd/tke-platform-controller/app/controller.go @@ -60,6 +60,7 @@ func NewControllerInitializers() map[string]InitFunc { controllers["prometheus"] = startPrometheusController controllers["ipam"] = startIPAMController controllers["lbcf"] = startLBCFControllerController + controllers["bootstrapapps"] = startBootstrapAppsController return controllers } diff --git a/cmd/tke-platform-controller/app/options/options.go b/cmd/tke-platform-controller/app/options/options.go index 543b01aa9..08f2f500d 100644 --- a/cmd/tke-platform-controller/app/options/options.go +++ b/cmd/tke-platform-controller/app/options/options.go @@ -37,13 +37,14 @@ const ( // Options is the main context object for the TKE controller manager. type Options struct { - Log *log.Options - Debug *apiserveroptions.DebugOptions - SecureServing *apiserveroptions.SecureServingOptions - Component *controlleroptions.ComponentOptions - PlatformAPIClient *controlleroptions.APIServerClientOptions - Registry *apiserveroptions.RegistryOptions - FeatureOptions *FeatureOptions + Log *log.Options + Debug *apiserveroptions.DebugOptions + SecureServing *apiserveroptions.SecureServingOptions + Component *controlleroptions.ComponentOptions + ApplicationAPIClient *controlleroptions.APIServerClientOptions + PlatformAPIClient *controlleroptions.APIServerClientOptions + Registry *apiserveroptions.RegistryOptions + FeatureOptions *FeatureOptions ClusterController *ClusterControllerOptions MachineController *MachineControllerOptions @@ -52,13 +53,14 @@ type Options struct { // NewOptions creates a new Options with a default config. func NewOptions(serverName string, allControllers []string, disabledByDefaultControllers []string) *Options { return &Options{ - Log: log.NewOptions(), - Debug: apiserveroptions.NewDebugOptions(), - SecureServing: apiserveroptions.NewSecureServingOptions(serverName, 9445), - Component: controlleroptions.NewComponentOptions(allControllers, disabledByDefaultControllers), - PlatformAPIClient: controlleroptions.NewAPIServerClientOptions("platform", true), - Registry: apiserveroptions.NewRegistryOptions(), - FeatureOptions: NewFeatureOptions(), + Log: log.NewOptions(), + Debug: apiserveroptions.NewDebugOptions(), + SecureServing: apiserveroptions.NewSecureServingOptions(serverName, 9445), + Component: controlleroptions.NewComponentOptions(allControllers, disabledByDefaultControllers), + PlatformAPIClient: controlleroptions.NewAPIServerClientOptions("platform", true), + ApplicationAPIClient: controlleroptions.NewAPIServerClientOptions("application", false), + Registry: apiserveroptions.NewRegistryOptions(), + FeatureOptions: NewFeatureOptions(), ClusterController: NewClusterControllerOptions(), MachineController: NewMachineControllerOptions(), @@ -72,6 +74,7 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) { o.SecureServing.AddFlags(fs) o.Component.AddFlags(fs) o.PlatformAPIClient.AddFlags(fs) + o.ApplicationAPIClient.AddFlags(fs) o.Registry.AddFlags(fs) o.FeatureOptions.AddFlags(fs) o.ClusterController.AddFlags(fs) @@ -88,6 +91,7 @@ func (o *Options) ApplyFlags() []error { errs = append(errs, o.SecureServing.ApplyFlags()...) errs = append(errs, o.Component.ApplyFlags()...) errs = append(errs, o.PlatformAPIClient.ApplyFlags()...) + errs = append(errs, o.ApplicationAPIClient.ApplyFlags()...) errs = append(errs, o.Registry.ApplyFlags()...) errs = append(errs, o.FeatureOptions.ApplyFlags()...) errs = append(errs, o.ClusterController.ApplyFlags()...) diff --git a/cmd/tke-platform-controller/app/platform.go b/cmd/tke-platform-controller/app/platform.go index 870415c66..0018c70a9 100755 --- a/cmd/tke-platform-controller/app/platform.go +++ b/cmd/tke-platform-controller/app/platform.go @@ -23,6 +23,8 @@ import ( "time" "k8s.io/apimachinery/pkg/runtime/schema" + versionedclientset "tkestack.io/tke/api/client/clientset/versioned" + "tkestack.io/tke/api/client/informers/externalversions" platformv1 "tkestack.io/tke/api/platform/v1" "tkestack.io/tke/pkg/platform/controller/addon/cronhpa" "tkestack.io/tke/pkg/platform/controller/addon/helm" @@ -34,6 +36,7 @@ import ( "tkestack.io/tke/pkg/platform/controller/addon/storage/csioperator" "tkestack.io/tke/pkg/platform/controller/addon/storage/volumedecorator" "tkestack.io/tke/pkg/platform/controller/addon/tappcontroller" + bootstrapps "tkestack.io/tke/pkg/platform/controller/bootstrapapps" clustercontroller "tkestack.io/tke/pkg/platform/controller/cluster" "tkestack.io/tke/pkg/platform/controller/machine" ) @@ -276,3 +279,29 @@ func startLBCFControllerController(ctx ControllerContext) (http.Handler, bool, e return nil, true, nil } + +func startBootstrapAppsController(ctx ControllerContext) (http.Handler, bool, error) { + if !ctx.AvailableResources[schema.GroupVersionResource{Group: platformv1.GroupName, Version: "v1", Resource: "clusters"}] || + ctx.ApplicationClient == nil { + return nil, false, nil + } + appclientset := versionedclientset.NewForConfigOrDie(ctx.Config.ApplicationAPIServerClientConfig) + appInformerFactory := externalversions.NewSharedInformerFactory(appclientset, ctx.ResyncPeriod()) + + ctrl := bootstrapps.NewBootstrapAppsController( + ctx.ClientBuilder.ClientOrDie("bootstrap-apps-controller").PlatformV1(), + appclientset.ApplicationV1(), + ctx.InformerFactory.Platform().V1().Clusters(), + appInformerFactory.Application().V1().Apps(), + ctx.Config.ClusterController, + platformv1.ClusterFinalize, + ) + + appInformerFactory.Start(ctx.Stop) + + go func() { + _ = ctrl.Run(ctx.Config.ClusterController.ConcurrentClusterSyncs, ctx.Stop) + }() + + return nil, true, nil +} diff --git a/cmd/tke-upgrade/upgrate.sh b/cmd/tke-upgrade/upgrate.sh index 4ff846716..d8b0ad624 100755 --- a/cmd/tke-upgrade/upgrate.sh +++ b/cmd/tke-upgrade/upgrate.sh @@ -1,5 +1,21 @@ #!/usr/bin/env bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + export DIR="cmd/tke-upgrade" export DATADIR="${DIR}/app" export MANIFESTS="cmd/tke-installer/app/installer/manifests" diff --git a/docs/design-proposals/Auth RBAC.md b/docs/design-proposals/Auth RBAC.md deleted file mode 100644 index a47545838..000000000 --- a/docs/design-proposals/Auth RBAC.md +++ /dev/null @@ -1,134 +0,0 @@ -# Auth RBAC - - -**Author**: -jason ([@wangao1236](https://github.com/wangao1236)) -mingyu ([@metang326](https://github.com/metang326)) - - -## Abstract - -目前tke不支持k8s原生的rbac鉴权模式,无法通过创建ClusterRoleBinding、ClusterRole设置clusters、clustercredentials等资源的访问权限。 - - -## Motivation - -- 支持k8s原生的rbac鉴权 - -## Main proposal - -增加一种鉴权方式,如果rbac鉴权通过则允许访问相应资源。 - -## Solution -1. 创建ClusterRoleBindings,将tke命名空间下的ServiceAccount(name:default)与ClusterRole(name:cluster-admin)进行绑定,使default能获得访问所有资源的权限。 -2. 增加k8sinformers,对Roles、RoleBindings、ClusterRoles、ClusterRoleBindings进行watch。 -3. 增加rbacAuthorizer,根据rbac进行鉴权,如有相应权限则Allowed为true -4. 由于ServiceAccount本身没有租户信息,会因为tenantID为空导致访问某些资源时会提示invalid tenantID,未进行鉴权就返回了。目前解决方法是对ServiceAccount命名时用后缀标记租户,例如-tenant-default,在代码中会对形如"system:serviceaccount:xx:xxx-tenant-xxx"的username进行解析。 - -## Test -### step 0 -在tmy这个命名空间下创建一个名为rbac-tenant-default的sa用于测试,其基本信息如下: -``` -# kubectl get sa -ntmy rbac -oyaml -apiVersion: v1 -kind: ServiceAccount -metadata: - name: rbac-tenant-default - namespace: tmy -secrets: -- name: rbac-token-5ljnn -``` -获取其对应的secret后生成一个kubeconfig文件,用于后续的测试。 -``` -kubectl get secret -ntmy rbac-token-5ljnn -oyaml -echo -n "xxx" | base64 -d -cp ~/.kube/config test.config -vim test.config -``` -test.config内容如下,其中token是上面执行echo -n "xxx" | base64 -d的结果。 -``` -apiVersion: v1 -clusters: -- cluster: - insecure-skip-tls-verify: true - server: https://127.0.0.1:6443 - name: default-cluster -contexts: -- context: - cluster: default-cluster - user: default-user - name: default-context -current-context: default-context -kind: Config -preferences: {} -users: -- name: default-user - user: - token: xxxx -``` -创建clusterrole和clusterrolebinding,允许rbac对clusters进行get、list。 -``` -# kubectl get clusterrole cls-role -o yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: cls-role -rules: -- apiGroups: - - '*' - resources: - - clusters - verbs: - - get - - list -# kubectl get clusterrolebinding cls-bind -o yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: cls-bind -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: cls-role -subjects: -- kind: ServiceAccount - name: rbac-tenant-default - namespace: tmy -``` - -# step 1 -使用rbac的kubeconfig文件执行kubectl命令,clusters资源被授权因此可以访问;clustercredentials资源未被授权,因此不能访问。 -``` -# kubectl get clusters --kubeconfig=test.config -NAME CREATED AT -cls-mmxx4mkr 2021-04-22T03:29:24Z -global 2021-02-23T06:49:58Z -# kubectl get clustercredentials --kubeconfig=test.config -Error from server (Forbidden): clustercredentials.platform.tkestack.io is forbidden: User "system:serviceaccount:tmy:rbac-tenant-default" cannot list resource "clustercredentials" in API group "platform.tkestack.io" at the cluster scope: permission for list on clustercredentials not verify -``` - -# step 2 -通过kubectl edit clusterrole cls-role增加对clustercredentials的访问权限,修改后如下: -``` -# kubectl get clusterrole cls-role -o yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: cls-role -rules: -- apiGroups: - - '*' - resources: - - clusters - - clustercredentials - verbs: - - get - - list -``` -增加权限后,可访问clustercredentials资源。 -``` -# kubectl get clustercredentials --kubeconfig=test.config -NAME CREATED AT -cc-global 2021-02-23T06:49:58Z -cc-xsvfnrng 2021-04-22T03:29:24Z -``` diff --git a/docs/design-proposals/containerd.md b/docs/design-proposals/containerd.md new file mode 100644 index 000000000..0c423911a --- /dev/null +++ b/docs/design-proposals/containerd.md @@ -0,0 +1,194 @@ +# Support standard CRI runtime Containerd + + +**Author**: Tai Hui Min + +**Status** (20210914): Done + +## Abstract +CRI(Container runtime interface)是Kubernetes容器运行时接口,是Kubernetes规定的容器运行时标准,由protocol buffer协议和gRPC API构成。Docker、Containerd、CRI-O为实现CRI的容器引擎。 +以下Proposal主要介绍了TKEStack支持CRI标准容器引擎containerd的背景、动机和具体的实施步骤。 + + +## Background + 随着Kubernetes社区的蓬勃发展,容器引擎也发展迅速,除了Docker引擎外,出现多种更加轻量级的容器引擎: 比如Containerd[1]、CRI-O[2]、iSulad[3]等;为了统一支持这些运行引擎,Kubernetes V1.5版本引入了CRI(Container runtime interface)。 + + 同时为了保持对Docker的支持,Kubelet内置了dockershim来支持CRI,但也因此引出了一系列问题,最终Kubernetes社区计划移除dockershim,确保Kubelet和容器引擎的界面是CRI接口[4]: 1.20-1.22标记depracated, 1.23正式移除。后续dockershim由Mirantis维护,需要在Kubelet和Docker之外额外安装[5]。 + + ![CRI](../images/cri-runtime.svg) + + 此外,Containerd 、CRI-O等容器引擎相比Docker更加轻量级,表现在功能更简单、创建容器时的调用链更短,性能更加健壮并且可移植性强,因此更适合作为Kubernetes的容器运行时。Containerd于2019年已经正式从CNCF毕业,成为行业标准的容器引擎,在各大互联网公司也有较广泛的应用 [1]。本文内容集中在TKEStack支持Containerd容器引擎,Dockershim+Docker以后在TKEStack将不再提供支持。 + + Containerd作为纯粹的容器运行时工具,缺少镜像制作等能力,需要引入额外的工具满足TKEStack的需求。下表为TKEStack不同功能阶段对容器引擎的功能需求。 + +| 功能阶段 | 容器引擎功能点 | Docker+Dockershim | CRI标准接口(Containerd/CRIO) | containerd + ctr | +| ----- | ------- |-|-|-| +| 构建 | 制作镜像 |是|否|否| +| 构建 | push镜像 |是|否|是| +| 构建 | tag镜像 |是|否|是| +| install | load镜像 |是|否|是| +| install | push镜像 |是|否|是| +| install | manifest(multi-arch) |是|否|是| +| running(管理集群: 创建、导入、增加节点、运行负载) | 启动容器 |是|是|是| +| running(管理集群) | 下载镜像 |是|是|是| +| running(管理集群) | 运行容器 |是|是|是| +| running(管理集群) | 运行POD |是|是|是| +| running(管理集群) | 配置网络 |是|是|是| +| running(管理集群) | 删除容器 |是|是|是| +| running(管理集群) | 删除镜像 |是|是|是| + + + +## Motivation + +TKEStack支持配置CRI标准兼容容器引擎docker和containerd,用户在安装业务集群时可以自由选择使用docker或者containerd: + +**版本需求** + * TKEStack版本:v1.8.0 + * 支持的Kubernetes版本:(v1.19.7, v1.20.4, v1.20.4-tke.1) + * containerd版本:v1.5.4 + * crictl版本:1.20.0-24-g53ad8bb7 + * nerdctl版本:0.11.0 + * 支持的操作系统类型: ≥ Ubuntu 16.04/18.04 LTS (64-bit);≥ CentOS Linux 7.6 (64-bit);≥ Tencent Linux 2.2 + * 支持的操作系统架构:amd64 + +根据TKEStack在不同阶段使用功能的差异,我们把支持CRI接口容器引擎分为两个阶段: + +**阶段1 完成running阶段的改造** + * 支持配置Containerd为容器引擎 + +**阶段2 完成Install阶段的改造** + + * 使用Containerd作为容器引擎 + * 引入工具nerdctl创建tke-installer、registry-http、registry-https容器 + * 使用docker-in-docker的方式,在Containerd容器中运行docker,完成tkestack在安装阶段创建image manifests,push multiarch images到local registry过程 + +## Main proposal + +### 阶段1 完成Running阶段的改造 + +该阶段容器引擎的调用者是Kubelet,只使用CRI标准定义的接口,所以只需要引入Containerd,不需要引入其他第三方组件,通过暴露参数`Cluster.Spec.Features.EnsureContainerRuntime`为判断容器引擎选择的开关,该阶段包含2个部分: + +**1. 安装Cluster** + + * Install过程中安装Global Cluster,使用containerd作为容器运行时 + * 安装User Cluster,可以选择使用Containerd或者docker作为容器运行时 + + 两个过程均调用`clusterProvider.OnCreate`函数创建集群。相关的流程以及修改如下 + +  ![clusterprovider.OnCreate流程](../images/cluster-create.svg) + +修改文件: + +* `pkg/platform/provider/baremetal/cluster/provider.go` +* `pkg/platform/provider/baremetal/cluster/create.go` + +**2. user cluster扩容节点** + +该过程通过调用`machineProvider.OnCreate`,和安装cluster过程类似,不再赘述。 + +修改文件: + +* `pkg/platform/provider/baremetal/machine/provider.go` +* `pkg/platform/provider/baremetal/machine/create.go` + +由于增加了Containerd,需要引入配置文件和server文件 + +* `pkg/platform/provider/baremetal/conf/containerd/config.toml` +* `pkg/platform/provider/baremetal/conf/containerd/containerd.service` + +### 阶段2 install阶段的改造 完全支持containerd,需要配合nerdctl工具进行改造 + 目前的install步骤: + * Execute pre install hook + * Load images(docker load) + * Tag images (docker tag) + * Setup local registry(docker run) + * Push images(docker manifest, docker push) + * Generate certificates for TKE components + * Create global cluster + +在install开始阶段,需要使用`nerdctl run`命令创建installer容器,registry-http容器和registry-https容器, +``` +nerdctl run -d --privileged --net=host --restart=always -v /etc/hosts:/app/hosts -v /run/containerd:/run/containerd -v /var/lib/containerd:/var/lib/containerd -v /var/lib/nerdctl:/var/lib/nerdctl -v /opt/cni/bin:/opt/cni/bin -v /run/containerd/containerd.sock:/run/containerd/containerd.sock -v /opt/tke-installer/data:/app/data -v /opt/tke-installer/conf:/app/conf -v registry-certs:/app/certs -v tke-installer-bin:/app/bin docker.io/library/test:20 tke-installer +``` +``` +nerdctl run -d --name registry-http -p 80:5000 -v /opt/tke-installer/registry:/var/lib/registry registry.tke.com/library/registry-amd64:2.7.1 +``` +``` +nerdctl run -d --name registry-https --restart always -p 443:443 -v /opt/tke-installer/registry:/var/lib/registry -v registry-certs:/certs -e REGISTRY_HTTP_ADDR=0.0.0.0:443 -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/server.crt -e REGISTRY_HTTP_TLS_KEY=/certs/server.key registry.tke.com/library/registry-amd64:2.7.1 +``` +使用nerdctl 查看创建的容器: +``` +nerdctl ps -a +``` +查看容器日志: +``` +nerdctl logs +``` +install过程中需要创建registry镜像仓库,在安装过程中需要搭建临时镜像仓库,并将多种体系架构的镜像push到临时仓库中完成安装,由于安装和创建global集群时我们都切换为Containerd运行时,但同时还需要使用docker创建多架构的镜像push到registry中, +所以这里使用docker-in-docker的方式,将dockerd和docker client使用dind的镜像部署到containerd容器中,在containerd容器中使用docker来制作镜像的manifest并且push到registry中。 + +``` +FROM docker:20.10.8-dind + +RUN echo "hosts: files dns" >> /etc/nsswitch.conf + +WORKDIR /app + +ENV PATH="/app/bin:$PATH" +ENV DOCKER_CLI_EXPERIMENTAL=enabled +ARG ENV_ARCH + +RUN apk add --no-cache \ + bash \ + busybox-extras \ + curl \ + tcpdump \ + docker \ + ansible + +RUN apk --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted add lrzsz +RUN wget -O nerdctl-0.11.0-linux.tar.gz https://github.com/containerd/nerdctl/releases/download/v0.11.0/nerdctl-0.11.0-linux-"$ENV_ARCH".tar.gz \ + && tar -zvxf nerdctl-0.11.0-linux.tar.gz -C /usr/local/bin/ \ + && rm -rf nerdctl-0.11.0-linux.tar.gz + +ADD . /app +``` +通过nerdctl进入到tke-installer容器中,可以看到启动的dockerd和tke-installer进程: +``` +# nerdctl ps +CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES +d25ffca45f2f docker.io/tkestack/tke-installer-amd64:b1a40af7665eff000aa4e0078470824db042b419 "/bin/sh -c /app/run…" 6 days ago Up tke-installer +``` +``` +# nerdctl exec -it d25ffca45f2f sh +/app # ps -ef +PID USER TIME COMMAND + 1 root 0:00 {run.sh} /bin/bash /app/run.sh + 7 root 0:07 docker-init -- dockerd --host=unix:///var/run/docker.sock + 8 root 1:01 ./bin/tke-installer + 67 root 1:23 dockerd --host=unix:///var/run/docker.sock --host=tcp://0. + 203 root 0:00 sh + 209 root 0:00 ps -ef +/app # +``` +### 阶段3 用户场景容器引擎的切换 + +用户已有集群从docker切换到containerd: + * 现存节点用户根据指导文档手动迁移到containerd:https://tkestack.github.io/web/zh/blog/2021/09/01/container-runtime-migraion/ + + +## Refereneces: +1. https://containerd.io/ +2. https://github.com/cri-o/cri-o +3. https://gitee.com/openeuler/iSulad +4. https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/1985-remove-dockershim/README.md +5. https://www.mirantis.com/blog/mirantis-to-take-over-support-of-kubernetes-dockershim-2 +6. https://tkestack.github.io/docs/installation/installation-steps.html +7. https://github.com/moby/buildkit +8. https://github.com/containers/buildah +9. https://github.com/GoogleContainerTools/kaniko +10. https://github.com/containerd/nerdctl +11. https://github.com/containerd/containerd/blob/master/docs/cri/installation.md +12. https://github.com/containerd/cri/blob/master/docs/crictl.md +13. https://blog.scottlowe.org/2020/01/25/manually-loading-container-images-with-containerd/ diff --git a/docs/guide/zh-CN/best-practices/cluster-upgrade-guide.md b/docs/guide/zh-CN/best-practices/cluster-upgrade-guide.md index bed770067..523926f87 100644 --- a/docs/guide/zh-CN/best-practices/cluster-upgrade-guide.md +++ b/docs/guide/zh-CN/best-practices/cluster-upgrade-guide.md @@ -1,55 +1,62 @@ # K8S 版本升级说明 -TKEStack提供升级 Kubernetes 版本的功能,您可通过此功能对运行中的 Kubernetes 集群进行升级。在升级 kubernetes 版本之前,建议您查阅 [CHANGELOG](https://github.com/kubernetes/kubernetes/tree/master/CHANGELOG) 确认Kubernetes 版本差异。 +TKEStack提供升级 Kubernetes 版本的功能,您可通过此功能对运行中的 Kubernetes 集群进行升级。 + +在升级 kubernetes 版本之前,建议您查阅 [CHANGELOG](https://github.com/kubernetes/kubernetes/tree/master/CHANGELOG) 确认Kubernetes 版本差异。 ## Concept -主版本:k8s版本号的格式vx.y.z中的x为主版本,例如v1.18.3主版本是1 +- 主版本:k8s版本号的格式vx.y.z中的x为主版本,例如v1.18.3主版本是1 -次要版本:k8s版本号的格式vx.y.z中的y为次要版本,例如v1.18.3的次要版本是18 +- 次要版本:k8s版本号的格式vx.y.z中的y为次要版本,例如v1.18.3的次要版本是18 -补丁版本:k8s版本号的格式vx.y.z中的z为补丁版本 +- 补丁版本:k8s版本号的格式vx.y.z中的z为补丁版本 ## 升级须知 -1.升级属于不可逆操作、请谨慎进行。 +1. 升级属于不可逆操作、请谨慎进行。 -2.请在升级集群前,查看集群下业务状态是否均为健康状态。 +2. 请在升级集群前,查看集群下业务状态是否均为健康状态。 -3.升级期间不建议对集群进行任何操作。 +3. 升级期间不建议对集群进行任何操作。 -4.仅支持次要版本和补丁版本升级,不支持降级,不支持跨多个版本升级(例如1.16跳过1.17直接升级至1.18),且仅当集群内 Master 版本和 Node 版本一致时才可继续升级下一个版本。 +4. 仅支持次要版本和补丁版本升级, + 1. 不支持降级, + 2. 不支持跨多个版本升级(例如1.16跳过1.17直接升级至1.18), + 3. 且仅当集群内 Master 版本和 Node 版本一致时才可继续升级下一个版本。 ## 升级技术原理 升级的过程为:升级包准备、升级 Master 和升级 Node。 -1.升级包准备 - -当前运行集群所需要的镜像二进制等都保存在tke-installer中,已经安装好的TKEStack已包含至少三个连续的 K8S 版本,如TKEStack v1.5.0 中包含K8S v1.16.9, v1.17.13 和 v1.18.3,同时也包含了对应的kubeadm,kubelet和kubectl版本。 - -2.升级Master +1. 升级包准备 -Master升级采用滚动升级的方式,同一时间只会对一个节点进行升级,只有当前节点升级成功才会进行下个节点的升级。 + - 当前运行集群所需要的镜像二进制等都保存在 `tke-installer` 中, + - 已经安装好的 `TKEStack` 已包含至少三个连续的 K8S 版本,如 TKEStack v1.5.0 中包含K8S v1.16.9, v1.17.13 和 v1.18.3, + - 同时也包含了对应的 kubeadm,kubelet 和 kubectl 版本。 -Master升级调用kubeadm 处理集群的升级操作,Kubeadm 工作原理参考:[how it works](https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/#how-it-works) +2. 升级 Master -3.升级Node + - Master 升级采用滚动升级的方式,同一时间只会对一个节点进行升级,只有当前节点升级成功才会进行下个节点的升级。 -节点原地升级,采用滚动升级的方式,即同一时间只会对一个节点进行升级,只有当前节点升级成功后才会进行下个节点的升级。每个节点升级时执行以下操作: + - Master 升级调用 kubeadm 处理集群的升级操作,Kubeadm 工作原理参考:[how it works](https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/#how-it-works) -- 替换和重启节点上的 kubelet组件。 +3. 升级Node -- 从集群取回 kubeadm ClusterConfiguration。 + - 节点原地升级,采用滚动升级的方式,即同一时间只会对一个节点进行升级,只有当前节点升级成功后才会进行下个节点的升级。每个节点升级时执行以下操作: -- 为本节点升级 kubelet 配置 + 1. 替换和重启节点上的 kubelet组件。 + 2. 从集群取回 kubeadm ClusterConfiguration。 + 3. 为本节点升级 kubelet 配置 ## 操作步骤 1.登录 平台管理 控制台,选择左侧导航栏中的【集群管理】。 - + 2.在“集群管理”页面,选择需要升级的集群,点击右侧的【升级Master】按钮,进入集群升级页面。 - + +![cls-global-upgrade](./pic/upgrade-cluster.png) + 3.在集群升级页面配置升级所需参数,如下图所示: ![cls-master-upgrade](./pic/cls-master-upgrade.png) @@ -64,7 +71,7 @@ Master升级调用kubeadm 处理集群的升级操作,Kubeadm 工作原理参 7.在点击提交按钮,等待升级完成。同时可以点击【状态】按钮查看当前升级状态。 -###其他技术细节 +### 其他技术细节 1.升级中任何步骤出现错误,系统都将自动进行重试,用户可在升级进度界面中得到错误信息。 @@ -74,80 +81,85 @@ Master节点升级存在一定风险,用户在升级前,应检查集群状 ### 重启kubelet的风险点 -1.Not Ready Pod 数目超过设置值导致升级卡死 +#### 1. Not Ready Pod 数目超过设置值导致升级卡死 选择了【驱逐节点】选项,同时节点过少,而设置【最大不可用pod数】比例过低,没有足够多的节点承载pod的迁移会导致升级卡死。 规避措施: - - 尽如果业务对pod可用比例较高,请考虑选择升级前不驱逐节点。 +- 尽如果业务对pod可用比例较高,请考虑选择升级前不驱逐节点。 -2.kubelet进程无法启动 +#### 2.kubelet进程无法启动 - 当该master节点资源十分紧张的时候,启动kubelet有可能失败,从而导致节点升级无法正常完成。 +当该master节点资源十分紧张的时候,启动kubelet有可能失败,从而导致节点升级无法正常完成。 规避措施: - - 尽量不要将业务Pod运行于master节点 +- 尽量不要将业务Pod运行于master节点 - - 确保节点资源不能处于高度紧张状态 +- 确保节点资源不能处于高度紧张状态 -3.容器重启 +#### 3.容器重启 - 某些版本kubelet与旧版本对于container的管理有一定差异,有可能导致节点上所有container重启 +某些版本kubelet与旧版本对于container的管理有一定差异,有可能导致节点上所有container重启 规避措施: - - 加强container的重启容忍度,例如确保deployment的副本数不为1 +- 加强container的重启容忍度,例如确保deployment的副本数不为1 -## FQA -1.何时使用K8S升级功能: +## FAQ -答:当集群版本不满足业务需求,K8S漏洞修复,或当前集群版本低于TKEStack所能支持的最小版本。 - -2.升级的目标版本能否选择: - -答:目前只支持升级到下一个次要版本,例如1.16.x的集群只能升到1.17.x;或者升级到补丁版本,例如1.16.x升级到 1.16.z +### 1. 何时使用K8S升级功能: -3.为什么我看不到升级worker按钮: +答:当集群版本不满足业务需求,K8S漏洞修复,或当前集群版本低于TKEStack所能支持的最小版本。 -答:只有当前集群所有worker节点版本与master节点版本相同时,才允许进行master版本升级。 +### 2. 升级的目标版本能否选择: -4.是否支持回滚: +- 答:目前只支持升级到下一个次要版本,例如1.16.x的集群只能升到1.17.x;或者升级到补丁版本,例如1.16.x升级到 1.16.z +- 另外:不允许从 tke 发行版升级到社区版,比如 `1.20.4-tke ——>1.20.9` -答:不支持回滚操作。 +### 3. 为什么我看不到升级worker按钮: -5.自行修改的参数怎么办 +- 答:只有当前集群所有worker节点版本与master节点版本相同时,才允许进行master版本升级。 -答:master升级将会把用户自行修改的参数重置成与新建集群时的一致,若用户有特殊参数修改,建议升级完成后手动添加。 +### 4. 是否支持回滚: -6.升级时出现异常情况如何处理? +- 答:不支持回滚操作。 -答:升级过程中有可能出现意想不到的问题而导致升级失败或升级过程被卡住。针对失败发生的时间点不同,管理员处理策略有所不同。 +### 5. 自行修改的参数怎么办 -- 失败发生在k8s集群版本号变化之前: +- 答:master升级将会把用户自行修改的参数重置成与新建集群时的一致,若用户有特殊参数修改,建议升级完成后手动添加。 -此时k8集群版本号未发生变化,首节点尚未升级,可回滚。可以将Cluster.Spec.Version的版本号修改为与当前k8s版本一致,集群便可恢复正常运行状态。 +### 6. 升级时出现异常情况如何处理? -- 失败发生在k8s集群版本号变化之后: +- 答:升级过程中有可能出现意想不到的问题而导致升级失败或升级过程被卡住。针对失败发生的时间点不同,管理员处理策略有所不同: -此时集群的首节点已经升级成功,原则上不允许回滚到低版本。需要管理员排查其他节点没有按照预期进行升级到原因,解决问题后升级流程会自动向前推进。 + 1. 失败发生在k8s集群版本号变化之前:此时k8集群版本号未发生变化,首节点尚未升级,可回滚。可以将Cluster.Spec.Version的版本号修改为与当前k8s版本一致,集群便可恢复正常运行状态。 -7.Not Ready Pod数目超过设置值导致升级卡死 + 2. 失败发生在k8s集群版本号变化之后:此时集群的首节点已经升级成功,原则上不允许回滚到低版本。需要管理员排查其他节点没有按照预期进行升级到原因,解决问题后升级流程会自动向前推进。 -答:升级时遇到Not Ready Pod数目超过设置值导致升级卡死的情况,检查是否是由于驱逐导致的Not Ready状态,可尝试修改cluster.spec.features.upgrade.strategy. drainNodeBeforeUpgrade,设置false不驱逐节点, 或调大 maxUnready 值,以允许容忍更多的Not Ready Pod。 +### 7. Not Ready Pod数目超过设置值导致升级卡死 +- 答:升级时遇到Not Ready Pod数目超过设置值导致升级卡死的情况, + - 检查是否是由于驱逐导致的Not Ready状态,可尝试修改cluster.spec.features.upgrade.strategy. drainNodeBeforeUpgrade,设置false不驱逐节点, + - 或调大 maxUnready 值,以允许容忍更多的Not Ready Pod。 ## 案例分析 -升级时间点选择不当 +### 升级时间点选择不当 - 案例详情:集群 A 的运维人员在工作日业务高峰期进行节点升级操作,由于没有配置合理的扩缩容机制,业务 Pod 一直处于高负载状态,某个节点升级失败导致该节点 Pod 重启,剩余 Pod 无法满足高峰期时段的业务负载导致出现大量访问异常,业务受到较为严重的影响。 - 最佳实践:选择业务低峰期进行节点升级将大大降低业务受影响的概率。 -成功案例 +### 成功案例 - 案例详情:集群 D 计划进行节点升级。运维人员决定先升级测试集群,成功后再升级生产集群,并将升级时间选在业务负载较低的周五凌晨2点。升级前,他通过监控面板观察到各目标节点的负载情况都较低,再通过节点详情页观察每个节点上 Pod 分布较为合理。第一个节点开始升级后,运维人员点击了暂停升级任务,随后第一个节点升级完成后任务到达暂停点自动转为暂停状态。运维人员再次检查被升级节点,确认无异常后点击继续任务,升级动作继续进行。在随后升级过程中,运维人员时刻观察集群和业务情况,直到升级全部完成。成功升级测试集群后,运维人员继续以同样的步骤成功升级生产集群。 -- 最佳实践:1.先升级测试集群或者开发集群,成功后再升级生产集群;2. 时间选择合理;3. 升级前检查集群状态;4.先升级少量节点观察并解决问题;5.升级过程中继续保持观察。 +## 最佳实践 + +1. 先升级测试集群或者开发集群,成功后再升级生产集群; +2. 时间选择合理; +3. 升级前检查集群状态; +4. 先升级少量节点观察并解决问题; +5. 升级过程中继续保持观察。 diff --git a/docs/guide/zh-CN/best-practices/custom-k8s-version-upgrade.md b/docs/guide/zh-CN/best-practices/custom-k8s-version-upgrade.md index 60b721363..1f042c488 100644 --- a/docs/guide/zh-CN/best-practices/custom-k8s-version-upgrade.md +++ b/docs/guide/zh-CN/best-practices/custom-k8s-version-upgrade.md @@ -1,57 +1,157 @@ # 使用installer进行自定义k8s版本升级 +注意: + +- 以下所有操作均在 `global` 集群 `master` 节点上操作 +- 操作的节点当前可用磁盘最少 `30G`,建议`50G`以上,可以手动检查: + + ```sh + # df -h -BG /opt + 文件系统 1G-块 已用 可用 已用% 挂载点 + /dev/vda1 253G 78G 166G 32% / + ``` + ## 物料准备 -升级所需物料需要存放到`/opt/tke-installer/data/`下,默认物料文件夹名称为`custom_upgrade_resource`,由于installer以容器形式执行命令会挂在`/opt/tke-installer/data/`到执行目录的`data/`目录下,installer会默认从`data/custom_upgrade_resource`中获取物料,如用户想指定其他目录请通过installer的`--prepare-custom-images --upgrade-resource-dir your_resource_dir`在准备物料阶段指定位置,`--upgrade-resource-dir`未指定时默认值为`data/custom_upgrade_resource`。 +核心物料简介: + +1. 二进制文件 +2. 升级所需镜像 +3. 集群的 `kubeconfig` 文件 + +大致步骤: + +- 升级所需物料需要存放到`/opt/tke-installer/data/`下, +- 默认物料文件夹名称为`custom_upgrade_resource`, + - 由于installer以容器形式执行命令会挂在`/opt/tke-installer/data/`到执行目录的`data/`目录下,installer会默认从`data/custom_upgrade_resource`中获取物料, + - 如用户想指定其他目录请通过installer的`--upgrade-resource-dir [your_resource_dir]`在准备物料阶段指定位置, + - `--upgrade-resource-dir`未指定时默认值为`data/custom_upgrade_resource`。 + +- `custom_upgrade_resource`下需要有且仅有一个以版本号命名的文件夹, + + ```sh + mkdir -p /opt/tke-installer/data/custom_upgrade_resource/1.16.5 + cd /opt/tke-installer/data/custom_upgrade_resource/1.16.5 + mkdir images + mkdir bins + ``` + + - 此文件夹下需要有`images`和`bins`文件夹,文件目录结构 + + ```sh + # tree /opt/tke-installer/data/ + /opt/tke-installer/data/ + └── custom_upgrade_resource + └── 1.16.5 + ├── bins + └── images + ``` -`custom_upgrade_resource`下需要有且仅有一个以版本号命名的文件夹,例如`1.16.15`,此文件夹下需要有`images`和`bins`文件夹。 +下面将介绍详细准备步骤 ### images -`images`文件夹下用于存放自定义K8s版本的镜像的tar包,如kube-proxy等。在镜像存为tar包之前需要注意: +`images`文件夹下用于存放自定义 K8s 版本的镜像的 tar 包,如 kube-proxy 等。 -1. 镜像名的domain需要统一改为tkestack,否则将不会被installer识别为需要维护的镜像; -2. 镜像名需要携带cpu架构,由于TKEStack支持多架构,installer会将镜像统以`multi-CPU architecture`维护,需要导入镜像携带cpu架构。 +在镜像存为 tar 包之前需要注意: -以官方amd64架构的kube-proxy为例子,通过执行`docker tag k8s.gcr.io/kube-proxy-amd64:v1.16.15 tkestack/kube-proxy-amd64:v1.16.15 && docker save -o kp-amd-16.tar tkestack/kube-proxy-amd64:v1.16.15`就能得到一个可以被installer识别的镜像tar包。 +1. 镜像名的 `repo` 需要统一改为 `tkestack`,否则将不会被 `installer` 识别为需要维护的镜像; +2. 镜像名需要携带 `cpu` 架构,由于 `TKEStack` 支持多种 `CPU架构(multi-arch)`,installer会将镜像统以`multi-CPU architecture`维护,需要导入镜像携带 cpu 架构。 + + - 以官方amd64架构的kube-proxy为例子,执行如下命令,就能得到一个可以被installer识别的镜像tar包。 + + ```sh + docker tag k8s.gcr.io/kube-proxy-amd64:v1.16.5 tkestack/kube-proxy-amd64:v1.16.5 + docker save -o kube-proxy-amd64 tkestack/kube-proxy-amd64:v1.16.5 + ``` ### bins -`bins`目录下可以有两个目录`linux-amd64`和`linux-arm64`,分别用于存放amd64架构和arm64架构的二进制压缩包,用户可以根据自身需求同时创建两个或其中一个。这两个文件夹下需要有一个压缩包,命名规范需要符合`kubernetes-node-linux-$arch-v$version.tar.gz`。此压缩包可以从官方下载下来,以1.16.15版本amd64架构的K8s为例,可以通过命令`curl -o kubernetes-node-linux-amd64-v1.16.15.tar.gz -L https://dl.k8s.io/v1.16.15/kubernetes-node-linux-amd64.tar.gz`下载并重命名为可以被installer识别的压缩包。 +- `bins`目录下可以有两个目录`linux-amd64`和`linux-arm64`,分别用于存放amd64架构和arm64架构的二进制压缩包,用户可以根据自身需求同时创建两个或其中一个。 + +- 这两个文件夹下需要有一个压缩包,命名规范需要符合`kubernetes-node-linux-$arch-v$version.tar.gz`。 + - 此压缩包可以从官方下载下来,以1.16.5版本amd64架构的K8s为例,可以通过命令 + + ```sh + curl -o kubernetes-node-linux-amd64-v1.16.5.tar.gz -L https://dl.k8s.io/v1.16.5/kubernetes-node-linux-amd64.tar.gz + ``` + + 下载并重命名为可以被installer识别的压缩包。 最终文件目录结构可以参考: ```sh /opt/tke-installer/data/custom_upgrade_resource/ -`-- 1.16.15 - |-- bins - | `-- linux-amd64 - | `-- kubernetes-node-linux-amd64-v1.16.15.tar.gz - `-- images - |-- kube-proxy-amd64.tar - |-- kube-controller-manager-amd64.tar - |-- kube-apiserver-amd64.tar - `-- kube-scheduler-amd64.tar +└── 1.16.5 + ├── bins + │   └── linux-amd64 + │   └── kubernetes-node-linux-amd64-v1.16.5.tar.gz + └── images + ├── kube-apiserver-amd64.tar + ├── kube-controller-manager-amd64.tar + ├── kube-proxy-amd64.tar + └── kube-schedular-amd64.tar +``` + +### kubeconfig 文件 + +提前将 `kubeconfig` 文件复制到指定位置:`/opt/tke-installer/conf/kubeconfig` + +```sh +mkdir -p /opt/tke-installer/conf +cp ~/.kube/config /opt/tke-installer/conf/kubeconfig ``` ### 使用installer完成升级 -升级时注意要在global集群节点上执行,提前将kubeconfig文件存放到指定位置等事项,可参考[K8S 版本升级说明](https://github.com/tkestack/tke/blob/master/docs/guide/zh-CN/best-practices/cluster-upgrade-guide.md)。 +1. 升级物料准备完成之后,导入准备的资源:`tke-installer-linux-amd64-xxx.run --prepare-custom-images` + - 注意:`tke-installer` 版本需要和之前部署该集群使用的 `tke-installer` 版本保持一致 + 比如我们当前的集群使用 `tke-installer-1.7` 部署的,升级用的 installer 也需要使用 `tke-installer-1.7` + - 查看导入日志,最终停在这里,该步骤成功: -升级物料准备完成之后,首先通过`tke-installer-linux-amd64-xxx.run --prepare-custom-images`将用户的自定义K8s版本资源以镜像方式准备好,执行成功后再使用`tke-installer-linux-amd64-xxx.run --upgrade`执行升级。 + ```log + # tail -f /opt/tke-installer/data/tke.log + ... + + 2021-08-26 07:27:12.734 info tke-installer ===>prepare custom images task [Sucesss] [392.225361s] + ``` -触发集群升级需要在global集群上修改cluster资源对象内容: + 执行成功之后:会在集群升级页面上多一个选项 -```sh -kubectl edit cluster cls-yourcluster -``` + ![upgrade-cluster](.pic/../pic/upgrade-cluster.png) -修改`spec.version`中的内容为`1.16.15`。 + ![import-success](./pic/import-success.png) + +2. 执行成功后再使用`tke-installer-linux-amd64-xxx.run --upgrade`执行升级。 + - 该步骤执行时间较长,需耐心等待 + - 查看导入日志,确保升级成功: + +3. 触发集群升级需要在 `global` 集群上修改指定 `cluster` 资源对象内容: + + ```sh + kubectl edit cluster [cls-yourcluster] + ``` + + 修改`spec.version`中的内容为`1.16.5` + + 这步操作也可以在 tkestack界面上执行,详情见[集群升级指引](./cluster-upgrade-guide.md) + +### 已知问题 > 目前Web UI不允许补丁版本升级,会导致可以在UI升级选项中可以看到`1.16.15`版本,但是提示无法升级到该版本,后续版本中将会[修复](https://github.com/tkestack/tke/issues/1020)。当前请使用kubectl修改cluster资源对象内容升级自定义版本。 > K8s 1.16.x版本使用kubeadm升级存在[已知bug](https://github.com/kubernetes/kubernetes/issues/88725),会导致coreDNS的pod启动失败。遇到此场景请首先使用`kubectl get -n kube-system cm coredns -o yaml`观察`Corefile`和`Corefile-backup`内容是否一致,如不一致请确保`Corefile`内容为期望内容。之后请使用`kubectl edit -n kube-system deployments.apps coredns`将使用`Corefile-backup`的地方统一修改为`Corefile`。 +## FAQ + +1. 页面上升级集群失败,http 响应`422 Unprocessable Entity`: + - 漏执行步骤 `tke-installer-linux-amd64-xxx.run --upgrade` + +2. 执行 `tke-installer-linux-amd64-xxx.run --prepare-custom-images` 不生效、失败: + 1. 检查当前磁盘可用容量是否够用 + 2. 检查 `kubeconfig` 是否按步骤配置 + 3. 检查 使用 `installer` 版本是否和部署当前的集群版本一致 + # 用户手动进行自定义k8s版本升级 用户可以通过向TKEStack平台提供自定义版本的k8s,以允许集群升级到非内置的版本。本文将以v1.16.15版本的k8s作为例子演示用户如何将集群升级到自定义版本。本文中只以amd64环境作为示例,如果用户希望自己的物料镜像可以支持`multi-CPU architecture`,请在制作镜像和推送镜像阶段参考[Leverage multi-CPU architecture support](https://docs.docker.com/docker-for-mac/multi-arch/)和[构建多CPU架构支持的Docker镜像](https://blog.csdn.net/dev_csdn/article/details/79138424)。 diff --git a/docs/guide/zh-CN/best-practices/offline-pot/builder-init.sh b/docs/guide/zh-CN/best-practices/offline-pot/builder-init.sh index ffa409936..4f09d7431 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/builder-init.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/builder-init.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e @@ -33,10 +50,10 @@ builder_init(){ echo "##### builder init start #####" # start onestep builder init container if [ `docker ps -a | grep onestep-builder-init | wc -l ` -eq 0 ]; then - docker run --name onestep-builder-init -ti -d chenyihua/onestep-builder:v0.1 + docker run --name onestep-builder-init -ti -d chenyihua/onestep-builder:v0.1 else docker rm -f onestep-builder-init - docker run --name onestep-builder-init -ti -d chenyihua/onestep-builder:v0.1 + docker run --name onestep-builder-init -ti -d chenyihua/onestep-builder:v0.1 fi # copy onestep offline resource docker cp onestep-builder-init:/data/base-component-helms ${BUILDER_PDIR} @@ -57,7 +74,7 @@ all_func(){ main(){ if [ ! -d "${BUILDER_PDIR}/base-component-helms" ] || [ ! -d "${BUILDER_PDIR}/offline-pot-images-base" ] || \ - [ ! -d "${BUILDER_PDIR}/offline-pot-tgz-base" ]; then + [ ! -d "${BUILDER_PDIR}/offline-pot-tgz-base" ]; then $CALL_FUN || help fi } diff --git a/docs/guide/zh-CN/best-practices/offline-pot/builder.cfg.tpl b/docs/guide/zh-CN/best-practices/offline-pot/builder.cfg.tpl index 897c7f4e8..362dfb6a2 100644 --- a/docs/guide/zh-CN/best-practices/offline-pot/builder.cfg.tpl +++ b/docs/guide/zh-CN/best-practices/offline-pot/builder.cfg.tpl @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e @@ -22,7 +39,7 @@ server_set=("tkestack" "business" "redis" "mysql" "prometheus" "kafka" "elk" "ng # whether use remote docker registry, if true will be not save business images and copy registry secret; true or false remote_registry='true' -# remote image registry url, if remote images registry need issue crt, please name: ${remote_img_registry_url}.cert.tar.gz +# remote image registry url, if remote images registry need issue crt, please name: ${remote_img_registry_url}.cert.tar.gz # on offline-pot-tgz-base dir remote_img_registry_url='reg.xx.yy.com' diff --git a/docs/guide/zh-CN/best-practices/offline-pot/builder.sh b/docs/guide/zh-CN/best-practices/offline-pot/builder.sh index 917370dad..39a6d9e13 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/builder.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/builder.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/clean-cluster.sh b/docs/guide/zh-CN/best-practices/offline-pot/clean-cluster.sh index caffb6f1f..2b1592c01 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/clean-cluster.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/clean-cluster.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e @@ -38,7 +55,7 @@ remove_business(){ if [ -d "../tkestack" ]; then if [ `docker ps | grep tke-installer | wc -l` -eq 1 ]; then if [ -f 'offline-pot-cmd.sh' ]; then - sh ./offline-pot-cmd.sh -s remove-business.sh -f del_business + sh ./offline-pot-cmd.sh -s remove-business.sh -f del_business fi else echo "please exec install-tke-installer.sh to start tke-installer" && exit 0 @@ -75,7 +92,7 @@ clean_cluster_nodes(){ echo "###### clean cluster nodes start ######" if [ `docker ps | grep tke-installer | wc -l` -eq 1 ]; then if [ -f 'offline-pot-cmd.sh' ] && [ -d "../tkestack" ]; then - sh ./offline-pot-cmd.sh -s clean-cluster-nodes.sh -f clean_cluster + sh ./offline-pot-cmd.sh -s clean-cluster-nodes.sh -f clean_cluster fi else echo "please exec install-tke-installer.sh to start tke-installer" && exit 0 diff --git a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/docker/run.sh b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/docker/run.sh index 05c8013fc..99c9e576e 100644 --- a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/docker/run.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/docker/run.sh @@ -1,5 +1,22 @@ #!/bin/bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + + set -e BASE_DIR=../ cd $BASE_DIR diff --git a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/create_chart.sh b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/create_chart.sh index 9943316ce..630522602 100644 --- a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/create_chart.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/create_chart.sh @@ -1,5 +1,21 @@ #!/bin/bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + app=$1 if [ ! -n "$1" ]; then diff --git a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/helm.sh b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/helm.sh index 0247cd651..cc7abe9ea 100644 --- a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/helm.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/helm.sh @@ -1,5 +1,21 @@ #!/bin/bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + action=$1 app=$2 env=$3 diff --git a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/helmfile.sh b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/helmfile.sh index c40d52e15..d4fbba2d1 100644 --- a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/helmfile.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/helmfile.sh @@ -1,5 +1,21 @@ #!/bin/bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + action=$1 app=$2 env=$3 diff --git a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/update_dependencies.sh b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/update_dependencies.sh index 5853eb9ee..79b44db44 100644 --- a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/update_dependencies.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product1/tools/update_dependencies.sh @@ -1,5 +1,21 @@ #!/bin/bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + cd ../charts for file in `ls | grep -v '.sh' | grep -v 'tools'`; do echo $file diff --git a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/create_chart.sh b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/create_chart.sh index 26fcfbfb9..1bedd6654 100644 --- a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/create_chart.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/create_chart.sh @@ -1,5 +1,21 @@ #!/bin/bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + app=$1 if [ ! -n "$1" ]; then diff --git a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/helm.sh b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/helm.sh index 1376f9f43..331e596bb 100644 --- a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/helm.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/helm.sh @@ -1,5 +1,21 @@ #!/bin/bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + action=$1 app=$2 env=$3 diff --git a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/helmfile.sh b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/helmfile.sh index 464683caa..c02bdb3fa 100644 --- a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/helmfile.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/helmfile.sh @@ -1,5 +1,21 @@ #!/bin/bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + action=$1 app=$2 env=$3 diff --git a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/update_dependencies.sh b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/update_dependencies.sh index f4894b8d3..509a1e279 100644 --- a/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/update_dependencies.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/helmfile-example/product2/tools/update_dependencies.sh @@ -1,5 +1,21 @@ #!/bin/bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + cd ../charts for file in `ls | grep -v '.sh' | grep -v 'tools'`; do echo $file diff --git a/docs/guide/zh-CN/best-practices/offline-pot/init-and-check.sh b/docs/guide/zh-CN/best-practices/offline-pot/init-and-check.sh index 32e34030e..724f700de 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/init-and-check.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/init-and-check.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e @@ -78,7 +95,7 @@ host_init(){ remote_img_registry_url=`cat hosts | grep ^remote_img_registry_url | awk -F\' '{print $2}'` else echo "hosts file not exist, please check!!!" && exit 0 - fi + fi if [ `ls ../offline-pot-tgz/${remote_img_registry_url}.cert.tar.gz | wc -l` -gt 0 ]; then sh ./mgr-scripts/host-init.sh -f issue_img_crt 2>&1 >> /opt/tke-installer/data/host-init.log fi diff --git a/docs/guide/zh-CN/best-practices/offline-pot/init_keepalived.sh b/docs/guide/zh-CN/best-practices/offline-pot/init_keepalived.sh index d4d3a26b8..3748778c6 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/init_keepalived.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/init_keepalived.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e @@ -9,8 +26,8 @@ INSTALL_DATA_DIR=/opt/tke-installer/data/ # init keepalived, is tmp script; when tkestack keepalived issue fix will be remove init_keepalived(){ - - for i in {1..100000}; + + for i in {1..100000}; do if [ `cat ${INSTALL_DATA_DIR}/tke.log | grep 'EnsureKubeadmInitKubeConfigPhase' | grep -i 'Success' | wc -l` -gt 0 ]; then sh ./offline-pot-cmd.sh -s init-keepalived.sh -f init diff --git a/docs/guide/zh-CN/best-practices/offline-pot/install-offline-pot.sh b/docs/guide/zh-CN/best-practices/offline-pot/install-offline-pot.sh index a0443caae..982b03f67 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/install-offline-pot.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/install-offline-pot.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e @@ -74,7 +91,7 @@ init_keepalived(){ only_install_tkestack(){ echo "###### install tkestack start ######" # change tke components's replicas number - if [ -f "hosts" ]; then + if [ -f "hosts" ]; then sed -i 's/tke_replicas="1"/tke_replicas="2"/g' hosts fi # hosts init @@ -96,7 +113,7 @@ only_install_tkestack(){ defaut(){ # change tke components's replicas number - if [ -f "hosts" ]; then + if [ -f "hosts" ]; then sed -i 's/tke_replicas="2"/tke_replicas="1"/g' hosts fi # only deploy tkestack @@ -112,7 +129,7 @@ defaut(){ all_func(){ # change tke components's replicas number - if [ -f "hosts" ]; then + if [ -f "hosts" ]; then sed -i 's/tke_replicas="2"/tke_replicas="1"/g' hosts fi init_and_check diff --git a/docs/guide/zh-CN/best-practices/offline-pot/install-tke-installer.sh b/docs/guide/zh-CN/best-practices/offline-pot/install-tke-installer.sh index 22023571f..194ac93f4 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/install-tke-installer.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/install-tke-installer.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e @@ -24,7 +41,7 @@ init_tke_installer(){ fi if [ `docker images | grep tke-installer | wc -l` -gt 0 ]; then docker rmi -f `docker images | grep tke-installer | awk '{print $3}'` - fi + fi cd ${OFFLINE_POT_PDIR}tkestack if [ `echo "$version" | awk -Fv '{print $2}' | awk -F. '{print $1$2$3}'` -lt 130 ]; then if [ -d "${OFFLINE_POT_PDIR}tkestack/tke-installer-x86_64-${version}.run.tmp" ]; then diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/cfg-salt-minion.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/cfg-salt-minion.sh index 1dae7dbf7..9a3d2f074 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/cfg-salt-minion.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/cfg-salt-minion.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/clean-cluster-nodes.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/clean-cluster-nodes.sh index e8aa79cb8..b1c165a74 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/clean-cluster-nodes.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/clean-cluster-nodes.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/deploy-base-component.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/deploy-base-component.sh index 01a90031f..365323044 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/deploy-base-component.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/deploy-base-component.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/deploy-business.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/deploy-business.sh index ef71daf06..9a89d9dd5 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/deploy-business.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/deploy-business.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/health-check.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/health-check.sh index f64d47b28..bf4468e1f 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/health-check.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/health-check.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e @@ -42,7 +59,7 @@ do esac done -# helm tiller deploy check +# helm tiller deploy check helm_tiller_dpl_check(){ echo "###### helm tiller deploy check start ######" ansible-playbook -f 10 -i ../hosts --tags helmtiller_health_check ../playbooks/base-component/base-component.yml \ @@ -91,7 +108,7 @@ nginx_ingress_health_check(){ ansible-playbook -f 10 -i ../hosts --tags ingress_controller_health_check ../playbooks/base-component/base-component.yml \ --extra-vars "hosts=${hosts}" echo "###### nginx ingress controller health check end ######" -} +} # kafka deploy check kafka_dpl_check(){ @@ -99,7 +116,7 @@ kafka_dpl_check(){ ansible-playbook -f 10 -i ../hosts --tags kafka_health_check ../playbooks/base-component/base-component.yml \ --extra-vars "hosts=${hosts}" echo "###### kafka deploy check end ######" -} +} # elk deploy check elk_dpl_check(){ diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/host-init.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/host-init.sh index eeb0870f2..acdbfa037 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/host-init.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/host-init.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e @@ -91,7 +108,7 @@ install_base_tools(){ echo "###### install base tools end ######" } -# issue images registry crt +# issue images registry crt issue_img_crt(){ echo "###### issue images registry crt start ######" ansible-playbook -f 10 -i ../hosts --tags issue_docker_crt ../playbooks/hosts-init/hosts-init.yml \ @@ -99,7 +116,7 @@ issue_img_crt(){ echo "###### issue images registry crt end ######" } -# data disk init +# data disk init data_disk_init(){ echo "###### data disk init start ######" ansible-playbook -f 10 -i ../hosts --tags data_disk_init ../playbooks/hosts-init/hosts-init.yml \ @@ -107,7 +124,7 @@ data_disk_init(){ echo "###### data disk init end ######" } -# check iptables +# check iptables check_iptables(){ echo "###### check iptables start ######" ansible-playbook -f 10 -i ../hosts --tags check_iptables ../playbooks/hosts-init/hosts-init.yml \ @@ -149,7 +166,7 @@ all_func(){ data_disk_init check_iptables time_sync - install_stress_tools + install_stress_tools install_base_tools issue_img_crt registry_influxdb_init diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/hosts-check.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/hosts-check.sh index 8ad505695..1fef1bdd0 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/hosts-check.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/hosts-check.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e @@ -44,7 +61,7 @@ check_version(){ echo "###### check system and kernal version end ######" } -# check host whether had loaded nat module +# check host whether had loaded nat module check_nat_module(){ echo "###### check host whether had loaded nat module start ######" ansible-playbook -f 10 -i ../hosts --tags check_nat_module ../playbooks/hosts-check/hosts-check.yml \ diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/init-keepalived.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/init-keepalived.sh index d61850f8d..96aedb3fb 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/init-keepalived.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/init-keepalived.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/init-tke-config.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/init-tke-config.sh index 01d995c2d..4ac58cb4a 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/init-tke-config.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/init-tke-config.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/operation-undo.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/operation-undo.sh index 4e6fe272d..8e55807ee 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/operation-undo.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/operation-undo.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/remove-base-component.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/remove-base-component.sh index 687a0c6d0..7a2787060 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/remove-base-component.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/remove-base-component.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e @@ -162,7 +179,7 @@ all_func(){ del_minio del_nfs del_helm_tiller - + } main(){ diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/remove-business.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/remove-business.sh index 533253bcf..9726825a7 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/remove-business.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/remove-business.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/tke-gateway-mgr.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/tke-gateway-mgr.sh index e349d0d51..602c2d19f 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/tke-gateway-mgr.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/tke-gateway-mgr.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/tke-mgr.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/tke-mgr.sh index 15a16e130..5af4f23cb 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/tke-mgr.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/tke-mgr.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e @@ -36,7 +53,7 @@ done init_tke_cfg(){ if [ -f "./init-tke-config.sh" ]; then sh ./init-tke-config.sh -f init - else + else echo "init-tke-config.sh not exist, please check !!!" && exit 0 fi } @@ -46,7 +63,7 @@ init_tke_cfg(){ add_tke_nodes(){ if [ -f "./tke-nodes-mgr.sh" ]; then sh ./tke-nodes-mgr.sh -f add_tke_nodes - else + else echo "tke-nodes-mgr.sh not exist, please check !!!" && exit 0 fi } diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/tke-nodes-mgr.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/tke-nodes-mgr.sh index a14b1a3d0..d985dfd52 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/tke-nodes-mgr.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/tke-nodes-mgr.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/update-kernal.sh b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/update-kernal.sh index f66f37bd2..b2a01b3b6 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/update-kernal.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/mgr-scripts/update-kernal.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/offline-pot-cmd.sh b/docs/guide/zh-CN/best-practices/offline-pot/offline-pot-cmd.sh index 069cb6f3b..f83bbd0fe 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/offline-pot-cmd.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/offline-pot-cmd.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/reinstall-offline-pot.sh b/docs/guide/zh-CN/best-practices/offline-pot/reinstall-offline-pot.sh index ad409e0df..4952e1174 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/reinstall-offline-pot.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/reinstall-offline-pot.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # Author: yhchen set -e diff --git a/docs/guide/zh-CN/best-practices/offline-pot/roles/hosts-init/scripts/cdr2mask.sh b/docs/guide/zh-CN/best-practices/offline-pot/roles/hosts-init/scripts/cdr2mask.sh index c8bb54cba..de120f7ba 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/roles/hosts-init/scripts/cdr2mask.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/roles/hosts-init/scripts/cdr2mask.sh @@ -1,5 +1,21 @@ #!/bin/sh +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + if [ -z $1 ]; then echo "please input a cdr,example: 24!" && exit 1; else diff --git a/docs/guide/zh-CN/best-practices/offline-pot/roles/hosts-init/scripts/mask2cdr.sh b/docs/guide/zh-CN/best-practices/offline-pot/roles/hosts-init/scripts/mask2cdr.sh index a0a02128f..0169dbf8f 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/roles/hosts-init/scripts/mask2cdr.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/roles/hosts-init/scripts/mask2cdr.sh @@ -1,5 +1,21 @@ #!/bin/sh +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + if [ -z $1 ]; then echo "please input a netmask,example: 255.255.255.0!" && exit 1; else diff --git a/docs/guide/zh-CN/best-practices/offline-pot/roles/init_role.sh b/docs/guide/zh-CN/best-practices/offline-pot/roles/init_role.sh index 04c140c41..ec615a0f2 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/roles/init_role.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/roles/init_role.sh @@ -1,2 +1,19 @@ #!/bin/bash + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + ansible-galaxy init $@ diff --git a/docs/guide/zh-CN/best-practices/offline-pot/roles/tke-mgr/scripts/clean-cluster.sh b/docs/guide/zh-CN/best-practices/offline-pot/roles/tke-mgr/scripts/clean-cluster.sh index 1aedd9ee7..94f277997 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/roles/tke-mgr/scripts/clean-cluster.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/roles/tke-mgr/scripts/clean-cluster.sh @@ -1,5 +1,21 @@ #!/bin/bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + rm -rf /etc/kubernetes systemctl stop kubelet 2>/dev/null @@ -29,14 +45,14 @@ rm -rfv /var/lib/etcd || echo "not exist" rm -rfv /tmp/etc/kubernetes/ || echo "not exist" rm -rfv /usr/libexec/kubernetes/ || echo "not exist" rm -rfv /etc/keepalived/ || echo "not exist" -rm -rfv /var/lib/postgresql || echo "not exist" +rm -rfv /var/lib/postgresql || echo "not exist" rm -rfv /etc/core/token || echo "not exist" rm -rfv /var/lib/redis || echo "not exist" rm -rfv /storage || echo "not exist" rm -rfv /chart_storage || echo "not exist" if [ `ls /data/ | wc -l` -gt 0 ]; then - if [ -L "/storage" ]; then + if [ -L "/storage" ]; then rm -rf /storage fi if [ -L "/var/lib/influxdb" ]; then diff --git a/docs/guide/zh-CN/best-practices/offline-pot/roles/tke-mgr/scripts/clean-nodes.sh b/docs/guide/zh-CN/best-practices/offline-pot/roles/tke-mgr/scripts/clean-nodes.sh index 541a67a3b..0654783df 100755 --- a/docs/guide/zh-CN/best-practices/offline-pot/roles/tke-mgr/scripts/clean-nodes.sh +++ b/docs/guide/zh-CN/best-practices/offline-pot/roles/tke-mgr/scripts/clean-nodes.sh @@ -1,5 +1,21 @@ #!/bin/bash +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + rm -rf /etc/kubernetes systemctl stop kubelet 2>/dev/null @@ -29,14 +45,14 @@ rm -rfv /var/lib/etcd || echo "not exist" rm -rfv /tmp/etc/kubernetes/ || echo "not exist" rm -rfv /usr/libexec/kubernetes/ || echo "not exist" rm -rfv /etc/keepalived/ || echo "not exist" -rm -rfv /var/lib/postgresql || echo "not exist" +rm -rfv /var/lib/postgresql || echo "not exist" rm -rfv /etc/core/token || echo "not exist" rm -rfv /var/lib/redis || echo "not exist" rm -rfv /storage || echo "not exist" rm -rfv /chart_storage || echo "not exist" if [ `ls /data/ | wc -l` -gt 0 ]; then - if [ -L "/storage" ]; then + if [ -L "/storage" ]; then rm -rf /storage fi if [ -L "/var/lib/influxdb" ]; then diff --git a/docs/guide/zh-CN/best-practices/pic/import-success.png b/docs/guide/zh-CN/best-practices/pic/import-success.png new file mode 100644 index 000000000..ff782628f Binary files /dev/null and b/docs/guide/zh-CN/best-practices/pic/import-success.png differ diff --git a/docs/guide/zh-CN/best-practices/pic/upgrade-cluster.png b/docs/guide/zh-CN/best-practices/pic/upgrade-cluster.png new file mode 100644 index 000000000..8906c709b Binary files /dev/null and b/docs/guide/zh-CN/best-practices/pic/upgrade-cluster.png differ diff --git a/docs/images/cluster-create.svg b/docs/images/cluster-create.svg new file mode 100644 index 000000000..0f998a58d --- /dev/null +++ b/docs/images/cluster-create.svg @@ -0,0 +1,3 @@ + + +
p.EnsureKubelet
p.EnsureKubelet
p.EnsureKubernetesImage
p.EnsureKubernetesImage
...
...
p.EnsureContainerRuntime
p.EnsureContainerRuntime
p.EnsureCNIPlugins
p.EnsureCNIPlugins
p.EnsureKubeadm
p.EnsureKubeadm
create cluster
create cluster
Finished
Finished
Viewer does not support full SVG 1.1
\ No newline at end of file diff --git a/docs/images/cri-runtime.svg b/docs/images/cri-runtime.svg new file mode 100644 index 000000000..e1961d73a --- /dev/null +++ b/docs/images/cri-runtime.svg @@ -0,0 +1,3 @@ + + +
CRI
CRI
dockershim
dockershim
Docker
Docker
Containerd
Containerd
CRI-O
CRI-O
Kubelet
Kubelet
CRI
CRI
dockershim
dockershim
Docker
Docker
Containerd
Containerd
CRI-O
CRI-O
Kubelet
Kubelet
Viewer does not support full SVG 1.1
\ No newline at end of file diff --git a/go.mod b/go.mod index 19370b72d..d539dd27d 100644 --- a/go.mod +++ b/go.mod @@ -8,27 +8,7 @@ replace ( github.com/deislabs/oras => github.com/deislabs/oras v0.8.0 go.etcd.io/etcd => go.etcd.io/etcd v0.5.0-alpha.5.0.20200819165624-17cef6e3e9d5 google.golang.org/grpc => google.golang.org/grpc v1.26.0 - k8s.io/api => k8s.io/api v0.19.7 - k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.19.7 - k8s.io/apimachinery => k8s.io/apimachinery v0.19.7 - k8s.io/apiserver => k8s.io/apiserver v0.19.7 - k8s.io/cli-runtime => k8s.io/cli-runtime v0.19.7 k8s.io/client-go => k8s.io/client-go v0.19.7 - k8s.io/cloud-provider => k8s.io/cloud-provider v0.19.7 - k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.19.7 - k8s.io/code-generator => k8s.io/code-generator v0.19.7 - k8s.io/component-base => k8s.io/component-base v0.19.7 - k8s.io/cri-api => k8s.io/cri-api v0.19.7 - k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.19.7 - k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.19.7 - k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.19.7 - k8s.io/kube-proxy => k8s.io/kube-proxy v0.19.7 - k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.19.7 - k8s.io/kubectl => k8s.io/kubectl v0.19.7 - k8s.io/kubelet => k8s.io/kubelet v0.19.7 - k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.19.7 - k8s.io/metrics => k8s.io/metrics v0.19.7 - k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.19.7 ) require ( @@ -120,7 +100,6 @@ require ( k8s.io/kube-aggregator v0.19.7 k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6 k8s.io/kubectl v0.19.7 - k8s.io/kubernetes v1.19.7 k8s.io/metrics v0.19.7 k8s.io/utils v0.0.0-20200729134348-d5654de09c73 rsc.io/letsencrypt v0.0.3 // indirect diff --git a/go.sum b/go.sum index 2aa5fa12a..f52063f12 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -bitbucket.org/bertimus9/systemstat v0.0.0-20180207000608-0eeff89b0690/go.mod h1:Ulb78X89vxKYgdL24HMTiXYHlyHEvruOj1ZPlqeNEZM= -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= @@ -27,7 +25,6 @@ github.com/Azure/azure-sdk-for-go v16.2.1+incompatible/go.mod h1:9XXNKU+eRnpl9mo github.com/Azure/azure-sdk-for-go v23.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go v32.4.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go v36.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v43.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-storage-blob-go v0.8.0/go.mod h1:lPI3aLPpuLTeUwh1sViKXFxwl2B6teiRqI0deQUvsw0= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= @@ -64,8 +61,6 @@ github.com/DATA-DOG/go-sqlmock v1.4.1/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60= github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/GoogleCloudPlatform/k8s-cloud-provider v0.0.0-20200415212048-7901bc822317/go.mod h1:DF8FZRxMHMGv/vP2lQP6h+dYzzjpuRn24VeRiYn3qjQ= -github.com/JeffAshton/win_pdh v0.0.0-20161109143554-76bb4ee9f0ab/go.mod h1:3VYc5hodBMJ5+l/7J4xAyMeuM2PNuepvHlGs8yilUCA= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible h1:1G1pk05UrOh0NlF1oeaaix1x8XzrfjIDK47TY0Zehcw= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd h1:sjQovDkwrZp8u+gxLtPgKGjk5hCxuy2hrRejBTA9xFU= @@ -88,9 +83,8 @@ github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jB github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5 h1:ygIc8M6trr62pF5DucadTWGdEB4mEyvzi0e2nbcmcyA= github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= github.com/Microsoft/hcsshim v0.8.6/go.mod h1:Op3hHsoHPAvb6lceZHDtd9OkTew38wNoXnJs8iY7rUg= +github.com/Microsoft/hcsshim v0.8.7 h1:ptnOoufxGSzauVTsdE+wMYnCWA301PdoN4xg5oRdZpg= github.com/Microsoft/hcsshim v0.8.7/go.mod h1:OHd7sQqRFrYd3RmSgbgji+ctCwkbq2wbEYNSzOYtcBQ= -github.com/Microsoft/hcsshim v0.8.10-0.20200715222032-5eafd1556990 h1:1xpVY4dSUSbW3PcSGxZJhI8Z+CJiqbd933kM7HIinTc= -github.com/Microsoft/hcsshim v0.8.10-0.20200715222032-5eafd1556990/go.mod h1:ay/0dTb7NsG8QMDfsRfLHgZo/6xAJShLe1+ePPflihk= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I= github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= @@ -112,7 +106,6 @@ github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMx github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= -github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= github.com/akamai/AkamaiOPEN-edgegrid-golang v0.9.0/go.mod h1:zpDJeKyp9ScW4NNrbdr+Eyxvry3ilGPewKoXw3XGN1k= github.com/alangpierce/go-forceexport v0.0.0-20160317203124-8f1d6941cd75/go.mod h1:uAXEEpARkRhCZfEvy/y0Jcc888f9tHCc1W7/UeEtreE= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= @@ -146,14 +139,11 @@ github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:l github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535 h1:4daAzAu0S6Vi7/lbWECcX0j45yZReDZ56BQsrVBOEEY= github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= -github.com/auth0/go-jwt-middleware v0.0.0-20170425171159-5493cabe49f7/go.mod h1:LWMyo4iOLWXHGdBki7NIht1kHru/0wM179h+d3g8ATM= github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= -github.com/aws/aws-sdk-go v1.6.10/go.mod h1:ZRmQr0FajVIyZ4ZzBYKG5P3ZqPz9IHG41ZoMu1ADI3k= github.com/aws/aws-sdk-go v1.15.11/go.mod h1:mFuSZ37Z9YOHbQEwBWztmVzqXrEkub65tZoCYDt7FT0= github.com/aws/aws-sdk-go v1.23.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.25.48/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.28.2/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.29.32 h1:o4I8Qc+h9ht8NXvTHeXZH3EmtSUZ/PC0bg9Wawr+aTA= github.com/aws/aws-sdk-go v1.29.32/go.mod h1:1KvfttTE3SPKMpo8g2c6jL3ZKfXtFvKscTgahTma5Xg= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= @@ -169,7 +159,6 @@ github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+Ce github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bifurcation/mint v0.0.0-20180715133206-93c51c6ce115/go.mod h1:zVt7zX3K/aDCk9Tj+VM7YymsX66ERvzCJzw8rFCX2JU= github.com/bitly/go-simplejson v0.5.0 h1:6IH+V8/tVMab511d5bn4M7EwGXZf9Hj6i2xSwkNEM+Y= github.com/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngEKAMDJEczWVA= github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= @@ -179,7 +168,6 @@ github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdn github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 h1:DDGfHa7BWjL4YnC6+E63dPcxHo2sUxDIu8g3QgEJdRY= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= -github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b/go.mod h1:H0wQNHz2YrLsuXOZozoeDmnHXkNCRmMW0gwFWDfEZDA= github.com/brancz/gojsontoyaml v0.0.0-20191212081931-bf2969bbd742/go.mod h1:IyUJYN1gvWjtLF5ZuygmxbnsAyP3aJS6cHzIuZY50B0= github.com/brancz/kube-rbac-proxy v0.5.0/go.mod h1:cL2VjiIFGS90Cjh5ZZ8+It6tMcBt8rwvuw2J6Mamnl0= @@ -191,7 +179,6 @@ github.com/bugsnag/osext v0.0.0-20130617224835-0dd3f918b21b h1:otBG+dV+YK+Soembj github.com/bugsnag/osext v0.0.0-20130617224835-0dd3f918b21b/go.mod h1:obH5gd0BsqsP2LwDJ9aOkm/6J86V6lyAXCoQWGw3K50= github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0 h1:nvj0OLI3YqYXer/kZD8Ri1aaunCxIEsOst1BVJswV0o= github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0/go.mod h1:D/8v3kj0zr8ZAKg1AQ6crr+5VwKN5eIywRkfhyM/+dE= -github.com/caddyserver/caddy v1.0.3/go.mod h1:G+ouvOY32gENkJC+jhgl62TyhvqEsFaDiZ4uw0RzP1E= github.com/caddyserver/caddy v1.0.5 h1:5B1Hs0UF2x2tggr2X9jL2qOZtDXbIWQb9YLbmlxHSuM= github.com/caddyserver/caddy v1.0.5/go.mod h1:AnFHB+/MrgRC+mJAvuAgQ38ePzw+wKeW0wzENpdQQKY= github.com/campoy/embedmd v1.0.0/go.mod h1:oxyr9RCiSXg0M3VJ3ks0UGfp98BpSSGr0kpiX3MzVl8= @@ -199,7 +186,6 @@ github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n github.com/casbin/casbin/v2 v2.2.1 h1:ijrSMfBfbQlDc4LnMTGtGYWmhKuuR6RLSQRj8vHrMzc= github.com/casbin/casbin/v2 v2.2.1/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= github.com/cenkalti/backoff v0.0.0-20181003080854-62661b46c409/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= -github.com/cenkalti/backoff v2.1.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/cenkalti/backoff/v3 v3.0.0/go.mod h1:cIeZDE3IrqwwJl6VUwCN6trj1oXrTS4rc0ij+ULvLYs= @@ -217,33 +203,22 @@ github.com/chartmuseum/auth v0.4.1 h1:vVQ5QKQpvT+UhgnnkNPopwB8QPko247FPfoTEiBYla github.com/chartmuseum/auth v0.4.1/go.mod h1:ETTinG7GaqKsWGvU0G6OBZrc+fq76uCBMOzSGkBxwVY= github.com/chartmuseum/helm-push v0.9.0 h1:hnInRU/RzPIO5HZkOpBCpUFxxEu8dT3k1R9VAVBR+g4= github.com/chartmuseum/helm-push v0.9.0/go.mod h1:zu/IQlPG84gTLsKDmGF0wnK5WiPer1y4dZNc6ooYXNA= -github.com/checkpoint-restore/go-criu/v4 v4.0.2/go.mod h1:xUQBLp4RLc5zJtWY++yjOoMoB5lihDt7fai+75m+rGw= -github.com/cheekybits/genny v0.0.0-20170328200008-9127e812e1e9/go.mod h1:+tQajlRqAUrPI7DOSpB0XAqZYtQakVtB7wXkRAgjxjQ= github.com/cheekybits/genny v1.0.0/go.mod h1:+tQajlRqAUrPI7DOSpB0XAqZYtQakVtB7wXkRAgjxjQ= github.com/choujimmy/storage v0.5.1-0.20210412121305-660c0e91489b h1:CtmmTUQ5q0FO4pLjkkLY1mbkFnMDyQDU0r0CIhun8BM= github.com/choujimmy/storage v0.5.1-0.20210412121305-660c0e91489b/go.mod h1:UtDnuHQVC5s03bSaHJHoszGc/jdxYTFaSkx8ZZ4X5og= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/cilium/ebpf v0.0.0-20200110133405-4032b1d8aae3/go.mod h1:MA5e5Lr8slmEg9bt0VpxxWqJlO4iwu3FBdHUzV7wQVg= -github.com/cilium/ebpf v0.0.0-20200507155900-a9f01edf17e3/go.mod h1:XT+cAw5wfvsodedcijoh1l9cf7v1x9FlFB/3VmF/O8s= -github.com/cilium/ebpf v0.0.0-20200601085316-9f1617e5c574/go.mod h1:XT+cAw5wfvsodedcijoh1l9cf7v1x9FlFB/3VmF/O8s= -github.com/cilium/ebpf v0.0.0-20200702112145-1c8d4c9ef775/go.mod h1:7cR51M8ViRLIdUjrmSXlK9pkrsDlLHbO8jiB8X8JnOc= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= github.com/cloudflare/cloudflare-go v0.10.2/go.mod h1:qhVI5MKwBGhdNU89ZRz2plgYutcJ5PCekLxXn56w6SY= -github.com/clusterhq/flocker-go v0.0.0-20160920122132-2b8b7259d313/go.mod h1:P1wt9Z3DP8O6W3rvwCt0REIlshg1InHImaLW0t3ObY0= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa h1:OaNxuTZr7kxeODyLWsRMC+OD03aFUH+mW6r2d+MWa5Y= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/codegangsta/negroni v1.0.0/go.mod h1:v0y3T5G7Y1UlFfyxFn/QLRU4a2EuNau2iZY63YTKWo0= -github.com/container-storage-interface/spec v1.2.0/go.mod h1:6URME8mwIBbpVyZV93Ce5St17xBiQJQY67NDsuohiy4= +github.com/containerd/cgroups v0.0.0-20190919134610-bf292b21730f h1:tSNMc+rJDfmYntojat8lljbt1mgKNpTxUZJsSzJ9Y1s= github.com/containerd/cgroups v0.0.0-20190919134610-bf292b21730f/go.mod h1:OApqhQ4XNSNC13gXIwDjhOQxjWa/NxkwZXJ1EvqT0ko= -github.com/containerd/cgroups v0.0.0-20200531161412-0dbf7f05ba59 h1:qWj4qVYZ95vLWwqyNJCQg7rDsG5wPdze0UaPolH7DUk= -github.com/containerd/cgroups v0.0.0-20200531161412-0dbf7f05ba59/go.mod h1:pA0z1pT8KYB3TCXK/ocprsh7MAkoW8bZVzPdih9snmM= github.com/containerd/console v0.0.0-20180822173158-c12b1e7919c1/go.mod h1:Tj/on1eG8kiEhd0+fhSDzsPAFESxzBBvdyEgyryXffw= -github.com/containerd/console v1.0.0/go.mod h1:8Pf4gM6VEbTNRIT26AyyU7hxdQU3MvAvxVI0sc00XBE= github.com/containerd/containerd v1.4.3 h1:ijQT13JedHSHrQGWFcGEwzcNKrAGIiZ+jSD5QQG07SY= github.com/containerd/containerd v1.4.3/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= @@ -252,14 +227,12 @@ github.com/containerd/continuity v0.0.0-20190827140505-75bee3e2ccb6/go.mod h1:GL github.com/containerd/fifo v0.0.0-20190226154929-a9fb20d87448/go.mod h1:ODA38xgv3Kuk8dQz2ZQXpnv/UZZUHUCL7pnLehbXgQI= github.com/containerd/go-runc v0.0.0-20180907222934-5a6d9f37cfa3/go.mod h1:IV7qH3hrUgRmyYrtgEeGWJfWbgcHL9CSRruz2Vqcph0= github.com/containerd/ttrpc v0.0.0-20190828154514-0e0f228740de/go.mod h1:PvCDdDGpgqzQIzDW1TphrGLssLDZp2GuS+X5DkEJB8o= -github.com/containerd/ttrpc v1.0.0/go.mod h1:PvCDdDGpgqzQIzDW1TphrGLssLDZp2GuS+X5DkEJB8o= github.com/containerd/typeurl v0.0.0-20180627222232-a93fcdb778cd/go.mod h1:Cm3kwCdlkCfMSHURc+r6fwoGH6/F1hH3S4sg0rLFWPc= -github.com/containerd/typeurl v1.0.0/go.mod h1:Cm3kwCdlkCfMSHURc+r6fwoGH6/F1hH3S4sg0rLFWPc= -github.com/containernetworking/cni v0.8.0/go.mod h1:LGwApLUm2FpoOfxTDEeq8T9ipbpZ61X79hmU3w8FmsY= -github.com/coredns/corefile-migration v1.0.10/go.mod h1:RMy/mXdeDlYwzt0vdMEJvT2hGJ2I86/eO0UdXmH9XNI= +github.com/coreos/bbolt v1.3.1-coreos.6/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/etcd v3.3.15+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-oidc v2.1.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= github.com/coreos/go-oidc v2.2.1+incompatible h1:mh48q/BqXqgjVHpy2ZY7WnWAbenxRjsz9N1i1YxjHAk= @@ -271,9 +244,8 @@ github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7 github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f h1:JOrtw2xFKzlg+cbHpyrpLDmnN1HqhBfnX7WDiW7eG2c= github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.0.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk= -github.com/coreos/go-systemd/v22 v22.1.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f h1:lBNOc5arjvs8E5mO2tbpBpLoyyu8B6e44T7hJy6potg= github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/coreos/prometheus-operator v0.38.1-0.20200506070354-4231c1d4b313 h1:xdfS8GSfsbtwjZxJRAxhZD8cvK6BA+C+py522U/awSk= @@ -315,11 +287,11 @@ github.com/docker/distribution v2.7.1-0.20190205005809-0d3efadf0154+incompatible github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/distribution v2.7.2-0.20200708230840-70e0022e42fd+incompatible h1:CapxIe8ZVnS8n7c/rSdMeCfccBch6N08ecuyn/FqiVY= github.com/docker/distribution v2.7.2-0.20200708230840-70e0022e42fd+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= +github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker v0.7.3-0.20190506211059-b20a14b54661/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker v0.7.3-0.20190826074503-38ab9da00309/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v1.4.2-0.20200203170920-46ec8731fbce h1:KXS1Jg+ddGcWA8e1N7cupxaHHZhit5rB9tfDU+mfjyY= github.com/docker/docker v1.4.2-0.20200203170920-46ec8731fbce/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v1.4.2-0.20200309214505-aa6a9891b09c h1:zviRyz1SWO8+WVJbi9/jlJCkrsZ54r/lTRbgtcaQhLs= -github.com/docker/docker v1.4.2-0.20200309214505-aa6a9891b09c/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker-credential-helpers v0.6.3 h1:zI2p9+1NQYdnG6sMU26EX4aVGlqbInSQxQXLvzJ4RPQ= github.com/docker/docker-credential-helpers v0.6.3/go.mod h1:WRaJzqw3CTB9bk10avuGsjVBZsD05qeibJ1/TYlvc0Y= github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= @@ -347,6 +319,7 @@ github.com/elastic/go-sysinfo v1.0.1/go.mod h1:O/D5m1VpYLwGjCYzEt63g3Z1uO3jXfwyz github.com/elastic/go-sysinfo v1.1.1/go.mod h1:i1ZYdU10oLNfRzq4vq62BEwD2fH8KaWh6eh0ikPT9F0= github.com/elastic/go-windows v1.0.0/go.mod h1:TsU0Nrp7/y3+VwE82FoZF8gC/XFg/Elz6CcloAxnPgU= github.com/elastic/go-windows v1.0.1/go.mod h1:FoVvqWSun28vaDQPbj2Elfc0JahhPB7WQEGa3c814Ss= +github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153 h1:yUdfgN0XgIJw7foRItutHYUIhlcKzcSf5vDpdhQAKTc= github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= @@ -355,8 +328,8 @@ github.com/emicklei/go-restful v2.11.1+incompatible h1:CjKsv3uWcCMvySPQYKxO8XX3f github.com/emicklei/go-restful v2.11.1+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/euank/go-kmsg-parser v2.0.0+incompatible/go.mod h1:MhmAMZ8V4CYH4ybgdRwPr2TU5ThnS43puaKEMpja1uw= github.com/evanphx/json-patch v0.0.0-20200808040245-162e5629780b/go.mod h1:NAJj0yf/KaRKURN6nyi7A9IZydMivZEm9oQLWNjfKDc= +github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.9.0+incompatible h1:kLcOMZeuLAJvL2BPWLMIj5oaZQobrkAqrL+WFZwQses= github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= @@ -372,7 +345,6 @@ github.com/fatih/structtag v1.1.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4 github.com/felixge/httpsnoop v1.0.1 h1:lvB5Jl89CsZtGIWuTcDM1E/vkVs49/Ml7JJe07l8SPQ= github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= -github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= @@ -393,15 +365,12 @@ github.com/gin-gonic/gin v1.5.0 h1:fi+bqFAx/oLK54somfCtEZs9HeH1LHVoEPUgARpTqyc= github.com/gin-gonic/gin v1.5.0/go.mod h1:Nd6IXA8m5kNZdNEHMBd93KT+mdY3+bewLgRvmCsR2Do= github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= -github.com/go-acme/lego v2.5.0+incompatible/go.mod h1:yzMNe9CasVUhkquNvti5nAtPmG94USbYxYrZfTkIn0M= github.com/go-acme/lego/v3 v3.1.0/go.mod h1:074uqt+JS6plx+c9Xaiz6+L+GBb+7itGtzfcDM2AhEE= github.com/go-acme/lego/v3 v3.2.0/go.mod h1:074uqt+JS6plx+c9Xaiz6+L+GBb+7itGtzfcDM2AhEE= -github.com/go-bindata/go-bindata v3.1.1+incompatible/go.mod h1:xK8Dsgwmeed+BBsSy2XTopBn/8uK2HWuGSnA11C3Joo= github.com/go-cmd/cmd v1.0.5/go.mod h1:y8q8qlK5wQibcw63djSl/ntiHUHXHGdCkPk0j4QeW4s= github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-ini/ini v1.9.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= github.com/go-ini/ini v1.25.4/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= github.com/go-ini/ini v1.44.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= @@ -478,7 +447,6 @@ github.com/go-openapi/validate v0.17.2/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+ github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= github.com/go-openapi/validate v0.19.5/go.mod h1:8DJv2CVJQ6kGNpFW6eV9N3JviE1C85nY1c2z52x1Gk4= -github.com/go-ozzo/ozzo-validation v3.5.0+incompatible/go.mod h1:gsEKFIVnabGBt6mXmxK0MoFy+cZoTJY6mu5Ll3LVLBU= github.com/go-playground/locales v0.12.1 h1:2FITxuFt/xuCNP1Acdhv62OzaCiviiE4kotfhkmOqEc= github.com/go-playground/locales v0.12.1/go.mod h1:IUMDtCfWo/w/mtMfIE/IG2K+Ey3ygWanZIBtBW0W2TM= github.com/go-playground/universal-translator v0.16.0 h1:X++omBR/4cE2MNg91AoC3rmGrCjJ8eAeUP/K/EKx4DM= @@ -505,7 +473,6 @@ github.com/gobuffalo/packr/v2 v2.7.1/go.mod h1:qYEvAazPaVxy7Y7KR0W8qYEE+RymX74kE github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= -github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/godror/godror v0.13.3/go.mod h1:2ouUT4kdhUBk7TAkHWD4SN0CdI0pgEQbo8FVHhbSKWg= github.com/gofrs/flock v0.7.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= github.com/gofrs/flock v0.8.0/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= @@ -514,13 +481,13 @@ github.com/gofrs/uuid v3.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRx github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.2.2-0.20190730201129-28a6bbf47e48/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d/go.mod h1:nnjvkQ9ptGaCkuDUx6wNykzzlUixGxvkme+H/lnzb+A= github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0= -github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -559,7 +526,6 @@ github.com/gomodule/redigo v2.0.0+incompatible/go.mod h1:B4C85qUVwatsJoIUNIfCRsp github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/cadvisor v0.37.3/go.mod h1:BalYQhwl2UV8lpB3oFssiaW8Uj6sqfFDxw5nEs9sBgU= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -586,11 +552,12 @@ github.com/googleapis/gax-go v2.0.2+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/gnostic v0.0.0-20170426233943-68f4ded48ba9/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= github.com/googleapis/gnostic v0.3.1/go.mod h1:on+2t9HRStVgn95RSsFWFz+6Q0Snyqv1awfrALZdbtU= github.com/googleapis/gnostic v0.4.1 h1:DLJCy1n/vrD4HPjOvYcT8aYQXpPIzoRZONaYwyycI+I= github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg= -github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gophercloud/gophercloud v0.3.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gophercloud/gophercloud v0.6.0/go.mod h1:GICNByuaEBibcjmjvI7QvYJSZEbGkcYwAR7EZK2WMqM= github.com/gophercloud/gophercloud v0.9.0 h1:eJHQQFguQRv2FatH2d2VXH2ueTe2XzjgjwFjFS7SGcs= @@ -614,12 +581,14 @@ github.com/gosuri/uitable v0.0.4 h1:IG2xLKRvErL3uhY6e1BylFzG+aJiwQviDDTfOKeKTpY= github.com/gosuri/uitable v0.0.4/go.mod h1:tKR86bXuXPZazfOTG1FIzvjIdXzd0mo4Vtn16vt0PJo= github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 h1:pdN6V1QBWetyv/0+wjACpqVH+eVULgEjkurDLq3goeM= github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= +github.com/grpc-ecosystem/go-grpc-middleware v0.0.0-20190222133341-cfaf5686ec79/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.1.0 h1:THDBEeQ9xZ8JEaCLyLQqXMMdRqNr0QAUJTIkQAUtFjg= github.com/grpc-ecosystem/go-grpc-middleware v1.1.0/go.mod h1:f5nM7jw/oeRSadq3xCzHAvxcr8HZnzsqU6ILg/0NiiE= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.3.0/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw= github.com/grpc-ecosystem/grpc-gateway v1.8.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.9.4/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= @@ -654,7 +623,6 @@ github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/b github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= -github.com/hashicorp/golang-lru v0.0.0-20180201235237-0fb14efe8c47/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.3 h1:YPkqC67at8FYaadspW/6uE0COsBxS2656RLEr8Bppgk= @@ -668,8 +636,6 @@ github.com/hashicorp/memberlist v0.1.4/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2p github.com/hashicorp/memberlist v0.1.5/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hashicorp/serf v0.8.5/go.mod h1:UpNcs7fFbpKIyZaUuSW6EPiH+eZC7OuyFD+wc1oal+k= -github.com/heketi/heketi v9.0.1-0.20190917153846-c2e2a4ab7ab9+incompatible/go.mod h1:bB9ly3RchcQqsQ9CpyaQwvva7RS5ytVoSoholZQON6o= -github.com/heketi/tests v0.0.0-20151005000721-f3775cbcefd6/go.mod h1:xGMAM8JLi7UkZt1i4FQeQy0R2T8GLUwQhOP5M1gBhy4= github.com/howeyc/fsnotify v0.9.0 h1:0gtV5JmOKH4A8SsFxG2BczSeXWWPvcMT0euZt5gDAxY= github.com/howeyc/fsnotify v0.9.0/go.mod h1:41HzSPxBGeFRQKEEwgh49TRw/nKBsYZ2cF1OzPjSJsA= github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= @@ -690,7 +656,6 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt github.com/influxdata/influxdb v1.7.7/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d h1:/WZQPMZNsjZ7IlCpsLGdQBINg5bxKQ1K1sh6awxLtkA= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/ishidawataru/sctp v0.0.0-20190723014705-7c296d48a2b5/go.mod h1:DM4VvS+hD/kDi1U1QsX2fnZowwBhqD0Dk3bRPKF/Oc8= github.com/jessevdk/go-flags v0.0.0-20180331124232-1c38ed7ad0cc/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jimstudt/http-authentication v0.0.0-20140401203705-3eca13d6893a/go.mod h1:wK6yTYYcgjHE1Z1QtXACPDjcFJyBskHEdagmnq3vsP8= @@ -724,8 +689,6 @@ github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7 github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= -github.com/karrick/godirwalk v1.7.5/go.mod h1:2c9FRhkDxdIbgkOnCEvnSWs71Bhugbl46shStcFDJ34= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= @@ -763,7 +726,6 @@ github.com/lib/pq v1.3.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.7.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.8.0 h1:9xohqzkUwzR4Ga4ivdTcawVS89YSDVxXMa3xJX3cGzg= github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/libopenstorage/openstorage v1.0.0/go.mod h1:Sp1sIObHjat1BeXhfMqLZ14wnOzEhNx2YQedreMcUyc= github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0= github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= @@ -773,12 +735,7 @@ github.com/linode/linodego v0.10.0/go.mod h1:cziNP7pbvE3mXIPneHj0oRY8L1WtGEIKlZ8 github.com/liquidweb/liquidweb-go v1.6.0/go.mod h1:UDcVnAMDkZxpw4Y7NOHkqoeiGacVLEIG/i5J9cyixzQ= github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= github.com/lovoo/gcloud-opentracing v0.3.0/go.mod h1:ZFqk2y38kMDDikZPAK7ynTTGuyt17nSPdS3K5e+ZTBY= -github.com/lpabon/godbc v0.1.1/go.mod h1:Jo9QV0cf3U6jZABgiJ2skINAXb9j8m51r07g4KI92ZA= -github.com/lucas-clemente/aes12 v0.0.0-20171027163421-cd47fb39b79f/go.mod h1:JpH9J1c9oX6otFSgdUHwUBUizmKlrMjxWnIAjff4m04= -github.com/lucas-clemente/quic-clients v0.1.0/go.mod h1:y5xVIEoObKqULIKivu+gD/LU90pL73bTdtQjPBvtCBk= -github.com/lucas-clemente/quic-go v0.10.2/go.mod h1:hvaRS9IHjFLMq76puFJeWNfmn+H70QZ/CXoxqw9bzao= github.com/lucas-clemente/quic-go v0.13.1/go.mod h1:Vn3/Fb0/77b02SGhQk36KzOUmXgVpFfizUfW5WMaqyU= -github.com/lucas-clemente/quic-go-certificates v0.0.0-20160823095156-d2f86524cced/go.mod h1:NCcRLrOTZbzhZvixZLlERbJtDtYsmMw8Jc4vS8Z0g58= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.1 h1:ZC2Vc7/ZFkGmsVC9KvOjumD+G5lXy2RtTKyzRKO2BQ4= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= @@ -792,7 +749,6 @@ github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7 github.com/marstr/guid v1.1.0/go.mod h1:74gB1z2wpxxInTG6yaqA7KrtM0NZ+RbrcqDvYHefzho= github.com/marten-seemann/chacha20 v0.2.0/go.mod h1:HSdjFau7GzYRj+ahFNwsO3ouVJr1HFkWoEwNDb4TMtE= github.com/marten-seemann/qpack v0.1.0/go.mod h1:LFt1NU/Ptjip0C2CPkhimBz5CGE3WGDAUWqna+CNTrI= -github.com/marten-seemann/qtls v0.2.3/go.mod h1:xzjG7avBwGGbdZ8dTGxlBnLArsVKLvwmjgmPuiQEcYk= github.com/marten-seemann/qtls v0.4.1/go.mod h1:pxVXcHHw1pNIt8Qo0pwSYQEoZ8yYOOPXTCZLQQunvRc= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx8mU= @@ -821,17 +777,12 @@ github.com/mattn/go-tty v0.0.0-20180219170247-931426f7535a/go.mod h1:XPvLUNfbS4f github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 h1:I0XW9+e1XWDxdcEniV4rQAIOPUGDq67JSCiRCgGCZLI= github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/mholt/certmagic v0.6.2-0.20190624175158-6a42ef9fe8c2/go.mod h1:g4cOPxcjV0oFq3qwpjSA30LReKD8AoIfwAY9VvG35NY= github.com/mholt/certmagic v0.8.3/go.mod h1:91uJzK5K8IWtYQqTi5R2tsxV1pCde+wdGfaRaOZi6aQ= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.3/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.4/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.15/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.22/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= -github.com/mindprince/gonvml v0.0.0-20190828220739-9ebdce4bb989/go.mod h1:2eu9pRWp8mo84xCg6KswZ+USQHjwgRhNp06sozOdsTY= github.com/minio/minio-go/v6 v6.0.49/go.mod h1:qD0lajrGW49lKZLtXKtCB4X/qkMf0a5tBvN2PaZg7Gg= github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= -github.com/mistifyio/go-zfs v2.1.2-0.20190413222219-f784269be439+incompatible/go.mod h1:8AuVvqP/mXw1px98n46wfvcGfQ4ci2FwoAjKYxuo3Z4= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= github.com/mitchellh/copystructure v1.0.0 h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= @@ -851,8 +802,6 @@ github.com/mitchellh/osext v0.0.0-20151018003038-5e2d6d41470f h1:2+myh5ml7lgEU/5 github.com/mitchellh/osext v0.0.0-20151018003038-5e2d6d41470f/go.mod h1:OkQIRizQZAeMln+1tSwduZz7+Af5oFlKirV/MSYes2A= github.com/mitchellh/reflectwalk v1.0.0 h1:9D+8oIskB4VJBN5SFlmc27fSlIBZaov1Wpk/IfikLNY= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/moby/ipvs v1.0.1/go.mod h1:2pngiyseZbIKXNv7hsKj3O9UEz30c53MT9005gt2hxQ= -github.com/moby/sys/mountinfo v0.1.3/go.mod h1:w2t2Avltqx8vE7gX5l+QiBKxODu2TX0+Syr3h52Tw4o= github.com/moby/term v0.0.0-20200312100748-672ec06f55cd h1:aY7OQNf2XqY/JQ6qREWamhI/81os/agb2BAGpcx5yWI= github.com/moby/term v0.0.0-20200312100748-672ec06f55cd/go.mod h1:DdlQx2hp0Ss5/fLikoLlEeIYiATotOjgB//nb973jeo= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -862,7 +811,6 @@ github.com/modern-go/reflect2 v0.0.0-20180320133207-05fbef0ca5da/go.mod h1:bx2lN github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/mohae/deepcopy v0.0.0-20170603005431-491d3605edfb/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= github.com/morikuni/aec v0.0.0-20170113033406-39771216ff4c/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= @@ -871,12 +819,9 @@ github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOA github.com/mozillazg/go-cos v0.13.0/go.mod h1:Zp6DvvXn0RUOXGJ2chmWt2bLEqRAnJnS3DnAZsJsoaE= github.com/mozillazg/go-httpheader v0.2.1 h1:geV7TrjbL8KXSyvghnFm+NyTux/hxwueTSrwhe88TQQ= github.com/mozillazg/go-httpheader v0.2.1/go.mod h1:jJ8xECTlalr6ValeXYdOF8fFUISeBAdw6E61aqQma60= -github.com/mrunalp/fileutils v0.0.0-20171103030105-7d4729fb3618/go.mod h1:x8F1gnqOkIEiO4rqoeEEEqQbo7HjGMTvyoq3gej4iT0= -github.com/mrunalp/fileutils v0.0.0-20200520151820-abd8a0e76976/go.mod h1:x8F1gnqOkIEiO4rqoeEEEqQbo7HjGMTvyoq3gej4iT0= github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/mvdan/xurls v1.1.0/go.mod h1:tQlNn3BED8bE/15hnSL2HLkDeLWpNPAwtw7wkEq44oU= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= @@ -909,6 +854,7 @@ github.com/onsi/ginkgo v1.4.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+W github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.10.3/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.11.0 h1:JAKSXpt1YjtLA7YpPiqO9ss6sNXEsPfSGdwN0UHqzrw= github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -930,16 +876,10 @@ github.com/opencontainers/image-spec v1.0.0/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zM github.com/opencontainers/image-spec v1.0.1 h1:JMemWkRwHx4Zj+fVxWoMCFm/8sYGGrUVojFA6h/TRcI= github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= github.com/opencontainers/runc v0.0.0-20190115041553-12f6a991201f/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= +github.com/opencontainers/runc v0.1.1 h1:GlxAyO6x8rfZYN9Tt0Kti5a/cP41iuiO2yYT0IJGY8Y= github.com/opencontainers/runc v0.1.1/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= -github.com/opencontainers/runc v1.0.0-rc90.0.20200616040943-82d2fa4eb069/go.mod h1:3Sm6Dt7OT8z88EbdQqqcRN2oCT54jbi72tT/HqgflT8= -github.com/opencontainers/runc v1.0.0-rc91.0.20200707015106-819fcc687efb h1:LcPVE5u4oaqw8ffPbJew0lUxZC7faM5t52PgU4px1xY= -github.com/opencontainers/runc v1.0.0-rc91.0.20200707015106-819fcc687efb/go.mod h1:ZuXhqlr4EiRYgDrBDNfSbE4+n9JX4+V107NwAmF7sZA= github.com/opencontainers/runtime-spec v0.1.2-0.20190507144316-5b71a03e2700/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.3-0.20200520003142-237cc4f519e2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= github.com/opencontainers/runtime-tools v0.0.0-20181011054405-1d69bd0f9c39/go.mod h1:r3f7wjNzSs2extwzU3Y+6pKfobzPh+kKFJ3ofN+3nfs= -github.com/opencontainers/selinux v1.5.1/go.mod h1:yTcKuYAh6R95iDpefGLQaPaRwJFwyzAJufJyiTt7s0g= -github.com/opencontainers/selinux v1.5.2/go.mod h1:yTcKuYAh6R95iDpefGLQaPaRwJFwyzAJufJyiTt7s0g= github.com/openshift/prom-label-proxy v0.1.1-0.20191016113035-b8153a7f39f1/go.mod h1:p5MuxzsYP1JPsNGwtjtcgRHHlGziCJJfztff91nNixw= github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= github.com/opentracing-contrib/go-stdlib v0.0.0-20190519235532-cf7a6c988dc9/go.mod h1:PLldrQSroqzH70Xl+1DQcGnefIbqsKR7UDaiux3zV+w= @@ -1035,11 +975,9 @@ github.com/prometheus/prometheus v0.0.0-20180315085919-58e2a31db8de/go.mod h1:oA github.com/prometheus/prometheus v1.8.2-0.20200110114423-1e64d757f711/go.mod h1:7U90zPoLkWjEIQcy/rweQla82OCTUzxVHE51G3OhJbI= github.com/prometheus/prometheus v2.3.2+incompatible/go.mod h1:oAIUtOny2rjMX0OWN5vPR5/q/twIROJvdqnQKDdil/s= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/quobyte/api v0.1.2/go.mod h1:jL7lIHrmqQ7yh05OJ+eEEdHr0u/kmT1Ff9iHd+4H6VI= github.com/rainycape/memcache v0.0.0-20150622160815-1031fa0ce2f2/go.mod h1:7tZKcyumwBO6qip7RNQ5r77yrssm9bfCowcLEBcU5IA= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= -github.com/robfig/cron v1.1.0/go.mod h1:JGuDeoQd7Z6yL4zQhZ3OPEVHB7fL6Ka6skscFHfmt2k= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= @@ -1051,7 +989,6 @@ github.com/rs/cors v1.6.0 h1:G9tHG9lebljV9mfp9SNPDL36nCDxmo3zTlAf1YgvzmI= github.com/rs/cors v1.6.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rubenv/sql-migrate v0.0.0-20200616145509-8d140a17f351 h1:HXr/qUllAWv9riaI4zh2eXWKmCSDqVS/XH1MRHLKRwk= github.com/rubenv/sql-migrate v0.0.0-20200616145509-8d140a17f351/go.mod h1:DCgfY80j8GYL7MLEfvcpSFvjD0L5yZq/aZUJmhZklyg= -github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto= github.com/russellhaering/goxmldsig v0.0.0-20180430223755-7acd5e4a6ef7 h1:J4AOUcOh/t1XbQcJfkEqhzgvMJ2tDxdCVvmHxW5QXao= github.com/russellhaering/goxmldsig v0.0.0-20180430223755-7acd5e4a6ef7/go.mod h1:Oz4y6ImuOQZxynhbSXk7btjEfNBtGlj2dcaOvXl2FSM= github.com/russross/blackfriday v0.0.0-20170610170232-067529f716f4/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= @@ -1068,7 +1005,6 @@ github.com/satori/go.uuid v0.0.0-20160603004225-b111a074d5ef/go.mod h1:dA0hQrYB0 github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/seccomp/libseccomp-golang v0.9.1/go.mod h1:GbW5+tmTXfcxTToHLXlScSlAvWlF4P2Ca7zGrPiEpWo= github.com/segmentio/ksuid v1.0.3 h1:FoResxvleQwYiPAVKe1tMUlEirodZqlqglIuFsdDntY= github.com/segmentio/ksuid v1.0.3/go.mod h1:/XUiZBD3kVx5SmUOl55voK5yeAbBNNIed+2O73XgrPE= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= @@ -1090,6 +1026,7 @@ github.com/smartystreets/assertions v1.0.1/go.mod h1:kHHU4qYBaI3q23Pp3VPrmWhuIUr github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/soheilhy/cmux v0.1.3/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/soheilhy/cmux v0.1.4 h1:0HKaf1o97UwFjHH9o5XsHUOF+tqmdA7KEzXLpiyaw0E= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= @@ -1106,9 +1043,8 @@ github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tL github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= github.com/spf13/cobra v1.1.0 h1:aq3wCKjTPmzcNWLVGnsFVN4rflK7Uzn10F8/aw8MhdQ= github.com/spf13/cobra v1.1.0/go.mod h1:yk5b0mALVusDL5fMM6Rd1wgnoO5jUPhwsQ6LQAJTidQ= +github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= -github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= @@ -1119,7 +1055,6 @@ github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/y github.com/spf13/viper v1.6.2/go.mod h1:t3iDnF5Jlj76alVNuyFBk5oUMCvsrkbvZK0WQdfDi5k= github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/storageos/go-api v0.0.0-20180912212459-343b3eff91fc/go.mod h1:ZrLn+e0ZuF3Y65PNF6dIwbJPZqfmtCXxFm9ckv0agOY= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= @@ -1137,7 +1072,6 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/syndtr/gocapability v0.0.0-20170704070218-db04d3cc01c8/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= -github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= github.com/tencentcloud/tencentcloud-sdk-go v3.0.107+incompatible h1:uUGvqiepdES1dmkFrJ9zI1ZKTue7VG5ACLlAmizIdqw= github.com/tencentcloud/tencentcloud-sdk-go v3.0.107+incompatible/go.mod h1:0PfYow01SHPMhKY31xa+EFz2RStxIqj6JFAJS+IkCi4= github.com/tencentyun/cos-go-sdk-v5 v0.0.0-20200311031902-5eb2ce1f587d h1:IJpbA8uYTzlF3O4KpEbWg1sIVhQXbQFWCnrLyMZOaRA= @@ -1145,7 +1079,6 @@ github.com/tencentyun/cos-go-sdk-v5 v0.0.0-20200311031902-5eb2ce1f587d/go.mod h1 github.com/testcontainers/testcontainers-go v0.0.9 h1:mwvFz+FkuQMqQ9oLkG4cVzPsZTRmrCo2NcaerJNaptA= github.com/testcontainers/testcontainers-go v0.0.9/go.mod h1:0Qe9qqjNZgxHzzdHPWwmQ2D49FFO7920hLdJ4yUJXJI= github.com/thanos-io/thanos v0.11.0/go.mod h1:N/Yes7J68KqvmY+xM6J5CJqEvWIvKSR5sqGtmuD6wDc= -github.com/thecodeteam/goscaleio v0.1.0/go.mod h1:68sdkZAsK8bvEwBlbQnlLS+xU+hvLYM/iQ8KXej1AwM= github.com/thoas/go-funk v0.4.0 h1:KBaa5NL7NMtsFlQaD8nQMbDt1wuM+OOaNQyYNYQFhVo= github.com/thoas/go-funk v0.4.0/go.mod h1:mlR+dHGb+4YgXkf13rkQTuzrneeHANxOm6+ZnEV9HsA= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= @@ -1167,13 +1100,7 @@ github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLY github.com/urfave/cli v0.0.0-20171014202726-7bc6a0acffa5/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= github.com/vektah/gqlparser v1.1.2/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw= -github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= -github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= -github.com/vishvananda/netns v0.0.0-20200520041808-52d707b772fe/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= -github.com/vmware/govmomi v0.20.3/go.mod h1:URlwyTFZX72RmxtxuaFL2Uj3fD1JTvZdx59bHWk6aFU= github.com/vultr/govultr v0.1.4/go.mod h1:9H008Uxr/C4vFNGLqKx232C206GL0PBHzOP0809bGNA= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= @@ -1183,6 +1110,7 @@ github.com/xeipuuv/gojsonschema v0.0.0-20180618132009-1d523034197f/go.mod h1:5yf github.com/xeipuuv/gojsonschema v1.1.0/go.mod h1:5yf86TLmAcydyeJq5YvxkGPE2fm/u4myDekKRoLuqhs= github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= +github.com/xiang90/probing v0.0.0-20160813154853-07dd2e8dfe18/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xlab/handysort v0.0.0-20150421192137-fb3537ed64a1 h1:j2hhcujLRHAg872RWAV5yaUrEjHEObwDv3aImCaNLek= @@ -1221,17 +1149,20 @@ go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2 h1:75k/FF0Q2YM8QYo07VPddOLBslDt1MZOdEslOHvmzAs= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.uber.org/atomic v0.0.0-20181018215023-8dc6146f7569/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0 h1:OI5t8sDa1Or+q8AeE+yKeB/SDYioSHAgcVljj9JIETY= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/automaxprocs v1.2.0/go.mod h1:YfO3fm683kQpzETxlTGZhGIVmXAhaw3gxeBADbpZtnU= +go.uber.org/multierr v0.0.0-20180122172545-ddea229ff1df/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0 h1:sFPn2GLc3poCkfrpIXGhBD2X0CMIo4Q/zSULXrj/+uc= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/ratelimit v0.0.0-20180316092928-c15da0234277/go.mod h1:2X8KaoNd1J0lZV+PxJk/5+DGbO/tpwLR1m++a7FnB/Y= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee h1:0mgffUl7nfd+FpvXMVz4IDEaUSmT1ysygQC7qYo7sG4= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= +go.uber.org/zap v0.0.0-20180814183419-67bc79d13d15/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0 h1:nR6NoDBgAf67s68NhaXbsojM+2gxp3S1hWkHDl27pVU= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= @@ -1239,9 +1170,7 @@ golang.org/x/crypto v0.0.0-20180621125126-a49355c7e3f8/go.mod h1:6SG95UA2DQfeDnf golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190123085648-057139ce5d2b/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190228161510-8dd112bcdc25/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190320223903-b7391e95e576/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -1253,6 +1182,7 @@ golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190617133340-57b3e21c3d56/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190829043050-9756ffdc2472/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190911031432-227b76d455e7/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= @@ -1261,11 +1191,10 @@ golang.org/x/crypto v0.0.0-20191112222119-e1110fd1c708/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20191202143827-86a70503ff7e/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200128174031-69ecbb4d6d5d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -1274,7 +1203,6 @@ golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxT golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= @@ -1310,7 +1238,6 @@ golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73r golang.org/x/net v0.0.0-20190228165749-92fc7df08ae7/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190320064053-1272bf9dcd53/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190328230028-74de082e2cca/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -1321,6 +1248,7 @@ golang.org/x/net v0.0.0-20190619014844-b5b0513f8c1b/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190812203447-cdfb69ac37fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -1331,10 +1259,10 @@ golang.org/x/net v0.0.0-20191027093000-83d349e8ac1a/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20191112182307-2180aed22343/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191126235420-ef20fe5d7933/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b h1:uwuIcX0g4Yl1NC5XAz37xsr2lTtcqevgzYNVt49waME= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= @@ -1362,12 +1290,10 @@ golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181228144115-9a3f9b0469bb/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190124100055-b90733256f2e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190204203706-41f3e6584952/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190228124157-a34e9553db1e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190310054646-10058d7d4faa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190321052220-f7bb7a8bee54/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1381,7 +1307,6 @@ golang.org/x/sys v0.0.0-20190514135907-3a4b5fb9f71f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190515120540-06a5c4944438/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190602015325-4c4f7f33c9ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1400,23 +1325,17 @@ golang.org/x/sys v0.0.0-20191025021431-6c3a3bfe00ae/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191112214154-59a1497f0cea/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191113165036-4c7a9d0fe056/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191115151921-52ab43148777/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191128015809-6d18c012aee9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200120151820-655fe14d7479/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200217220822-9197077df867/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200327173247-9dae0f8f5775/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201112073958-5cba982894dd h1:5CtCZbICpIOFdgO940moixOPjc0178IU44m4EjOO5IY= golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1436,7 +1355,6 @@ golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1 h1:NusfzzA6yGQ+ua51ck7E3omNUX/JuqbFSaRGqU8CcLI= golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180810170437-e96c4e24768d/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -1464,6 +1382,7 @@ golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190918214516-5a1a30219888/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191004055002-72853e10c5a3/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -1485,12 +1404,9 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IV golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gomodules.xyz/jsonpatch/v2 v2.0.1 h1:xyiBuvkD2g5n7cYzx6u2sxQvsAy4QJsZFCzGVdzOXZ0= gomodules.xyz/jsonpatch/v2 v2.0.1/go.mod h1:IhYNNY4jnS53ZnfE4PAmpKtDpTCj1JFXc+3mwe7XcUU= -gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0= -gonum.org/v1/gonum v0.6.2/go.mod h1:9mxDZsDKxgMAuccQkewq682L+0eCu4dCN2yonUJTCLU= gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e/go.mod h1:kS+toOQn6AQKjmKJ7gzohV1XkqsFehRA2FbsbkopSuQ= -gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= google.golang.org/api v0.0.0-20160322025152-9bf6e6e569ff/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= @@ -1499,10 +1415,8 @@ google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEn google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0 h1:yzlyyDW/J0w8yNFJIhiAJy4kq74S+1DOLdawELNxFMA= google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.1-0.20200106000736-b8fc810ca6b5/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.1 h1:5mMS6mYvK5LVB8+ujVBC33Y8gltBo/kT6HBm6kU80G4= -google.golang.org/api v0.15.1/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -1526,7 +1440,6 @@ google.golang.org/genproto v0.0.0-20190927181202-20e1ac93f88c/go.mod h1:IbNlFCBr google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= @@ -1555,7 +1468,6 @@ gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/fsnotify/fsnotify.v1 v1.4.7/go.mod h1:Fyux9zXlo4rWoMSIzpn9fDAYjalPqJ/K1qJ27s+7ltE= -gopkg.in/gcfg.v1 v1.2.0/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= gopkg.in/go-playground/assert.v1 v1.2.1 h1:xoYuJVE7KT85PYWrN730RguIQO0ePzVRfFMXadIrXTM= gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE= @@ -1564,6 +1476,7 @@ gopkg.in/go-playground/validator.v9 v9.29.1/go.mod h1:+c9/zcJMFNgbLvly1L1V+PpxWd gopkg.in/gorp.v1 v1.7.2 h1:j3DWlAyGVv8whO7AcIWznQ2Yj7yJkn34B8s63GViAAw= gopkg.in/gorp.v1 v1.7.2/go.mod h1:Wo3h+DBQZIxATwftsglhdD/62zRFPhGhTiu5jUJmCaw= gopkg.in/h2non/gock.v1 v1.0.15/go.mod h1:sX4zAkdYX1TRGJ2JY156cFspQn4yRWn6p9EMdODlynE= +gopkg.in/inf.v0 v0.9.0/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= gopkg.in/ini.v1 v1.42.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= @@ -1584,7 +1497,6 @@ gopkg.in/square/go-jose.v2 v2.4.1 h1:H0TmLt7/KmzlrDOpa1F+zr0Tk90PbJYBfsVUmRLrf9Y gopkg.in/square/go-jose.v2 v2.4.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/warnings.v0 v0.1.1/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.0.0/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= @@ -1625,34 +1537,76 @@ istio.io/client-go v0.0.0-20200715214203-1ab538406cd1 h1:byikTIZ2uaLd16Y4e7MLXA8 istio.io/client-go v0.0.0-20200715214203-1ab538406cd1/go.mod h1:0QlyS/x4wqkZWIbE8NdXFsvUoH2zkVHXB3Zrh50FCVs= istio.io/gogo-genproto v0.0.0-20190930162913-45029607206a h1:w7zILua2dnYo9CxImhpNW4NE/8ZxEoc/wfBfHrhUhrE= istio.io/gogo-genproto v0.0.0-20190930162913-45029607206a/go.mod h1:OzpAts7jljZceG4Vqi5/zXy/pOg1b209T3jb7Nv5wIs= +k8s.io/api v0.0.0-20190813020757-36bff7324fb7/go.mod h1:3Iy+myeAORNCLgjd/Xu9ebwN7Vh59Bw0vh9jhoX+V58= +k8s.io/api v0.0.0-20190918155943-95b840bb6a1f/go.mod h1:uWuOHnjmNrtQomJrvEBg0c0HRNyQ+8KTEERVsK0PW48= +k8s.io/api v0.0.0-20191115095533-47f6de673b26/go.mod h1:iA/8arsvelvo4IDqIhX4IbjTEKBGgvsf2OraTuRtLFU= +k8s.io/api v0.0.0-20191122220107-b5267f2975e0/go.mod h1:vYpRfxYkMrmPPSesoHEkGNHxNKTk96REAwqm/inQbs0= +k8s.io/api v0.17.2/go.mod h1:BS9fjjLc4CMuqfSO8vgbHPKMt5+SF0ET6u/RVDihTo4= +k8s.io/api v0.18.1/go.mod h1:3My4jorQWzSs5a+l7Ge6JBbIxChLnY8HnuT58ZWolss= +k8s.io/api v0.18.2/go.mod h1:SJCWI7OLzhZSvbY7U8zwNl9UA4o1fizoug34OV/2r78= +k8s.io/api v0.18.8/go.mod h1:d/CXqwWv+Z2XEG1LgceeDmHQwpUJhROPx16SlxJgERY= +k8s.io/api v0.19.4/go.mod h1:SbtJ2aHCItirzdJ36YslycFNzWADYH3tgOhvBEFtZAk= k8s.io/api v0.19.7 h1:MpHhls03C2pyzoYcpbe4QqYiiZjdvW+tuWq6TbjV14Y= k8s.io/api v0.19.7/go.mod h1:KTryDUT3l6Mtv7K2J2486PNL9DBns3wOYTkGR+iz63Y= +k8s.io/apiextensions-apiserver v0.0.0-20190918161926-8f644eb6e783/go.mod h1:xvae1SZB3E17UpV59AWc271W/Ph25N+bjPyR63X6tPY= +k8s.io/apiextensions-apiserver v0.17.2/go.mod h1:4KdMpjkEjjDI2pPfBA15OscyNldHWdBCfsWMDWAmSTs= +k8s.io/apiextensions-apiserver v0.18.2/go.mod h1:q3faSnRGmYimiocj6cHQ1I3WpLqmDgJFlKL37fC4ZvY= +k8s.io/apiextensions-apiserver v0.18.8/go.mod h1:7f4ySEkkvifIr4+BRrRWriKKIJjPyg9mb/p63dJKnlM= +k8s.io/apiextensions-apiserver v0.19.4/go.mod h1:B9rpH/nu4JBCtuUp3zTTk8DEjZUupZTBEec7/2zNRYw= k8s.io/apiextensions-apiserver v0.19.7 h1:aV9DANMSCCYBEMbtoT/5oesrtcciQrjy9yqWVtZZL5A= k8s.io/apiextensions-apiserver v0.19.7/go.mod h1:XJNNtjISNNePDEUClHt/igzMpQcmjVVh88QH+PKztPU= +k8s.io/apimachinery v0.0.0-20190809020650-423f5d784010/go.mod h1:Waf/xTS2FGRrgXCkO5FP3XxTOWh0qLf2QhL1qFZZ/R8= +k8s.io/apimachinery v0.0.0-20190913080033-27d36303b655/go.mod h1:nL6pwRT8NgfF8TT68DBI8uEePRt89cSvoXUVqbkWHq4= +k8s.io/apimachinery v0.0.0-20191115015347-3c7067801da2/go.mod h1:dXFS2zaQR8fyzuvRdJDHw2Aerij/yVGJSre0bZQSVJA= +k8s.io/apimachinery v0.0.0-20191121175448-79c2a76c473a/go.mod h1:b9qmWdKlLuU9EBh+06BtLcSf/Mu89rWL33naRxs1uZg= +k8s.io/apimachinery v0.17.2/go.mod h1:b9qmWdKlLuU9EBh+06BtLcSf/Mu89rWL33naRxs1uZg= +k8s.io/apimachinery v0.18.1/go.mod h1:9SnR/e11v5IbyPCGbvJViimtJ0SwHG4nfZFjU77ftcA= +k8s.io/apimachinery v0.18.2/go.mod h1:9SnR/e11v5IbyPCGbvJViimtJ0SwHG4nfZFjU77ftcA= +k8s.io/apimachinery v0.18.8/go.mod h1:6sQd+iHEqmOtALqOFjSWp2KZ9F0wlU/nWm0ZgsYWMig= +k8s.io/apimachinery v0.19.4/go.mod h1:DnPGDnARWFvYa3pMHgSxtbZb7gpzzAZ1pTfaUNDVlmA= k8s.io/apimachinery v0.19.7 h1:nTaEnYVH+i//aPgMA0zTEV2lfVLCV9LextqVd67mulc= k8s.io/apimachinery v0.19.7/go.mod h1:6sRbGRAVY5DOCuZwB5XkqguBqpqLU6q/kOaOdk29z6Q= +k8s.io/apiserver v0.0.0-20190918160949-bfa5e2e684ad/go.mod h1:XPCXEwhjaFN29a8NldXA901ElnKeKLrLtREO9ZhFyhg= +k8s.io/apiserver v0.0.0-20191122221311-9d521947b1e1/go.mod h1:RbsZY5zzBIWnz4KbctZsTVjwIuOpTp4Z8oCgFHN4kZQ= +k8s.io/apiserver v0.17.2/go.mod h1:lBmw/TtQdtxvrTk0e2cgtOxHizXI+d0mmGQURIHQZlo= +k8s.io/apiserver v0.18.2/go.mod h1:Xbh066NqrZO8cbsoenCwyDJ1OSi8Ag8I2lezeHxzwzw= +k8s.io/apiserver v0.18.8/go.mod h1:12u5FuGql8Cc497ORNj79rhPdiXQC4bf53X/skR/1YM= +k8s.io/apiserver v0.19.4/go.mod h1:X8WRHCR1UGZDd7HpV0QDc1h/6VbbpAeAGyxSh8yzZXw= k8s.io/apiserver v0.19.7 h1:fOOELJ9TNC6DgKL3GUkQLE/EBMLjwBseTstx2eRP61o= k8s.io/apiserver v0.19.7/go.mod h1:DmWVQggNePspa+vSsVytVbS3iBSDTXdJVt0akfHacKk= +k8s.io/cli-runtime v0.17.2/go.mod h1:aa8t9ziyQdbkuizkNLAw3qe3srSyWh9zlSB7zTqRNPI= +k8s.io/cli-runtime v0.18.8/go.mod h1:7EzWiDbS9PFd0hamHHVoCY4GrokSTPSL32MA4rzIu0M= +k8s.io/cli-runtime v0.19.4/go.mod h1:m8G32dVbKOeaX1foGhleLEvNd6REvU7YnZyWn5//9rw= k8s.io/cli-runtime v0.19.7 h1:VkHsqrQYCD6+yBm2k9lOxLJtfo1tmb/TdYIHQ2RSCsY= k8s.io/cli-runtime v0.19.7/go.mod h1:UTtbWaGV/USZSrnvuW/lRZGM5OsemAT/q/Du/Ac+wKU= k8s.io/client-go v0.19.7 h1:SoJ4mzZ9LyXBGDe8MmpMznw0CwQ1ITWgsmG7GixvhUU= k8s.io/client-go v0.19.7/go.mod h1:iytGI7S3kmv6bWnn+bSQUE4VlrEi4YFssvVB7J7Hvqg= -k8s.io/cloud-provider v0.19.7/go.mod h1:aO/VpUwkG+JQN7ZXc5WBLZ5NBXuq/Y5B6vri6U94PZ8= k8s.io/cluster-bootstrap v0.19.7 h1:xlI+YfeS5gOVa33WVh1viiPZMDN9j7BAiY0iJkg2LwI= k8s.io/cluster-bootstrap v0.19.7/go.mod h1:W2WG13ZOrQrdydjS2nUyHYWVP+VckZNjwfG8l4CcfL4= +k8s.io/code-generator v0.0.0-20190912054826-cd179ad6a269/go.mod h1:V5BD6M4CyaN5m+VthcclXWsVcT1Hu+glwa1bi3MIsyE= +k8s.io/code-generator v0.17.2/go.mod h1:DVmfPQgxQENqDIzVR2ddLXMH34qeszkKSdH/N+s+38s= +k8s.io/code-generator v0.18.2/go.mod h1:+UHX5rSbxmR8kzS+FAv7um6dtYrZokQvjHpDSYRVkTc= +k8s.io/code-generator v0.18.8/go.mod h1:TgNEVx9hCyPGpdtCWA34olQYLkh3ok9ar7XfSsr8b6c= +k8s.io/code-generator v0.19.4/go.mod h1:moqLn7w0t9cMs4+5CQyxnfA/HV8MF6aAVENF+WZZhgk= k8s.io/code-generator v0.19.7/go.mod h1:lwEq3YnLYb/7uVXLorOJfxg+cUu2oihFhHZ0n9NIla0= +k8s.io/component-base v0.0.0-20190918160511-547f6c5d7090/go.mod h1:933PBGtQFJky3TEwYx4aEPZ4IxqhWh3R6DCmzqIn1hA= +k8s.io/component-base v0.0.0-20191122220729-2684fb322cb9/go.mod h1:NFuUusy/X4Tk21m21tcNUihnmp4OI7lXU7/xA+rYXkc= +k8s.io/component-base v0.17.2/go.mod h1:zMPW3g5aH7cHJpKYQ/ZsGMcgbsA/VyhEugF3QT1awLs= +k8s.io/component-base v0.18.2/go.mod h1:kqLlMuhJNHQ9lz8Z7V5bxUUtjFZnrypArGl58gmDfUM= +k8s.io/component-base v0.18.8/go.mod h1:00frPRDas29rx58pPCxNkhUfPbwajlyyvu8ruNgSErU= +k8s.io/component-base v0.19.4/go.mod h1:ZzuSLlsWhajIDEkKF73j64Gz/5o0AgON08FgRbEPI70= k8s.io/component-base v0.19.7 h1:ZXS2VRWOWBOc2fTd1zjzhi/b/mkqFT9FDqiNsn1cH30= k8s.io/component-base v0.19.7/go.mod h1:YX8spPBgwl3I6UGcSdQiEMAqRMSUsGQOW7SEr4+Qa3U= -k8s.io/cri-api v0.19.7/go.mod h1:PE0eMB8nJJvRigJuZEyqgYvRqL8mBowlvw0g8F/L1LY= -k8s.io/csi-translation-lib v0.19.7/go.mod h1:WghizPQuzuygr2WdpgN2EjcNpDD2V4EAbxFXsgHgSBk= k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= +k8s.io/gengo v0.0.0-20190822140433-26a664648505/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= +k8s.io/gengo v0.0.0-20200114144118-36b2048a9120/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= k8s.io/gengo v0.0.0-20200428234225-8167cfdcfc14/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/heapster v1.2.0-beta.1/go.mod h1:h1uhptVXMwC8xtZBYsPXKVi8fpdlYkTs6k949KozGrM= k8s.io/helm v2.16.12+incompatible h1:K2zhF8+B85Ya1n7n3eH34xwwp5qNUM42TBFENDZJT7w= k8s.io/helm v2.16.12+incompatible/go.mod h1:LZzlS4LQBHfciFOurYBFkCMTaZ0D1l+p0teMg7TSULI= k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= k8s.io/klog v0.3.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= +k8s.io/klog v0.3.1/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= k8s.io/klog v0.4.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= k8s.io/klog v1.0.0 h1:Pt+yjF5aB1xDSVbau4VsWe+dQNzA0qv1LlXdC2dF6Q8= k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= @@ -1661,27 +1615,28 @@ k8s.io/klog/v2 v2.2.0 h1:XRvcwJozkgZ1UQJmfMGpvRthQHOvihEhYtDfAaxMz/A= k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= k8s.io/kube-aggregator v0.19.7 h1:Eol5vPNFKaDScdVuTh0AofhuSr4cJxP5Vfv8JXW8OAQ= k8s.io/kube-aggregator v0.19.7/go.mod h1:kA6tIyq3iJ8HJ/Yz9xY6ifceJNp/l/Eym0H1jRRAjMk= -k8s.io/kube-controller-manager v0.19.7/go.mod h1:A5dw0l+rRB/vDLEWscsbZjuHjig8dex+9v+wigKmnRA= +k8s.io/kube-openapi v0.0.0-20190709113604-33be087ad058/go.mod h1:nfDlWeOsu3pUf4yWGL+ERqohP4YsZcBJXWMK+gkzOA4= +k8s.io/kube-openapi v0.0.0-20190816220812-743ec37842bf/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E= k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E= +k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c/go.mod h1:GRQhZsXIAJ1xR0C9bd8UpWHZ5plfAS9fzPjJuQ6JL3E= +k8s.io/kube-openapi v0.0.0-20200410145947-61e04a5be9a6/go.mod h1:GRQhZsXIAJ1xR0C9bd8UpWHZ5plfAS9fzPjJuQ6JL3E= k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6 h1:+WnxoVtG8TMiudHBSEtrVL1egv36TkkJm+bA8AxicmQ= k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6/go.mod h1:UuqjUnNftUyPE5H64/qeyjQoUZhGpeFDVdxjTeEVN2o= -k8s.io/kube-proxy v0.19.7/go.mod h1:ybN+BAnck/RRxYCUm5/m7O8ajsumnWDdVtxCvVLGYbY= -k8s.io/kube-scheduler v0.19.7/go.mod h1:2K7TS5PJv8YPbclK7HTh3LL8qAX92OsP8gxliNxPEjg= +k8s.io/kubectl v0.17.2/go.mod h1:y4rfLV0n6aPmvbRCqZQjvOp3ezxsFgpqL+zF5jH/lxk= +k8s.io/kubectl v0.18.8/go.mod h1:PlEgIAjOMua4hDFTEkVf+W5M0asHUKfE4y7VDZkpLHM= +k8s.io/kubectl v0.19.4/go.mod h1:XPmlu4DJEYgD83pvZFeKF8+MSvGnYGqunbFSrJsqHv0= k8s.io/kubectl v0.19.7 h1:pSsha+MBr9KLhn0IKrRikeAZ7g2oeShIGHLgqAzE3Ak= k8s.io/kubectl v0.19.7/go.mod h1:zGj+Xcfuftdo8deI/mPo4E+YTAQjfdcyQAW+R+yq4nc= -k8s.io/kubelet v0.19.7/go.mod h1:lvsy+NTglrj4+KJA2wLmbVlLmkroev2a5umPXkNz8bw= k8s.io/kubernetes v1.13.0/go.mod h1:ocZa8+6APFNC2tX1DZASIbocyYT5jHzqFVsY5aoB7Jk= -k8s.io/kubernetes v1.19.7 h1:Yk9W5SL1KR2mwy0nNZwjFXNImfK7ihrbKhXttidNTiE= -k8s.io/kubernetes v1.19.7/go.mod h1:gKuOq0UXDNqdLqmNMmMqFebiI7OUIcvh7XYngH4Oy2s= -k8s.io/legacy-cloud-providers v0.19.7/go.mod h1:dsZk4gH9QIwAtHQ8CK0Ps257xlfgoXE3tMkMNhW2xDU= +k8s.io/metrics v0.17.2/go.mod h1:3TkNHET4ROd+NfzNxkjoVfQ0Ob4iZnaHmSEA4vYpwLw= +k8s.io/metrics v0.18.8/go.mod h1:j7JzZdiyhLP2BsJm/Fzjs+j5Lb1Y7TySjhPWqBPwRXA= +k8s.io/metrics v0.19.4/go.mod h1:a0gvAzrxQPw2ouBqnXI7X9qlggpPkKAFgWU/Py+KZiU= k8s.io/metrics v0.19.7 h1:fpTtFhNtS0DwJiYGGsL4YoSjHlLw8qugkgw3EXSWaUA= k8s.io/metrics v0.19.7/go.mod h1:dE4AXTCyBwOlq0j4A0Ut9hQU3AtA/RbvMXxgg2w/0og= -k8s.io/sample-apiserver v0.19.7/go.mod h1:m1/jdi9n51GLiPOJnGE4O0JSpe5CvCLgrFqiWmLPBhk= -k8s.io/system-validators v1.1.2/go.mod h1:bPldcLgkIUK22ALflnsXk8pvkTEndYdNuaHH6gRrl0Q= k8s.io/utils v0.0.0-20190801114015-581e00157fb1/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= +k8s.io/utils v0.0.0-20191114184206-e782cd3c129f/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= k8s.io/utils v0.0.0-20191114200735-6ca3b61696b6/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= -k8s.io/utils v0.0.0-20200414100711-2df71ebbae66/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20200729134348-d5654de09c73 h1:uJmqzgNWG7XyClnU/mLPBWwfKKF1K8Hf8whTseBgJcg= k8s.io/utils v0.0.0-20200729134348-d5654de09c73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= @@ -1692,7 +1647,7 @@ modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/letsencrypt v0.0.3 h1:H7xDfhkaFFSYEJlKeq38RwX2jYcnTeHuDQyT+mMNMwM= rsc.io/letsencrypt v0.0.3/go.mod h1:buyQKZ6IXrRnB7TdkHP0RyEybLx18HHyOSoTyoOLqNY= -rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= +sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.7/go.mod h1:PHgbrJT7lCHcxMU+mDHEm+nx46H4zuuHZkDP6icnhu0= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.9 h1:rusRLrDhjBp6aYtl9sGEvQJr6faoHoDLd0YcUBTZguI= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.9/go.mod h1:dzAXnQbTRyDlZPJX2SUPEqvnB+j7AJjtlox7PEwigU0= sigs.k8s.io/controller-runtime v0.6.0 h1:Fzna3DY7c4BIP6KwfSlrfnj20DJ+SeMBK8HSFvOk9NM= @@ -1700,8 +1655,12 @@ sigs.k8s.io/controller-runtime v0.6.0/go.mod h1:CpYf5pdNY/B352A1TFLAS2JVSlnGQ5O2 sigs.k8s.io/controller-tools v0.2.4/go.mod h1:m/ztfQNocGYBgTTCmFdnK94uVvgxeZeE3LtJvd/jIzA= sigs.k8s.io/kustomize v2.0.3+incompatible h1:JUufWFNlI44MdtnjUqVnvh29rR37PQFzPbLXqhyOyX0= sigs.k8s.io/kustomize v2.0.3+incompatible/go.mod h1:MkjgH3RdOWrievjo6c9T245dYlB5QeXV4WCbnt/PEpU= -sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e h1:4Z09Hglb792X0kfOBBJUPFEyvVfQWrYT/l8h5EKA6JQ= sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e/go.mod h1:wWxsB5ozmmv/SG7nM11ayaAW51xMvak/t1r0CSlcokI= +sigs.k8s.io/structured-merge-diff v0.0.0-20190817042607-6149e4549fca/go.mod h1:IIgPezJWb76P0hotTxzDbWsMYB8APh18qZnxkomBpxA= +sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06 h1:zD2IemQ4LmOcAumeiyDWXKUI2SO0NYDe3H6QGvPOVgU= +sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06/go.mod h1:/ULNhyfzRopfcjskuui0cTITekDduZ7ycKN3oUT9R18= +sigs.k8s.io/structured-merge-diff/v3 v3.0.0-20200116222232-67a7b8c61874/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw= +sigs.k8s.io/structured-merge-diff/v3 v3.0.0/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw= sigs.k8s.io/structured-merge-diff/v4 v4.0.1 h1:YXTMot5Qz/X1iBRJhAt+vI+HVttY0WkSqqhKxQ0xVbA= sigs.k8s.io/structured-merge-diff/v4 v4.0.1/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= sigs.k8s.io/testing_frameworks v0.1.2/go.mod h1:ToQrwSC3s8Xf/lADdZp3Mktcql9CG0UAmdJG9th5i0w= diff --git a/hack/addon/readme/CSIOperator.md b/hack/addon/readme/CSIOperator.md index c9c56bed0..8b193797d 100644 --- a/hack/addon/readme/CSIOperator.md +++ b/hack/addon/readme/CSIOperator.md @@ -1,6 +1,6 @@ # CSIOperator -## CSIOperator 介绍 +## CSIOperator 介绍 Container Storage Interface Operator(CSIOperator)用于部署和更新 Kubernetes 集群中的 CSI 驱动和外部存储组件。 @@ -31,6 +31,27 @@ CSIOperator 用于支持集群方便的使用存储资源,当前支持的存 4. 在弹出的扩展组件列表里,滑动列表窗口找到 CSIOperator 5. 单击【完成】进行安装 +### 镜像准备 + +当前支持的存储插件包括 RBD、CephFS、TencentCBS 和 TencentCFS(测试中,暂不支持), +针对不同的模式,依赖不同的 csi 镜像 + +由于支持版本较多,所有镜像都上传的话导致 `TKE Stack` 安装包太大,并且大部分并不会被使用, +因此 所有镜像均已上传 [公网 dockerhub](https://hub.docker.com/u/tkestack): + +| csi 类型及版本 |依赖的镜像及拉取命令| +|--------------|--------| +| CephRBD V0 |docker pull tkestack/csi-provisioner:v0.4.2
docker pull tkestack/csi-attacher:v0.4.2
docker pull tkestack/csi-snapshotter:v0.4.1
docker pull tkestack/livenessprobe:v0.4.1
docker pull tkestack/driver-registrar:v0.3.0
docker pull tkestack/rbdplugin:v0.3.0| +| CephRBD V1 |docker pull tkestack/csi-provisioner:v1.0.1
docker pull tkestack/csi-attacher:v1.1.0
docker pull tkestack/csi-snapshotter:v1.1.0
docker pull tkestack/livenessprobe:v1.1.0
docker pull tkestack/csi-node-driver-registrar:v1.1.0
docker pull tkestack/rbdplugin:v1.0.0| +| CephFS V0 |docker pull tkestack/csi-provisioner:v0.4.2
docker pull tkestack/csi-attacher:v0.4.2
docker pull tkestack/livenessprobe:v0.4.1
docker pull tkestack/driver-registrar:v0.3.0
docker pull tkestack/cephfsplugin:v0.3.0| +| CephFS V1 |docker pull tkestack/csi-provisioner:v1.0.1
docker pull tkestack/csi-attacher:v1.1.0
docker pull tkestack/livenessprobe:v1.1.0
docker pull tkestack/csi-node-driver-registrar:v1.1.0
docker pull tkestack/cephfsplugin:v1.0.0| +| TencentCBS V0 |docker pull tkestack/csi-provisioner:v1.0.1
docker pull tkestack/csi-attacher:v1.1.0
docker pull tkestack/driver-registrar:v0.3.0
docker pull tkestack/csi-tencentcloud-cbs:v0.2.1| +| TencentCBS V1 |docker pull tkestack/csi-provisioner:v1.2.0
docker pull tkestack/csi-attacher:v1.1.0
docker pull tkestack/csi-snapshotter:v1.2.2
docker pull tkestack/csi-node-driver-registrar:v1.1.0
docker pull tkestack/csi-tencentcloud-cbs:v1.0.0
docker pull tkestack/csi-resizer:v0.5.0| +| TencentCBS V1P1 |docker pull tkestack/csi-provisioner:v1.2.0
docker pull tkestack/csi-attacher:v1.1.0
docker pull tkestack/csi-snapshotter:v1.2.2
docker pull tkestack/csi-node-driver-registrar:v1.1.0
docker pull tkestack/csi-tencentcloud-cbs:v1.2.0
docker pull tkestack/csi-resizer:v0.5.0| + + +使用时 `csi-operator`根据配置的存储类型拉取所需的镜像 + ### 通过 CSIOperator 使用腾讯云存储资源 1. 登录 TKEStack @@ -92,4 +113,3 @@ CSIOperator 用于支持集群方便的使用存储资源,当前支持的存 详情请见 [CSIOperator Example](https://github.com/tkestack/csi-operator/blob/master/examples) - diff --git a/hack/boilerplate/boilerplate.sh.txt b/hack/boilerplate/boilerplate.sh.txt new file mode 100644 index 000000000..47a625a9f --- /dev/null +++ b/hack/boilerplate/boilerplate.sh.txt @@ -0,0 +1,15 @@ +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. diff --git a/pkg/apiserver/authorization/authorization.go b/pkg/apiserver/authorization/authorization.go index 956b411d4..e3381a059 100644 --- a/pkg/apiserver/authorization/authorization.go +++ b/pkg/apiserver/authorization/authorization.go @@ -20,6 +20,7 @@ package authorization import ( "fmt" + "k8s.io/apiserver/pkg/authorization/authorizer" genericapiserver "k8s.io/apiserver/pkg/server" apiserveroptions "tkestack.io/tke/pkg/apiserver/options" @@ -28,6 +29,15 @@ import ( // SetupAuthorization to setup the generic apiserver by authorization options. func SetupAuthorization(genericAPIServerConfig *genericapiserver.Config, authorizationOpts *apiserveroptions.AuthorizationOptions) error { var err error + if len(authorizationOpts.Modes) == 0 { + authzInfo := genericapiserver.AuthorizationInfo{} + err = authorizationOpts.ApplyTo(&authzInfo) + if err != nil { + return fmt.Errorf("invalid authorization config: %v", err) + } + genericAPIServerConfig.Authorization = authzInfo + return nil + } genericAPIServerConfig.Authorization.Authorizer, genericAPIServerConfig.RuleResolver, err = buildAuthorizer(authorizationOpts) if err != nil { return fmt.Errorf("invalid authorization config: %v", err) @@ -41,8 +51,8 @@ func buildAuthorizer(o *apiserveroptions.AuthorizationOptions) (authorizer.Autho AuthorizationModes: o.Modes, WebhookConfigFile: o.WebhookConfigFile, WebhookVersion: o.WebhookVersion, - WebhookCacheAuthorizedTTL: o.WebhookCacheAuthorizedTTL, - WebhookCacheUnauthorizedTTL: o.WebhookCacheUnauthorizedTTL, + WebhookCacheAuthorizedTTL: o.AllowCacheTTL, + WebhookCacheUnauthorizedTTL: o.DenyCacheTTL, } return authorizationConfig.New() } diff --git a/pkg/apiserver/filter/authentication.go b/pkg/apiserver/filter/authentication.go index ecd276f5f..d3865ed68 100644 --- a/pkg/apiserver/filter/authentication.go +++ b/pkg/apiserver/filter/authentication.go @@ -75,6 +75,7 @@ var ( "/metrics", "/debug", "/openapi", + "/version", "/swagger", "/favicon.ico", "/healthz", diff --git a/pkg/apiserver/handler/chain.go b/pkg/apiserver/handler/chain.go index 5c7a4f6a4..be7fd773c 100644 --- a/pkg/apiserver/handler/chain.go +++ b/pkg/apiserver/handler/chain.go @@ -36,8 +36,8 @@ type Chain func(apiHandler http.Handler, c *genericapiserver.Config) http.Handle // BuildHandlerChain returns the chained http Handler. func BuildHandlerChain(ignoreAuthPathPrefixes []string, ignoreAuthzPathPrefixes []string, inspectors []authfilter.Inspector) Chain { return func(apiHandler http.Handler, c *genericapiserver.Config) http.Handler { - handler := authfilter.WithTKEAuthorization(apiHandler, c.Authorization.Authorizer, c.Serializer, append(ignoreAuthPathPrefixes, ignoreAuthzPathPrefixes...)) - handler = authfilter.WithInspectors(handler, inspectors, c) + handler := authfilter.WithInspectors(apiHandler, inspectors, c) + handler = authfilter.WithTKEAuthorization(handler, c.Authorization.Authorizer, c.Serializer, append(ignoreAuthPathPrefixes, ignoreAuthzPathPrefixes...)) handler = genericfilters.WithMaxInFlightLimit(handler, c.MaxRequestsInFlight, c.MaxMutatingRequestsInFlight, c.LongRunningFunc) handler = genericapifilters.WithImpersonation(handler, c.Authorization.Authorizer, c.Serializer) handler = genericapifilters.WithAudit(handler, c.AuditBackend, c.AuditPolicyChecker, c.LongRunningFunc) diff --git a/pkg/apiserver/openapi/openapi.go b/pkg/apiserver/openapi/openapi.go index 7bfd45a0e..9476ec55b 100644 --- a/pkg/apiserver/openapi/openapi.go +++ b/pkg/apiserver/openapi/openapi.go @@ -25,6 +25,7 @@ import ( "strings" "github.com/go-openapi/spec" + "k8s.io/apimachinery/pkg/version" openapinamer "k8s.io/apiserver/pkg/endpoints/openapi" genericapiserver "k8s.io/apiserver/pkg/server" openapicommon "k8s.io/kube-openapi/pkg/common" @@ -43,6 +44,14 @@ func SetupOpenAPI(genericAPIServerConfig *genericapiserver.Config, getDefinition genericAPIServerConfig.OpenAPIConfig.Info.Version = appVersion.GitVersion genericAPIServerConfig.OpenAPIConfig.PostProcessSpec = postProcessOpenAPISpec(host, port) + // version + genericAPIServerConfig.Version = &version.Info{ + GitVersion: appVersion.GitVersion, + BuildDate: appVersion.BuildDate, + GoVersion: appVersion.GoVersion, + Compiler: appVersion.Compiler, + Platform: appVersion.Platform, + } } func postProcessOpenAPISpec(host string, port int) func(*spec.Swagger) (*spec.Swagger, error) { diff --git a/pkg/apiserver/options/authorization.go b/pkg/apiserver/options/authorization.go index d025023f3..3504125dd 100644 --- a/pkg/apiserver/options/authorization.go +++ b/pkg/apiserver/options/authorization.go @@ -20,23 +20,23 @@ package options import ( "fmt" + "strings" + "github.com/spf13/pflag" "github.com/spf13/viper" "k8s.io/apimachinery/pkg/util/sets" - "strings" - "time" + genericserveroptions "k8s.io/apiserver/pkg/server/options" "tkestack.io/tke/pkg/apiserver/authorization/modes" ) const ( - flagAuthzMode = "authorization-mode" - flagAuthzWebhookConfigFile = "authorization-webhook-config-file" - flagAuthzWebhookVersion = "authorization-webhook-version" - flagAuthzWebhookCacheUnauthorizedTTL = "authorization-webhook-cache-unauthorized-ttl" - flagAuthzWebhookCacheAuthorizedTTL = "authorization-webhook-cache-authorized-ttl" + flagAuthzMode = "authorization-mode" + flagAuthzWebhookConfigFile = "authorization-webhook-config-file" + flagAuthzWebhookVersion = "authorization-webhook-version" ) const ( + configAuthzKubeconfig = "authorization.kubeconfig" configAuthzMode = "authorization.mode" configAuthzWebhookConfigFile = "authorization.webhook_config_file" configAuthzWebhookVersion = "authorization.webhook_version" @@ -47,26 +47,25 @@ const ( // AuthorizationOptions defines the configuration parameters required to // include the authorization. type AuthorizationOptions struct { - Modes []string - WebhookConfigFile string - WebhookVersion string - WebhookCacheAuthorizedTTL time.Duration - WebhookCacheUnauthorizedTTL time.Duration + Modes []string + WebhookConfigFile string + WebhookVersion string + *genericserveroptions.DelegatingAuthorizationOptions } // NewAuthorizationOptions creates the default AuthorizationOptions object and // returns it. func NewAuthorizationOptions() *AuthorizationOptions { return &AuthorizationOptions{ - Modes: []string{modes.ModeAlwaysAllow}, - WebhookVersion: "v1beta1", - WebhookCacheAuthorizedTTL: 5 * time.Minute, - WebhookCacheUnauthorizedTTL: 30 * time.Second, + DelegatingAuthorizationOptions: genericserveroptions.NewDelegatingAuthorizationOptions(), + Modes: []string{}, + WebhookVersion: "v1beta1", } } // AddFlags adds flags for log to the specified FlagSet object. func (o *AuthorizationOptions) AddFlags(fs *pflag.FlagSet) { + o.DelegatingAuthorizationOptions.AddFlags(fs) fs.StringSlice(flagAuthzMode, o.Modes, ""+ "Ordered list of plug-ins to do authorization on secure port. Comma-delimited list of: "+ strings.Join(modes.AuthorizationModeChoices, ",")+".") @@ -80,14 +79,6 @@ func (o *AuthorizationOptions) AddFlags(fs *pflag.FlagSet) { fs.String(flagAuthzWebhookVersion, o.WebhookVersion, ""+ "The API version of the authorization.k8s.io SubjectAccessReview to send to and expect from the webhook.") _ = viper.BindPFlag(configAuthzWebhookVersion, fs.Lookup(flagAuthzWebhookVersion)) - - fs.Duration(flagAuthzWebhookCacheAuthorizedTTL, o.WebhookCacheAuthorizedTTL, ""+ - "The duration to cache 'authorized' responses from the webhook authorizer.") - _ = viper.BindPFlag(configAuthzWebhookCacheAuthorizedTTL, fs.Lookup(flagAuthzWebhookCacheAuthorizedTTL)) - - fs.Duration(flagAuthzWebhookCacheUnauthorizedTTL, o.WebhookCacheUnauthorizedTTL, - "The duration to cache 'unauthorized' responses from the webhook authorizer.") - _ = viper.BindPFlag(configAuthzWebhookCacheUnauthorizedTTL, fs.Lookup(flagAuthzWebhookCacheUnauthorizedTTL)) } // ApplyFlags parsing parameters from the command line or configuration file @@ -95,13 +86,13 @@ func (o *AuthorizationOptions) AddFlags(fs *pflag.FlagSet) { func (o *AuthorizationOptions) ApplyFlags() []error { var errs []error - o.Modes = viper.GetStringSlice(configAuthzMode) - o.WebhookCacheAuthorizedTTL = viper.GetDuration(configAuthzWebhookCacheAuthorizedTTL) - o.WebhookCacheUnauthorizedTTL = viper.GetDuration(configAuthzWebhookCacheUnauthorizedTTL) + o.RemoteKubeConfigFile = viper.GetString(configAuthzKubeconfig) + o.AllowCacheTTL = viper.GetDuration(configAuthzWebhookCacheAuthorizedTTL) + o.DenyCacheTTL = viper.GetDuration(configAuthzWebhookCacheUnauthorizedTTL) o.WebhookConfigFile = viper.GetString(configAuthzWebhookConfigFile) if len(o.Modes) == 0 { - errs = append(errs, fmt.Errorf("at least one authorization-mode must be passed")) + return errs } allowedModes := sets.NewString(modes.AuthorizationModeChoices...) diff --git a/pkg/application/registry/application/strategy.go b/pkg/application/registry/application/strategy.go index 70ff1c5d9..90c3e1d06 100644 --- a/pkg/application/registry/application/strategy.go +++ b/pkg/application/registry/application/strategy.go @@ -102,7 +102,6 @@ func (s *Strategy) PrepareForCreate(ctx context.Context, obj runtime.Object) { app.Spec.TenantID = tenantID } app.ObjectMeta.GenerateName = "app-" - app.ObjectMeta.Name = "" app.Generation = 1 if app.Spec.Chart.TenantID == "" { @@ -160,6 +159,7 @@ func MatchApplication(label labels.Selector, field fields.Selector) storage.Sele "spec.name", "spec.type", "spec.targetCluster", + "spec.targetNamespace", "metadata.name", }, } @@ -169,10 +169,11 @@ func MatchApplication(label labels.Selector, field fields.Selector) storage.Sele func ToSelectableFields(app *application.App) fields.Set { objectMetaFieldsSet := genericregistry.ObjectMetaFieldsSet(&app.ObjectMeta, false) specificFieldsSet := fields.Set{ - "spec.tenantID": app.Spec.TenantID, - "spec.name": app.Spec.Name, - "spec.type": string(app.Spec.Type), - "spec.targetCluster": app.Spec.TargetCluster, + "spec.tenantID": app.Spec.TenantID, + "spec.name": app.Spec.Name, + "spec.type": string(app.Spec.Type), + "spec.targetCluster": app.Spec.TargetCluster, + "spec.targetNamespace": app.Spec.TargetNamespace, } return genericregistry.MergeFieldsSets(objectMetaFieldsSet, specificFieldsSet) } diff --git a/pkg/audit/api/api.go b/pkg/audit/api/api.go index 923e25984..ad5cb6ad0 100644 --- a/pkg/audit/api/api.go +++ b/pkg/audit/api/api.go @@ -44,6 +44,7 @@ import ( "tkestack.io/tke/api/notify" "tkestack.io/tke/api/platform" "tkestack.io/tke/api/registry" + "tkestack.io/tke/api/application" auditconfig "tkestack.io/tke/pkg/audit/apis/config" auditconfigv1 "tkestack.io/tke/pkg/audit/apis/config/v1" "tkestack.io/tke/pkg/audit/config/codec" @@ -84,6 +85,7 @@ func init() { monitor.GroupName, business.GroupName, auth.GroupName, + application.GroupName, ) k8sClient = initK8sClient() initWatcher() diff --git a/pkg/auth/authorization/aggregation/aggregation.go b/pkg/auth/authorization/aggregation/aggregation.go index 6a88c5b04..d69dddd7a 100644 --- a/pkg/auth/authorization/aggregation/aggregation.go +++ b/pkg/auth/authorization/aggregation/aggregation.go @@ -23,8 +23,6 @@ import ( "k8s.io/apiserver/pkg/authorization/authorizer" "k8s.io/apiserver/pkg/authorization/union" "k8s.io/apiserver/plugin/pkg/authorizer/webhook" - k8sinformers "k8s.io/client-go/informers" - "k8s.io/kubernetes/plugin/pkg/auth/authorizer/rbac" authinternalclient "tkestack.io/tke/api/client/clientset/internalversion/typed/auth/internalversion" "tkestack.io/tke/cmd/tke-auth-api/app/options" "tkestack.io/tke/pkg/apiserver/authorization/abac" @@ -32,9 +30,7 @@ import ( ) // NewAuthorizer creates a authorizer for subject access review and returns it. -func NewAuthorizer(authClient authinternalclient.AuthInterface, authorizationOpts *options.AuthorizationOptions, - authOpts *options.AuthOptions, enforcer *casbin.SyncedEnforcer, - privilegedUsername string, k8sInformers k8sinformers.SharedInformerFactory) (authorizer.Authorizer, error) { +func NewAuthorizer(authClient authinternalclient.AuthInterface, authorizationOpts *options.AuthorizationOptions, authOpts *options.AuthOptions, enforcer *casbin.SyncedEnforcer, privilegedUsername string) (authorizer.Authorizer, error) { var ( authorizers []authorizer.Authorizer ) @@ -59,16 +55,6 @@ func NewAuthorizer(authClient authinternalclient.AuthInterface, authorizationOpt authorizers = append(authorizers, abacAuthorizer) } - if k8sInformers != nil { - rbacAuthorizer := rbac.New( - &rbac.RoleGetter{Lister: k8sInformers.Rbac().V1().Roles().Lister()}, - &rbac.RoleBindingLister{Lister: k8sInformers.Rbac().V1().RoleBindings().Lister()}, - &rbac.ClusterRoleGetter{Lister: k8sInformers.Rbac().V1().ClusterRoles().Lister()}, - &rbac.ClusterRoleBindingLister{Lister: k8sInformers.Rbac().V1().ClusterRoleBindings().Lister()}, - ) - authorizers = append(authorizers, rbacAuthorizer) - } - authorizers = append(authorizers, local.NewAuthorizer(authClient, enforcer, privilegedUsername)) return union.New(authorizers...), nil diff --git a/pkg/auth/filter/filter.go b/pkg/auth/filter/filter.go index 4c76ab517..2be5469e2 100644 --- a/pkg/auth/filter/filter.go +++ b/pkg/auth/filter/filter.go @@ -22,6 +22,7 @@ import ( "fmt" "net/http" "net/http/httputil" + "strconv" "strings" "unicode" @@ -57,9 +58,10 @@ const ( reasonAnnotationKey = "authorization.auth.tke.com/reason" // Annotation values set in advanced audit - decisionAllow = "allow" - decisionForbid = "forbid" - reasonError = "internal error" + decisionAllow = "allow" + decisionForbid = "forbid" + reasonError = "internal error" + k8sDecisionAllowHeader = "X-TKE-K8sDecisionAllow" ) var ( @@ -131,15 +133,21 @@ func WithTKEAuthorization(handler http.Handler, a authorizer.Authorizer, s runti reason string ) - // first check if user is admin + // firstly check if resource is unprotected authorized = UnprotectedAuthorized(attributes) if authorized != authorizer.DecisionAllow { authorized, reason, err = a.Authorize(ctx, attributes) } + + // secondly check k8s resource authz result if authorized != authorizer.DecisionAllow { attributes = ConvertTKEAttributes(ctx, attributes) authorized, reason, err = a.Authorize(ctx, attributes) + } else { + setK8sDecision(req, true) } + + // finaly check tke casbin resource authz resoult // an authorizer like RBAC could encounter evaluation errors and still allow the request, so authorizer decision is checked before error here. if authorized == authorizer.DecisionAllow { audit.LogAnnotation(ae, decisionAnnotationKey, decisionAllow) @@ -323,3 +331,17 @@ func splitPath(path string) []string { } return strings.Split(path, "/") } + +func setK8sDecision(req *http.Request, k8sDecisionAllow bool) { + if req != nil { + req.Header.Set(k8sDecisionAllowHeader, strconv.FormatBool(k8sDecisionAllow)) + } +} + +func getK8sDecision(req *http.Request) (k8sDecisionAllow bool) { + if req != nil { + k8sDecisionAllowString := req.Header.Get(k8sDecisionAllowHeader) + k8sDecisionAllow, _ = strconv.ParseBool(k8sDecisionAllowString) + } + return k8sDecisionAllow +} diff --git a/pkg/auth/filter/inspector.go b/pkg/auth/filter/inspector.go index dcfa177c9..1ea872f57 100644 --- a/pkg/auth/filter/inspector.go +++ b/pkg/auth/filter/inspector.go @@ -21,32 +21,18 @@ import ( "context" "fmt" "net/http" - "regexp" - "strings" - "time" - "tkestack.io/tke/pkg/apiserver/util" + + k8serrors "k8s.io/apimachinery/pkg/api/errors" platformv1 "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" "tkestack.io/tke/pkg/apiserver/authentication" - "tkestack.io/tke/pkg/util/apiclient" "tkestack.io/tke/pkg/util/log" - rbacv1 "k8s.io/api/rbac/v1" - k8serrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/labels" genericfilters "k8s.io/apiserver/pkg/endpoints/filters" "k8s.io/apiserver/pkg/endpoints/handlers/responsewriters" "k8s.io/apiserver/pkg/endpoints/request" genericapiserver "k8s.io/apiserver/pkg/server" - "k8s.io/client-go/informers" - "k8s.io/client-go/kubernetes" - rbaclisters "k8s.io/client-go/listers/rbac/v1" - "k8s.io/client-go/tools/cache" -) - -var ( - serviceAccountRegExp = regexp.MustCompile(`^system:serviceaccount:([^:]+):(.+)$`) ) type Inspector interface { @@ -54,102 +40,26 @@ type Inspector interface { } type clusterInspector struct { - k8sClient kubernetes.Interface - crbLister rbaclisters.ClusterRoleBindingLister - crLister rbaclisters.ClusterRoleLister platformClient platformv1.PlatformV1Interface privilegedUsername string } -func NewClusterInspector(platformClient platformv1.PlatformV1Interface, privilegedUsername string) (Inspector, error) { - k8sClient, err := apiclient.BuildKubeClient() - if err != nil { - return nil, err - } - informerFactory := informers.NewSharedInformerFactory(k8sClient, time.Minute) - clusterRoleBindingInformer := informerFactory.Rbac().V1().ClusterRoleBindings() - clusterRoleBindingLister := clusterRoleBindingInformer.Lister() - clusterRoleInformer := informerFactory.Rbac().V1().ClusterRoles() - clusterRoleLister := clusterRoleInformer.Lister() - stopCh := util.SetupSignalHandler() - informerFactory.Start(stopCh) - if ok := cache.WaitForCacheSync(stopCh, clusterRoleBindingInformer.Informer().HasSynced, - clusterRoleInformer.Informer().HasSynced); !ok { - return nil, fmt.Errorf("failed to wait for namespaces caches to sync") - } +func NewClusterInspector(platformClient platformv1.PlatformV1Interface, privilegedUsername string) Inspector { return &clusterInspector{ - k8sClient: k8sClient, - crbLister: clusterRoleBindingLister, - crLister: clusterRoleLister, platformClient: platformClient, privilegedUsername: privilegedUsername, - }, nil -} - -func isClusterAdmin(rules []rbacv1.PolicyRule) bool { - if len(rules) != 2 { - return false - } - isAdmin := true - for _, rul := range rules { - if len(rul.APIGroups) == 1 && rul.APIGroups[0] == "*" && - len(rul.Resources) == 1 && rul.Resources[0] == "*" && - len(rul.Verbs) == 1 && rul.Verbs[0] == "*" { - continue - } - if len(rul.NonResourceURLs) == 1 && rul.NonResourceURLs[0] == "*" && - len(rul.Verbs) == 1 && rul.Verbs[0] == "*" { - continue - } - isAdmin = false - break - } - return isAdmin -} - -func (i *clusterInspector) needInspect(ctx context.Context, privilegedUsername string) bool { - username, tenantID := authentication.UsernameAndTenantID(ctx) - if (username == privilegedUsername || username == "system:apiserver") && tenantID == "" { - return false - } - - clusterRoleBindings, err := i.crbLister.List(labels.Everything()) - if err != nil { - log.Errorf("query clusterRoleBindings failed: %+v", err) - return true - } - matches := serviceAccountRegExp.FindStringSubmatch(username) - if len(matches) != 3 { - return true - } - namespace := matches[1] - username = matches[2] - for _, crb := range clusterRoleBindings { - for _, sub := range crb.Subjects { - if sub.Name == username && sub.Namespace == namespace { - cr, err := i.crLister.Get(crb.RoleRef.Name) - if err != nil { - log.Errorf("query clusterRole: %+v failed: %+v", crb.RoleRef.Name, err) - continue - } - if len(cr.Rules) != 2 { - continue - } - log.Debugf("needInspect: username: %+v, namespace: %+v, clusterRole: %+v->%v", - username, namespace, cr.Name, cr.Rules) - if isClusterAdmin(cr.Rules) { - return false - } - } - } } - return true } func (i *clusterInspector) Inspect(handler http.Handler, c *genericapiserver.Config) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { + if getK8sDecision(req) { + handler.ServeHTTP(w, req) + return + } ctx := req.Context() - if !i.needInspect(ctx, i.privilegedUsername) { + username, tenantID := authentication.UsernameAndTenantID(ctx) + if (username == i.privilegedUsername || username == "system:apiserver") && tenantID == "" { handler.ServeHTTP(w, req) return } @@ -172,19 +82,7 @@ func (i *clusterInspector) Inspect(handler http.Handler, c *genericapiserver.Con "invalid request: too many clusterName in request") return } - username, tenantID := authentication.UsernameAndTenantID(ctx) - // rbac mode use tenantID as suffix of username - if tenantID == "" { - strList := strings.Split(username, ":") - if len(strList) == 4 && strList[0] == "system" && strList[1] == "serviceaccount" { - tenantidStr := strList[len(strList)-1] - index := strings.Index(tenantidStr, "-tenant-") - if index > 0 { - tenantID = tenantidStr[index+8:] - } - } - } - log.Infof(" clusterNames: %+v, username: %+v, tenant: %+v, "+ + log.Infof("WithTKEAuthorization clusterNames: %+v, username: %+v, tenant: %+v, "+ "action: %+v, resource: %+v, name: %+v", clusterNames, username, tenantID, tkeAttributes.GetVerb(), tkeAttributes.GetResource(), tkeAttributes.GetName()) diff --git a/pkg/logagent/util/cluster.go b/pkg/logagent/util/cluster.go index 94a85e9b9..d8f8ea975 100644 --- a/pkg/logagent/util/cluster.go +++ b/pkg/logagent/util/cluster.go @@ -33,12 +33,12 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apiserver/pkg/endpoints/request" "k8s.io/client-go/kubernetes" + platformversionedclient "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" platformv1 "tkestack.io/tke/api/platform/v1" v1platform "tkestack.io/tke/api/platform/v1" - "tkestack.io/tke/pkg/apiserver/authentication" - clusterprovider "tkestack.io/tke/pkg/platform/provider/cluster" "tkestack.io/tke/pkg/platform/util" + "tkestack.io/tke/pkg/platform/util/addon" "tkestack.io/tke/pkg/util/log" ) @@ -59,7 +59,7 @@ func GetClusterClient(ctx context.Context, clusterName string, platformClient pl ClusterNameToClient.Delete(clusterName) } - kubeClient, err := util.BuildExternalClientSetWithName(ctx, platformClient, clusterName) + kubeClient, err := addon.BuildExternalClientSetWithName(ctx, platformClient, clusterName) if err != nil { return nil, err } @@ -83,12 +83,7 @@ func APIServerLocationByCluster(ctx context.Context, clusterName string, platfor if cluster.Status.Phase != v1platform.ClusterRunning { return nil, nil, "", errors.NewServiceUnavailable(fmt.Sprintf("cluster %s status is abnormal", cluster.ObjectMeta.Name)) } - provider, err := clusterprovider.GetProvider(cluster.Spec.Type) - if err != nil { - return nil, nil, "", err - } - username, _ := authentication.UsernameAndTenantID(ctx) - credential, err := provider.GetClusterCredentialV1(ctx, platformClient, cluster, username) + credential, err := addon.GetClusterCredentialV1(ctx, platformClient, cluster) if err != nil { log.Errorf("unable to get credential %v", err) return nil, nil, "", err diff --git a/pkg/monitor/controller/prometheus/controller.go b/pkg/monitor/controller/prometheus/controller.go index 4af8bf68d..7e9c13e75 100755 --- a/pkg/monitor/controller/prometheus/controller.go +++ b/pkg/monitor/controller/prometheus/controller.go @@ -27,6 +27,7 @@ import ( "strings" "sync" "time" + "tkestack.io/tke/pkg/platform/util/addon" "github.com/coreos/prometheus-operator/pkg/apis/monitoring" monitoringv1 "github.com/coreos/prometheus-operator/pkg/apis/monitoring/v1" @@ -49,6 +50,7 @@ import ( "k8s.io/client-go/tools/cache" "k8s.io/client-go/util/workqueue" apiregistrationv1 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1" + clientset "tkestack.io/tke/api/client/clientset/versioned" platformv1client "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" monitorv1informer "tkestack.io/tke/api/client/informers/externalversions/monitor/v1" @@ -60,8 +62,6 @@ import ( "tkestack.io/tke/pkg/monitor/controller/prometheus/images" esutil "tkestack.io/tke/pkg/monitor/storage/es/client" monitorutil "tkestack.io/tke/pkg/monitor/util" - clusterprovider "tkestack.io/tke/pkg/platform/provider/cluster" - platformutil "tkestack.io/tke/pkg/platform/util" "tkestack.io/tke/pkg/util/apiclient" containerregistryutil "tkestack.io/tke/pkg/util/containerregistry" utilhttp "tkestack.io/tke/pkg/util/http" @@ -601,22 +601,22 @@ func (c *Controller) installPrometheus(ctx context.Context, prometheus *v1.Prome if err != nil { return fmt.Errorf("get cluster failed: %v", err) } - kubeClient, err := platformutil.BuildExternalClientSet(ctx, cluster, c.platformClient) + kubeClient, err := addon.BuildExternalClientSet(ctx, cluster, c.platformClient) if err != nil { return fmt.Errorf("get kubeClient failed: %v", err) } - crdClient, err := platformutil.BuildExternalExtensionClientSet(ctx, cluster, c.platformClient) + crdClient, err := addon.BuildExternalExtensionClientSet(ctx, cluster, c.platformClient) if err != nil { return fmt.Errorf("get crdClient failed: %v", err) } - kaClient, err := platformutil.BuildKubeAggregatorClientSet(ctx, cluster, c.platformClient) + kaClient, err := addon.BuildKubeAggregatorClientSet(ctx, cluster, c.platformClient) if err != nil { return fmt.Errorf("get kaClient failed: %v", err) } - mclient, err := platformutil.BuildExternalMonitoringClientSet(ctx, cluster, c.platformClient) + mclient, err := addon.BuildExternalMonitoringClientSet(ctx, cluster, c.platformClient) if err != nil { return fmt.Errorf("get mclient failed: %v", err) } @@ -737,12 +737,9 @@ func (c *Controller) installPrometheus(ctx context.Context, prometheus *v1.Prome prometheus.Status.SubVersion[AlertManagerService] = components.AlertManagerService.Tag log.Infof("Start to create prometheus") - provider, err := clusterprovider.GetProvider(cluster.Spec.Type) - if err != nil { - return fmt.Errorf("get provider failed: %v", err) - } + // Secret for prometheus-etcd - credential, err := provider.GetClusterCredentialV1(ctx, c.platformClient, cluster, clusterprovider.AdminUsername) + credential, err := addon.GetClusterCredentialV1(ctx, c.platformClient, cluster) if err != nil { return fmt.Errorf("get credential failed: %v", err) } @@ -2613,22 +2610,22 @@ func (c *Controller) uninstallPrometheus(ctx context.Context, prometheus *v1.Pro if err != nil { return err } - kubeClient, err := platformutil.BuildExternalClientSet(ctx, cluster, c.platformClient) + kubeClient, err := addon.BuildExternalClientSet(ctx, cluster, c.platformClient) if err != nil { return err } - kaClient, err := platformutil.BuildKubeAggregatorClientSet(ctx, cluster, c.platformClient) + kaClient, err := addon.BuildKubeAggregatorClientSet(ctx, cluster, c.platformClient) if err != nil { return fmt.Errorf("get kaClient failed: %v", err) } - crdClient, err := platformutil.BuildExternalExtensionClientSet(ctx, cluster, c.platformClient) + crdClient, err := addon.BuildExternalExtensionClientSet(ctx, cluster, c.platformClient) if err != nil { return err } - mclient, err := platformutil.BuildExternalMonitoringClientSet(ctx, cluster, c.platformClient) + mclient, err := addon.BuildExternalMonitoringClientSet(ctx, cluster, c.platformClient) if err != nil { return err } @@ -2919,7 +2916,7 @@ func (c *Controller) watchPrometheusHealth(ctx context.Context, key string) func log.Info("Prometheus health check over", log.String("prome", key)) return true, nil } - kubeClient, err := platformutil.BuildExternalClientSet(ctx, cluster, c.platformClient) + kubeClient, err := addon.BuildExternalClientSet(ctx, cluster, c.platformClient) if err != nil { return false, err } @@ -2952,7 +2949,7 @@ func (c *Controller) checkPrometheusStatus(ctx context.Context, prometheus *v1.P log.Info("Prometheus status checking over", log.String("prome", key)) return true, nil } - kubeClient, err := platformutil.BuildExternalClientSet(ctx, cluster, c.platformClient) + kubeClient, err := addon.BuildExternalClientSet(ctx, cluster, c.platformClient) if err != nil { return false, err } @@ -2999,7 +2996,7 @@ func (c *Controller) checkPrometheusUpgrade(ctx context.Context, prometheus *v1. log.Info("Prometheus upgrade over", log.String("prome", key)) return true, nil } - kubeClient, err := platformutil.BuildExternalClientSet(ctx, cluster, c.platformClient) + kubeClient, err := addon.BuildExternalClientSet(ctx, cluster, c.platformClient) if err != nil { return false, err } diff --git a/pkg/monitor/util/cache/cache.go b/pkg/monitor/util/cache/cache.go index 29778944e..1029c33a3 100644 --- a/pkg/monitor/util/cache/cache.go +++ b/pkg/monitor/util/cache/cache.go @@ -26,21 +26,21 @@ import ( "sync/atomic" "time" + corev1 "k8s.io/api/core/v1" + "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime/schema" + "k8s.io/client-go/kubernetes" + metricsv "k8s.io/metrics/pkg/client/clientset/versioned" + businessversionedclient "tkestack.io/tke/api/client/clientset/versioned/typed/business/v1" platformversionedclient "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" "tkestack.io/tke/api/monitor" platformv1 "tkestack.io/tke/api/platform/v1" "tkestack.io/tke/pkg/monitor/util" - clusterprovider "tkestack.io/tke/pkg/platform/provider/cluster" platformutil "tkestack.io/tke/pkg/platform/util" + "tkestack.io/tke/pkg/platform/util/addon" "tkestack.io/tke/pkg/util/log" - - corev1 "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/api/errors" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime/schema" - "k8s.io/client-go/kubernetes" - metricsv "k8s.io/metrics/pkg/client/clientset/versioned" ) type updateComponent func(componentStatus *corev1.ComponentStatus, health *util.ComponentHealth) @@ -170,7 +170,7 @@ func (c *cacher) getClusters(ctx context.Context) { }) return } - clientSet, err := platformutil.BuildExternalClientSet(ctx, &cls, c.platformClient) + clientSet, err := addon.BuildExternalClientSet(ctx, &cls, c.platformClient) if err != nil { log.Error("create clientSet of cluster failed", log.Any("cluster", clusterID), log.Err(err)) @@ -281,11 +281,7 @@ func (c *cacher) getClusters(ctx context.Context) { } func (c *cacher) getMetricServerClientSet(ctx context.Context, cls *platformv1.Cluster) (*metricsv.Clientset, error) { - provider, err := clusterprovider.GetProvider(cls.Spec.Type) - if err != nil { - return nil, err - } - cc, err := provider.GetClusterCredentialV1(ctx, c.platformClient, cls, clusterprovider.AdminUsername) + cc, err := addon.GetClusterCredentialV1(ctx, c.platformClient, cls) if err != nil { log.Error("query cluster credential failed", log.Any("cluster", cls.GetName()), log.Err(err)) return nil, err diff --git a/pkg/monitor/util/cluster.go b/pkg/monitor/util/cluster.go index 24214b093..66eddc6f8 100755 --- a/pkg/monitor/util/cluster.go +++ b/pkg/monitor/util/cluster.go @@ -29,9 +29,11 @@ import ( influxclient "github.com/influxdata/influxdb1-client/v2" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" + platformversionedclient "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" esclient "tkestack.io/tke/pkg/monitor/storage/es/client" "tkestack.io/tke/pkg/platform/util" + "tkestack.io/tke/pkg/platform/util/addon" ) const ( @@ -83,7 +85,7 @@ func GetMonitoringClient(ctx context.Context, clusterName string, platformClient ClusterNameToClient.Delete(clusterName) } - monitoringClient, err := util.BuildExternalMonitoringClientSetWithName(ctx, platformClient, clusterName) + monitoringClient, err := addon.BuildExternalMonitoringClientSetWithName(ctx, platformClient, clusterName) if err != nil { return nil, err } diff --git a/pkg/platform/apiserver/apiserver.go b/pkg/platform/apiserver/apiserver.go index 4ad17e0df..05366b645 100644 --- a/pkg/platform/apiserver/apiserver.go +++ b/pkg/platform/apiserver/apiserver.go @@ -71,7 +71,6 @@ import ( schedulingrest "tkestack.io/tke/pkg/platform/proxy/scheduling/rest" settingsrest "tkestack.io/tke/pkg/platform/proxy/settings/rest" storagerest "tkestack.io/tke/pkg/platform/proxy/storage/rest" - versionrest "tkestack.io/tke/pkg/platform/proxy/version/rest" platformrest "tkestack.io/tke/pkg/platform/registry/rest" "tkestack.io/tke/pkg/util/log" ) @@ -204,10 +203,6 @@ func (m *APIServer) InstallAPIs(apiResourceConfigSource serverstorage.APIResourc apiGroupsInfo = append(apiGroupsInfo, apiGroupInfo) } - // install /version route - versionHandler := versionrest.NewVersionProxyHandler(m.GenericAPIServer.LoopbackClientConfig) - versionHandler.Install(m.GenericAPIServer.Handler.GoRestfulContainer) - for i := range apiGroupsInfo { if err := m.GenericAPIServer.InstallAPIGroup(&apiGroupsInfo[i]); err != nil { log.Fatalf("Error in registering group versions: %v", err) diff --git a/pkg/platform/controller/addon/logcollector/controller.go b/pkg/platform/controller/addon/logcollector/controller.go index 42a1c260e..ff9a9db25 100644 --- a/pkg/platform/controller/addon/logcollector/controller.go +++ b/pkg/platform/controller/addon/logcollector/controller.go @@ -26,13 +26,12 @@ import ( "sync" "time" - "tkestack.io/tke/pkg/platform/controller/addon/logcollector/images" - clientset "tkestack.io/tke/api/client/clientset/versioned" platformv1informer "tkestack.io/tke/api/client/informers/externalversions/platform/v1" platformv1lister "tkestack.io/tke/api/client/listers/platform/v1" controllerutil "tkestack.io/tke/pkg/controller" - "tkestack.io/tke/pkg/platform/util" + "tkestack.io/tke/pkg/platform/controller/addon/logcollector/images" + "tkestack.io/tke/pkg/platform/util/addon" "tkestack.io/tke/pkg/util/metrics" appsv1 "k8s.io/api/apps/v1" @@ -424,7 +423,7 @@ func (c *Controller) installLogCollector(ctx context.Context, LogCollector *v1.L if err != nil { return err } - kubeClient, err := util.BuildExternalClientSet(ctx, cluster, c.client.PlatformV1()) + kubeClient, err := addon.BuildExternalClientSet(ctx, cluster, c.client.PlatformV1()) if err != nil { return err } @@ -654,7 +653,7 @@ func (c *Controller) uninstallLogCollector(ctx context.Context, LogCollector *v1 if err != nil { return err } - kubeClient, err := util.BuildExternalClientSet(ctx, cluster, c.client.PlatformV1()) + kubeClient, err := addon.BuildExternalClientSet(ctx, cluster, c.client.PlatformV1()) if err != nil { return err } @@ -723,7 +722,7 @@ func (c *Controller) watchLogCollectorHealth(ctx context.Context, key string) fu return true, nil } - kubeClient, err := util.BuildExternalClientSet(ctx, cluster, c.client.PlatformV1()) + kubeClient, err := addon.BuildExternalClientSet(ctx, cluster, c.client.PlatformV1()) if err != nil { return false, err } @@ -764,7 +763,7 @@ func (c *Controller) checkLogCollectorStatus( return true, nil } - kubeClient, err := util.BuildExternalClientSet(ctx, cluster, c.client.PlatformV1()) + kubeClient, err := addon.BuildExternalClientSet(ctx, cluster, c.client.PlatformV1()) if err != nil { return false, err } @@ -819,7 +818,7 @@ func (c *Controller) upgradeLogCollector( return true, nil } - kubeClient, err := util.BuildExternalClientSet(ctx, cluster, c.client.PlatformV1()) + kubeClient, err := addon.BuildExternalClientSet(ctx, cluster, c.client.PlatformV1()) if err != nil { return false, err } diff --git a/pkg/platform/controller/addon/storage/csioperator/controller.go b/pkg/platform/controller/addon/storage/csioperator/controller.go index 0a0567a88..d9906f060 100644 --- a/pkg/platform/controller/addon/storage/csioperator/controller.go +++ b/pkg/platform/controller/addon/storage/csioperator/controller.go @@ -25,8 +25,6 @@ import ( "sync" "time" - "tkestack.io/tke/pkg/platform/provider/baremetal/phases/csioperator/images" - appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" @@ -40,14 +38,15 @@ import ( "k8s.io/client-go/kubernetes" "k8s.io/client-go/tools/cache" "k8s.io/client-go/util/workqueue" + clientset "tkestack.io/tke/api/client/clientset/versioned" platformv1informer "tkestack.io/tke/api/client/informers/externalversions/platform/v1" platformv1lister "tkestack.io/tke/api/client/listers/platform/v1" v1 "tkestack.io/tke/api/platform/v1" controllerutil "tkestack.io/tke/pkg/controller" storageutil "tkestack.io/tke/pkg/platform/controller/addon/storage/util" + "tkestack.io/tke/pkg/platform/provider/baremetal/phases/csioperator/images" "tkestack.io/tke/pkg/platform/util" - containerregistryutil "tkestack.io/tke/pkg/util/containerregistry" "tkestack.io/tke/pkg/util/log" "tkestack.io/tke/pkg/util/metrics" ) @@ -64,6 +63,9 @@ const ( timeOut = 5 * time.Minute maxRetryCount = 5 + + // CSIRepo link to internet docker hub, where stores all csi depends images. + CSIRepo = "tkestack" ) // Controller is responsible for performing actions dependent upon a CSIOperator phase. @@ -614,7 +616,7 @@ func genContainerArgs(svInfo *storageutil.SVInfo) []string { args := []string{ "--leader-election=true", "--kubelet-root-dir=/var/lib/kubelet", - "--registry-domain=" + containerregistryutil.GetPrefix(), + "--registry-domain=" + CSIRepo, "--logtostderr=true", "--v=5", } diff --git a/pkg/platform/controller/bootstrapapps/controller.go b/pkg/platform/controller/bootstrapapps/controller.go new file mode 100644 index 000000000..c0e498091 --- /dev/null +++ b/pkg/platform/controller/bootstrapapps/controller.go @@ -0,0 +1,261 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package clusterapp + +import ( + "context" + "fmt" + "math/rand" + "time" + + "golang.org/x/time/rate" + apierrors "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + utilruntime "k8s.io/apimachinery/pkg/util/runtime" + "k8s.io/apimachinery/pkg/util/wait" + "k8s.io/client-go/tools/cache" + "k8s.io/client-go/util/retry" + "k8s.io/client-go/util/workqueue" + applicationv1 "tkestack.io/tke/api/application/v1" + applicationversionedclient "tkestack.io/tke/api/client/clientset/versioned/typed/application/v1" + platformversionedclient "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" + applicationv1informer "tkestack.io/tke/api/client/informers/externalversions/application/v1" + platformv1informer "tkestack.io/tke/api/client/informers/externalversions/platform/v1" + applicationv1lister "tkestack.io/tke/api/client/listers/application/v1" + platformv1lister "tkestack.io/tke/api/client/listers/platform/v1" + platformv1 "tkestack.io/tke/api/platform/v1" + controllerutil "tkestack.io/tke/pkg/controller" + clusterconfig "tkestack.io/tke/pkg/platform/controller/cluster/config" + "tkestack.io/tke/pkg/util/log" + "tkestack.io/tke/pkg/util/metrics" +) + +const ( + conditionTypeHealthCheck = "HealthCheck" + conditionTypeEnsureBootstrapApps = "EnsureBootstrapApps" +) + +// BootstrapAppsController is responsible for performing actions dependent upon a cluster phase. +type BootstrapAppsController struct { + queue workqueue.RateLimitingInterface + clsLister platformv1lister.ClusterLister + clsSynced cache.InformerSynced + appLister applicationv1lister.AppLister + appSynced cache.InformerSynced + + log log.Logger + platformClient platformversionedclient.PlatformV1Interface + applicationClient applicationversionedclient.ApplicationV1Interface +} + +// NewBootstrapAppsController creates a new Controller object. +func NewBootstrapAppsController( + platformClient platformversionedclient.PlatformV1Interface, + applicationClient applicationversionedclient.ApplicationV1Interface, + clsInformer platformv1informer.ClusterInformer, + appInformer applicationv1informer.AppInformer, + configuration clusterconfig.ClusterControllerConfiguration, + finalizerToken platformv1.FinalizerName) *BootstrapAppsController { + rand.Seed(time.Now().Unix()) + rateLimit := workqueue.NewMaxOfRateLimiter( + workqueue.NewItemExponentialFailureRateLimiter(5*time.Millisecond, 1000*time.Second), + &workqueue.BucketRateLimiter{Limiter: rate.NewLimiter(rate.Limit(configuration.BucketRateLimiterLimit), configuration.BucketRateLimiterBurst)}, + ) + c := &BootstrapAppsController{ + queue: workqueue.NewNamedRateLimitingQueue(rateLimit, "cluster"), + + log: log.WithName("BootstrapAppsController"), + platformClient: platformClient, + applicationClient: applicationClient, + } + + if platformClient != nil && platformClient.RESTClient().GetRateLimiter() != nil { + _ = metrics.RegisterMetricAndTrackRateLimiterUsage("bootstrapApps_controller", platformClient.RESTClient().GetRateLimiter()) + } + + clsInformer.Informer().AddEventHandlerWithResyncPeriod( + cache.ResourceEventHandlerFuncs{ + UpdateFunc: func(oldObj, newObj interface{}) { + old, ok1 := oldObj.(*platformv1.Cluster) + cur, ok2 := newObj.(*platformv1.Cluster) + if ok1 && ok2 && c.needsUpdate(old, cur) { + c.enqueue(cur) + } + }, + }, + configuration.ClusterSyncPeriod, + ) + + c.clsLister = clsInformer.Lister() + c.clsSynced = clsInformer.Informer().HasSynced + c.appLister = appInformer.Lister() + c.appSynced = appInformer.Informer().HasSynced + + return c +} + +func (c *BootstrapAppsController) enqueue(obj *platformv1.Cluster) { + key, err := controllerutil.KeyFunc(obj) + if err != nil { + utilruntime.HandleError(fmt.Errorf("couldn't get key for object %+v: %v", obj, err)) + return + } + c.queue.Add(key) +} + +func (c *BootstrapAppsController) needsUpdate(old *platformv1.Cluster, new *platformv1.Cluster) bool { + healthCheckDone := false + for _, condition := range new.Status.Conditions { + if condition.Type == conditionTypeHealthCheck && condition.Status == platformv1.ConditionTrue { + healthCheckDone = true + } + if condition.Type == conditionTypeEnsureBootstrapApps && condition.Status == platformv1.ConditionTrue { + return false + } + } + + return healthCheckDone +} + +// Run will set up the event handlers for types we are interested in, as well +// as syncing informer caches and starting workers. +func (c *BootstrapAppsController) Run(workers int, stopCh <-chan struct{}) error { + defer utilruntime.HandleCrash() + defer c.queue.ShutDown() + + // Start the informer factories to begin populating the informer caches + log.Info("Starting bootstrapApps controller") + defer log.Info("Shutting down bootstrapApps controller") + + if ok := cache.WaitForCacheSync(stopCh, c.clsSynced); !ok { + return fmt.Errorf("failed to wait for cluster caches to sync") + } + + for i := 0; i < workers; i++ { + go wait.Until(c.worker, time.Second, stopCh) + } + + <-stopCh + + return nil +} + +// worker processes the queue of persistent event objects. +// Each cluster can be in the queue at most once. +// The system ensures that no two workers can process +// the same namespace at the same time. +func (c *BootstrapAppsController) worker() { + for c.processNextWorkItem() { + } +} + +func (c *BootstrapAppsController) processNextWorkItem() bool { + key, quit := c.queue.Get() + if quit { + return false + } + defer c.queue.Done(key) + + err := c.sync(key.(string)) + if err == nil { + c.queue.Forget(key) + return true + } + + utilruntime.HandleError(fmt.Errorf("error processing cluster %v (will retry): %v", key, err)) + c.queue.AddRateLimited(key) + return true +} + +// sync will sync the Cluster with the given key if it has had +// its expectations fulfilled, meaning it did not expect to see any more of its +// namespaces created or deleted. This function is not meant to be invoked +// concurrently with the same key. +func (c *BootstrapAppsController) sync(key string) error { + ctx := c.log.WithValues("bootstrapApps", key).WithContext(context.TODO()) + + startTime := time.Now() + defer func() { + log.FromContext(ctx).Info("Finished syncing bootstrap apps", "processTime", time.Since(startTime).String()) + }() + + _, name, err := cache.SplitMetaNamespaceKey(key) + if err != nil { + return err + } + + cluster, err := c.clsLister.Get(name) + if err != nil { + if apierrors.IsNotFound(err) { + log.FromContext(ctx).Info("cluster has been deleted") + return nil + } + utilruntime.HandleError(fmt.Errorf("unable to retrieve cluster %v from store: %v", key, err)) + return err + } + + return c.syncBootstrapApps(ctx, cluster) +} + +func (c *BootstrapAppsController) syncBootstrapApps(ctx context.Context, cls *platformv1.Cluster) error { + logger := log.FromContext(ctx) + conditon := platformv1.ClusterCondition{ + Type: conditionTypeEnsureBootstrapApps, + Status: platformv1.ConditionTrue, + } + + for _, clusterApp := range cls.Spec.BootstrapApps { + clusterApp.App.Spec.TargetCluster = cls.Name + err := c.installApplication(ctx, clusterApp) + if err != nil && apierrors.IsAlreadyExists(err) { + conditon.Status = platformv1.ConditionFalse + conditon.Reason = clusterApp.App.Name + conditon.Message = err.Error() + err := c.updateClsCondition(ctx, cls.Name, conditon) + if err != nil { + return fmt.Errorf("update cls conditon failed: %v", err) + } + return fmt.Errorf("install application failed. %v, %v", clusterApp.App.Name, err) + } + logger.Infof("finish application installation %v", clusterApp.App.Name) + } + return c.updateClsCondition(ctx, cls.Name, conditon) +} + +func (c *BootstrapAppsController) installApplication(ctx context.Context, clusterApp platformv1.BootstrapApp) error { + app := applicationv1.App{ + ObjectMeta: clusterApp.App.ObjectMeta, + Spec: clusterApp.App.Spec, + } + _, err := c.applicationClient.Apps(clusterApp.App.Namespace).Create(ctx, &app, metav1.CreateOptions{}) + + return err +} + +func (c *BootstrapAppsController) updateClsCondition(ctx context.Context, clsName string, condition platformv1.ClusterCondition) error { + return retry.RetryOnConflict(retry.DefaultRetry, func() error { + cls, err := c.clsLister.Get(clsName) + if err != nil { + return err + } + cls.SetCondition(condition, false) + _, err = c.platformClient.Clusters().Update(ctx, cls, metav1.UpdateOptions{}) + return err + }) +} diff --git a/pkg/platform/controller/cluster/cluster_controller.go b/pkg/platform/controller/cluster/cluster_controller.go index 9d0e294a3..a231278cf 100644 --- a/pkg/platform/controller/cluster/cluster_controller.go +++ b/pkg/platform/controller/cluster/cluster_controller.go @@ -30,10 +30,12 @@ import ( corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/fields" utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/tools/cache" "k8s.io/client-go/util/workqueue" + platformversionedclient "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" platformv1informer "tkestack.io/tke/api/client/informers/externalversions/platform/v1" platformv1lister "tkestack.io/tke/api/client/listers/platform/v1" @@ -131,7 +133,14 @@ func (c *Controller) addCluster(obj interface{}) { func (c *Controller) updateCluster(old, obj interface{}) { oldCluster := old.(*platformv1.Cluster) cluster := obj.(*platformv1.Cluster) - if !c.needsUpdate(oldCluster, cluster) { + + controllerNeedUpddateResult := c.needsUpdate(oldCluster, cluster) + var providerNeedUpddateResult bool + provider, _ := clusterprovider.GetProvider(cluster.Spec.Type) + if provider != nil { + providerNeedUpddateResult = provider.NeedUpdate(oldCluster, cluster) + } + if !(controllerNeedUpddateResult || providerNeedUpddateResult) { return } c.log.Info("Updating cluster", "clusterName", cluster.Name) @@ -148,33 +157,45 @@ func (c *Controller) enqueue(obj *platformv1.Cluster) { } func (c *Controller) needsUpdate(old *platformv1.Cluster, new *platformv1.Cluster) bool { - if !reflect.DeepEqual(old.Spec, new.Spec) { - return true - } - - if old.Status.Phase == platformv1.ClusterRunning && new.Status.Phase == platformv1.ClusterTerminating { + switch { + case !reflect.DeepEqual(old.Spec, new.Spec): return true - } - - if !reflect.DeepEqual(old.ObjectMeta.Annotations, new.ObjectMeta.Annotations) { + case !reflect.DeepEqual(old.ObjectMeta.Labels, new.ObjectMeta.Labels): return true - } - - if !reflect.DeepEqual(old.ObjectMeta.Labels, new.ObjectMeta.Labels) { + case !reflect.DeepEqual(old.ObjectMeta.Annotations, new.ObjectMeta.Annotations): return true - } - - // Control the synchronization interval through the health detection interval - // to avoid version conflicts caused by concurrent modification - healthCondition := new.GetCondition(conditionTypeHealthCheck) - if healthCondition == nil { + case old.Status.Phase != new.Status.Phase: return true - } - if time.Since(healthCondition.LastProbeTime.Time) > c.healthCheckPeriod { + case new.Status.Phase == platformv1.ClusterInitializing: + // if ResourceVersion is equal, it's an resync envent, should return true. + if old.ResourceVersion == new.ResourceVersion { + return true + } + if len(new.Status.Conditions) == 0 { + return true + } + if new.Status.Conditions[len(new.Status.Conditions)-1].Status == platformv1.ConditionUnknown { + return true + } + // if user set last condition false block procesee + if new.Status.Conditions[len(new.Status.Conditions)-1].Status == platformv1.ConditionFalse { + return false + } + fallthrough + case !reflect.DeepEqual(old.Status.Conditions, new.Status.Conditions): return true - } + default: + healthCondition := new.GetCondition(conditionTypeHealthCheck) + if healthCondition == nil { + // when healthCondition is not set, if ResourceVersion is equal, it's an resync envent, should return true. + return old.ResourceVersion == new.ResourceVersion + } + if time.Since(healthCondition.LastProbeTime.Time) > c.healthCheckPeriod { + return true + } - return false + return false + } } // Run will set up the event handlers for types we are interested in, as well @@ -253,10 +274,12 @@ func (c *Controller) syncCluster(key string) error { } cluster, err := c.lister.Get(name) - if apierrors.IsNotFound(err) { - log.FromContext(ctx).Info("cluster has been deleted") - } if err != nil { + if apierrors.IsNotFound(err) { + log.FromContext(ctx).Info("cluster has been deleted") + return nil + } + utilruntime.HandleError(fmt.Errorf("unable to retrieve cluster %v from store: %v", key, err)) return err } @@ -281,7 +304,7 @@ func (c *Controller) reconcile(ctx context.Context, key string, cluster *platfor log.FromContext(ctx).Info("Cluster has been terminated. Attempting to cleanup resources") err = c.deleter.Delete(ctx, key) if err == nil { - log.FromContext(ctx).Info("Machine has been successfully deleted") + log.FromContext(ctx).Info("Cluster has been successfully deleted") } default: log.FromContext(ctx).Info("unknown cluster phase", "status.phase", cluster.Status.Phase) @@ -386,7 +409,6 @@ func (c *Controller) onUpdate(ctx context.Context, cluster *platformv1.Cluster) } // ensureCreateClusterCredential creates ClusterCredential for cluster if ClusterCredentialRef is nil. -// TODO: add gc collector for clean non reference ClusterCredential. func (c *Controller) ensureCreateClusterCredential(ctx context.Context, cluster *platformv1.Cluster) (*platformv1.Cluster, error) { if cluster.Spec.ClusterCredentialRef != nil { // Set OwnerReferences for imported cluster credentials @@ -403,29 +425,39 @@ func (c *Controller) ensureCreateClusterCredential(ctx context.Context, cluster return cluster, nil } - var err error - // Set OwnerReferences for baremetal cluster credentials - credential := &platformv1.ClusterCredential{ - TenantID: cluster.Spec.TenantID, - ClusterName: cluster.Name, - ObjectMeta: metav1.ObjectMeta{ - OwnerReferences: []metav1.OwnerReference{ - *metav1.NewControllerRef(cluster, platformv1.SchemeGroupVersion.WithKind("Cluster"))}, - }, - } - - credential, err = c.platformClient.ClusterCredentials().Create(ctx, credential, metav1.CreateOptions{}) + // TODO use informer search by labels. + fieldSelector := fields.OneTermEqualSelector("clusterName", cluster.Name).String() + clustercredentials, err := c.platformClient.ClusterCredentials().List(ctx, metav1.ListOptions{FieldSelector: fieldSelector}) if err != nil { return nil, err } - cluster.Spec.ClusterCredentialRef = &corev1.LocalObjectReference{Name: credential.Name} - cluster, err = c.platformClient.Clusters().Update(ctx, cluster, metav1.UpdateOptions{}) - if err != nil { - // Possible deletion failure will result in dirty data. So need gc collector. - _ = c.platformClient.ClusterCredentials().Delete(ctx, credential.Name, metav1.DeleteOptions{}) - return nil, err + + // [Idempotent] if not found cluster credentials, create one for next logic + var credential *platformv1.ClusterCredential + if len(clustercredentials.Items) == 0 { + credential = &platformv1.ClusterCredential{ + TenantID: cluster.Spec.TenantID, + ClusterName: cluster.Name, + ObjectMeta: metav1.ObjectMeta{ + OwnerReferences: []metav1.OwnerReference{ + *metav1.NewControllerRef(cluster, platformv1.SchemeGroupVersion.WithKind("Cluster"))}, + }, + } + + credential, err = c.platformClient.ClusterCredentials().Create(ctx, credential, metav1.CreateOptions{}) + if err != nil { + return nil, err + } + } else { + if len(clustercredentials.Items) > 1 { + log.Warnf("cluster %s has more than one credentials, need attention!") + } + + credential = &clustercredentials.Items[0] } + cluster.Spec.ClusterCredentialRef = &corev1.LocalObjectReference{Name: credential.Name} + return cluster, nil } diff --git a/pkg/platform/controller/cluster/cluster_controller_test.go b/pkg/platform/controller/cluster/cluster_controller_test.go new file mode 100644 index 000000000..f164a12b5 --- /dev/null +++ b/pkg/platform/controller/cluster/cluster_controller_test.go @@ -0,0 +1,259 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package cluster + +import ( + "testing" + "time" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + platformv1 "tkestack.io/tke/api/platform/v1" +) + +func TestController_needsUpdate(t *testing.T) { + // type fields struct { + // queue workqueue.RateLimitingInterface + // lister platformv1lister.ClusterLister + // listerSynced cache.InformerSynced + // log log.Logger + // platformClient platformversionedclient.PlatformV1Interface + // deleter deletion.ClusterDeleterInterface + // healthCheckPeriod time.Duration + // } + type args struct { + old *platformv1.Cluster + new *platformv1.Cluster + } + tests := []struct { + name string + // fields fields + args args + want bool + }{ + { + name: "change spec", + args: args{ + old: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Spec: platformv1.ClusterSpec{DisplayName: "old"}, + }, + new: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Spec: platformv1.ClusterSpec{DisplayName: "nes"}, + }, + }, + want: true, + }, + { + name: "Initializing to Running", + args: args{ + old: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterInitializing}, + }, + new: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterRunning}, + }, + }, + want: true, + }, + { + name: "Initializing to Failed", + args: args{ + old: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterInitializing}, + }, + new: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterFailed}, + }, + }, + want: true, + }, + { + name: "Running to Failed", + args: args{ + old: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterRunning}, + }, + new: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterFailed}, + }, + }, + want: true, + }, + { + name: "Running to Terminating", + args: args{ + old: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterRunning}, + }, + new: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterTerminating}, + }, + }, + want: true, + }, + { + name: "Failed to Terminating", + args: args{ + old: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterFailed}, + }, + new: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterTerminating}, + }, + }, + want: true, + }, + { + name: "Failed to Running", + args: args{ + old: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterFailed}, + }, + new: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterRunning}, + }, + }, + want: true, + }, + { + name: "Failed to Initializing", + args: args{ + old: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterFailed}, + }, + new: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterInitializing}, + }, + }, + want: true, + }, + { + name: "last conditon unkonwn to false", + args: args{ + old: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterInitializing, + Conditions: []platformv1.ClusterCondition{{Status: platformv1.ConditionUnknown}}}, + }, + new: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterInitializing, + Conditions: []platformv1.ClusterCondition{{Status: platformv1.ConditionFalse}}}, + }, + }, + want: false, + }, + { + name: "last conditon unkonwn to true", + args: args{ + old: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterInitializing, + Conditions: []platformv1.ClusterCondition{{Status: platformv1.ConditionUnknown}}}, + }, + new: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterInitializing, + Conditions: []platformv1.ClusterCondition{{Status: platformv1.ConditionTrue}}}, + }, + }, + want: true, + }, + { + name: "last conditon unkonwn to true resync", + args: args{ + old: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterInitializing, + Conditions: []platformv1.ClusterCondition{{Status: platformv1.ConditionUnknown}}}, + }, + new: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterInitializing, + Conditions: []platformv1.ClusterCondition{{Status: platformv1.ConditionUnknown}}}, + }, + }, + want: true, + }, + { + name: "last conditon true to unknown", + args: args{ + old: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterInitializing, + Conditions: []platformv1.ClusterCondition{{Status: platformv1.ConditionTrue}}}, + }, + new: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterInitializing, + Conditions: []platformv1.ClusterCondition{{Status: platformv1.ConditionUnknown}}}, + }, + }, + want: true, + }, + { + name: "last conditon false to unknown", + args: args{ + old: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterInitializing, + Conditions: []platformv1.ClusterCondition{{Status: platformv1.ConditionFalse}}}, + }, + new: &platformv1.Cluster{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.ClusterStatus{Phase: platformv1.ClusterInitializing, + Conditions: []platformv1.ClusterCondition{{Status: platformv1.ConditionUnknown}}}, + }, + }, + want: true, + }, + // TODO: Add test cases. + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + c := &Controller{ + // queue: tt.fields.queue, + // lister: tt.fields.lister, + // listerSynced: tt.fields.listerSynced, + // log: tt.fields.log, + // platformClient: tt.fields.platformClient, + // deleter: tt.fields.deleter, + healthCheckPeriod: time.Second, + } + if got := c.needsUpdate(tt.args.old, tt.args.new); got != tt.want { + t.Errorf("Controller.needsUpdate() = %v, want %v", got, tt.want) + } + }) + } +} diff --git a/pkg/platform/controller/cluster/deletion/cluster_deleter.go b/pkg/platform/controller/cluster/deletion/cluster_deleter.go index ff4cdb80c..472dc2147 100644 --- a/pkg/platform/controller/cluster/deletion/cluster_deleter.go +++ b/pkg/platform/controller/cluster/deletion/cluster_deleter.go @@ -24,9 +24,9 @@ import ( "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/fields" utilerrors "k8s.io/apimachinery/pkg/util/errors" "k8s.io/apimachinery/pkg/util/sets" + v1clientset "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" platformv1 "tkestack.io/tke/api/platform/v1" clusterprovider "tkestack.io/tke/pkg/platform/provider/cluster" @@ -244,7 +244,6 @@ var deleteResourceFuncs = []deleteResourceFunc{ deleteIPAM, deleteTappControllers, deleteClusterProvider, - deleteMachine, } // deleteAllContent will use the client to delete each resource identified in cluster. @@ -433,29 +432,3 @@ func deleteClusterCredential(ctx context.Context, deleter *clusterDeleter, clust return nil } */ - -func deleteMachine(ctx context.Context, deleter *clusterDeleter, cluster *platformv1.Cluster) error { - log.FromContext(ctx).Info("deleteMachine doing") - - fieldSelector := fields.OneTermEqualSelector("spec.clusterName", cluster.Name).String() - machineList, err := deleter.platformClient.Machines().List(ctx, metav1.ListOptions{FieldSelector: fieldSelector}) - if err != nil { - return err - } - if len(machineList.Items) == 0 { - return nil - } - background := metav1.DeletePropagationForeground - deleteOpt := metav1.DeleteOptions{PropagationPolicy: &background} - for _, machine := range machineList.Items { - if err := deleter.platformClient.Machines().Delete(ctx, machine.Name, deleteOpt); err != nil { - if !errors.IsNotFound(err) { - return err - } - } - } - - log.FromContext(ctx).Info("deleteMachine done") - - return nil -} diff --git a/pkg/platform/controller/machine/deletion/machine_deleter.go b/pkg/platform/controller/machine/deletion/machine_deleter.go index 758ac8736..1e138fb37 100644 --- a/pkg/platform/controller/machine/deletion/machine_deleter.go +++ b/pkg/platform/controller/machine/deletion/machine_deleter.go @@ -26,12 +26,11 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" utilerrors "k8s.io/apimachinery/pkg/util/errors" "k8s.io/apimachinery/pkg/util/sets" + v1clientset "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" - platformv1 "tkestack.io/tke/api/platform/v1" v1 "tkestack.io/tke/api/platform/v1" clusterprovider "tkestack.io/tke/pkg/platform/provider/cluster" machineprovider "tkestack.io/tke/pkg/platform/provider/machine" - "tkestack.io/tke/pkg/util/apiclient" "tkestack.io/tke/pkg/util/log" ) @@ -101,7 +100,7 @@ func (d *machineDeleter) Delete(ctx context.Context, name string) error { // ensure that the status is up to date on the machine // if we get a not found error, we assume the machine is truly gone - machine, err = d.retryOnConflictError(machine, d.updateMachineStatusFunc) + machine, err = d.retryOnConflictError(ctx, machine, d.updateMachineStatusFunc) if err != nil { if errors.IsNotFound(err) { return nil @@ -126,7 +125,7 @@ func (d *machineDeleter) Delete(ctx context.Context, name string) error { } // we have removed content, so mark it finalized by us - machine, err = d.retryOnConflictError(machine, d.finalizeMachine) + machine, err = d.retryOnConflictError(ctx, machine, d.finalizeMachine) if err != nil { // in normal practice, this should not be possible, but if a deployment is running // two controllers to do machine deletion that share a common finalizer token it's @@ -159,15 +158,15 @@ func (d *machineDeleter) deleteMachine(machine *v1.Machine) error { } // updateMachineFunc is a function that makes an update to a namespace -type updateMachineFunc func(machine *v1.Machine) (*v1.Machine, error) +type updateMachineFunc func(ctx context.Context, machine *v1.Machine) (*v1.Machine, error) // retryOnConflictError retries the specified fn if there was a conflict error // it will return an error if the UID for an object changes across retry operations. // TODO RetryOnConflict should be a generic concept in client code -func (d *machineDeleter) retryOnConflictError(machine *v1.Machine, fn updateMachineFunc) (result *v1.Machine, err error) { +func (d *machineDeleter) retryOnConflictError(ctx context.Context, machine *v1.Machine, fn updateMachineFunc) (result *v1.Machine, err error) { latestMachine := machine for { - result, err = fn(latestMachine) + result, err = fn(ctx, latestMachine) if err == nil { return result, nil } @@ -186,7 +185,7 @@ func (d *machineDeleter) retryOnConflictError(machine *v1.Machine, fn updateMach } // updateMachineStatusFunc will verify that the status of the machine is correct -func (d *machineDeleter) updateMachineStatusFunc(machine *v1.Machine) (*v1.Machine, error) { +func (d *machineDeleter) updateMachineStatusFunc(ctx context.Context, machine *v1.Machine) (*v1.Machine, error) { if machine.DeletionTimestamp.IsZero() || machine.Status.Phase == v1.MachineTerminating { return machine, nil } @@ -203,7 +202,7 @@ func finalized(machine *v1.Machine) bool { } // finalizeMachine removes the specified finalizerToken and finalizes the machine -func (d *machineDeleter) finalizeMachine(machine *v1.Machine) (*v1.Machine, error) { +func (d *machineDeleter) finalizeMachine(ctx context.Context, machine *v1.Machine) (*v1.Machine, error) { machineFinalize := v1.Machine{} machineFinalize.ObjectMeta = machine.ObjectMeta machineFinalize.Spec = machine.Spec @@ -225,7 +224,7 @@ func (d *machineDeleter) finalizeMachine(machine *v1.Machine) (*v1.Machine, erro Name(machineFinalize.Name). SubResource("finalize"). Body(&machineFinalize). - Do(context.Background()). + Do(ctx). Into(machine) if err != nil { @@ -241,7 +240,6 @@ type deleteResourceFunc func(ctx context.Context, deleter *machineDeleter, machi var deleteResourceFuncs = []deleteResourceFunc{ deleteMachineProvider, - deleteNode, } // deleteAllContent will use the client to delete each resource identified in machine. @@ -287,39 +285,3 @@ func deleteMachineProvider(ctx context.Context, deleter *machineDeleter, machine return nil } - -func deleteNode(ctx context.Context, deleter *machineDeleter, machine *v1.Machine) error { - log.FromContext(ctx).Info("deleteNode doing") - - cluster, err := clusterprovider.GetV1ClusterByName(context.Background(), deleter.platformClient, machine.Spec.ClusterName, clusterprovider.AdminUsername) - if err != nil { - return err - } - if cluster.Status.Phase == platformv1.ClusterTerminating { - return nil - } - clientset, err := cluster.Clientset() - if err != nil { - return err - } - - node, err := apiclient.GetNodeByMachineIP(ctx, clientset, machine.Spec.IP) - if err != nil { - if !errors.IsNotFound(err) { - return err - } - log.FromContext(ctx).Info("deleteNode done") - return nil - } - - err = clientset.CoreV1().Nodes().Delete(context.Background(), node.Name, metav1.DeleteOptions{}) - if err != nil { - if !errors.IsNotFound(err) { - return err - } - } - - log.FromContext(ctx).Info("deleteNode done") - - return nil -} diff --git a/pkg/platform/controller/machine/machine_controller.go b/pkg/platform/controller/machine/machine_controller.go index 60b27af0a..60e0882f2 100644 --- a/pkg/platform/controller/machine/machine_controller.go +++ b/pkg/platform/controller/machine/machine_controller.go @@ -27,13 +27,12 @@ import ( "golang.org/x/time/rate" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/util/runtime" utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/tools/cache" - "k8s.io/client-go/util/retry" "k8s.io/client-go/util/workqueue" + platformversionedclient "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" platformv1informer "tkestack.io/tke/api/client/informers/externalversions/platform/v1" platformv1lister "tkestack.io/tke/api/client/listers/platform/v1" @@ -46,7 +45,6 @@ import ( "tkestack.io/tke/pkg/util/apiclient" "tkestack.io/tke/pkg/util/log" "tkestack.io/tke/pkg/util/metrics" - "tkestack.io/tke/pkg/util/strategicpatch" ) const ( @@ -111,29 +109,60 @@ func (c *Controller) addMachine(obj interface{}) { func (c *Controller) updateMachine(old, obj interface{}) { oldMachine := old.(*platformv1.Machine) machine := obj.(*platformv1.Machine) - if !c.needsUpdate(oldMachine, machine) { + + controllerNeedUpddateResult := c.needsUpdate(oldMachine, machine) + var providerNeedUpddateResult bool + provider, _ := machineprovider.GetProvider(machine.Spec.Type) + if provider != nil { + providerNeedUpddateResult = provider.NeedUpdate(oldMachine, machine) + } + if !(controllerNeedUpddateResult || providerNeedUpddateResult) { return } c.log.Info("Updating machine", "machine", machine.Name) c.enqueue(machine) } -func (c *Controller) needsUpdate(oldMachine *platformv1.Machine, newMachine *platformv1.Machine) bool { - if !reflect.DeepEqual(oldMachine.Spec, newMachine.Spec) { +func (c *Controller) needsUpdate(old *platformv1.Machine, new *platformv1.Machine) bool { + switch { + case !reflect.DeepEqual(old.Spec, new.Spec): return true - } - - // Control the synchronization interval through the health detection interval - // to avoid version conflicts caused by concurrent modification - healthCondition := newMachine.GetCondition(conditionTypeHealthCheck) - if healthCondition == nil { + case !reflect.DeepEqual(old.ObjectMeta.Labels, new.ObjectMeta.Labels): return true - } - if time.Since(healthCondition.LastProbeTime.Time) > resyncInternal { + case !reflect.DeepEqual(old.ObjectMeta.Annotations, new.ObjectMeta.Annotations): return true - } + case old.Status.Phase != new.Status.Phase: + return true + case new.Status.Phase == platformv1.MachineInitializing: + // if ResourceVersion is equal, it's an resync envent, should return true. + if old.ResourceVersion == new.ResourceVersion { + return true + } + if len(new.Status.Conditions) == 0 { + return true + } + if new.Status.Conditions[len(new.Status.Conditions)-1].Status == platformv1.ConditionUnknown { + return true + } + // if user set last condition false block procesee + if new.Status.Conditions[len(new.Status.Conditions)-1].Status == platformv1.ConditionFalse { + return false + } + fallthrough + case !reflect.DeepEqual(old.Status.Conditions, new.Status.Conditions): + return true + default: + healthCondition := new.GetCondition(conditionTypeHealthCheck) + if healthCondition == nil { + // when healthCondition is not set, if ResourceVersion is equal, it's an resync envent, should return true. + return old.ResourceVersion == new.ResourceVersion + } + if time.Since(healthCondition.LastProbeTime.Time) > resyncInternal { + return true + } - return false + return false + } } func (c *Controller) enqueue(obj *platformv1.Machine) { @@ -212,10 +241,12 @@ func (c *Controller) syncMachine(key string) error { } machine, err := c.lister.Get(name) - if apierrors.IsNotFound(err) { - log.FromContext(ctx).Info("Machine has been deleted") - } if err != nil { + if apierrors.IsNotFound(err) { + log.FromContext(ctx).Info("Machine has been deleted") + return nil + } + utilruntime.HandleError(fmt.Errorf("unable to retrieve machine %v from store: %v", key, err)) return err } @@ -226,9 +257,6 @@ func (c *Controller) syncMachine(key string) error { } func (c *Controller) reconcile(ctx context.Context, key string, machine *platformv1.Machine) error { - - c.ensureSyncMachineNodeLabel(ctx, machine) - var err error switch machine.Status.Phase { case platformv1.MachineInitializing: @@ -337,50 +365,3 @@ func (c *Controller) checkHealth(ctx context.Context, machine *platformv1.Machin return machine } - -func (c *Controller) ensureSyncMachineNodeLabel(ctx context.Context, machine *platformv1.Machine) { - - cluster, err := clusterprovider.GetV1ClusterByName(ctx, c.platformClient, machine.Spec.ClusterName, clusterprovider.AdminUsername) - if err != nil { - log.FromContext(ctx).Error(err, "sync Machine node label error") - return - } - - client, err := cluster.Clientset() - if err != nil { - log.FromContext(ctx).Error(err, "sync Machine node label error") - return - } - - err = retry.RetryOnConflict(retry.DefaultRetry, func() error { - node, err := client.CoreV1().Nodes().Get(ctx, machine.Spec.IP, metav1.GetOptions{}) - if err != nil { - if apierrors.IsNotFound(err) { - return nil - } - return err - } - - labels := node.GetLabels() - _, ok := labels[string(apiclient.LabelMachineIPV4)] - if ok { - return nil - } - - oldNode := node.DeepCopy() - labels[string(apiclient.LabelMachineIPV4)] = machine.Spec.IP - node.SetLabels(labels) - - patchBytes, err := strategicpatch.GetPatchBytes(oldNode, node) - if err != nil { - return fmt.Errorf("GetPatchBytes for node error: %w", err) - } - - _, err = client.CoreV1().Nodes().Patch(ctx, node.Name, types.StrategicMergePatchType, patchBytes, metav1.PatchOptions{}) - return err - }) - - if err != nil { - log.FromContext(ctx).Error(err, "sync Machine node label error") - } -} diff --git a/pkg/platform/controller/machine/machine_controller_test.go b/pkg/platform/controller/machine/machine_controller_test.go new file mode 100644 index 000000000..59306c3ee --- /dev/null +++ b/pkg/platform/controller/machine/machine_controller_test.go @@ -0,0 +1,256 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package machine + +import ( + "testing" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + platformv1 "tkestack.io/tke/api/platform/v1" +) + +func TestController_needsUpdate(t *testing.T) { + type fields struct { + // queue workqueue.RateLimitingInterface + // lister platformv1lister.MachineLister + // listerSynced cache.InformerSynced + // log log.Logger + // platformClient platformversionedclient.PlatformV1Interface + // deleter deletion.MachineDeleterInterface + } + type args struct { + old *platformv1.Machine + new *platformv1.Machine + } + tests := []struct { + name string + fields fields + args args + want bool + }{ + { + name: "change spec", + args: args{ + old: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Spec: platformv1.MachineSpec{Type: "old"}, + }, + new: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Spec: platformv1.MachineSpec{Type: "nes"}, + }, + }, + want: true, + }, + { + name: "Initializing to Running", + args: args{ + old: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing}, + }, + new: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing}, + }, + }, + want: true, + }, + { + name: "Initializing to Failed", + args: args{ + old: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing}, + }, + new: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineFailed}, + }, + }, + want: true, + }, + { + name: "Running to Failed", + args: args{ + old: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineRunning}, + }, + new: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineFailed}, + }, + }, + want: true, + }, + { + name: "Running to Terminating", + args: args{ + old: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineRunning}, + }, + new: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineTerminating}, + }, + }, + want: true, + }, + { + name: "Failed to Initializing", + args: args{ + old: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineFailed}, + }, + new: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing}, + }, + }, + want: true, + }, + { + name: "Failed to Running", + args: args{ + old: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineFailed}, + }, + new: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineRunning}, + }, + }, + want: true, + }, + { + name: "Failed to Running", + args: args{ + old: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineFailed}, + }, + new: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineRunning}, + }, + }, + want: true, + }, + { + name: "last conditon unkonwn to false", + args: args{ + old: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing, + Conditions: []platformv1.MachineCondition{{Status: platformv1.ConditionUnknown}}}, + }, + new: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing, + Conditions: []platformv1.MachineCondition{{Status: platformv1.ConditionFalse}}}, + }, + }, + want: false, + }, + { + name: "last conditon unkonwn to true", + args: args{ + old: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing, + Conditions: []platformv1.MachineCondition{{Status: platformv1.ConditionUnknown}}}, + }, + new: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing, + Conditions: []platformv1.MachineCondition{{Status: platformv1.ConditionTrue}}}, + }, + }, + want: true, + }, + { + name: "last conditon unkonwn to true resync", + args: args{ + old: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing, + Conditions: []platformv1.MachineCondition{{Status: platformv1.ConditionUnknown}}}, + }, + new: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing, + Conditions: []platformv1.MachineCondition{{Status: platformv1.ConditionUnknown}}}, + }, + }, + want: true, + }, + { + name: "last conditon true to unknown", + args: args{ + old: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing, + Conditions: []platformv1.MachineCondition{{Status: platformv1.ConditionTrue}}}, + }, + new: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing, + Conditions: []platformv1.MachineCondition{{Status: platformv1.ConditionUnknown}}}, + }, + }, + want: true, + }, + { + name: "last conditon false to unknown", + args: args{ + old: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "old"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing, + Conditions: []platformv1.MachineCondition{{Status: platformv1.ConditionFalse}}}, + }, + new: &platformv1.Machine{ + ObjectMeta: v1.ObjectMeta{ResourceVersion: "new"}, + Status: platformv1.MachineStatus{Phase: platformv1.MachineInitializing, + Conditions: []platformv1.MachineCondition{{Status: platformv1.ConditionUnknown}}}, + }, + }, + want: true, + }, + // TODO: Add test cases. + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + c := &Controller{ + // queue: tt.fields.queue, + // lister: tt.fields.lister, + // listerSynced: tt.fields.listerSynced, + // log: tt.fields.log, + // platformClient: tt.fields.platformClient, + // deleter: tt.fields.deleter, + } + if got := c.needsUpdate(tt.args.old, tt.args.new); got != tt.want { + t.Errorf("Controller.needsUpdate() = %v, want %v", got, tt.want) + } + }) + } +} diff --git a/pkg/platform/provider/baremetal/cluster/create.go b/pkg/platform/provider/baremetal/cluster/create.go index 4bafaecde..6658df836 100644 --- a/pkg/platform/provider/baremetal/cluster/create.go +++ b/pkg/platform/provider/baremetal/cluster/create.go @@ -48,6 +48,7 @@ import ( "tkestack.io/tke/pkg/platform/provider/baremetal/images" "tkestack.io/tke/pkg/platform/provider/baremetal/phases/addons/cniplugins" "tkestack.io/tke/pkg/platform/provider/baremetal/phases/authzwebhook" + "tkestack.io/tke/pkg/platform/provider/baremetal/phases/containerd" csioperatorimage "tkestack.io/tke/pkg/platform/provider/baremetal/phases/csioperator/images" "tkestack.io/tke/pkg/platform/provider/baremetal/phases/docker" "tkestack.io/tke/pkg/platform/provider/baremetal/phases/galaxy" @@ -502,6 +503,38 @@ func (p *Provider) EnsureNvidiaContainerRuntime(ctx context.Context, c *v1.Clust return nil } +func (p *Provider) EnsureContainerRuntime(ctx context.Context, c *v1.Cluster) error { + if c.Cluster.Spec.Features.ContainerRuntime == platformv1.Docker { + return p.EnsureDocker(ctx, c) + } + return p.EnsureContainerd(ctx, c) +} + +func (p *Provider) EnsureContainerd(ctx context.Context, c *v1.Cluster) error { + insecureRegistries := []string{p.config.Registry.Domain} + if p.config.Registry.NeedSetHosts() && c.Spec.TenantID != "" { + insecureRegistries = append(insecureRegistries, c.Spec.TenantID+"."+p.config.Registry.Domain) + } + option := &containerd.Option{ + InsecureRegistries: insecureRegistries, + SandboxImage: images.Get().Pause.FullName(), + } + for _, machine := range c.Spec.Machines { + machineSSH, err := machine.SSH() + if err != nil { + return err + } + + option.IsGPU = gpu.IsEnable(machine.Labels) + err = containerd.Install(machineSSH, option) + if err != nil { + return errors.Wrap(err, machine.IP) + } + } + + return nil +} + func (p *Provider) EnsureDocker(ctx context.Context, c *v1.Cluster) error { machines := map[bool][]platformv1.ClusterMachine{ true: c.Spec.ScalingMachines, @@ -537,13 +570,13 @@ func (p *Provider) EnsureKubernetesImages(ctx context.Context, c *v1.Cluster) er machines := map[bool][]platformv1.ClusterMachine{ true: c.Spec.ScalingMachines, false: c.Spec.Machines}[len(c.Spec.ScalingMachines) > 0] - option := &image.Option{Version: c.Spec.Version, RegistryDomain: p.config.Registry.Domain} + option := &image.Option{Version: c.Spec.Version, RegistryDomain: p.config.Registry.Domain, KubeImages: images.KubecomponetNames} for _, machine := range machines { machineSSH, err := machine.SSH() if err != nil { return err } - err = image.PullKubernetesImages(machineSSH, option) + err = image.PullKubernetesImages(c, machineSSH, option) if err != nil { return errors.Wrap(err, machine.IP) } @@ -581,7 +614,11 @@ func (p *Provider) EnsureKubeadm(ctx context.Context, c *v1.Cluster) error { return err } - err = kubeadm.Install(machineSSH, c.Spec.Version) + option := &kubeadm.Option{ + RuntimeType: c.Spec.Features.ContainerRuntime, + Version: c.Spec.Version, + } + err = kubeadm.Install(machineSSH, option) if err != nil { return errors.Wrap(err, machine.IP) } @@ -1279,6 +1316,7 @@ func (p *Provider) EnsureGPUManager(ctx context.Context, c *v1.Cluster) error { "BusyboxImage": images.Get().Busybox.FullName(), "GPUQuotaAdmissionImage": images.Get().GPUQuotaAdmission.FullName(), "GPUQuotaAdmissionHost": c.Annotations[constants.GPUQuotaAdmissionIPAnnotaion], + "ContainerRuntime": c.Spec.Features.ContainerRuntime, } err = apiclient.CreateResourceWithFile(ctx, client, constants.GPUManagerManifest, option) diff --git a/pkg/platform/provider/baremetal/cluster/delete.go b/pkg/platform/provider/baremetal/cluster/delete.go index 982f439cf..746697a56 100644 --- a/pkg/platform/provider/baremetal/cluster/delete.go +++ b/pkg/platform/provider/baremetal/cluster/delete.go @@ -20,9 +20,14 @@ package cluster import ( "context" + "time" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/fields" + "k8s.io/apimachinery/pkg/util/wait" + + platformv1client "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" "tkestack.io/tke/pkg/platform/provider/baremetal/phases/kubeadm" "tkestack.io/tke/pkg/platform/provider/util/mark" typesv1 "tkestack.io/tke/pkg/platform/types/v1" @@ -75,3 +80,44 @@ func (p *Provider) EnsureRemoveNode(ctx context.Context, c *v1.Cluster) error { } return nil } + +func (p *Provider) EnsureRemoveMachine(ctx context.Context, c *v1.Cluster) error { + log.FromContext(ctx).Info("delete machine start") + fieldSelector := fields.OneTermEqualSelector("spec.clusterName", c.Name).String() + machineList, err := p.platformClient.Machines().List(ctx, metav1.ListOptions{FieldSelector: fieldSelector}) + if err != nil { + return err + } + if len(machineList.Items) == 0 { + return nil + } + for _, machine := range machineList.Items { + if err := p.platformClient.Machines().Delete(ctx, machine.Name, metav1.DeleteOptions{}); err != nil { + if errors.IsNotFound(err) { + return nil + } + return err + } + + if err = wait.PollImmediate(5*time.Second, 5*time.Minute, waitForMachineDelete(ctx, p.platformClient, machine.Name)); err != nil { + return err + } + } + + log.FromContext(ctx).Info("delete machine done") + + return nil +} + +func waitForMachineDelete(ctx context.Context, c platformv1client.PlatformV1Interface, machineName string) wait.ConditionFunc { + return func() (done bool, err error) { + + if _, err := c.Machines().Get(ctx, machineName, metav1.GetOptions{}); err != nil { + if errors.IsNotFound(err) { + return true, nil + } + } + + return false, nil + } +} diff --git a/pkg/platform/provider/baremetal/cluster/kubeadm.go b/pkg/platform/provider/baremetal/cluster/kubeadm.go index 95e61695e..eaac2fc14 100644 --- a/pkg/platform/provider/baremetal/cluster/kubeadm.go +++ b/pkg/platform/provider/baremetal/cluster/kubeadm.go @@ -75,6 +75,12 @@ func (p *Provider) getKubeadmJoinConfig(c *v1.Cluster, machineIP string) *kubead } } nodeRegistration.KubeletExtraArgs = kubeletExtraArgs + // Specify cri runtime type + if c.Cluster.Spec.Features.ContainerRuntime == "docker" { + nodeRegistration.CRISocket = "/var/run/dockershim.sock" + } else { + nodeRegistration.CRISocket = "/var/run/containerd/containerd.sock" + } return &kubeadmv1beta2.JoinConfiguration{ NodeRegistration: nodeRegistration, @@ -121,7 +127,12 @@ func (p *Provider) getInitConfiguration(c *v1.Cluster) *kubeadmv1beta2.InitConfi } } nodeRegistration.KubeletExtraArgs = kubeletExtraArgs - + // Specify cri runtime type + if c.Cluster.Spec.Features.ContainerRuntime == "docker" { + nodeRegistration.CRISocket = "/var/run/dockershim.sock" + } else { + nodeRegistration.CRISocket = "/var/run/containerd/containerd.sock" + } return &kubeadmv1beta2.InitConfiguration{ BootstrapTokens: []kubeadmv1beta2.BootstrapToken{ { @@ -171,6 +182,10 @@ func (p *Provider) getClusterConfiguration(c *v1.Cluster) *kubeadmv1beta2.Cluste }, DNS: kubeadmv1beta2.DNS{ Type: kubeadmv1beta2.CoreDNS, + ImageMeta: kubeadmv1beta2.ImageMeta{ + ImageRepository: p.config.Registry.Prefix, + ImageTag: images.Get().CoreDNS.Tag, + }, }, ImageRepository: p.config.Registry.Prefix, ClusterName: c.Name, diff --git a/pkg/platform/provider/baremetal/cluster/provider.go b/pkg/platform/provider/baremetal/cluster/provider.go index c9767bf60..2b97fe3bf 100644 --- a/pkg/platform/provider/baremetal/cluster/provider.go +++ b/pkg/platform/provider/baremetal/cluster/provider.go @@ -26,6 +26,7 @@ import ( "k8s.io/apimachinery/pkg/util/validation/field" "k8s.io/apiserver/pkg/server/mux" "k8s.io/client-go/tools/clientcmd" + platformv1client "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" "tkestack.io/tke/api/platform" "tkestack.io/tke/pkg/platform/provider/baremetal/config" @@ -85,7 +86,7 @@ func NewProvider() (*Provider, error) { // install packages p.EnsureNvidiaDriver, p.EnsureNvidiaContainerRuntime, - p.EnsureDocker, + p.EnsureContainerRuntime, p.EnsureKubernetesImages, p.EnsureKubelet, p.EnsureCNIPlugins, @@ -153,6 +154,7 @@ func NewProvider() (*Provider, error) { p.EnsureRemoveNode, }, DeleteHandlers: []clusterprovider.Handler{ + p.EnsureRemoveMachine, p.EnsureCleanClusterMark, }, } @@ -179,7 +181,6 @@ func NewProvider() (*Provider, error) { } } } - return p, nil } diff --git a/pkg/platform/provider/baremetal/cluster/update.go b/pkg/platform/provider/baremetal/cluster/update.go index 2105a17ce..4fbc3f03b 100644 --- a/pkg/platform/provider/baremetal/cluster/update.go +++ b/pkg/platform/provider/baremetal/cluster/update.go @@ -74,7 +74,7 @@ func (p *Provider) EnsureRenewCerts(ctx context.Context, c *v1.Cluster) error { } logger.Info("RenewCerts doing") - err = kubeadm.RenewCerts(s) + err = kubeadm.RenewCerts(c, s) if err != nil { return errors.Wrap(err, machine.IP) } @@ -124,7 +124,7 @@ func (p *Provider) EnsureAPIServerCert(ctx context.Context, c *v1.Cluster) error if err != nil { return errors.Wrap(err, machine.IP) } - err = kubeadm.RestartContainerByFilter(s, kubeadm.DockerFilterForControlPlane("kube-apiserver")) + err = kubeadm.RestartContainerByLabel(c, s, kubeadm.ContainerLabelOfControlPlane(c, "kube-apiserver")) if err != nil { return err } diff --git a/pkg/platform/provider/baremetal/conf/config.yaml b/pkg/platform/provider/baremetal/conf/config.yaml index 5506dca3b..7bb027160 100644 --- a/pkg/platform/provider/baremetal/conf/config.yaml +++ b/pkg/platform/provider/baremetal/conf/config.yaml @@ -1,3 +1,4 @@ +platformAPIClientConfig: conf/tke-platform-config.yaml registry: prefix: docker.io/tkestack ip: "" diff --git a/pkg/platform/provider/baremetal/conf/containerd/config.toml b/pkg/platform/provider/baremetal/conf/containerd/config.toml new file mode 100644 index 000000000..b86e733a3 --- /dev/null +++ b/pkg/platform/provider/baremetal/conf/containerd/config.toml @@ -0,0 +1,35 @@ +version = 2 +root = "/var/lib/containerd" +state = "/run/containerd" + +[grpc] + address = "/run/containerd/containerd.sock" + gid = 0 + max_recv_message_size = 16777216 + max_send_message_size = 16777216 + uid = 0 + +[plugins] + [plugins."io.containerd.grpc.v1.cri"] + sandbox_image = "{{.SandboxImage}}" + [plugins."io.containerd.grpc.v1.cri".cni] + bin_dir = "/opt/cni/bin" + conf_dir = "/etc/cni/net.d" + [plugins."io.containerd.grpc.v1.cri".containerd] + default_runtime_name="runc" + {{ if .IsGPU}} + [plugins."io.containerd.grpc.v1.cri".containerd.runtimes] + [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc] + runtime_type = "io.containerd.runtime.v1.linux" + {{end}} + {{ if .IsGPU}} + [plugins."io.containerd.runtime.v1.linux"] + shim = "containerd-shim" + runtime = "nvidia-container-runtime" + {{end}} + [plugins."io.containerd.grpc.v1.cri".registry] + [plugins."io.containerd.grpc.v1.cri".registry.configs] + {{range .InsecureRegistries}} + [plugins."io.containerd.grpc.v1.cri".registry.configs."{{.}}".tls] + insecure_skip_verify=true + {{end}} diff --git a/pkg/platform/provider/baremetal/conf/containerd/containerd.service b/pkg/platform/provider/baremetal/conf/containerd/containerd.service new file mode 100644 index 000000000..41366de97 --- /dev/null +++ b/pkg/platform/provider/baremetal/conf/containerd/containerd.service @@ -0,0 +1,26 @@ +[Unit] +Description=containerd container runtime +Documentation=https://containerd.io +After=network.target local-fs.target + +[Service] +ExecStartPre=-/sbin/modprobe overlay +ExecStart=/usr/local/bin/containerd + +Type=notify +Delegate=yes +KillMode=process +Restart=always +RestartSec=5 +# Having non-zero Limit*s causes performance problems due to accounting overhead +# in the kernel. We recommend using cgroups to do container-local accounting. +LimitNPROC=infinity +LimitCORE=infinity +LimitNOFILE=infinity +# Comment TasksMax if your systemd version does not supports it. +# Only systemd 226 and above support this version. +TasksMax=infinity +OOMScoreAdjust=-999 + +[Install] +WantedBy=multi-user.target diff --git a/pkg/platform/provider/baremetal/config/config.go b/pkg/platform/provider/baremetal/config/config.go index 5a3b4a3dc..3c2b0e4b0 100644 --- a/pkg/platform/provider/baremetal/config/config.go +++ b/pkg/platform/provider/baremetal/config/config.go @@ -45,17 +45,18 @@ func New(filename string) (*Config, error) { } type Config struct { - PlatformAPIClientConfig string `yaml:"platformAPIClientConfig"` - Registry Registry `yaml:"registry"` - Audit Audit `yaml:"audit"` - Feature Feature `yaml:"feature"` - Docker Docker `yaml:"docker"` - Kubelet Kubelet `yaml:"kubelet"` - APIServer APIServer `yaml:"apiServer"` - ControllerManager ControllerManager `yaml:"controllerManager"` - Scheduler Scheduler `yaml:"scheduler"` - AuthzWebhook AuthzWebhook `yaml:"authzWebhook"` - Business Business `yaml:"business"` + PlatformAPIClientConfig string `yaml:"platformAPIClientConfig"` + ApplicationAPIClientConfig string `yaml:"applicationAPIClientConfig"` + Registry Registry `yaml:"registry"` + Audit Audit `yaml:"audit"` + Feature Feature `yaml:"feature"` + Docker Docker `yaml:"docker"` + Kubelet Kubelet `yaml:"kubelet"` + APIServer APIServer `yaml:"apiServer"` + ControllerManager ControllerManager `yaml:"controllerManager"` + Scheduler Scheduler `yaml:"scheduler"` + AuthzWebhook AuthzWebhook `yaml:"authzWebhook"` + Business Business `yaml:"business"` } func (c *Config) Save(filename string) error { diff --git a/pkg/platform/provider/baremetal/constants/constants.go b/pkg/platform/provider/baremetal/constants/constants.go index 7f531cbb1..be128bd1e 100644 --- a/pkg/platform/provider/baremetal/constants/constants.go +++ b/pkg/platform/provider/baremetal/constants/constants.go @@ -57,7 +57,7 @@ const ( DstBinDir = "/usr/bin/" CNIBinDir = "/opt/cni/bin/" CNIDataDir = "/var/lib/cni/" - CNIConfDIr = "/etc/cni" + CNIConfDIr = "/etc/cni/net.d" AppCertDir = "/app/certs/" // AppCert @@ -115,10 +115,10 @@ const ( AuditPolicyConfigFile = ConfDir + AuditPolicyConfigName OIDCConfigFile = ConfDir + OIDCCACertName ManifestsDir = ProviderDir + "manifests/" - GPUManagerManifest = ManifestsDir + "gpu-manager/gpu-manager.yaml" + GPUManagerManifest = SrcDir + "gpu-manager/gpu-manager.yaml" CSIOperatorManifest = ManifestsDir + "csi-operator/csi-operator.yaml" MetricsServerManifest = ManifestsDir + "metrics-server/metrics-server.yaml" - CiliumManifest = ManifestsDir + "cilium/*.yaml" + CiliumManifest = SrcDir + "cilium/*.yaml" KUBERNETES = 1 DNSIPIndex = 10 diff --git a/pkg/platform/provider/baremetal/images/images.go b/pkg/platform/provider/baremetal/images/images.go index c59f009ed..778655465 100644 --- a/pkg/platform/provider/baremetal/images/images.go +++ b/pkg/platform/provider/baremetal/images/images.go @@ -28,6 +28,7 @@ type Components struct { ETCD containerregistry.Image CoreDNS containerregistry.Image Pause containerregistry.Image + Pause4KubeadmJob containerregistry.Image NvidiaDevicePlugin containerregistry.Image Keepalived containerregistry.Image @@ -55,15 +56,18 @@ func (c Components) Get(name string) *containerregistry.Image { return nil } -var kubecomponetNames = []string{"kube-apiserver", "kube-controller-manager", "kube-scheduler", "kube-proxy"} +var KubecomponetNames = append(KubeNodeImages, "kube-apiserver", "kube-controller-manager", "kube-scheduler", "kube-proxy") +var KubeNodeImages = []string{"kube-proxy"} + var components = Components{ ETCD: containerregistry.Image{Name: "etcd", Tag: "v3.4.7"}, CoreDNS: containerregistry.Image{Name: "coredns", Tag: "1.7.0"}, Pause: containerregistry.Image{Name: "pause", Tag: "3.2"}, + Pause4KubeadmJob: containerregistry.Image{Name: "pause", Tag: "3.4.1"}, NvidiaDevicePlugin: containerregistry.Image{Name: "nvidia-device-plugin", Tag: "1.0.0-beta4"}, Keepalived: containerregistry.Image{Name: "keepalived", Tag: "2.0.16-r0"}, - GPUManager: containerregistry.Image{Name: "gpu-manager", Tag: "v1.0.6"}, + GPUManager: containerregistry.Image{Name: "gpu-manager", Tag: "v1.1.5"}, Busybox: containerregistry.Image{Name: "busybox", Tag: "1.31.1"}, GPUQuotaAdmission: containerregistry.Image{Name: "gpu-quota-admission", Tag: "v1.0.0"}, @@ -72,7 +76,7 @@ var components = Components{ Cilium: containerregistry.Image{Name: "cilium", Tag: "v1.9.5"}, CiliumOperator: containerregistry.Image{Name: "cilium-operator-generic", Tag: "v1.9.5"}, - Ipamd: containerregistry.Image{Name: "tke-eni-ipamd", Tag: "v3.2.6"}, + Ipamd: containerregistry.Image{Name: "tke-eni-ipamd", Tag: "v3.3.3"}, Masq: containerregistry.Image{Name: "ip-masq-agent", Tag: "v1.0.0"}, CiliumRouter: containerregistry.Image{Name: "cilium-router", Tag: "v0.1.0"}, } @@ -81,7 +85,7 @@ func List() []string { var items []string for _, version := range spec.K8sVersionsWithV { - for _, name := range kubecomponetNames { + for _, name := range KubecomponetNames { items = append(items, containerregistry.Image{Name: name, Tag: version}.BaseName()) } } @@ -100,9 +104,9 @@ func Get() Components { return components } -func ListKubernetesImageFullNamesWithVerion(version string) []string { +func ListKubernetesImageFullNamesWithVersion(version string, images []string) []string { var items []string - for _, name := range kubecomponetNames { + for _, name := range images { items = append(items, containerregistry.Image{Name: name, Tag: "v" + version}.FullName()) } diff --git a/pkg/platform/provider/baremetal/machine/create.go b/pkg/platform/provider/baremetal/machine/create.go index f529b3b88..926536c66 100644 --- a/pkg/platform/provider/baremetal/machine/create.go +++ b/pkg/platform/provider/baremetal/machine/create.go @@ -26,6 +26,7 @@ import ( "path" "strings" "time" + "tkestack.io/tke/pkg/platform/provider/baremetal/phases/image" "github.com/imdario/mergo" corev1 "k8s.io/api/core/v1" @@ -33,7 +34,9 @@ import ( "k8s.io/apimachinery/pkg/util/wait" platformv1 "tkestack.io/tke/api/platform/v1" "tkestack.io/tke/pkg/platform/provider/baremetal/constants" + "tkestack.io/tke/pkg/platform/provider/baremetal/images" "tkestack.io/tke/pkg/platform/provider/baremetal/phases/addons/cniplugins" + "tkestack.io/tke/pkg/platform/provider/baremetal/phases/containerd" "tkestack.io/tke/pkg/platform/provider/baremetal/phases/docker" "tkestack.io/tke/pkg/platform/provider/baremetal/phases/gpu" "tkestack.io/tke/pkg/platform/provider/baremetal/phases/kubeadm" @@ -311,6 +314,51 @@ func (p *Provider) EnsureNvidiaContainerRuntime(ctx context.Context, machine *pl return gpu.InstallNvidiaContainerRuntime(machineSSH, &gpu.NvidiaContainerRuntimeOption{}) } +func (p *Provider) EnsureContainerRuntime(ctx context.Context, machine *platformv1.Machine, cluster *typesv1.Cluster) error { + if cluster.Cluster.Spec.Features.ContainerRuntime == platformv1.Docker { + return p.EnsureDocker(ctx, machine, cluster) + } + return p.EnsureContainerd(ctx, machine, cluster) +} + +func (p *Provider) EnsureKubernetesImages(ctx context.Context, machine *platformv1.Machine, c *typesv1.Cluster) error { + machineSSH, err := machine.Spec.SSH() + if err != nil { + return err + } + option := &image.Option{Version: c.Spec.Version, RegistryDomain: p.config.Registry.Domain, KubeImages: images.KubeNodeImages} + err = image.PullKubernetesImages(c, machineSSH, option) + if err != nil { + return err + } + + return nil +} + +func (p *Provider) EnsureContainerd(ctx context.Context, machine *platformv1.Machine, cluster *typesv1.Cluster) error { + machineSSH, err := machine.Spec.SSH() + if err != nil { + return err + } + + insecureRegistries := []string{p.config.Registry.Domain} + if p.config.Registry.NeedSetHosts() && machine.Spec.TenantID != "" { + insecureRegistries = append(insecureRegistries, machine.Spec.TenantID+"."+p.config.Registry.Domain) + } + + option := &containerd.Option{ + InsecureRegistries: insecureRegistries, + IsGPU: gpu.IsEnable(machine.Spec.Labels), + SandboxImage: images.Get().Pause.FullName(), + } + err = containerd.Install(machineSSH, option) + if err != nil { + return err + } + + return nil +} + func (p *Provider) EnsureDocker(ctx context.Context, machine *platformv1.Machine, cluster *typesv1.Cluster) error { machineSSH, err := machine.Spec.SSH() if err != nil { @@ -386,7 +434,11 @@ func (p *Provider) EnsureKubeadm(ctx context.Context, machine *platformv1.Machin return err } - err = kubeadm.Install(machineSSH, cluster.Spec.Version) + option := &kubeadm.Option{ + RuntimeType: cluster.Spec.Features.ContainerRuntime, + Version: cluster.Spec.Version, + } + err = kubeadm.Install(machineSSH, option) if err != nil { return err } diff --git a/pkg/platform/provider/baremetal/machine/delete.go b/pkg/platform/provider/baremetal/machine/delete.go new file mode 100644 index 000000000..d404e1f5b --- /dev/null +++ b/pkg/platform/provider/baremetal/machine/delete.go @@ -0,0 +1,59 @@ +package machine + +import ( + "context" + "time" + + "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/util/wait" + "k8s.io/client-go/kubernetes" + + platformv1 "tkestack.io/tke/api/platform/v1" + typesv1 "tkestack.io/tke/pkg/platform/types/v1" + "tkestack.io/tke/pkg/util/apiclient" + "tkestack.io/tke/pkg/util/log" +) + +func (p *Provider) EnsureRemoveNode(ctx context.Context, machine *platformv1.Machine, cluster *typesv1.Cluster) error { + log.FromContext(ctx).Info("deleteNode doing") + + if cluster.Status.Phase == platformv1.ClusterTerminating { + return nil + } + + clientset, err := cluster.Clientset() + if err != nil { + return err + } + + node, err := apiclient.GetNodeByMachineIP(ctx, clientset, machine.Spec.IP) + if err != nil { + return err + } + err = clientset.CoreV1().Nodes().Delete(ctx, node.Name, metav1.DeleteOptions{}) + if err != nil { + if errors.IsNotFound(err) { + return nil + } + return err + } + if err = wait.PollImmediate(5*time.Second, 5*time.Minute, waitForNodeDelete(ctx, clientset, node.Name)); err != nil { + return err + } + + log.FromContext(ctx).Info("deleteNode done") + return nil +} + +func waitForNodeDelete(ctx context.Context, c kubernetes.Interface, nodeName string) wait.ConditionFunc { + return func() (done bool, err error) { + if _, err := c.CoreV1().Nodes().Get(ctx, nodeName, metav1.GetOptions{}); err != nil { + if errors.IsNotFound(err) { + return true, nil + } + } + + return false, nil + } +} diff --git a/pkg/platform/provider/baremetal/machine/kubeadm.go b/pkg/platform/provider/baremetal/machine/kubeadm.go index 3d3c62fc5..6a7d0b973 100644 --- a/pkg/platform/provider/baremetal/machine/kubeadm.go +++ b/pkg/platform/provider/baremetal/machine/kubeadm.go @@ -24,6 +24,7 @@ import ( "github.com/imdario/mergo" utilruntime "k8s.io/apimachinery/pkg/util/runtime" utilsnet "k8s.io/utils/net" + platformv1 "tkestack.io/tke/api/platform/v1" kubeadmv1beta2 "tkestack.io/tke/pkg/platform/provider/baremetal/apis/kubeadm/v1beta2" "tkestack.io/tke/pkg/platform/provider/baremetal/images" v1 "tkestack.io/tke/pkg/platform/types/v1" @@ -62,6 +63,12 @@ func (p *Provider) getKubeadmJoinConfig(c *v1.Cluster, machineIP string) *kubead } } nodeRegistration.KubeletExtraArgs = kubeletExtraArgs + // Specify cri runtime type + if c.Cluster.Spec.Features.ContainerRuntime == "docker" { + nodeRegistration.CRISocket = "/var/run/dockershim.sock" + } else { + nodeRegistration.CRISocket = "/var/run/containerd/containerd.sock" + } return &kubeadmv1beta2.JoinConfiguration{ NodeRegistration: nodeRegistration, @@ -77,9 +84,13 @@ func (p *Provider) getKubeadmJoinConfig(c *v1.Cluster, machineIP string) *kubead } func (p *Provider) getKubeletExtraArgs(c *v1.Cluster) map[string]string { - args := map[string]string{ - "pod-infra-container-image": images.Get().Pause.FullName(), + args := map[string]string{} + if c.Cluster.Spec.Features.ContainerRuntime == platformv1.Docker { + args = map[string]string{ + "pod-infra-container-image": images.Get().Pause.FullName(), + } } + // for containerd runtimes, no need to set pod-infra-container-image utilruntime.Must(mergo.Merge(&args, c.Spec.KubeletExtraArgs)) utilruntime.Must(mergo.Merge(&args, p.config.Kubelet.ExtraArgs)) diff --git a/pkg/platform/provider/baremetal/machine/provider.go b/pkg/platform/provider/baremetal/machine/provider.go index d816fd37c..7668e37e6 100644 --- a/pkg/platform/provider/baremetal/machine/provider.go +++ b/pkg/platform/provider/baremetal/machine/provider.go @@ -74,7 +74,8 @@ func NewProvider() (*Provider, error) { p.EnsureNvidiaDriver, p.EnsureNvidiaContainerRuntime, - p.EnsureDocker, + p.EnsureContainerRuntime, + p.EnsureKubernetesImages, p.EnsureKubelet, p.EnsureCNIPlugins, p.EnsureConntrackTools, @@ -94,6 +95,9 @@ func NewProvider() (*Provider, error) { p.EnsureUpgrade, p.EnsurePostUpgradeHook, }, + DeleteHandlers: []machineprovider.Handler{ + p.EnsureRemoveNode, + }, } cfg, err := config.New(constants.ConfigFile) diff --git a/pkg/platform/provider/baremetal/manifests/gpu-manager/gpu-manager.yaml b/pkg/platform/provider/baremetal/manifests/gpu-manager/gpu-manager.yaml index 06d3549e3..f11be5383 100644 --- a/pkg/platform/provider/baremetal/manifests/gpu-manager/gpu-manager.yaml +++ b/pkg/platform/provider/baremetal/manifests/gpu-manager/gpu-manager.yaml @@ -98,6 +98,8 @@ spec: mountPath: /etc/gpu-manager/vm - name: log mountPath: /var/log/gpu-manager + - name: checkpoint + mountPath: /etc/gpu-manager/checkpoint - name: rundir mountPath: /var/run - name: cgroup @@ -110,7 +112,11 @@ spec: - name: LOG_LEVEL value: "3" - name: EXTRA_FLAGS - value: "--incluster-mode=true --logtostderr" + {{ if eq .ContainerRuntime "docker" }} + value: "--logtostderr" + {{ else }} + value: "--logtostderr --container-runtime-endpoint /var/run/containerd/containerd.sock" + {{ end }} - name: NODE_NAME valueFrom: fieldRef: @@ -140,6 +146,10 @@ spec: hostPath: type: DirectoryOrCreate path: /etc/gpu-manager/log + - name: checkpoint + hostPath: + type: DirectoryOrCreate + path: /etc/gpu-manager/checkpoint - name: rundir hostPath: type: Directory diff --git a/pkg/platform/provider/baremetal/phases/containerd/containerd.go b/pkg/platform/provider/baremetal/phases/containerd/containerd.go new file mode 100644 index 000000000..575944fcc --- /dev/null +++ b/pkg/platform/provider/baremetal/phases/containerd/containerd.go @@ -0,0 +1,95 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package containerd + +import ( + "bytes" + "fmt" + "path" + + "tkestack.io/tke/pkg/util/template" + + "github.com/pkg/errors" + "tkestack.io/tke/pkg/platform/provider/baremetal/constants" + "tkestack.io/tke/pkg/platform/provider/baremetal/res" + "tkestack.io/tke/pkg/util/ssh" + "tkestack.io/tke/pkg/util/supervisor" +) + +type Option struct { + InsecureRegistries []string + IsGPU bool + Root string + SandboxImage string +} + +const ( + containerdConfigFile = "/etc/containerd/config.toml" +) + +func Install(s ssh.Interface, option *Option) error { + dstFile, err := res.Containerd.CopyToNodeWithDefault(s) + if err != nil { + return err + } + + // Install containerd exclude cni binaries and cni config file. + cmd := "tar xvaf %s -C %s --exclude=etc/cni --exclude=opt" + _, stderr, exit, err := s.Execf(cmd, dstFile, "/") + if err != nil { + return fmt.Errorf("exec %q failed:exit %d:stderr %s:error %s", cmd, exit, stderr, err) + } + + dstFile, err = res.Nerdctl.CopyToNodeWithDefault(s) + if err != nil { + return err + } + + cmd = "tar xvaf %s -C /usr/local/bin/ " + _, stderr, exit, err = s.Execf(cmd, dstFile) + if err != nil { + return fmt.Errorf("exec %q failed:exit %d:stderr %s:error %s", cmd, exit, stderr, err) + } + + data, err := template.ParseFile(path.Join(constants.SrcDir, "containerd/config.toml"), option) + if err != nil { + return err + } + err = s.WriteFile(bytes.NewReader(data), containerdConfigFile) + if err != nil { + return errors.Wrapf(err, "write %s error", containerdConfigFile) + } + + data, err = template.ParseFile(path.Join(constants.SrcDir, "containerd/containerd.service"), option) + if err != nil { + return err + } + ss := &supervisor.SystemdSupervisor{Name: "containerd", SSH: s} + err = ss.Deploy(bytes.NewReader(data)) + if err != nil { + return err + } + + err = ss.Start() + if err != nil { + return err + } + + return nil +} diff --git a/pkg/platform/provider/baremetal/phases/galaxy/galaxy.go b/pkg/platform/provider/baremetal/phases/galaxy/galaxy.go index 6e9a63595..9c80d14e6 100644 --- a/pkg/platform/provider/baremetal/phases/galaxy/galaxy.go +++ b/pkg/platform/provider/baremetal/phases/galaxy/galaxy.go @@ -87,7 +87,7 @@ func Install(ctx context.Context, clientset kubernetes.Interface, option *Option } } // Daemonset Flannel - flannelObj, err := daemonsetFlannel(option.Version) + flannelObj, err := daemonsetFlannel(option.NetDevice, option.Version) if err != nil { return err } @@ -164,9 +164,11 @@ func configMapGalaxy(netDevice string) ([]*corev1.ConfigMap, error) { return payloads, nil } -func daemonsetFlannel(version string) (*appsv1.DaemonSet, error) { +func daemonsetFlannel(netDevice string, version string) (*appsv1.DaemonSet, error) { imageName := images.Get(version).Flannel.FullName() - reader := strings.NewReader(strings.Replace(FlannelDaemonset, "{{ .Image }}", imageName, -1)) + flannelYaml := strings.Replace(FlannelDaemonset, "{{ .Image }}", imageName, -1) + flannelYaml = strings.Replace(flannelYaml, "{{ .IFace }}", netDevice, -1) + reader := strings.NewReader(flannelYaml) payload := &appsv1.DaemonSet{} err := yaml.NewYAMLOrJSONDecoder(reader, 4096).Decode(payload) if err != nil { diff --git a/pkg/platform/provider/baremetal/phases/galaxy/template.go b/pkg/platform/provider/baremetal/phases/galaxy/template.go index eaa3ec6bf..e7e52dad0 100644 --- a/pkg/platform/provider/baremetal/phases/galaxy/template.go +++ b/pkg/platform/provider/baremetal/phases/galaxy/template.go @@ -61,6 +61,9 @@ spec: volumeMounts: - name: galaxy-run mountPath: /var/run/galaxy/ + - name: containerd-run + mountPropagation: Bidirectional + mountPath: /var/run/netns/ - name: flannel-run mountPath: /run/flannel - name: galaxy-log @@ -88,6 +91,9 @@ spec: - name: flannel-run hostPath: path: /run/flannel + - name: containerd-run + hostPath: + path: /var/run/netns - name: cni-bin-dir hostPath: path: /opt/cni/bin @@ -180,7 +186,7 @@ spec: args: - --ip-masq - --kube-subnet-mgr - - --iface=$(HOST_IP) + - --iface={{ .IFace }} resources: requests: cpu: "100m" diff --git a/pkg/platform/provider/baremetal/phases/image/image.go b/pkg/platform/provider/baremetal/phases/image/image.go index 9fa671626..f9d211a08 100644 --- a/pkg/platform/provider/baremetal/phases/image/image.go +++ b/pkg/platform/provider/baremetal/phases/image/image.go @@ -21,37 +21,55 @@ package image import ( "fmt" "strings" - + platformv1 "tkestack.io/tke/api/platform/v1" "tkestack.io/tke/pkg/platform/provider/baremetal/images" + v1 "tkestack.io/tke/pkg/platform/types/v1" "tkestack.io/tke/pkg/util/ssh" ) type Option struct { Version string RegistryDomain string + KubeImages []string } -func PullKubernetesImages(s ssh.Interface, option *Option) error { - images := images.ListKubernetesImageFullNamesWithVerion(option.Version) +func PullKubernetesImages(c *v1.Cluster, s ssh.Interface, option *Option) error { + images := images.ListKubernetesImageFullNamesWithVersion(option.Version, option.KubeImages) if len(images) == 0 { return fmt.Errorf("images is empty") } for _, image := range images { - cmd := fmt.Sprintf("docker pull %s", image) - _, err := s.CombinedOutput(cmd) - if err != nil { - if strings.Contains(err.Error(), "502 Bad Gateway") { - cmd = " docker info | grep Proxy" - output, _ := s.CombinedOutput(cmd) - return fmt.Errorf(`pull image fail: %s. maybe set no_proxy for registry(%s,*.%s) in docker dameon. + cmd := "" + if c.Cluster.Spec.Features.ContainerRuntime == platformv1.Docker { + cmd = fmt.Sprintf("docker pull %s", image) + _, err := s.CombinedOutput(cmd) + if err != nil { + if strings.Contains(err.Error(), "502 Bad Gateway") { + cmd = " docker info | grep Proxy" + output, _ := s.CombinedOutput(cmd) + return fmt.Errorf(`pull image fail: %s. maybe set no_proxy for registry(%s,*.%s) in docker dameon. docker info:%s. see: https://docs.docker.com/config/daemon/systemd/#httphttps-proxy`, - err, option.RegistryDomain, option.RegistryDomain, output) + err, option.RegistryDomain, option.RegistryDomain, output) + } + + return err } + } else { + cmd = fmt.Sprintf("nerdctl --insecure-registry --namespace k8s.io pull %s", image) + _, err := s.CombinedOutput(cmd) + if err != nil { + if strings.Contains(err.Error(), "502 Bad Gateway") { + cmd = "cat /etc/systemd/system/containerd.service | grep PROXY" + output, _ := s.CombinedOutput(cmd) + return fmt.Errorf(`pull image fail: %s. maybe set no_proxy for registry(%s,*.%s) in containerd dameon. + containerd info:%s. see: https://github.com/containerd/containerd/issues/1990`, + err, option.RegistryDomain, option.RegistryDomain, output) + } - return err + return err + } } } - return nil } diff --git a/pkg/platform/provider/baremetal/phases/kubeadm/kubeadm.go b/pkg/platform/provider/baremetal/phases/kubeadm/kubeadm.go index 7b8d2dd32..29ba45916 100644 --- a/pkg/platform/provider/baremetal/phases/kubeadm/kubeadm.go +++ b/pkg/platform/provider/baremetal/phases/kubeadm/kubeadm.go @@ -51,6 +51,11 @@ import ( "tkestack.io/tke/pkg/util/template" ) +type Option struct { + RuntimeType platformv1.ContainerRuntimeType + Version string +} + const ( kubeadmKubeletConf = "/usr/lib/systemd/system/kubelet.service.d/10-kubeadm.conf" @@ -72,8 +77,8 @@ var ( unMigrataleComponents = []string{"tke-platform-api", "tke-platform-controller", "tke-registry-api", "tke-registry-controller", "influxdb"} ) -func Install(s ssh.Interface, version string) error { - dstFile, err := res.KubernetesNode.CopyToNode(s, version) +func Install(s ssh.Interface, option *Option) error { + dstFile, err := res.KubernetesNode.CopyToNode(s, option.Version) if err != nil { return err } @@ -84,7 +89,7 @@ func Install(s ssh.Interface, version string) error { return fmt.Errorf("exec %q failed:exit %d:stderr %s:error %s", cmd, exit, stderr, err) } - data, err := template.ParseFile(path.Join(constants.ConfDir, "kubeadm/10-kubeadm.conf"), nil) + data, err := template.ParseFile(path.Join(constants.ConfDir, "kubeadm/10-kubeadm.conf"), option) if err != nil { return err } @@ -177,7 +182,7 @@ func Reset(s ssh.Interface, phase string) error { return nil } -func RenewCerts(s ssh.Interface) error { +func RenewCerts(c *v1.Cluster, s ssh.Interface) error { err := fixKubeadmBug1753(s) if err != nil { return fmt.Errorf("fixKubeadmBug1753(https://github.com/kubernetes/kubeadm/issues/1753) error: %w", err) @@ -189,7 +194,7 @@ func RenewCerts(s ssh.Interface) error { return err } - err = RestartControlPlane(s) + err = RestartControlPlane(c, s) if err != nil { return err } @@ -248,10 +253,10 @@ func fixKubeadmBug88811(client kubernetes.Interface) error { return nil } -func RestartControlPlane(s ssh.Interface) error { +func RestartControlPlane(c *v1.Cluster, s ssh.Interface) error { targets := []string{"kube-apiserver", "kube-controller-manager", "kube-scheduler"} for _, one := range targets { - err := RestartContainerByFilter(s, DockerFilterForControlPlane(one)) + err := RestartContainerByLabel(c, s, ContainerLabelOfControlPlane(c, one)) if err != nil { return err } @@ -260,19 +265,32 @@ func RestartControlPlane(s ssh.Interface) error { return nil } -func DockerFilterForControlPlane(name string) string { - return fmt.Sprintf("label=io.kubernetes.container.name=%s", name) +func ContainerLabelOfControlPlane(c *v1.Cluster, name string) string { + if c.Cluster.Spec.Features.ContainerRuntime == platformv1.Docker { + return fmt.Sprintf("label=io.kubernetes.container.name=%s", name) + } + return fmt.Sprintf("io.kubernetes.container.name=%s", name) } -func RestartContainerByFilter(s ssh.Interface, filter string) error { - cmd := fmt.Sprintf("docker rm -f $(docker ps -q -f '%s')", filter) +func RestartContainerByLabel(c *v1.Cluster, s ssh.Interface, label string) error { + cmd := "" + if c.Cluster.Spec.Features.ContainerRuntime == platformv1.Docker { + cmd = fmt.Sprintf("docker rm -f $(docker ps -q -f '%s')", label) + } else { + cmd = fmt.Sprintf("crictl rm -f $(crictl ps -q --label '%s')", label) + } _, err := s.CombinedOutput(cmd) if err != nil { return err } err = wait.PollImmediate(5*time.Second, 5*time.Minute, func() (bool, error) { - cmd = fmt.Sprintf("docker ps -q -f '%s'", filter) + cmd := "" + if c.Cluster.Spec.Features.ContainerRuntime == platformv1.Docker { + cmd = fmt.Sprintf("docker ps -q -f '%s'", label) + } else { + cmd = fmt.Sprintf("crictl ps -q --label '%s'", label) + } output, err := s.CombinedOutput(cmd) if err != nil { return false, nil @@ -283,7 +301,7 @@ func RestartContainerByFilter(s ssh.Interface, filter string) error { return true, nil }) if err != nil { - return fmt.Errorf("restart container(%s) error: %w", filter, err) + return fmt.Errorf("restart container(%s) error: %w", label, err) } return nil @@ -341,7 +359,11 @@ func UpgradeNode(s ssh.Interface, client kubernetes.Interface, platformClient pl // ignore patch version for patch version kubeadm may not exist in platform-controller if !sameMinor { logger.Infof("Start install kubeadm to %s", option.MachineIP) - err = Install(s, option.Version) + kubeAdmOption := &Option{ + RuntimeType: cluster.Spec.Features.ContainerRuntime, + Version: option.Version, + } + err = Install(s, kubeAdmOption) if err != nil { return upgraded, err } diff --git a/pkg/platform/provider/baremetal/preflight/checks.go b/pkg/platform/provider/baremetal/preflight/checks.go index ace006a81..abd75a23e 100644 --- a/pkg/platform/provider/baremetal/preflight/checks.go +++ b/pkg/platform/provider/baremetal/preflight/checks.go @@ -64,7 +64,7 @@ func newCommonChecks(c *v1.Cluster, s ssh.Interface) []Checker { FileAvailableCheck{Interface: s, Path: constants.KubectlConfigFile}, - DirAvailableCheck{Interface: s, Path: constants.CNIConfDIr}, + DirEmptyCheck{Interface: s, Path: constants.CNIConfDIr}, DirAvailableCheck{Interface: s, Path: constants.CNIDataDir}, PortOpenCheck{Interface: s, port: constants.ProxyHealthzPort}, @@ -389,6 +389,30 @@ func (dac DirAvailableCheck) Check() (warnings, errorList []error) { return nil, errorList } +// DirEmptyCheck checks if the given directory either does not exist, or is empty. +type DirEmptyCheck struct { + ssh.Interface + Path string + Label string +} + +// Name returns label for individual DirEmptyCheck. If not known, will return based on path. +func (dmc DirEmptyCheck) Name() string { + if dmc.Label != "" { + return dmc.Label + } + return fmt.Sprintf("DirEmptyCheck-%s", strings.Replace(dmc.Path, "/", "-", -1)) +} + +// Check validates if a directory is empty. +func (dmc DirEmptyCheck) Check() (warnings, errorList []error) { + if res, err := dmc.ReadDir(dmc.Path); err == nil && len(res) != 0 { + errorList = append(errorList, errors.Errorf("%s not empty dir", dmc.Path)) + } + + return nil, errorList +} + // Check the kernel version and kernel parameter for Cilium installation. type KernelParameterCheck struct { ssh.Interface diff --git a/pkg/platform/provider/baremetal/res/res.go b/pkg/platform/provider/baremetal/res/res.go index 2f7b6911a..f34dfae29 100644 --- a/pkg/platform/provider/baremetal/res/res.go +++ b/pkg/platform/provider/baremetal/res/res.go @@ -35,6 +35,14 @@ var ( Name: "docker", Versions: spec.DockerVersions, } + Containerd = Package{ + Name: "containerd", + Versions: spec.ContainerdVersions, + } + Nerdctl = Package{ + Name: "nerdctl", + Versions: spec.NerdctlVersions, + } CNIPlugins = Package{ Name: "cni-plugins", Versions: spec.CNIPluginsVersions, diff --git a/pkg/platform/provider/baremetal/validation/cluster.go b/pkg/platform/provider/baremetal/validation/cluster.go index 8d527a434..697fe34dc 100644 --- a/pkg/platform/provider/baremetal/validation/cluster.go +++ b/pkg/platform/provider/baremetal/validation/cluster.go @@ -24,12 +24,13 @@ import ( "net" "strings" + k8serror "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/validation/field" - "tkestack.io/tke/api/platform" - netutils "k8s.io/utils/net" + platformv1client "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" + "tkestack.io/tke/api/platform" platformv1 "tkestack.io/tke/api/platform/v1" csioperatorimage "tkestack.io/tke/pkg/platform/provider/baremetal/phases/csioperator/images" "tkestack.io/tke/pkg/platform/provider/baremetal/phases/gpu" @@ -38,6 +39,7 @@ import ( vendor "tkestack.io/tke/pkg/platform/util/kubevendor" "tkestack.io/tke/pkg/spec" "tkestack.io/tke/pkg/util/ipallocator" + "tkestack.io/tke/pkg/util/log" "tkestack.io/tke/pkg/util/validation" utilvalidation "tkestack.io/tke/pkg/util/validation" ) @@ -98,15 +100,26 @@ func ValidateClusterSpecVersion(platformClient platformv1client.PlatformV1Interf } func getK8sValidVersions(platformClient platformv1client.PlatformV1Interface, clsName string) (validVersions []string, err error) { - k8sValidVersions := []string{} if clsName == "global" || platformClient == nil { return spec.K8sVersions, nil } - client, err := util.BuildExternalClientSetWithName(context.Background(), platformClient, "global") + + cluster, err := platformClient.Clusters().Get(context.Background(), "global", metav1.GetOptions{}) if err != nil { - return k8sValidVersions, err + if k8serror.IsNotFound(err) { + log.Warnf("global cluster is not exist") + + return spec.K8sVersions, nil + } + return nil, err } - _, k8sValidVersions, err = util.GetPlatformVersionsFromClusterInfo(context.Background(), client) + + client, err := util.BuildExternalClientSet(context.Background(), cluster, platformClient) + if err != nil { + return nil, err + } + + _, k8sValidVersions, err := util.GetPlatformVersionsFromClusterInfo(context.Background(), client) return k8sValidVersions, err } diff --git a/pkg/platform/provider/cluster/interface.go b/pkg/platform/provider/cluster/interface.go index b4f0ab6c4..8326348ce 100644 --- a/pkg/platform/provider/cluster/interface.go +++ b/pkg/platform/provider/cluster/interface.go @@ -65,6 +65,8 @@ type ControllerProvider interface { Setup() error // Teardown called by controller for plugin do some clean job. Teardown() error + // NeedUpdate could be implemented by user to judge whether cluster need update or not. + NeedUpdate(old, new *platformv1.Cluster) bool OnCreate(ctx context.Context, cluster *v1.Cluster) error OnUpdate(ctx context.Context, cluster *v1.Cluster) error @@ -339,6 +341,10 @@ func (p *DelegateProvider) OnFilter(ctx context.Context, cluster *platformv1.Clu return true } +func (p *DelegateProvider) NeedUpdate(old, new *platformv1.Cluster) bool { + return false +} + func (p *DelegateProvider) getNextConditionType(conditionType string, handlers []Handler) string { var ( i int diff --git a/pkg/platform/provider/machine/interface.go b/pkg/platform/provider/machine/interface.go index 8b899eef1..f6046f854 100644 --- a/pkg/platform/provider/machine/interface.go +++ b/pkg/platform/provider/machine/interface.go @@ -51,7 +51,17 @@ const ( type Provider interface { Name() string + APIProvider + ControllerProvider +} + +type APIProvider interface { Validate(machine *platform.Machine) field.ErrorList +} + +type ControllerProvider interface { + // NeedUpdate could be implemented by user to judge whether machine need update or not. + NeedUpdate(old, new *platformv1.Machine) bool PreCreate(machine *platform.Machine) error AfterCreate(machine *platform.Machine) error @@ -213,6 +223,10 @@ func (p *DelegateProvider) OnDelete(ctx context.Context, machine *platformv1.Mac return nil } +func (p *DelegateProvider) NeedUpdate(old, new *platformv1.Machine) bool { + return false +} + func (p *DelegateProvider) getNextConditionType(conditionType string) string { var ( i int diff --git a/pkg/platform/proxy/apps/rest/rest.go b/pkg/platform/proxy/apps/rest/rest.go index ecaaa206f..0c5b554aa 100644 --- a/pkg/platform/proxy/apps/rest/rest.go +++ b/pkg/platform/proxy/apps/rest/rest.go @@ -81,28 +81,29 @@ func (s *StorageProvider) v1Storage(restOptionsGetter generic.RESTOptionsGetter, replicaSetStore := replicasetstorage.NewStorageV1(restOptionsGetter, platformClient) storageMap := map[string]rest.Storage{ - "controllerrevisions": controllerRevisionStore.ControllerRevision, - "daemonsets": daemonSetStore.DaemonSet, - "daemonsets/pods": daemonSetStore.Pods, - "daemonsets/status": daemonSetStore.Status, - "daemonsets/events": daemonSetStore.Events, - "deployments": deploymentStore.Deployment, - "deployments/status": deploymentStore.Status, - "deployments/scale": deploymentStore.Scale, - "deployments/rollback": deploymentStore.RolloutUndo, - "deployments/pods": deploymentStore.Pods, - "deployments/events": deploymentStore.Events, - "deployments/horizontalpodautoscalers": deploymentStore.HPAs, - "statefulsets": statefulSetStore.StatefulSet, - "statefulsets/status": statefulSetStore.Status, - "statefulsets/pods": statefulSetStore.Pods, - "statefulsets/scale": statefulSetStore.Scale, - "statefulsets/events": statefulSetStore.Events, - "replicasets": replicaSetStore.ReplicaSet, - "replicasets/pods": replicaSetStore.Pods, - "replicasets/status": replicaSetStore.Status, - "replicasets/scale": replicaSetStore.Scale, - "replicasets/events": replicaSetStore.Events, + "controllerrevisions": controllerRevisionStore.ControllerRevision, + "daemonsets": daemonSetStore.DaemonSet, + "daemonsets/pods": daemonSetStore.Pods, + "daemonsets/status": daemonSetStore.Status, + "daemonsets/events": daemonSetStore.Events, + "deployments": deploymentStore.Deployment, + "deployments/status": deploymentStore.Status, + "deployments/scale": deploymentStore.Scale, + "deployments/rollback": deploymentStore.RolloutUndo, + "deployments/pods": deploymentStore.Pods, + "deployments/events": deploymentStore.Events, + "deployments/horizontalpodautoscalers": deploymentStore.HPAs, + "statefulsets": statefulSetStore.StatefulSet, + "statefulsets/status": statefulSetStore.Status, + "statefulsets/pods": statefulSetStore.Pods, + "statefulsets/scale": statefulSetStore.Scale, + "statefulsets/events": statefulSetStore.Events, + "statefulsets/horizontalpodautoscalers": statefulSetStore.HPAs, + "replicasets": replicaSetStore.ReplicaSet, + "replicasets/pods": replicaSetStore.Pods, + "replicasets/status": replicaSetStore.Status, + "replicasets/scale": replicaSetStore.Scale, + "replicasets/events": replicaSetStore.Events, } return storageMap @@ -116,19 +117,20 @@ func (s *StorageProvider) v1Beta1Storage(restOptionsGetter generic.RESTOptionsGe statefulSetStore := statefulsetstorage.NewStorageV1Beta1(restOptionsGetter, platformClient) storageMap := map[string]rest.Storage{ - "controllerrevisions": controllerRevisionStore.ControllerRevision, - "deployments": deploymentStore.Deployment, - "deployments/status": deploymentStore.Status, - "deployments/scale": deploymentStore.Scale, - "deployments/rollback": deploymentStore.Rollback, - "deployments/pods": deploymentStore.Pods, - "deployments/events": deploymentStore.Events, - "deployments/horizontalpodautoscalers": deploymentStore.HPAs, - "statefulsets": statefulSetStore.StatefulSet, - "statefulsets/status": statefulSetStore.Status, - "statefulsets/pods": statefulSetStore.Pods, - "statefulsets/scale": statefulSetStore.Scale, - "statefulsets/events": statefulSetStore.Events, + "controllerrevisions": controllerRevisionStore.ControllerRevision, + "deployments": deploymentStore.Deployment, + "deployments/status": deploymentStore.Status, + "deployments/scale": deploymentStore.Scale, + "deployments/rollback": deploymentStore.Rollback, + "deployments/pods": deploymentStore.Pods, + "deployments/events": deploymentStore.Events, + "deployments/horizontalpodautoscalers": deploymentStore.HPAs, + "statefulsets": statefulSetStore.StatefulSet, + "statefulsets/status": statefulSetStore.Status, + "statefulsets/pods": statefulSetStore.Pods, + "statefulsets/scale": statefulSetStore.Scale, + "statefulsets/events": statefulSetStore.Events, + "statefulsets/horizontalpodautoscalers": statefulSetStore.HPAs, } return storageMap @@ -144,27 +146,28 @@ func (s *StorageProvider) v1Beta2Storage(restOptionsGetter generic.RESTOptionsGe replicaSetStore := replicasetstorage.NewStorageV1Beta2(restOptionsGetter, platformClient) storageMap := map[string]rest.Storage{ - "controllerrevisions": controllerRevisionStore.ControllerRevision, - "daemonsets": daemonSetStore.DaemonSet, - "daemonsets/pods": daemonSetStore.Pods, - "daemonsets/status": daemonSetStore.Status, - "daemonsets/events": daemonSetStore.Events, - "deployments": deploymentStore.Deployment, - "deployments/status": deploymentStore.Status, - "deployments/scale": deploymentStore.Scale, - "deployments/pods": deploymentStore.Pods, - "deployments/events": deploymentStore.Events, - "deployments/horizontalpodautoscalers": deploymentStore.HPAs, - "statefulsets": statefulSetStore.StatefulSet, - "statefulsets/status": statefulSetStore.Status, - "statefulsets/pods": statefulSetStore.Pods, - "statefulsets/scale": statefulSetStore.Scale, - "statefulsets/events": statefulSetStore.Events, - "replicasets": replicaSetStore.ReplicaSet, - "replicasets/pods": replicaSetStore.Pods, - "replicasets/status": replicaSetStore.Status, - "replicasets/scale": replicaSetStore.Scale, - "replicasets/events": replicaSetStore.Events, + "controllerrevisions": controllerRevisionStore.ControllerRevision, + "daemonsets": daemonSetStore.DaemonSet, + "daemonsets/pods": daemonSetStore.Pods, + "daemonsets/status": daemonSetStore.Status, + "daemonsets/events": daemonSetStore.Events, + "deployments": deploymentStore.Deployment, + "deployments/status": deploymentStore.Status, + "deployments/scale": deploymentStore.Scale, + "deployments/pods": deploymentStore.Pods, + "deployments/events": deploymentStore.Events, + "deployments/horizontalpodautoscalers": deploymentStore.HPAs, + "statefulsets": statefulSetStore.StatefulSet, + "statefulsets/status": statefulSetStore.Status, + "statefulsets/pods": statefulSetStore.Pods, + "statefulsets/scale": statefulSetStore.Scale, + "statefulsets/events": statefulSetStore.Events, + "statefulsets/horizontalpodautoscalers": statefulSetStore.HPAs, + "replicasets": replicaSetStore.ReplicaSet, + "replicasets/pods": replicaSetStore.Pods, + "replicasets/status": replicaSetStore.Status, + "replicasets/scale": replicaSetStore.Scale, + "replicasets/events": replicaSetStore.Events, } return storageMap diff --git a/pkg/platform/proxy/apps/statefulset/storage/hpa.go b/pkg/platform/proxy/apps/statefulset/storage/hpa.go new file mode 100644 index 000000000..d4a766463 --- /dev/null +++ b/pkg/platform/proxy/apps/statefulset/storage/hpa.go @@ -0,0 +1,122 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package storage + +import ( + "context" + + "tkestack.io/tke/pkg/platform/proxy" + "tkestack.io/tke/pkg/util/apiclient" + + appsv1 "k8s.io/api/apps/v1" + autoscalingv1 "k8s.io/api/autoscaling/v1" + extensionsv1beta1 "k8s.io/api/extensions/v1beta1" + "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime/schema" + "k8s.io/apiserver/pkg/endpoints/request" + "k8s.io/apiserver/pkg/registry/rest" + "k8s.io/client-go/kubernetes" + platforminternalclient "tkestack.io/tke/api/client/clientset/internalversion/typed/platform/internalversion" +) + +// HPARest implements the REST endpoint for find hpalist by a statefulSet. +type HPARest struct { + rest.Storage + platformClient platforminternalclient.PlatformInterface +} + +var _ rest.Getter = &HPARest{} +var _ rest.GroupVersionKindProvider = &HPARest{} + +// GroupVersionKind is used to specify a particular GroupVersionKind to discovery. +func (r *HPARest) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind { + return autoscalingv1.SchemeGroupVersion.WithKind("HorizontalPodAutoscalerList") +} + +// New returns an empty object that can be used with Create and Update after +// request data has been put into it. +func (r *HPARest) New() runtime.Object { + return &autoscalingv1.HorizontalPodAutoscalerList{} +} + +// Get retrieves the object from the storage. It is required to support Patch. +func (r *HPARest) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) { + client, err := proxy.ClientSet(ctx, r.platformClient) + if err != nil { + return nil, err + } + + namespaceName, ok := request.NamespaceFrom(ctx) + if !ok { + return nil, errors.NewBadRequest("a namespace must be specified") + } + + if apiclient.ClusterVersionIsBefore19(client) { + return listHPAsByAppsBeta(ctx, client, namespaceName, name, options) + } + return listHPAsByApps(ctx, client, namespaceName, name, options) +} + +func listHPAsByAppsBeta(ctx context.Context, client *kubernetes.Clientset, namespaceName, name string, options *metav1.GetOptions) (runtime.Object, error) { + statefulSet, err := client.AppsV1beta1().StatefulSets(namespaceName).Get(ctx, name, *options) + if err != nil { + return nil, errors.NewNotFound(extensionsv1beta1.Resource("statefulsets/horizontalpodautoscalers"), name) + } + + hpas, err := client.AutoscalingV1().HorizontalPodAutoscalers(namespaceName).List(ctx, metav1.ListOptions{}) + if err != nil { + return nil, err + } + + hpaList := &autoscalingv1.HorizontalPodAutoscalerList{ + Items: make([]autoscalingv1.HorizontalPodAutoscaler, 0), + } + for _, hpa := range hpas.Items { + if hpa.Spec.ScaleTargetRef.Name == statefulSet.ObjectMeta.Name && hpa.Spec.ScaleTargetRef.Kind == "StatefulSet" { + hpaList.Items = append(hpaList.Items, hpa) + } + } + + return hpaList, nil +} + +func listHPAsByApps(ctx context.Context, client *kubernetes.Clientset, namespaceName, name string, options *metav1.GetOptions) (runtime.Object, error) { + statefulSet, err := client.AppsV1().StatefulSets(namespaceName).Get(ctx, name, *options) + if err != nil { + return nil, errors.NewNotFound(appsv1.Resource("statefulsets/horizontalpodautoscalers"), name) + } + + hpas, err := client.AutoscalingV1().HorizontalPodAutoscalers(namespaceName).List(ctx, metav1.ListOptions{}) + if err != nil { + return nil, err + } + + hpaList := &autoscalingv1.HorizontalPodAutoscalerList{ + Items: make([]autoscalingv1.HorizontalPodAutoscaler, 0), + } + for _, hpa := range hpas.Items { + if hpa.Spec.ScaleTargetRef.Name == statefulSet.ObjectMeta.Name && hpa.Spec.ScaleTargetRef.Kind == "StatefulSet" { + hpaList.Items = append(hpaList.Items, hpa) + } + } + + return hpaList, nil +} diff --git a/pkg/platform/proxy/apps/statefulset/storage/storage.go b/pkg/platform/proxy/apps/statefulset/storage/storage.go index 418c722cb..b98171776 100644 --- a/pkg/platform/proxy/apps/statefulset/storage/storage.go +++ b/pkg/platform/proxy/apps/statefulset/storage/storage.go @@ -45,6 +45,7 @@ type Storage struct { Status *StatusREST Scale *ScaleREST Events *EventREST + HPAs *HPARest } // REST implements pkg/api/rest.StandardStorage @@ -77,6 +78,9 @@ func NewStorageV1(_ genericregistry.RESTOptionsGetter, platformClient platformin Events: &EventREST{ platformClient: platformClient, }, + HPAs: &HPARest{ + platformClient: platformClient, + }, } } @@ -105,6 +109,9 @@ func NewStorageV1Beta1(_ genericregistry.RESTOptionsGetter, platformClient platf Events: &EventREST{ platformClient: platformClient, }, + HPAs: &HPARest{ + platformClient: platformClient, + }, } } @@ -133,6 +140,9 @@ func NewStorageV1Beta2(_ genericregistry.RESTOptionsGetter, platformClient platf Events: &EventREST{ platformClient: platformClient, }, + HPAs: &HPARest{ + platformClient: platformClient, + }, } } diff --git a/pkg/platform/proxy/version/rest/rest.go b/pkg/platform/proxy/version/rest/rest.go deleted file mode 100644 index d37ecf469..000000000 --- a/pkg/platform/proxy/version/rest/rest.go +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Tencent is pleased to support the open source community by making TKEStack - * available. - * - * Copyright (C) 2012-2021 Tencent. All Rights Reserved. - * - * 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 - * - * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the - * specific language governing permissions and limitations under the License. - */ - -package rest - -import ( - "net/http" - - "github.com/emicklei/go-restful" - "k8s.io/client-go/rest" - platforminternalclient "tkestack.io/tke/api/client/clientset/internalversion/typed/platform/internalversion" - "tkestack.io/tke/pkg/platform/proxy" -) - -type VersionProxyHandler struct { - config *rest.Config -} - -func NewVersionProxyHandler(config *rest.Config) *VersionProxyHandler { - return &VersionProxyHandler{ - config: config, - } -} - -// Install install /version route -// Please confirm /version is not in pkg/apiserver/filter/authentication.go defaultIgnoreAuthPathPrefixes -func (s *VersionProxyHandler) Install(c *restful.Container) { - versionWS := new(restful.WebService) - versionWS.Path("/version") - versionWS.Doc("git code version from which this is built") - versionWS.Route( - versionWS.GET("/").To(s.handle). - Doc("get the code version"). - Operation("getVersion"). - Produces(restful.MIME_JSON). - Consumes(restful.MIME_JSON)) - - c.Add(versionWS) -} - -// /version route process -func (s *VersionProxyHandler) handle(req *restful.Request, resp *restful.Response) { - platformClient := platforminternalclient.NewForConfigOrDie(s.config) - client, err := proxy.ClientSet(req.Request.Context(), platformClient) - if err != nil { - resp.WriteHeaderAndEntity(http.StatusBadRequest, err.Error()) - return - } - version, err := client.Discovery().ServerVersion() - - if err != nil { - resp.WriteHeaderAndEntity(http.StatusInternalServerError, err.Error()) - return - } - - resp.WriteHeaderAndEntity(http.StatusOK, version) -} diff --git a/pkg/platform/registry/cluster/storage/api_resources.go b/pkg/platform/registry/cluster/storage/api_resources.go new file mode 100644 index 000000000..5cbf92302 --- /dev/null +++ b/pkg/platform/registry/cluster/storage/api_resources.go @@ -0,0 +1,101 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package storage + +import ( + "context" + "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apiserver/pkg/registry/generic/registry" + "k8s.io/apiserver/pkg/registry/rest" + "k8s.io/client-go/discovery" + platforminternalclient "tkestack.io/tke/api/client/clientset/internalversion/typed/platform/internalversion" + "tkestack.io/tke/api/platform" + "tkestack.io/tke/pkg/platform/proxy" + "tkestack.io/tke/pkg/platform/util" +) + +// APIResourcesREST implement bucket call interface for cluster. +type APIResourcesREST struct { + rest.Storage + store *registry.Store + platformClient platforminternalclient.PlatformInterface +} + +func (r *APIResourcesREST) New() runtime.Object { + return &platform.ClusterGroupAPIResourceItems{} +} + +func (r *APIResourcesREST) NewGetOptions() (runtime.Object, bool, string) { + return &platform.ClusterGroupAPIResourceOptions{}, false, "" +} + +// Get finds a resource in the storage by name and returns it. +func (r *APIResourcesREST) Get(ctx context.Context, clusterName string, options runtime.Object) (runtime.Object, error) { + clusterObject, err := r.store.Get(ctx, clusterName, &metav1.GetOptions{}) + if err != nil { + return nil, err + } + cluster := clusterObject.(*platform.Cluster) + if err := util.FilterCluster(ctx, cluster); err != nil { + return nil, err + } + + config, err := proxy.GetConfig(ctx, r.platformClient) + if err != nil { + return nil, errors.NewInternalError(err) + } + + discoveryclient, err := discovery.NewDiscoveryClientForConfig(config) + if err != nil { + return nil, err + } + lists, err := discoveryclient.ServerPreferredResources() + if err != nil { + return nil, err + } + items := make([]platform.ClusterGroupAPIResourceItems, 0) + for _, list := range lists { + if len(list.APIResources) == 0 { + continue + } + apiResources := make([]platform.ClusterGroupAPIResourceItem, 0) + for _, groupResource := range list.APIResources { + apiResources = append(apiResources, platform.ClusterGroupAPIResourceItem{ + Name: groupResource.Name, + SingularName: groupResource.SingularName, + Namespaced: groupResource.Namespaced, + Group: groupResource.Group, + Version: groupResource.Version, + Kind: groupResource.Kind, + Verbs: groupResource.Verbs, + ShortNames: groupResource.ShortNames, + Categories: groupResource.Categories, + }) + } + items = append(items, platform.ClusterGroupAPIResourceItems{ + GroupVersion: list.GroupVersion, + APIResources: apiResources, + }) + } + return &platform.ClusterGroupAPIResourceItemsList{ + Items: items, + }, nil +} diff --git a/pkg/platform/registry/cluster/storage/proxy.go b/pkg/platform/registry/cluster/storage/proxy.go index 669971f5a..76928f0c9 100644 --- a/pkg/platform/registry/cluster/storage/proxy.go +++ b/pkg/platform/registry/cluster/storage/proxy.go @@ -29,6 +29,8 @@ import ( "strconv" "strings" "time" + "tkestack.io/tke/pkg/apiserver/authentication" + "tkestack.io/tke/pkg/platform/proxy" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -38,7 +40,6 @@ import ( platforminternalclient "tkestack.io/tke/api/client/clientset/internalversion/typed/platform/internalversion" "tkestack.io/tke/api/platform" "tkestack.io/tke/pkg/platform/apiserver/filter" - "tkestack.io/tke/pkg/platform/proxy" "tkestack.io/tke/pkg/platform/util" ) @@ -85,17 +86,27 @@ func (r *ProxyREST) Connect(ctx context.Context, clusterName string, opts runtim if err != nil { return nil, errors.NewInternalError(err) } - if config.BearerToken == "" { - return nil, errors.NewInternalError(fmt.Errorf("%s has NO BearerToken", clusterName)) - } + userName, tenantID := authentication.UsernameAndTenantID(ctx) uri, err := makeURL(config.Host, proxyOpts.Path) if err != nil { return nil, errors.NewBadRequest(err.Error()) } + TLSClientConfig := &tls.Config{} + TLSClientConfig.InsecureSkipVerify = true + + if config.TLSClientConfig.CertData != nil && config.TLSClientConfig.KeyData != nil { + cert, err := tls.X509KeyPair(config.TLSClientConfig.CertData, config.TLSClientConfig.KeyData) + if err != nil { + return nil, err + } + TLSClientConfig.Certificates = []tls.Certificate{cert} + } else if config.BearerToken == "" { + return nil, errors.NewInternalError(fmt.Errorf("%s has NO BearerToken", clusterName)) + } return &httputil.ReverseProxy{ - Director: makeDirector(cluster.ObjectMeta.Name, uri, config.BearerToken), + Director: makeDirector(cluster.ObjectMeta.Name, userName, tenantID, uri, config.BearerToken), Transport: &http.Transport{ DialContext: (&net.Dialer{ Timeout: 30 * time.Second, @@ -105,7 +116,7 @@ func (r *ProxyREST) Connect(ctx context.Context, clusterName string, opts runtim IdleConnTimeout: 90 * time.Second, TLSHandshakeTimeout: 10 * time.Second, ExpectContinueTimeout: 1 * time.Second, - TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + TLSClientConfig: TLSClientConfig, }, }, nil } @@ -115,10 +126,14 @@ func (r *ProxyREST) New() runtime.Object { return &platform.HelmProxyOptions{} } -func makeDirector(clusterName string, uri *url.URL, token string) func(req *http.Request) { +func makeDirector(clusterName, userName, tenantID string, uri *url.URL, token string) func(req *http.Request) { return func(req *http.Request) { req.Header.Set(filter.ClusterNameHeaderKey, clusterName) - req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", token)) + req.Header.Set("X-Remote-User", userName) + req.Header.Set("X-Remote-Extra-TenantID", tenantID) + if token != "" { + req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", token)) + } req.URL = uri } } diff --git a/pkg/platform/registry/cluster/storage/storage.go b/pkg/platform/registry/cluster/storage/storage.go index d3a5f12f7..a5b4fc8b0 100644 --- a/pkg/platform/registry/cluster/storage/storage.go +++ b/pkg/platform/registry/cluster/storage/storage.go @@ -63,6 +63,7 @@ type Storage struct { LBCFBackendRecord *LBCFBackendRecordREST Drain *DrainREST Proxy *ProxyREST + APIResources *APIResourcesREST } // NewStorage returns a Storage object that will work against clusters. @@ -166,6 +167,10 @@ func NewStorage(optsGetter genericregistry.RESTOptionsGetter, platformClient pla host: host, platformClient: platformClient, }, + APIResources: &APIResourcesREST{ + store: store, + platformClient: platformClient, + }, } } diff --git a/pkg/platform/registry/cluster/strategy.go b/pkg/platform/registry/cluster/strategy.go index d4c8ea6fc..498805db8 100644 --- a/pkg/platform/registry/cluster/strategy.go +++ b/pkg/platform/registry/cluster/strategy.go @@ -24,6 +24,7 @@ import ( "regexp" "strings" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/runtime" @@ -36,6 +37,7 @@ import ( "tkestack.io/tke/api/platform" "tkestack.io/tke/api/platform/validation" "tkestack.io/tke/pkg/apiserver/authentication" + helmutil "tkestack.io/tke/pkg/application/helm/util" clusterutil "tkestack.io/tke/pkg/platform/provider/baremetal/cluster" clusterprovider "tkestack.io/tke/pkg/platform/provider/cluster" "tkestack.io/tke/pkg/util" @@ -141,6 +143,19 @@ func (s *Strategy) PrepareForCreate(ctx context.Context, obj runtime.Object) { if err != nil { panic(err) } + for i, app := range cluster.Spec.BootstrapApps { + if len(app.App.Spec.Values.RawValues) != 0 { + app.App.Spec.Values.RawValues = helmutil.SafeEncodeValue(app.App.Spec.Values.RawValues) + } + if len(app.App.Namespace) == 0 { + app.App.Namespace = metav1.NamespaceDefault + } + if len(app.App.Name) == 0 { + app.App.Name = "bootstrapapp-" + app.App.Namespace + "-" + app.App.Spec.Name + } + app.App.Spec.TargetCluster = "" + cluster.Spec.BootstrapApps[i] = app + } } // AfterCreate implements a further operation to run after a resource is diff --git a/pkg/platform/registry/rest/rest.go b/pkg/platform/registry/rest/rest.go index c79bdd1de..d72d33d14 100644 --- a/pkg/platform/registry/rest/rest.go +++ b/pkg/platform/registry/rest/rest.go @@ -84,6 +84,7 @@ func (s *StorageProvider) v1Storage(apiResourceConfigSource serverstorage.APIRes storageMap["clusters/drain"] = clusterREST.Drain storageMap["clusters/proxy"] = clusterREST.Proxy storageMap["clusters/apply"] = clusterREST.Apply + storageMap["clusters/apiresources"] = clusterREST.APIResources storageMap["clusters/helm"] = clusterREST.Helm storageMap["clusters/tapps"] = clusterREST.TappController storageMap["clusters/csis"] = clusterREST.CSI diff --git a/pkg/platform/util/addon/client.go b/pkg/platform/util/addon/client.go new file mode 100644 index 000000000..c4f85c025 --- /dev/null +++ b/pkg/platform/util/addon/client.go @@ -0,0 +1,185 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package addon + +// These clients are for addon, decoupling with provider + +import ( + "context" + "fmt" + + monitoringclient "github.com/coreos/prometheus-operator/pkg/client/versioned" + apiextensionsclient "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset" + "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/fields" + "k8s.io/client-go/kubernetes" + kubeaggregatorclientset "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset" + + platformversionedclient "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" + "tkestack.io/tke/api/platform" + platformv1 "tkestack.io/tke/api/platform/v1" + "tkestack.io/tke/pkg/platform/util" + "tkestack.io/tke/pkg/util/log" +) + +// BuildExternalMonitoringClientSetNoStatus creates the monitoring clientset of prometheus operator by given +// cluster object and returns it. +func BuildExternalMonitoringClientSetNoStatus(ctx context.Context, cluster *platformv1.Cluster, client platformversionedclient.PlatformV1Interface) (monitoringclient.Interface, error) { + credential, err := GetClusterCredentialV1(ctx, client, cluster) + if err != nil { + return nil, err + } + restConfig, err := util.GetExternalRestConfig(cluster, credential) + if err != nil { + log.Error("Build cluster config error", log.String("clusterName", cluster.ObjectMeta.Name), log.Err(err)) + return nil, err + } + return monitoringclient.NewForConfig(restConfig) +} + +// BuildExternalMonitoringClientSet creates the monitoring clientset of prometheus operator by given cluster +// object and returns it. +func BuildExternalMonitoringClientSet(ctx context.Context, cluster *platformv1.Cluster, client platformversionedclient.PlatformV1Interface) (monitoringclient.Interface, error) { + if cluster.Status.Locked != nil && *cluster.Status.Locked { + return nil, fmt.Errorf("cluster %s has been locked", cluster.ObjectMeta.Name) + } + + return BuildExternalMonitoringClientSetNoStatus(ctx, cluster, client) +} + +// BuildExternalMonitoringClientSetWithName creates the clientset of prometheus operator by given cluster +// name and returns it. +func BuildExternalMonitoringClientSetWithName(ctx context.Context, platformClient platformversionedclient.PlatformV1Interface, name string) (monitoringclient.Interface, error) { + cluster, err := platformClient.Clusters().Get(ctx, name, metav1.GetOptions{}) + if err != nil { + return nil, err + } + clientset, err := BuildExternalMonitoringClientSet(ctx, cluster, platformClient) + if err != nil { + return nil, err + } + return clientset, nil +} + +// BuildKubeAggregatorClientSet creates the kube-aggregator clientset of kubernetes by given cluster +// object and returns it. +func BuildKubeAggregatorClientSet(ctx context.Context, cluster *platformv1.Cluster, client platformversionedclient.PlatformV1Interface) (*kubeaggregatorclientset.Clientset, error) { + if cluster.Status.Locked != nil && *cluster.Status.Locked { + return nil, fmt.Errorf("cluster %s has been locked", cluster.ObjectMeta.Name) + } + + return BuildKubeAggregatorClientSetNoStatus(ctx, cluster, client) +} + +// BuildExternalExtensionClientSetNoStatus creates the api extension clientset of kubernetes by given +// cluster object and returns it. +func BuildExternalExtensionClientSetNoStatus(ctx context.Context, cluster *platformv1.Cluster, client platformversionedclient.PlatformV1Interface) (*apiextensionsclient.Clientset, error) { + credential, err := GetClusterCredentialV1(ctx, client, cluster) + if err != nil { + return nil, err + } + restConfig, err := util.GetExternalRestConfig(cluster, credential) + if err != nil { + log.Error("Build cluster config error", log.String("clusterName", cluster.ObjectMeta.Name), log.Err(err)) + return nil, err + } + return apiextensionsclient.NewForConfig(restConfig) +} + +// BuildExternalExtensionClientSet creates the api extension clientset of kubernetes by given cluster +// object and returns it. +func BuildExternalExtensionClientSet(ctx context.Context, cluster *platformv1.Cluster, client platformversionedclient.PlatformV1Interface) (*apiextensionsclient.Clientset, error) { + if cluster.Status.Locked != nil && *cluster.Status.Locked { + return nil, fmt.Errorf("cluster %s has been locked", cluster.ObjectMeta.Name) + } + + return BuildExternalExtensionClientSetNoStatus(ctx, cluster, client) +} + +// BuildKubeAggregatorClientSetNoStatus creates the kube-aggregator clientset of kubernetes by given +// cluster object and returns it. +func BuildKubeAggregatorClientSetNoStatus(ctx context.Context, cluster *platformv1.Cluster, client platformversionedclient.PlatformV1Interface) (*kubeaggregatorclientset.Clientset, error) { + credential, err := GetClusterCredentialV1(ctx, client, cluster) + if err != nil { + return nil, err + } + restConfig, err := util.GetExternalRestConfig(cluster, credential) + if err != nil { + log.Error("Build cluster config error", log.String("clusterName", cluster.ObjectMeta.Name), log.Err(err)) + return nil, err + } + return kubeaggregatorclientset.NewForConfig(restConfig) +} + +// BuildExternalClientSetWithName creates the clientset of kubernetes by given cluster +// name and returns it. +func BuildExternalClientSetWithName(ctx context.Context, platformClient platformversionedclient.PlatformV1Interface, name string) (*kubernetes.Clientset, error) { + cluster, err := platformClient.Clusters().Get(ctx, name, metav1.GetOptions{}) + if err != nil { + return nil, err + } + clientset, err := BuildExternalClientSet(ctx, cluster, platformClient) + if err != nil { + return nil, err + } + return clientset, nil +} + +// BuildExternalClientSet creates the clientset of kubernetes by given cluster object and returns it. +func BuildExternalClientSet(ctx context.Context, cluster *platformv1.Cluster, client platformversionedclient.PlatformV1Interface) (*kubernetes.Clientset, error) { + credential, err := GetClusterCredentialV1(ctx, client, cluster) + if err != nil { + return nil, err + } + + if cluster.Status.Locked != nil && *cluster.Status.Locked { + return nil, fmt.Errorf("cluster %s has been locked", cluster.ObjectMeta.Name) + } + + return util.BuildVersionedClientSet(cluster, credential) +} + +// GetClusterCredentialV1 returns the versioned cluster's credential +func GetClusterCredentialV1(ctx context.Context, client platformversionedclient.PlatformV1Interface, cluster *platformv1.Cluster) (*platformv1.ClusterCredential, error) { + var ( + credential *platformv1.ClusterCredential + err error + ) + + if cluster.Spec.ClusterCredentialRef != nil { + credential, err = client.ClusterCredentials().Get(ctx, cluster.Spec.ClusterCredentialRef.Name, metav1.GetOptions{}) + if err != nil && !errors.IsNotFound(err) { + return nil, err + } + } else { + clusterName := cluster.Name + fieldSelector := fields.OneTermEqualSelector("clusterName", clusterName).String() + clusterCredentials, err := client.ClusterCredentials().List(ctx, metav1.ListOptions{FieldSelector: fieldSelector}) + if err != nil { + return nil, err + } + if len(clusterCredentials.Items) == 0 { + return nil, errors.NewNotFound(platform.Resource("ClusterCredential"), clusterName) + } + credential = &clusterCredentials.Items[0] + } + + return credential, nil +} diff --git a/pkg/platform/util/addon/readme.md b/pkg/platform/util/addon/readme.md new file mode 100644 index 000000000..1637e612e --- /dev/null +++ b/pkg/platform/util/addon/readme.md @@ -0,0 +1,5 @@ +# Introduction + +This package just for independent addon controller and decouple with provider. + +Not for platform controller, which has used providers. diff --git a/pkg/platform/util/client.go b/pkg/platform/util/client.go index 4ef4d347e..0779843b0 100644 --- a/pkg/platform/util/client.go +++ b/pkg/platform/util/client.go @@ -35,13 +35,13 @@ import ( apiextensionsclient "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/dynamic" "k8s.io/client-go/kubernetes" restclient "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" "k8s.io/client-go/tools/clientcmd/api" kubeaggregatorclientset "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset" + platforminternalclient "tkestack.io/tke/api/client/clientset/internalversion/typed/platform/internalversion" platformversionedclient "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1" "tkestack.io/tke/api/platform" @@ -395,20 +395,6 @@ func BuildExternalMonitoringClientSet(ctx context.Context, cluster *platformv1.C return BuildExternalMonitoringClientSetNoStatus(ctx, cluster, client) } -// BuildExternalMonitoringClientSetWithName creates the clientset of prometheus operator by given cluster -// name and returns it. -func BuildExternalMonitoringClientSetWithName(ctx context.Context, platformClient platformversionedclient.PlatformV1Interface, name string) (monitoringclient.Interface, error) { - cluster, err := platformClient.Clusters().Get(ctx, name, metav1.GetOptions{}) - if err != nil { - return nil, err - } - clientset, err := BuildExternalMonitoringClientSet(ctx, cluster, platformClient) - if err != nil { - return nil, err - } - return clientset, nil -} - // BuildExternalDynamicClientSetNoStatus creates the dynamic clientset of kubernetes by given // cluster object and returns it. func BuildExternalDynamicClientSetNoStatus(cluster *platformv1.Cluster, credential *platformv1.ClusterCredential) (dynamic.Interface, error) { @@ -545,21 +531,3 @@ func rootCertPool(caData []byte) *x509.CertPool { certPool.AppendCertsFromPEM(caData) return certPool } - -// CheckClusterHealthzWithTimeout check cluster status within timeout -func CheckClusterHealthzWithTimeout(ctx context.Context, platformClient platformversionedclient.PlatformV1Interface, name string, timeout time.Duration) error { - err := wait.PollImmediate(1*time.Second, timeout, func() (bool, error) { - clientset, err := BuildExternalClientSetWithName(ctx, platformClient, name) - if err != nil { - return false, nil - } - healthStatus := 0 - clientset.Discovery().RESTClient().Get().AbsPath("/healthz").Do(ctx).StatusCode(&healthStatus) - if healthStatus != http.StatusOK { - return false, nil - } - return true, nil - }) - - return err -} diff --git a/pkg/registry/harbor/client/git_push.sh b/pkg/registry/harbor/client/git_push.sh index ae01b182a..89dfdbdb3 100644 --- a/pkg/registry/harbor/client/git_push.sh +++ b/pkg/registry/harbor/client/git_push.sh @@ -1,4 +1,21 @@ #!/bin/sh + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" @@ -28,7 +45,7 @@ git init # Adds the files in the local repository and stages them for commit. git add . -# Commits the tracked changes and prepares them to be pushed to a remote repository. +# Commits the tracked changes and prepares them to be pushed to a remote repository. git commit -m "$release_note" # Sets the new remote diff --git a/pkg/registry/harbor/helmClient/git_push.sh b/pkg/registry/harbor/helmClient/git_push.sh index ae01b182a..89dfdbdb3 100644 --- a/pkg/registry/harbor/helmClient/git_push.sh +++ b/pkg/registry/harbor/helmClient/git_push.sh @@ -1,4 +1,21 @@ #!/bin/sh + +# Tencent is pleased to support the open source community by making TKEStack +# available. +# +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. +# +# 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 +# +# https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" @@ -28,7 +45,7 @@ git init # Adds the files in the local repository and stages them for commit. git add . -# Commits the tracked changes and prepares them to be pushed to a remote repository. +# Commits the tracked changes and prepares them to be pushed to a remote repository. git commit -m "$release_note" # Sets the new remote diff --git a/pkg/apiserver/util/signals.go b/pkg/registry/util/client.go similarity index 54% rename from pkg/apiserver/util/signals.go rename to pkg/registry/util/client.go index 5baa3452c..a3357e8eb 100644 --- a/pkg/apiserver/util/signals.go +++ b/pkg/registry/util/client.go @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making TKEStack available. * - * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * Copyright (C) 2012-2020 Tencent. All Rights Reserved. * * 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 @@ -18,24 +18,20 @@ package util import ( - "os" - "os/signal" - "syscall" + "k8s.io/client-go/kubernetes" + "k8s.io/client-go/rest" ) -// SetupSignalHandler registered for SIGTERM and SIGINT. A stop channel is returned -// which is closed on one of these signals. If a second signal is caught, the program -// is terminated with exit code 1. -func SetupSignalHandler() (stopCh <-chan struct{}) { - stop := make(chan struct{}) - c := make(chan os.Signal, 2) - signal.Notify(c, os.Interrupt, syscall.SIGTERM) - go func() { - <-c - close(stop) - <-c - os.Exit(1) // second signal. Exit directly. - }() +func BuildKubeClient() (*kubernetes.Clientset, error) { + config, err := rest.InClusterConfig() + if err != nil { + return nil, err + } - return stop + clientset, err := kubernetes.NewForConfig(config) + if err != nil { + return nil, err + } + + return clientset, nil } diff --git a/pkg/registry/util/coredns.go b/pkg/registry/util/coredns.go index 59b94260b..6d4729911 100644 --- a/pkg/registry/util/coredns.go +++ b/pkg/registry/util/coredns.go @@ -22,7 +22,6 @@ import ( "encoding/json" "sync" - "tkestack.io/tke/pkg/util/apiclient" "tkestack.io/tke/pkg/util/log" "github.com/caddyserver/caddy/caddyfile" @@ -56,7 +55,7 @@ type CoreDNS struct { } func NewCoreDNS() (*CoreDNS, error) { - kubeClient, err := apiclient.BuildKubeClient() + kubeClient, err := BuildKubeClient() if err != nil { return nil, err } diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go index b0dbfcfe4..950e5f731 100644 --- a/pkg/spec/spec.go +++ b/pkg/spec/spec.go @@ -31,12 +31,14 @@ var ( OSs = []string{"linux"} K8sVersionConstraint = ">= 1.10" - K8sVersions = []string{"1.20.4-tke.1", "1.20.4", "1.19.7", "1.18.3"} + K8sVersions = []string{"1.21.4-tke.1", "1.20.4-tke.1", "1.20.4", "1.19.7"} K8sVersionsWithV = funk.Map(K8sVersions, func(s string) string { return "v" + s }).([]string) DockerVersions = []string{"19.03.14"} + ContainerdVersions = []string{"1.5.4"} + NerdctlVersions = []string{"0.11.0"} CNIPluginsVersions = []string{"v0.8.6"} ConntrackToolsVersions = []string{"1.4.4"} NvidiaDriverVersions = []string{"440.31"} diff --git a/pkg/util/apiclient/client.go b/pkg/util/apiclient/client.go index b3223d2a0..b892175ae 100644 --- a/pkg/util/apiclient/client.go +++ b/pkg/util/apiclient/client.go @@ -37,20 +37,6 @@ import ( toolswatch "k8s.io/client-go/tools/watch" ) -func BuildKubeClient() (*kubernetes.Clientset, error) { - config, err := rest.InClusterConfig() - if err != nil { - return nil, err - } - - clientset, err := kubernetes.NewForConfig(config) - if err != nil { - return nil, err - } - - return clientset, nil -} - // GetClientset return clientset func GetClientset(masterEndpoint string, token string, caCert []byte) (*kubernetes.Clientset, error) { restConfig := &rest.Config{ diff --git a/pkg/util/docker/docker.go b/pkg/util/docker/docker.go index 47c5969d3..7ff6f4dbb 100644 --- a/pkg/util/docker/docker.go +++ b/pkg/util/docker/docker.go @@ -232,7 +232,7 @@ func (d *Docker) RemoveImage(image string) error { // RemoveContainers forces to remove one or more running containers. func (d *Docker) RemoveContainers(containers ...string) error { for _, one := range containers { - cmdString := fmt.Sprintf("docker inspect %s >/dev/null 2>&1 && docker rm -f %s || true", one, one) + cmdString := fmt.Sprintf("nerdctl stop %s && nerdctl rm %s || true", one, one) err := d.runCmd(cmdString) if err != nil { return pkgerrors.Wrap(err, "docker rm error") diff --git a/pkg/util/ssh/interface.go b/pkg/util/ssh/interface.go index f9a4ff7f7..047f5072c 100644 --- a/pkg/util/ssh/interface.go +++ b/pkg/util/ssh/interface.go @@ -18,7 +18,9 @@ package ssh -import "io" +import ( + "io" +) type Interface interface { Ping() error @@ -30,6 +32,7 @@ type Interface interface { CopyFile(src, dst string) error WriteFile(src io.Reader, dst string) error ReadFile(filename string) ([]byte, error) + ReadDir(dirname string) (string, error) Exist(filename string) (bool, error) LookPath(file string) (string, error) diff --git a/pkg/util/ssh/ssh.go b/pkg/util/ssh/ssh.go index a60c3d417..2b973e465 100644 --- a/pkg/util/ssh/ssh.go +++ b/pkg/util/ssh/ssh.go @@ -245,6 +245,11 @@ func (s *SSH) LookPath(file string) (string, error) { return string(data), err } +func (s *SSH) ReadDir(dir string) (string, error) { + data, err := s.CombinedOutput(fmt.Sprintf("ls %s", dir)) + return string(data), err +} + func (s *SSH) writeFile(src io.Reader, dst string) error { log.Debugf("[%s] Write data to %q", s.addr(), dst) diff --git a/test/e2e/manifests/tke-platform-api/tke-platform-api.yaml b/test/e2e/manifests/tke-platform-api/tke-platform-api.yaml index d231aca50..910288551 100644 --- a/test/e2e/manifests/tke-platform-api/tke-platform-api.yaml +++ b/test/e2e/manifests/tke-platform-api/tke-platform-api.yaml @@ -83,7 +83,7 @@ data: - name: tke cluster: insecure-skip-tls-verify: true - server: https://tke-platform-api + server: https://tke-platform-api.{{ .Namespace }} users: - name: admin-cert user: diff --git a/test/e2e/platform/platform_test.go b/test/e2e/platform/platform_test.go index ad603ad76..d2d56689c 100644 --- a/test/e2e/platform/platform_test.go +++ b/test/e2e/platform/platform_test.go @@ -23,23 +23,23 @@ import ( "errors" "time" - "tkestack.io/tke/pkg/platform/apiserver/cluster" - "tkestack.io/tke/test/e2e/tke" - tke2 "tkestack.io/tke/test/tke" - "tkestack.io/tke/test/util" - "tkestack.io/tke/test/util/cloudprovider/tencent" - "tkestack.io/tke/test/util/env" - . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + tkeclientset "tkestack.io/tke/api/client/clientset/versioned" platformv1 "tkestack.io/tke/api/platform/v1" + "tkestack.io/tke/pkg/platform/apiserver/cluster" _ "tkestack.io/tke/pkg/platform/provider/baremetal/cluster" _ "tkestack.io/tke/pkg/platform/provider/baremetal/machine" _ "tkestack.io/tke/pkg/platform/provider/imported/cluster" _ "tkestack.io/tke/pkg/platform/provider/registered/cluster" + "tkestack.io/tke/test/e2e/tke" + tke2 "tkestack.io/tke/test/tke" + "tkestack.io/tke/test/util" "tkestack.io/tke/test/util/cloudprovider" + "tkestack.io/tke/test/util/cloudprovider/tencent" + "tkestack.io/tke/test/util/env" ) const namespacePrefix = "platform-" diff --git a/test/e2e/tke/tke.go b/test/e2e/tke/tke.go index 303c1f7d2..c1ac51cdf 100644 --- a/test/e2e/tke/tke.go +++ b/test/e2e/tke/tke.go @@ -26,20 +26,17 @@ import ( "os" "time" - "k8s.io/klog" - - "github.com/onsi/gomega" - - "tkestack.io/tke/cmd/tke-installer/app/installer/types" - - "tkestack.io/tke/test/e2e" - "github.com/onsi/ginkgo" + "github.com/onsi/gomega" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/kubernetes" + "k8s.io/klog" + + "tkestack.io/tke/cmd/tke-installer/app/installer/types" "tkestack.io/tke/pkg/util/apiclient" + "tkestack.io/tke/test/e2e" "tkestack.io/tke/test/e2e/certs" testclient "tkestack.io/tke/test/util/client" "tkestack.io/tke/test/util/env" diff --git a/test/e2e_installer/cluster/cluster_test.go b/test/e2e_installer/cluster/cluster_test.go index 69857be59..28a6e8231 100644 --- a/test/e2e_installer/cluster/cluster_test.go +++ b/test/e2e_installer/cluster/cluster_test.go @@ -115,7 +115,7 @@ var _ = Describe("cluster", func() { Expect(cls.Spec.Version).Should(Equal(newVersion), "Cluster version is wrong") }, Entry("1.19.7->1.20.4", "1.19.7", "1.20.4"), - Entry("1.18.3->1.19.7", "1.18.3", "1.19.7")) + Entry("1.20.4->1.21.4-tke.1", "1.20.4", "1.21.4-tke.1")) It("Cluster scaling", func() { // Prepare two instances diff --git a/test/tke/tke.go b/test/tke/tke.go index c932bdea2..fce361386 100644 --- a/test/tke/tke.go +++ b/test/tke/tke.go @@ -66,6 +66,7 @@ func (testTke *TestTKE) ClusterTemplate(nodes ...cloudprovider.Instance) *platfo Features: platformv1.ClusterFeature{ HA: &platformv1.HA{}, EnableMasterSchedule: true, + ContainerRuntime: platformv1.Containerd, }, Version: env.K8sVersion(), ClusterCIDR: "10.244.0.0/16", @@ -93,11 +94,13 @@ func (testTke *TestTKE) ClusterTemplate(nodes ...cloudprovider.Instance) *platfo func (testTke *TestTKE) CreateClusterInternal(cls *platformv1.Cluster) (cluster *platformv1.Cluster, err error) { klog.Info("Create cluster: ", cls.String()) + var counter int err = wait.PollImmediate(30*time.Second, 5*time.Minute, func() (bool, error) { cluster, err = testTke.TkeClient.PlatformV1().Clusters().Create(context.Background(), cls, metav1.CreateOptions{}) if err != nil { - klog.Warningf("Create cluster failed: %v", err) - return false, err + counter++ + klog.Warningf("Create cluster failed: %v, try counter:%d", err, counter) + return false, nil } return true, nil }) @@ -251,11 +254,13 @@ func (testTke *TestTKE) ImportCluster(host string, port int32, caCert []byte, to } // retry + var counter int err = wait.PollImmediate(30*time.Second, 5*time.Minute, func() (bool, error) { cluster, err = testTke.TkeClient.PlatformV1().Clusters().Create(context.Background(), cluster, metav1.CreateOptions{}) if err != nil { - klog.Warningf("Create cluster failed: %v", err) - return false, err + counter++ + klog.Warningf("Create cluster failed: %v,try count:%d", err, counter) + return false, nil } return true, nil }) diff --git a/tools/clean.sh b/tools/clean.sh index b40b7b341..30e3f2ee1 100755 --- a/tools/clean.sh +++ b/tools/clean.sh @@ -3,7 +3,7 @@ # Tencent is pleased to support the open source community by making TKEStack # available. # -# Copyright (C) 2012-2019 Tencent. All Rights Reserved. +# Copyright (C) 2012-2021 Tencent. All Rights Reserved. # # 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 diff --git a/web/console/.nvmrc b/web/console/.nvmrc new file mode 100644 index 000000000..e00efe40d --- /dev/null +++ b/web/console/.nvmrc @@ -0,0 +1 @@ +v12.22.4 \ No newline at end of file diff --git a/web/console/Wrapper.tsx b/web/console/Wrapper.tsx index 3a0cff21a..c0232b121 100644 --- a/web/console/Wrapper.tsx +++ b/web/console/Wrapper.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { ConsoleModuleMapProps, diff --git a/web/console/ambient/appUtil.d.ts b/web/console/ambient/appUtil.d.ts index 38c973725..7a8756a55 100644 --- a/web/console/ambient/appUtil.d.ts +++ b/web/console/ambient/appUtil.d.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ declare namespace nmc { interface AppUtil { getRegionId: () => RegionId; diff --git a/web/console/ambient/classnames.d.ts b/web/console/ambient/classnames.d.ts index ac7659df0..ce9955c97 100644 --- a/web/console/ambient/classnames.d.ts +++ b/web/console/ambient/classnames.d.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export = index; declare function index(...args: any[]): any; diff --git a/web/console/ambient/clipboard.ts b/web/console/ambient/clipboard.ts index 659c088a7..867770da4 100644 --- a/web/console/ambient/clipboard.ts +++ b/web/console/ambient/clipboard.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ declare var __clipboard; declare module "clipboard" { diff --git a/web/console/ambient/index.d.ts b/web/console/ambient/index.d.ts index 00a25716c..6414df46e 100644 --- a/web/console/ambient/index.d.ts +++ b/web/console/ambient/index.d.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /// \ No newline at end of file diff --git a/web/console/ambient/redux.d.ts b/web/console/ambient/redux.d.ts index c12050dbb..4692bab75 100644 --- a/web/console/ambient/redux.d.ts +++ b/web/console/ambient/redux.d.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /* eslint-disable */ declare module Redux { interface ActionCreator extends Function { diff --git a/web/console/blankPage.tsx b/web/console/blankPage.tsx index 6e6cb5a46..b748d0b0e 100644 --- a/web/console/blankPage.tsx +++ b/web/console/blankPage.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import React, { useState } from 'react'; import { Button } from '@tea/component/button'; import { Blank, BlankTheme } from '@tea/component/blank'; diff --git a/web/console/config/apiServerVersion.ts b/web/console/config/apiServerVersion.ts index ebdf99721..441ead90e 100644 --- a/web/console/config/apiServerVersion.ts +++ b/web/console/config/apiServerVersion.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 获取components、info等基础组件的版本,不会更改 */ diff --git a/web/console/config/index.ts b/web/console/config/index.ts index 8a41ba961..169186550 100644 --- a/web/console/config/index.ts +++ b/web/console/config/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { resourceConfig } from './resourceConfig'; export { firstRouterNameMap, typeMapName, subRouterConfig } from './routerConfig'; export { apiServerVersion } from './apiServerVersion'; diff --git a/web/console/config/platform.ts b/web/console/config/platform.ts index ff1079ea7..b3a252670 100644 --- a/web/console/config/platform.ts +++ b/web/console/config/platform.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 获取当前控制台modules的 域名映射表 */ export enum ConsoleModuleEnum { /** tke-apiserver 版本 */ diff --git a/web/console/config/resource/common/actionField.ts b/web/console/config/resource/common/actionField.ts index 6f902f505..fc1ad1fc2 100644 --- a/web/console/config/resource/common/actionField.ts +++ b/web/console/config/resource/common/actionField.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ActionField } from '../../../src/modules/common/models'; /** resource list资源页面的所提供的操作按钮 */ diff --git a/web/console/config/resource/common/apiVersion.ts b/web/console/config/resource/common/apiVersion.ts index a135d2ab7..117095450 100644 --- a/web/console/config/resource/common/apiVersion.ts +++ b/web/console/config/resource/common/apiVersion.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { apiServerVersion, businessServerVersion, diff --git a/web/console/config/resource/common/dataFormat.ts b/web/console/config/resource/common/dataFormat.ts index 9bdfbd478..a728c4bbf 100644 --- a/web/console/config/resource/common/dataFormat.ts +++ b/web/console/config/resource/common/dataFormat.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 展示数据的形式配置 */ export const dataFormatConfig = { text: 'text', diff --git a/web/console/config/resource/common/detailInfo.ts b/web/console/config/resource/common/detailInfo.ts index a4774c8dd..9e99a5b89 100644 --- a/web/console/config/resource/common/detailInfo.ts +++ b/web/console/config/resource/common/detailInfo.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { dataFormatConfig } from './dataFormat'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/common/displayField.ts b/web/console/config/resource/common/displayField.ts index f74893b9d..ab74304b7 100644 --- a/web/console/config/resource/common/displayField.ts +++ b/web/console/config/resource/common/displayField.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DisplayField } from '../../../src/modules/common/models'; import { dataFormatConfig } from './dataFormat'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/common/generateResourceInfo.ts b/web/console/config/resource/common/generateResourceInfo.ts index b2eb035f8..097a5d28d 100644 --- a/web/console/config/resource/common/generateResourceInfo.ts +++ b/web/console/config/resource/common/generateResourceInfo.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { RequestType, ResourceInfo, diff --git a/web/console/config/resource/common/index.ts b/web/console/config/resource/common/index.ts index c613f61df..e9799f999 100644 --- a/web/console/config/resource/common/index.ts +++ b/web/console/config/resource/common/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { commonDisplayField } from './displayField'; export { commonDetailInfo, commonTabList, workloadCommonTabList, defaulNotExistedValue } from './detailInfo'; export { apiVersion, ApiVersion, ApiVersionKeyName } from './apiVersion'; diff --git a/web/console/config/resource/k8sConfig/addonResource.ts b/web/console/config/resource/k8sConfig/addonResource.ts index e5507f702..c10d1d3b8 100644 --- a/web/console/config/resource/k8sConfig/addonResource.ts +++ b/web/console/config/resource/k8sConfig/addonResource.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { generateResourceInfo } from '../common'; /** addon的相关配置 */ diff --git a/web/console/config/resource/k8sConfig/alarmPolicy.ts b/web/console/config/resource/k8sConfig/alarmPolicy.ts index 39bd87a0e..dcdaf9fac 100644 --- a/web/console/config/resource/k8sConfig/alarmPolicy.ts +++ b/web/console/config/resource/k8sConfig/alarmPolicy.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { generateResourceInfo } from '../common'; /** lbcf的相关配置 */ diff --git a/web/console/config/resource/k8sConfig/alarmRecord.ts b/web/console/config/resource/k8sConfig/alarmRecord.ts index c41e69dc9..b9d982a43 100644 --- a/web/console/config/resource/k8sConfig/alarmRecord.ts +++ b/web/console/config/resource/k8sConfig/alarmRecord.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { generateResourceInfo } from '../common'; /** lbcf的相关配置 */ diff --git a/web/console/config/resource/k8sConfig/application.ts b/web/console/config/resource/k8sConfig/application.ts index dad524448..735188232 100644 --- a/web/console/config/resource/k8sConfig/application.ts +++ b/web/console/config/resource/k8sConfig/application.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { generateResourceInfo } from '../common'; /** diff --git a/web/console/config/resource/k8sConfig/audit.ts b/web/console/config/resource/k8sConfig/audit.ts index f190cf626..626f0b977 100644 --- a/web/console/config/resource/k8sConfig/audit.ts +++ b/web/console/config/resource/k8sConfig/audit.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { generateResourceInfo } from '../common'; diff --git a/web/console/config/resource/k8sConfig/configmaps.ts b/web/console/config/resource/k8sConfig/configmaps.ts index 8f400f84b..f8d72eb83 100644 --- a/web/console/config/resource/k8sConfig/configmaps.ts +++ b/web/console/config/resource/k8sConfig/configmaps.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { defaulNotExistedValue, dataFormatConfig, commonActionField, generateResourceInfo } from '../common'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/k8sConfig/controlPlane.ts b/web/console/config/resource/k8sConfig/controlPlane.ts index f37f5c6e3..e2b34aa8b 100644 --- a/web/console/config/resource/k8sConfig/controlPlane.ts +++ b/web/console/config/resource/k8sConfig/controlPlane.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ResourceInfo, DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { defaulNotExistedValue, commonActionField, dataFormatConfig, generateResourceInfo } from '../common'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/k8sConfig/cronjobs.ts b/web/console/config/resource/k8sConfig/cronjobs.ts index 54c12047a..59eb15119 100644 --- a/web/console/config/resource/k8sConfig/cronjobs.ts +++ b/web/console/config/resource/k8sConfig/cronjobs.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { defaulNotExistedValue, commonActionField, diff --git a/web/console/config/resource/k8sConfig/daemonset.ts b/web/console/config/resource/k8sConfig/daemonset.ts index 55d59cd66..2dd0ae7a9 100644 --- a/web/console/config/resource/k8sConfig/daemonset.ts +++ b/web/console/config/resource/k8sConfig/daemonset.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DetailInfo } from '../../../src/modules/common/models'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/k8sConfig/deployment.ts b/web/console/config/resource/k8sConfig/deployment.ts index 89ad88d5c..6e2f87dab 100644 --- a/web/console/config/resource/k8sConfig/deployment.ts +++ b/web/console/config/resource/k8sConfig/deployment.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { commonDisplayField, diff --git a/web/console/config/resource/k8sConfig/destinationRule.ts b/web/console/config/resource/k8sConfig/destinationRule.ts index 417f5250f..6a226d2c7 100644 --- a/web/console/config/resource/k8sConfig/destinationRule.ts +++ b/web/console/config/resource/k8sConfig/destinationRule.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ResourceInfo, DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { defaulNotExistedValue, commonActionField, dataFormatConfig, generateResourceInfo } from '../common'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/k8sConfig/gateway.ts b/web/console/config/resource/k8sConfig/gateway.ts index 6202a317e..5eaefb5a5 100644 --- a/web/console/config/resource/k8sConfig/gateway.ts +++ b/web/console/config/resource/k8sConfig/gateway.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ResourceInfo, DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { commonActionField, defaulNotExistedValue, apiVersion, dataFormatConfig } from '../common'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/k8sConfig/index.ts b/web/console/config/resource/k8sConfig/index.ts index cebb95929..bcd4a8f0d 100644 --- a/web/console/config/resource/k8sConfig/index.ts +++ b/web/console/config/resource/k8sConfig/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { deployment } from './deployment'; export { statefulset } from './statefulset'; export { daemonset } from './daemonset'; diff --git a/web/console/config/resource/k8sConfig/ingress.ts b/web/console/config/resource/k8sConfig/ingress.ts index ebf93224b..69b758b57 100644 --- a/web/console/config/resource/k8sConfig/ingress.ts +++ b/web/console/config/resource/k8sConfig/ingress.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { defaulNotExistedValue, diff --git a/web/console/config/resource/k8sConfig/jobs.ts b/web/console/config/resource/k8sConfig/jobs.ts index fd9456110..e5f95780d 100644 --- a/web/console/config/resource/k8sConfig/jobs.ts +++ b/web/console/config/resource/k8sConfig/jobs.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { defaulNotExistedValue, commonActionField, diff --git a/web/console/config/resource/k8sConfig/lbcf.ts b/web/console/config/resource/k8sConfig/lbcf.ts index b7076e952..5694cff79 100644 --- a/web/console/config/resource/k8sConfig/lbcf.ts +++ b/web/console/config/resource/k8sConfig/lbcf.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ResourceInfo, DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { defaulNotExistedValue, diff --git a/web/console/config/resource/k8sConfig/namespace.project.ts b/web/console/config/resource/k8sConfig/namespace.project.ts index 9698b7b5c..2374a7243 100644 --- a/web/console/config/resource/k8sConfig/namespace.project.ts +++ b/web/console/config/resource/k8sConfig/namespace.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { commonActionField, defaulNotExistedValue, dataFormatConfig, generateResourceInfo } from '../common'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/k8sConfig/namespace.ts b/web/console/config/resource/k8sConfig/namespace.ts index a2300e659..39cfe8e7a 100644 --- a/web/console/config/resource/k8sConfig/namespace.ts +++ b/web/console/config/resource/k8sConfig/namespace.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { commonActionField, defaulNotExistedValue, dataFormatConfig, generateResourceInfo } from '../common'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/k8sConfig/node.ts b/web/console/config/resource/k8sConfig/node.ts index b6ab62f3c..2391c7196 100644 --- a/web/console/config/resource/k8sConfig/node.ts +++ b/web/console/config/resource/k8sConfig/node.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { commonActionField, diff --git a/web/console/config/resource/k8sConfig/notifyChannel.ts b/web/console/config/resource/k8sConfig/notifyChannel.ts index 6ad1fe7db..2156c0bb0 100644 --- a/web/console/config/resource/k8sConfig/notifyChannel.ts +++ b/web/console/config/resource/k8sConfig/notifyChannel.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { generateResourceInfo } from '../common'; /** notify的相关配置 */ diff --git a/web/console/config/resource/k8sConfig/otherResource.ts b/web/console/config/resource/k8sConfig/otherResource.ts index 1453451c9..68307cb8d 100644 --- a/web/console/config/resource/k8sConfig/otherResource.ts +++ b/web/console/config/resource/k8sConfig/otherResource.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { generateResourceInfo } from '../common'; /** event的相关配置 */ diff --git a/web/console/config/resource/k8sConfig/persistentvolumeclaims.ts b/web/console/config/resource/k8sConfig/persistentvolumeclaims.ts index 4d93a84dc..3770bd4e2 100644 --- a/web/console/config/resource/k8sConfig/persistentvolumeclaims.ts +++ b/web/console/config/resource/k8sConfig/persistentvolumeclaims.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { defaulNotExistedValue, dataFormatConfig, commonActionField, generateResourceInfo } from '../common'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/k8sConfig/persistentvolumes.ts b/web/console/config/resource/k8sConfig/persistentvolumes.ts index 301a323e1..c305ae449 100644 --- a/web/console/config/resource/k8sConfig/persistentvolumes.ts +++ b/web/console/config/resource/k8sConfig/persistentvolumes.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { defaulNotExistedValue, dataFormatConfig, commonActionField, generateResourceInfo } from '../common'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/k8sConfig/pods.ts b/web/console/config/resource/k8sConfig/pods.ts index 2ad95f591..e697bda1a 100644 --- a/web/console/config/resource/k8sConfig/pods.ts +++ b/web/console/config/resource/k8sConfig/pods.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DetailInfo } from '../../../src/modules/common/models'; import { commonDisplayField, diff --git a/web/console/config/resource/k8sConfig/replicaset.ts b/web/console/config/resource/k8sConfig/replicaset.ts index 5c472fafb..89cc1276b 100644 --- a/web/console/config/resource/k8sConfig/replicaset.ts +++ b/web/console/config/resource/k8sConfig/replicaset.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DetailInfo } from '../../../src/modules/common/models'; import { commonDisplayField, diff --git a/web/console/config/resource/k8sConfig/replicationcontrollers.ts b/web/console/config/resource/k8sConfig/replicationcontrollers.ts index 118307715..d31740d52 100644 --- a/web/console/config/resource/k8sConfig/replicationcontrollers.ts +++ b/web/console/config/resource/k8sConfig/replicationcontrollers.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DetailInfo } from '../../../src/modules/common/models'; import { commonDisplayField, diff --git a/web/console/config/resource/k8sConfig/secret.ts b/web/console/config/resource/k8sConfig/secret.ts index c023e4eef..37907e2c5 100644 --- a/web/console/config/resource/k8sConfig/secret.ts +++ b/web/console/config/resource/k8sConfig/secret.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { defaulNotExistedValue, dataFormatConfig, commonActionField, generateResourceInfo } from '../common'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/k8sConfig/service.ts b/web/console/config/resource/k8sConfig/service.ts index 52a40edff..303660d28 100644 --- a/web/console/config/resource/k8sConfig/service.ts +++ b/web/console/config/resource/k8sConfig/service.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { defaulNotExistedValue, diff --git a/web/console/config/resource/k8sConfig/serviceEntry.ts b/web/console/config/resource/k8sConfig/serviceEntry.ts index c7a031f78..667d7b860 100644 --- a/web/console/config/resource/k8sConfig/serviceEntry.ts +++ b/web/console/config/resource/k8sConfig/serviceEntry.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ResourceInfo, DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { defaulNotExistedValue, commonActionField, dataFormatConfig, generateResourceInfo } from '../common'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/k8sConfig/serviceForMesh.ts b/web/console/config/resource/k8sConfig/serviceForMesh.ts index f1f68d972..c8325b339 100644 --- a/web/console/config/resource/k8sConfig/serviceForMesh.ts +++ b/web/console/config/resource/k8sConfig/serviceForMesh.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { defaulNotExistedValue, commonActionField, dataFormatConfig, generateResourceInfo } from '../common'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/k8sConfig/statefulset.ts b/web/console/config/resource/k8sConfig/statefulset.ts index a91182002..3a9822f99 100644 --- a/web/console/config/resource/k8sConfig/statefulset.ts +++ b/web/console/config/resource/k8sConfig/statefulset.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DetailInfo } from '../../../src/modules/common/models'; import { commonDisplayField, diff --git a/web/console/config/resource/k8sConfig/storageclass.ts b/web/console/config/resource/k8sConfig/storageclass.ts index 8145b8bf0..427d5a13f 100644 --- a/web/console/config/resource/k8sConfig/storageclass.ts +++ b/web/console/config/resource/k8sConfig/storageclass.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { defaulNotExistedValue, dataFormatConfig, commonActionField, generateResourceInfo } from '../common'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resource/k8sConfig/tapp.ts b/web/console/config/resource/k8sConfig/tapp.ts index 038089e35..8989c3f20 100644 --- a/web/console/config/resource/k8sConfig/tapp.ts +++ b/web/console/config/resource/k8sConfig/tapp.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ResourceInfo, DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { commonDisplayField, diff --git a/web/console/config/resource/k8sConfig/virtualService.ts b/web/console/config/resource/k8sConfig/virtualService.ts index 2b93944a0..0a4638e7f 100644 --- a/web/console/config/resource/k8sConfig/virtualService.ts +++ b/web/console/config/resource/k8sConfig/virtualService.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ResourceInfo, DetailField, DisplayField, DetailInfo } from '../../../src/modules/common/models'; import { defaulNotExistedValue, commonActionField, dataFormatConfig, generateResourceInfo } from '../common'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/config/resourceConfig.ts b/web/console/config/resourceConfig.ts index ccd9b8bb1..0f0695b28 100644 --- a/web/console/config/resourceConfig.ts +++ b/web/console/config/resourceConfig.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { auth_project } from './resource/k8sConfig/otherResource'; import { deployment, diff --git a/web/console/config/routerConfig.project.ts b/web/console/config/routerConfig.project.ts index e0dc667c0..839cf79e4 100644 --- a/web/console/config/routerConfig.project.ts +++ b/web/console/config/routerConfig.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t, Trans } from '@tencent/tea-app/lib/i18n'; export const firstRouterNameMap = { diff --git a/web/console/config/routerConfig.ts b/web/console/config/routerConfig.ts index 7a97edb39..04d70aef4 100644 --- a/web/console/config/routerConfig.ts +++ b/web/console/config/routerConfig.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t, Trans } from '@tencent/tea-app/lib/i18n'; export const firstRouterNameMap = { diff --git a/web/console/gulpfile.js b/web/console/gulpfile.js index d87694920..556cbc8ed 100644 --- a/web/console/gulpfile.js +++ b/web/console/gulpfile.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const { src, dest, parallel } = require('gulp'); const uglifyjs = require('gulp-uglify'); const { pipeline } = require('readable-stream'); diff --git a/web/console/helpers/Router.ts b/web/console/helpers/Router.ts index 98ecfdd1f..523286d54 100644 --- a/web/console/helpers/Router.ts +++ b/web/console/helpers/Router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * router for nmc * diff --git a/web/console/helpers/Validator.ts b/web/console/helpers/Validator.ts index e39e4f98c..880cd7ac2 100644 --- a/web/console/helpers/Validator.ts +++ b/web/console/helpers/Validator.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Validation } from 'src/modules/common'; import { ControllerFieldState, UseFormStateReturn } from 'react-hook-form'; diff --git a/web/console/helpers/appUtil.ts b/web/console/helpers/appUtil.ts index 0d6121a93..4eca54759 100644 --- a/web/console/helpers/appUtil.ts +++ b/web/console/helpers/appUtil.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ type RegionId = string | number; type ProjectId = string | number; diff --git a/web/console/helpers/cookieUtil.ts b/web/console/helpers/cookieUtil.ts index 5ff29f738..c5faedb5d 100644 --- a/web/console/helpers/cookieUtil.ts +++ b/web/console/helpers/cookieUtil.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 获取cookies当中的某个字段 * @params name: string cookies当中的字段值 diff --git a/web/console/helpers/dateFormatter.ts b/web/console/helpers/dateFormatter.ts index 87f680f38..32cad3b2e 100644 --- a/web/console/helpers/dateFormatter.ts +++ b/web/console/helpers/dateFormatter.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export function dateFormatter(date: Date, format: string) { const o = { /** diff --git a/web/console/helpers/dateUtil.ts b/web/console/helpers/dateUtil.ts index 0b524bd6f..f83ec7596 100644 --- a/web/console/helpers/dateUtil.ts +++ b/web/console/helpers/dateUtil.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 日期格式化函数 * @param date 日期 diff --git a/web/console/helpers/downloadCrt.ts b/web/console/helpers/downloadCrt.ts index d49bab466..c000375d5 100644 --- a/web/console/helpers/downloadCrt.ts +++ b/web/console/helpers/downloadCrt.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Base64 } from 'js-base64'; // export function downloadCrt(crtText, filename = 'cluster-ca.crt') { diff --git a/web/console/helpers/downloadCsv.ts b/web/console/helpers/downloadCsv.ts index 0b0844684..2adb115f3 100644 --- a/web/console/helpers/downloadCsv.ts +++ b/web/console/helpers/downloadCsv.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ // const tips = seajs.require('tips'); export function downloadCsv(rows, header, filename) { diff --git a/web/console/helpers/downloadText.ts b/web/console/helpers/downloadText.ts index 0173382b3..40b63c1d1 100644 --- a/web/console/helpers/downloadText.ts +++ b/web/console/helpers/downloadText.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t, Trans } from '@tencent/tea-app/lib/i18n'; const tips = seajs.require('tips'); diff --git a/web/console/helpers/format.ts b/web/console/helpers/format.ts index 547ebe74f..e07f67bf2 100644 --- a/web/console/helpers/format.ts +++ b/web/console/helpers/format.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ // 所有单位都换算成byte const memoryMap1000 = ['K', 'M', 'G', 'T', 'P', 'E'].reduce( (all, key, index) => Object.assign(all, { [key]: Math.pow(1000, index + 1) }), diff --git a/web/console/helpers/getScrollBarSize.ts b/web/console/helpers/getScrollBarSize.ts index 4d0575e67..dd30379b4 100644 --- a/web/console/helpers/getScrollBarSize.ts +++ b/web/console/helpers/getScrollBarSize.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ //计算滚动条宽度 export function getScrollBarSize(className?: string) { let inner = document.createElement('p'); diff --git a/web/console/helpers/index.ts b/web/console/helpers/index.ts index 09b077df6..4e44a2857 100644 --- a/web/console/helpers/index.ts +++ b/web/console/helpers/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { downloadCrt, downloadKubeconfig, getKubectlConfig } from './downloadCrt'; export { ResetStoreAction, generateResetableReducer } from './reduxStore'; export { isValidateSuccess, Validate, getReactHookFormStatusWithMessage } from './Validator'; diff --git a/web/console/helpers/k8sUnitUtil.ts b/web/console/helpers/k8sUnitUtil.ts index ed8af4109..8efd40762 100644 --- a/web/console/helpers/k8sUnitUtil.ts +++ b/web/console/helpers/k8sUnitUtil.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum K8SUNIT { m = 'm', unit = 'unit', diff --git a/web/console/helpers/reduceNetwork.ts b/web/console/helpers/reduceNetwork.ts index b0a5093df..739af635c 100644 --- a/web/console/helpers/reduceNetwork.ts +++ b/web/console/helpers/reduceNetwork.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import axios from 'axios'; import { OperationResult } from '@tencent/ff-redux'; import { RequestParams, ResourceInfo } from '../src/modules/common/models'; diff --git a/web/console/helpers/reduxStore.ts b/web/console/helpers/reduxStore.ts index 1013a2af2..0eae375eb 100644 --- a/web/console/helpers/reduxStore.ts +++ b/web/console/helpers/reduxStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 重置redux store,用于离开页面时清空状态 */ diff --git a/web/console/helpers/regionLint.ts b/web/console/helpers/regionLint.ts index 98693e9d2..f48349f9e 100644 --- a/web/console/helpers/regionLint.ts +++ b/web/console/helpers/regionLint.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ type RegionId = number | string; type LooseRegionId = number | string; interface Region { diff --git a/web/console/helpers/request.ts b/web/console/helpers/request.ts index 58a29cefa..a1bf4f6ee 100644 --- a/web/console/helpers/request.ts +++ b/web/console/helpers/request.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Method, reduceNetworkRequest } from '.'; import { RequestParams } from '../src/modules/common/models'; diff --git a/web/console/helpers/urlUtil.ts b/web/console/helpers/urlUtil.ts index 6ef25b4bd..e55d17c70 100644 --- a/web/console/helpers/urlUtil.ts +++ b/web/console/helpers/urlUtil.ts @@ -1,16 +1,34 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { remove, isEmpty } from '../src/modules/common/utils'; import { ResourceInfo } from '../src/modules/common'; import { resourceConfig } from '../config'; +import { isObject } from 'lodash'; -export function parseQueryString(str: string = '') { - let result = {}; +export function parseQueryString(str = '') { + const result = {}; str .replace(/^\?*/, '') .split('&') .forEach(item => { - let keyVal = item.split('='); + const keyVal = item.split('='); if (keyVal.length > 0) { - let key = decodeURIComponent(keyVal[0]); + const key = decodeURIComponent(keyVal[0]); result[key] = keyVal[1] ? decodeURIComponent(keyVal[1]) : ''; } }); @@ -18,8 +36,8 @@ export function parseQueryString(str: string = '') { } export function buildQueryString(obj: any = {}) { - let keys = remove(Object.keys(obj), value => value === ''); - let queryStr = keys.map(key => `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`).join('&'); + const keys = remove(Object.keys(obj), value => value === ''); + const queryStr = keys.map(key => `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`).join('&'); if (queryStr) { return '?' + queryStr; @@ -46,46 +64,25 @@ export const reduceK8sQueryString = ({ k8sQueryObj = {}, restfulPath = '' }: { - k8sQueryObj: any; + k8sQueryObj: Record>; restfulPath?: string; }) => { - let operator = '?'; - let queryString = ''; - if (!isEmpty(k8sQueryObj)) { - let queryKeys = Object.keys(k8sQueryObj); - queryKeys.forEach((queryKey, index) => { - if (index !== 0) { - queryString += '&'; - } - - // 这里去判断每种资源的query,eg:fieldSelector、limit等 - let specificQuery = k8sQueryObj[queryKey]; - - if (typeof specificQuery === 'object') { - // 这里是对于 query的字段里面,还有多种过滤条件,比如fieldSelector支持 involvedObject.name=*,involvedObject.kind=* - let specificKeys = Object.keys(specificQuery), - specificString = ''; - specificKeys.forEach((speKey, index) => { - if (index !== 0) { - specificString += ','; - } - specificString += speKey + '=' + specificQuery[speKey]; - }); - if (specificString) { - queryString += queryKey + '=' + specificString; - } - } else { - queryString += queryKey + '=' + k8sQueryObj[queryKey]; - } - }); - } - - /** 如果原本的url里面已经有 ? 了,则我们这里的query的内容,必须是拼接在后面,而不能直接加多一个 ? */ - if (restfulPath.includes('?')) { - operator = '&'; - } - - return queryString ? `${operator}${queryString}` : ''; + const queryString = Object.entries(k8sQueryObj) + .map(([key, value]) => { + // 也许value是object,即labelSelector 或者 fieldSelector + value = isObject(value) + ? Object.entries(value) + .map(([key, value]) => `${key}${value && '='}${value}`) + .join(',') + : value; + + return `${key}=${encodeURIComponent(`${value}`)}`; + }) + .join('&'); + + const preFix = restfulPath.includes('?') ? '&' : '?'; + + return queryString ? `${preFix}${queryString}` : ''; }; interface K8sRestfulPathOptions { @@ -114,7 +111,6 @@ interface K8sRestfulPathOptions { logAgentName?: string; meshId?: string; - } /** @@ -134,12 +130,12 @@ export const reduceK8sRestfulPath = (options: K8sRestfulPathOptions) => { extraResource = '', clusterId = '', meshId = '', - logAgentName = '', + logAgentName = '' } = options; namespace = namespace.replace(new RegExp(`^${clusterId}-`), ''); - let url: string = ''; - let isAddon = resourceInfo.requestType && resourceInfo.requestType.addon ? resourceInfo.requestType.addon : false; + let url = ''; + const isAddon = resourceInfo.requestType && resourceInfo.requestType.addon ? resourceInfo.requestType.addon : false; /** * addon 和 非 addon的资源,请求的url 不太一样 @@ -153,12 +149,12 @@ export const reduceK8sRestfulPath = (options: K8sRestfulPathOptions) => { */ if (isAddon) { // 兼容新旧日志组件 - let baseInfo: ResourceInfo = resourceConfig()[logAgentName ? 'logagent' : 'cluster']; - let baseValue = logAgentName || clusterId; + const baseInfo: ResourceInfo = resourceConfig()[logAgentName ? 'logagent' : 'cluster']; + const baseValue = logAgentName || clusterId; url = `/${baseInfo.basicEntry}/${baseInfo.group}/${baseInfo.version}/${baseInfo.requestType['list']}/${baseValue}/${resourceInfo.requestType['list']}`; if (extraResource || resourceInfo['namespaces'] || specificName) { - let queryArr: string[] = []; + const queryArr: string[] = []; resourceInfo.namespaces && namespace && queryArr.push(`namespace=${namespace}`); specificName && queryArr.push(`name=${specificName}`); extraResource && queryArr.push(`action=${extraResource}`); diff --git a/web/console/helpers/version.ts b/web/console/helpers/version.ts index 3f6306fe9..3416d4d46 100644 --- a/web/console/helpers/version.ts +++ b/web/console/helpers/version.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as compareVersions from 'compare-versions'; export const compareVersion = (firstVersion: string, secondVersion: string) => { diff --git a/web/console/i18n.ts b/web/console/i18n.ts index 9842acc89..99f3e1247 100644 --- a/web/console/i18n.ts +++ b/web/console/i18n.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ // 导入依赖 import { i18n } from '@tea/app'; // 导入词条 diff --git a/web/console/i18n/translation/en.js b/web/console/i18n/translation/en.js index 67ce2110b..0de630176 100644 --- a/web/console/i18n/translation/en.js +++ b/web/console/i18n/translation/en.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * @type {import('@tea/app').I18NTranslation} */ diff --git a/web/console/i18n/translation/jp.js b/web/console/i18n/translation/jp.js index 67ce2110b..0de630176 100644 --- a/web/console/i18n/translation/jp.js +++ b/web/console/i18n/translation/jp.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * @type {import('@tea/app').I18NTranslation} */ diff --git a/web/console/i18n/translation/ko.js b/web/console/i18n/translation/ko.js index 67ce2110b..0de630176 100644 --- a/web/console/i18n/translation/ko.js +++ b/web/console/i18n/translation/ko.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * @type {import('@tea/app').I18NTranslation} */ diff --git a/web/console/i18n/translation/zh.js b/web/console/i18n/translation/zh.js index 67ce2110b..0de630176 100644 --- a/web/console/i18n/translation/zh.js +++ b/web/console/i18n/translation/zh.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * @type {import('@tea/app').I18NTranslation} */ diff --git a/web/console/index.project.tsx b/web/console/index.project.tsx index 77942d04a..8ac3c4d65 100644 --- a/web/console/index.project.tsx +++ b/web/console/index.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import './i18n'; import ReactDOM from 'react-dom'; import * as React from 'react'; diff --git a/web/console/index.tke.tsx b/web/console/index.tke.tsx index 12f8ae7cd..4adbffe7e 100644 --- a/web/console/index.tke.tsx +++ b/web/console/index.tke.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import './i18n'; import * as React from 'react'; import { Entry, insertCSS } from '@tencent/ff-redux'; diff --git a/web/console/lib/ff-component/index.ts b/web/console/lib/ff-component/index.ts index 8420b1093..a0d03e4f1 100644 --- a/web/console/lib/ff-component/index.ts +++ b/web/console/lib/ff-component/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './src'; diff --git a/web/console/lib/ff-component/src/cam/Cam.tsx b/web/console/lib/ff-component/src/cam/Cam.tsx index 04fa4aa6b..a7fd1d294 100644 --- a/web/console/lib/ff-component/src/cam/Cam.tsx +++ b/web/console/lib/ff-component/src/cam/Cam.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/console/lib/ff-component/src/cam/index.ts b/web/console/lib/ff-component/src/cam/index.ts index a4d0f0f61..39e441d2a 100644 --- a/web/console/lib/ff-component/src/cam/index.ts +++ b/web/console/lib/ff-component/src/cam/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { CamBox, CamTips, CamPanel, isCamRefused } from './Cam'; diff --git a/web/console/lib/ff-component/src/formpanel/Checkbox.tsx b/web/console/lib/ff-component/src/formpanel/Checkbox.tsx index 845d584a7..5e008103e 100644 --- a/web/console/lib/ff-component/src/formpanel/Checkbox.tsx +++ b/web/console/lib/ff-component/src/formpanel/Checkbox.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Checkbox, CheckboxProps } from '@tencent/tea-component'; diff --git a/web/console/lib/ff-component/src/formpanel/Checkboxs.tsx b/web/console/lib/ff-component/src/formpanel/Checkboxs.tsx index 20345cfe4..4471bd8fb 100644 --- a/web/console/lib/ff-component/src/formpanel/Checkboxs.tsx +++ b/web/console/lib/ff-component/src/formpanel/Checkboxs.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FetchState, FFListAction, FFListModel } from '@tencent/ff-redux'; diff --git a/web/console/lib/ff-component/src/formpanel/Footer.tsx b/web/console/lib/ff-component/src/formpanel/Footer.tsx index 3ab2fb10e..c18e879f1 100644 --- a/web/console/lib/ff-component/src/formpanel/Footer.tsx +++ b/web/console/lib/ff-component/src/formpanel/Footer.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { insertCSS } from '@tencent/ff-redux'; diff --git a/web/console/lib/ff-component/src/formpanel/FormPanel.tsx b/web/console/lib/ff-component/src/formpanel/FormPanel.tsx index bec68e883..70a230420 100644 --- a/web/console/lib/ff-component/src/formpanel/FormPanel.tsx +++ b/web/console/lib/ff-component/src/formpanel/FormPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/lib/ff-component/src/formpanel/HelpText.tsx b/web/console/lib/ff-component/src/formpanel/HelpText.tsx index 8db4751c5..76858c6c3 100644 --- a/web/console/lib/ff-component/src/formpanel/HelpText.tsx +++ b/web/console/lib/ff-component/src/formpanel/HelpText.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Text } from '@tencent/tea-component'; diff --git a/web/console/lib/ff-component/src/formpanel/InlineText.tsx b/web/console/lib/ff-component/src/formpanel/InlineText.tsx index 7faf9720f..6afdd6cb5 100644 --- a/web/console/lib/ff-component/src/formpanel/InlineText.tsx +++ b/web/console/lib/ff-component/src/formpanel/InlineText.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Text } from '@tencent/tea-component'; diff --git a/web/console/lib/ff-component/src/formpanel/Input.tsx b/web/console/lib/ff-component/src/formpanel/Input.tsx index b3aa3c10e..aaab6cc9c 100644 --- a/web/console/lib/ff-component/src/formpanel/Input.tsx +++ b/web/console/lib/ff-component/src/formpanel/Input.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/lib/ff-component/src/formpanel/InputNumber.tsx b/web/console/lib/ff-component/src/formpanel/InputNumber.tsx index 7f5df687f..7ec1b579a 100644 --- a/web/console/lib/ff-component/src/formpanel/InputNumber.tsx +++ b/web/console/lib/ff-component/src/formpanel/InputNumber.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/lib/ff-component/src/formpanel/Item.tsx b/web/console/lib/ff-component/src/formpanel/Item.tsx index 110385df7..0977952de 100644 --- a/web/console/lib/ff-component/src/formpanel/Item.tsx +++ b/web/console/lib/ff-component/src/formpanel/Item.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { insertCSS } from '@tencent/ff-redux'; diff --git a/web/console/lib/ff-component/src/formpanel/KeyValuePanel.tsx b/web/console/lib/ff-component/src/formpanel/KeyValuePanel.tsx index f54151f84..61644eb50 100644 --- a/web/console/lib/ff-component/src/formpanel/KeyValuePanel.tsx +++ b/web/console/lib/ff-component/src/formpanel/KeyValuePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/lib/ff-component/src/formpanel/Radios.tsx b/web/console/lib/ff-component/src/formpanel/Radios.tsx index 01bdd1ba4..59b420cc1 100644 --- a/web/console/lib/ff-component/src/formpanel/Radios.tsx +++ b/web/console/lib/ff-component/src/formpanel/Radios.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FetchState, FFListAction, FFListModel } from '@tencent/ff-redux'; diff --git a/web/console/lib/ff-component/src/formpanel/Segment.tsx b/web/console/lib/ff-component/src/formpanel/Segment.tsx index 32c8675e8..fae332a44 100644 --- a/web/console/lib/ff-component/src/formpanel/Segment.tsx +++ b/web/console/lib/ff-component/src/formpanel/Segment.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FetchState, FFListAction, FFListModel, insertCSS } from '@tencent/ff-redux'; diff --git a/web/console/lib/ff-component/src/formpanel/Select.tsx b/web/console/lib/ff-component/src/formpanel/Select.tsx index a9e11044e..cb88c1265 100644 --- a/web/console/lib/ff-component/src/formpanel/Select.tsx +++ b/web/console/lib/ff-component/src/formpanel/Select.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FetchState, FFListAction, FFListModel } from '@tencent/ff-redux'; diff --git a/web/console/lib/ff-component/src/formpanel/Switch.tsx b/web/console/lib/ff-component/src/formpanel/Switch.tsx index d6a94f899..cbf5157be 100644 --- a/web/console/lib/ff-component/src/formpanel/Switch.tsx +++ b/web/console/lib/ff-component/src/formpanel/Switch.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Switch, SwitchProps } from '@tencent/tea-component'; diff --git a/web/console/lib/ff-component/src/formpanel/Text.tsx b/web/console/lib/ff-component/src/formpanel/Text.tsx index f4b070f7b..71440fa25 100644 --- a/web/console/lib/ff-component/src/formpanel/Text.tsx +++ b/web/console/lib/ff-component/src/formpanel/Text.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FormText, Icon } from '@tencent/tea-component'; diff --git a/web/console/lib/ff-component/src/formpanel/TransferTable.tsx b/web/console/lib/ff-component/src/formpanel/TransferTable.tsx index 52695fdca..dd744934c 100644 --- a/web/console/lib/ff-component/src/formpanel/TransferTable.tsx +++ b/web/console/lib/ff-component/src/formpanel/TransferTable.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FetcherState, FetchState, FFListAction, FFListModel, RecordSet } from '@tencent/ff-redux'; diff --git a/web/console/lib/ff-component/src/formpanel/Validatable.tsx b/web/console/lib/ff-component/src/formpanel/Validatable.tsx index f070ab281..217c3b33c 100644 --- a/web/console/lib/ff-component/src/formpanel/Validatable.tsx +++ b/web/console/lib/ff-component/src/formpanel/Validatable.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Placement } from 'popper.js'; import * as React from 'react'; diff --git a/web/console/lib/ff-component/src/formpanel/index.ts b/web/console/lib/ff-component/src/formpanel/index.ts index a7023dbad..16387a80a 100644 --- a/web/console/lib/ff-component/src/formpanel/index.ts +++ b/web/console/lib/ff-component/src/formpanel/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './Checkbox'; export * from './Checkboxs'; export * from './Footer'; diff --git a/web/console/lib/ff-component/src/index.ts b/web/console/lib/ff-component/src/index.ts index fdb9cb61d..dacdf5e98 100644 --- a/web/console/lib/ff-component/src/index.ts +++ b/web/console/lib/ff-component/src/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './formpanel'; export * from './tablepanel'; export * from './cam'; diff --git a/web/console/lib/ff-component/src/lib/classname.ts b/web/console/lib/ff-component/src/lib/classname.ts index 290bae2a8..394a66c97 100644 --- a/web/console/lib/ff-component/src/lib/classname.ts +++ b/web/console/lib/ff-component/src/lib/classname.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ let hasOwn = {}.hasOwnProperty; export function classNames(...args) { diff --git a/web/console/lib/ff-component/src/lib/index.ts b/web/console/lib/ff-component/src/lib/index.ts index 683888032..fa8a52285 100644 --- a/web/console/lib/ff-component/src/lib/index.ts +++ b/web/console/lib/ff-component/src/lib/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './classname'; diff --git a/web/console/lib/ff-component/src/tablepanel/TablePanel.tsx b/web/console/lib/ff-component/src/tablepanel/TablePanel.tsx index 76657231a..11fa77a69 100644 --- a/web/console/lib/ff-component/src/tablepanel/TablePanel.tsx +++ b/web/console/lib/ff-component/src/tablepanel/TablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FetchState, FFListAction, FFListModel, uuid, insertCSS } from '@tencent/ff-redux'; diff --git a/web/console/lib/ff-component/src/tablepanel/TagSearch.tsx b/web/console/lib/ff-component/src/tablepanel/TagSearch.tsx index d06b180ba..19189f5fa 100644 --- a/web/console/lib/ff-component/src/tablepanel/TagSearch.tsx +++ b/web/console/lib/ff-component/src/tablepanel/TagSearch.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; import { TagSearchBox, TagSearchBoxProps } from 'tea-component'; diff --git a/web/console/lib/ff-component/src/tablepanel/index.ts b/web/console/lib/ff-component/src/tablepanel/index.ts index 1da35a4ba..bc02d886a 100644 --- a/web/console/lib/ff-component/src/tablepanel/index.ts +++ b/web/console/lib/ff-component/src/tablepanel/index.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { TablePanel, TablePanelColumnProps } from './TablePanel'; export { TablePanelTagSearchBox, TablePanelTagSearchProps } from './TagSearch'; diff --git a/web/console/lib/ff-redux/index.ts b/web/console/lib/ff-redux/index.ts index 3589919e0..70407ec0f 100644 --- a/web/console/lib/ff-redux/index.ts +++ b/web/console/lib/ff-redux/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './src'; export * from './libs/qcloud-lib'; export * from './libs/qcloud-redux-fetcher'; diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/decorators/OnOuterClick.ts b/web/console/lib/ff-redux/libs/qcloud-lib/decorators/OnOuterClick.ts index 85273d0b2..5149b33ed 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/decorators/OnOuterClick.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/decorators/OnOuterClick.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as ReactDom from 'react-dom'; import { appendFunction } from '../helpers/appendFunction'; diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/decorators/OnResize.ts b/web/console/lib/ff-redux/libs/qcloud-lib/decorators/OnResize.ts index 3bfb62656..44084bcbb 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/decorators/OnResize.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/decorators/OnResize.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { appendFunction } from '../helpers/appendFunction'; diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/addComma.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/addComma.ts index 34899d49a..93c0515c6 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/addComma.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/addComma.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 位数字添加逗号分隔 * diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/appendFunction.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/appendFunction.ts index f1f8b1a85..b446d6687 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/appendFunction.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/appendFunction.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 在指定函数后面追加一个函数 */ diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/bindActionCreators.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/bindActionCreators.ts index 2b347440d..ddcf1df8a 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/bindActionCreators.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/bindActionCreators.ts @@ -1,4 +1,21 @@ -/** +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +/** * like redux.bindActionCreators but do it recurisivly * */ export function bindActionCreators(actions: T, dispatch: Redux.Dispatch): T { diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/collectionPaging.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/collectionPaging.ts index dbcfa0ec5..60f9c0607 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/collectionPaging.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/collectionPaging.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { PagingQuery } from '../../../'; // 集合分页 diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/collectionWhere.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/collectionWhere.ts index 4e20323ef..f486f49db 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/collectionWhere.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/collectionWhere.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 集合筛选 * */ diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/createConstant.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/createConstant.ts index 102575f90..ed3893feb 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/createConstant.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/createConstant.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 从枚举类型创建 key-value 一样的常量 */ export function createConstant(enumType: T): T { let constant = {}; diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/createStore.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/createStore.ts index c684419f9..58e9a9ba4 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/createStore.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/createStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { applyMiddleware, createStore as createReduxStore } from 'redux'; import { createLogger } from 'redux-logger'; import thunk from 'redux-thunk'; diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/deepClone.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/deepClone.ts index b08f8db91..c99b802a3 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/deepClone.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/deepClone.ts @@ -1,4 +1,21 @@ -/** +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +/** * 深度拷贝值 */ export function deepClone(source: T): T { diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/findByCondition.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/findByCondition.ts index 94d6b9007..eff564af8 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/findByCondition.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/findByCondition.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 查找集合中满足给定条件的记录 */ diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/findById.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/findById.ts index b0ca36a12..e1f5ec941 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/findById.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/findById.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '../types/Identifiable'; export function findById(collection: T[], id: string | number): T { diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateDelta.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateDelta.ts index e07e0534b..d334cba7d 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateDelta.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateDelta.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /**Parses string formatted as YYYY-MM-DD to a Date object. * If the supplied string does not match the format, an * invalid Date (value NaN) is returned. diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateStride.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateStride.ts index 1ac21fb3e..84c8293b9 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateStride.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateStride.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { getDateDelta } from './getDateDelta'; function rangeLength(from: string, to: string) { diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateString.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateString.ts index 859c5883c..11b858711 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateString.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateString.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ function pad(num: number) { let r = String(num); if (r.length === 1) { diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateUTC.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateUTC.ts index 2758f2090..437c8e21a 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateUTC.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getDateUTC.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ function parseDate(dateStr) { if (/^(\d{4})[-\s\.,\/]*(\d+)[-\s\.,\/]*(\d+)(?:\s*(\d+)\:(\d+):(\d+))?$/.test(dateStr)) { let year = +RegExp.$1; diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getOffsetDate.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getOffsetDate.ts index 84f5a862f..0458da97f 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getOffsetDate.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/getOffsetDate.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export function getOffsetDate(date: Date, day: number) { let newDate = new Date(date.valueOf()); newDate.setDate(date.getDate() + day); diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/hashObject.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/hashObject.ts index 2797b927b..cad885b31 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/hashObject.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/hashObject.ts @@ -1,4 +1,21 @@ -import { hashString } from './hashString'; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +import { hashString } from './hashString'; export function hashObject(obj: any) { if (obj.prototype) { diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/hashString.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/hashString.ts index 92fd378b8..77ed25955 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/hashString.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/hashString.ts @@ -1,4 +1,21 @@ -export function hashString(str: string) { +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +export function hashString(str: string) { let hash = 0, i, chr, diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/insertCSS.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/insertCSS.ts index bcf463c7a..0a8e26627 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/insertCSS.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/insertCSS.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const prefix = 'dynamic-inserted-css-'; /** diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/isComponentOfType.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/isComponentOfType.ts index fdd0d06da..093f2fafd 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/isComponentOfType.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/isComponentOfType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; export type ComponentType = diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/isValidDomain.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/isValidDomain.ts index c36fb8aa3..1afff6a83 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/isValidDomain.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/isValidDomain.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export function isValidDomain(domain: string) { // regex from https://github.com/johnotander/domain-regex/blob/master/index.js return /^((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}$/.test(domain); diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/isValidIPAddress.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/isValidIPAddress.ts index ff37aa9f9..bbece54cb 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/isValidIPAddress.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/isValidIPAddress.ts @@ -1,4 +1,21 @@ -/** +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +/** * 检查一个 IP 地址是否为合法的 IP 地址 * */ export function isValidIPAddress(ipAddress: string) { diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/objectExtend.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/objectExtend.ts index 2fa4fa1c3..d25ca9ecf 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/objectExtend.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/objectExtend.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export function extend(target: T, source: S): T & S; export function extend(target: T, source1: S1, source2: S2): T & S1 & S2; export function extend(target: T, source1: S1, source2: S2): T & S1 & S2; diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/objectFetch.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/objectFetch.ts index 039266986..4e32289fd 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/objectFetch.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/objectFetch.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 从 source 抓取 target 中定义的值 * diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/objectMerge.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/objectMerge.ts index 84612e312..37f47c058 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/objectMerge.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/objectMerge.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const deepExtend = require('deep-extend'); export function merge(target: T, source: S): T & S; diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/otherMember.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/otherMember.ts index a30214409..e4a7cad7b 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/otherMember.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/otherMember.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 查找一个集合中不再排除集合里的部分 * diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/pageList.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/pageList.ts index 0989498ce..b1634b40a 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/pageList.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/pageList.ts @@ -1,4 +1,21 @@ -import { PagingQuery } from '../../..'; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +import { PagingQuery } from '../../..'; export function pageList(list: T[], paging: PagingQuery): T[] { const start = (paging.pageIndex - 1) * paging.pageSize; diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/reduceToPayload.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/reduceToPayload.ts index 68f25b37c..655b79fa2 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/reduceToPayload.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/reduceToPayload.ts @@ -1,4 +1,21 @@ -import { ReduxAction } from '../../../'; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +import { ReduxAction } from '../../../'; export function reduceToPayload(actionType: string | number, initialState: T) { return (state: T = initialState, action: ReduxAction) => { diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/searchList.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/searchList.ts index 6ecc5832d..2d0b1ba65 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/searchList.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/searchList.ts @@ -1,4 +1,21 @@ -export function searchList(list: T[], search: string, ...fields: string[]): T[] { +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +export function searchList(list: T[], search: string, ...fields: string[]): T[] { if (!search) { return list; } diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/serialReducer.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/serialReducer.ts index 07bf59f02..452107f07 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/serialReducer.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/serialReducer.ts @@ -1,4 +1,21 @@ -export type Reducer = (state: TState, action: TAction) => TState; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +export type Reducer = (state: TState, action: TAction) => TState; export function serialReducer( first: Reducer, diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/uuid.ts b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/uuid.ts index ba121f7d9..27f0a4d24 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/helpers/uuid.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/helpers/uuid.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ let index = 10000; const timeLead = 1e12; export function uuid() { diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/index.ts b/web/console/lib/ff-redux/libs/qcloud-lib/index.ts index f66b5f612..2e5c27101 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/index.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/index.ts @@ -1,4 +1,21 @@ -// export all helpers +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +// export all helpers // export * from "./helpers/addComma"; export * from './helpers/appendFunction'; export * from './helpers/bindActionCreators'; diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/types/BaseReactProps.ts b/web/console/lib/ff-redux/libs/qcloud-lib/types/BaseReactProps.ts index fd16ac51e..4b7bba920 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/types/BaseReactProps.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/types/BaseReactProps.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; /** diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/types/DateQuery.ts b/web/console/lib/ff-redux/libs/qcloud-lib/types/DateQuery.ts index 310ac1a28..5eb6997e5 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/types/DateQuery.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/types/DateQuery.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface DateQuery { /** * 查询的起始日期 diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/types/Identifiable.ts b/web/console/lib/ff-redux/libs/qcloud-lib/types/Identifiable.ts index 7944abaa6..96cc19101 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/types/Identifiable.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/types/Identifiable.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 要求主键的数据,一般用于数组 */ diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/types/PagingQuery.ts b/web/console/lib/ff-redux/libs/qcloud-lib/types/PagingQuery.ts index 36cc0f9eb..5c907bdcf 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/types/PagingQuery.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/types/PagingQuery.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 表示一次分页请求 */ export interface PagingQuery { /** 请求的页码,从 1 开始索引 */ diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/types/RecordSet.ts b/web/console/lib/ff-redux/libs/qcloud-lib/types/RecordSet.ts index 7b4d7ae11..b9d18fd82 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/types/RecordSet.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/types/RecordSet.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface RecordSet { data?: ExtendParamsT; recordCount: number; diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/types/ReduxAction.ts b/web/console/lib/ff-redux/libs/qcloud-lib/types/ReduxAction.ts index fed63fd6f..e96fc33af 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/types/ReduxAction.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/types/ReduxAction.ts @@ -1,4 +1,21 @@ -/** +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +/** * FSA (https://github.com/acdlite/flux-standard-action) with generic type * */ export interface ReduxAction { diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/types/ReduxConnectedProps.ts b/web/console/lib/ff-redux/libs/qcloud-lib/types/ReduxConnectedProps.ts index edf55fbf4..f3dd270d6 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/types/ReduxConnectedProps.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/types/ReduxConnectedProps.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export declare interface ReduxConnectedProps { dispatch?: Redux.Dispatch; } diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/types/SortQuery.ts b/web/console/lib/ff-redux/libs/qcloud-lib/types/SortQuery.ts index 0ef71be08..423e4bfed 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/types/SortQuery.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/types/SortQuery.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface SortQuery { by?: string; desc?: boolean; diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/utils/Children.ts b/web/console/lib/ff-redux/libs/qcloud-lib/utils/Children.ts index 2f6f997d9..9692a3600 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/utils/Children.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/utils/Children.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { isComponentOfType } from '../helpers/isComponentOfType'; diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/utils/Selection.ts b/web/console/lib/ff-redux/libs/qcloud-lib/utils/Selection.ts index d422bc8ad..b459ae6c8 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/utils/Selection.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/utils/Selection.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * @fileOverview * diff --git a/web/console/lib/ff-redux/libs/qcloud-lib/utils/Transition.ts b/web/console/lib/ff-redux/libs/qcloud-lib/utils/Transition.ts index 69d4984af..b671ac8ec 100644 --- a/web/console/lib/ff-redux/libs/qcloud-lib/utils/Transition.ts +++ b/web/console/lib/ff-redux/libs/qcloud-lib/utils/Transition.ts @@ -1,4 +1,21 @@ -import { insertCSS } from '../helpers/insertCSS'; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +import { insertCSS } from '../helpers/insertCSS'; import { hashObject } from '../helpers/hashObject'; /** diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/appUtil.d.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/appUtil.d.ts index d4ec0cf1d..efc39ec19 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/appUtil.d.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/appUtil.d.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ declare namespace nmc { type RegionId = string | number; type ProjectId = string | number; diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/constants.d.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/constants.d.ts index 25596a52b..87170407a 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/constants.d.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/constants.d.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ declare namespace nmc { interface Constants { /** RegionID => RegionKey */ diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/eventtarget.d.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/eventtarget.d.ts index b910f5c81..662001ca6 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/eventtarget.d.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/eventtarget.d.ts @@ -1,4 +1,21 @@ -interface EventTarget { +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +interface EventTarget { value?: any; checked?: boolean; } diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/manager.d.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/manager.d.ts index 53cb3a44b..41e4bc582 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/manager.d.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/manager.d.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ declare namespace nmc { // region-id to region-name interface RegionMap { diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/net.d.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/net.d.ts index 9065712d1..e0f2c2e78 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/net.d.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/net.d.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /// /// declare namespace nmc { diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/nmc.d.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/nmc.d.ts index 0a5eda0e5..fae53640c 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/nmc.d.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/nmc.d.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /// /// /// diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/qccomponent.d.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/qccomponent.d.ts index 16b6c6940..478ef7964 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/qccomponent.d.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/qccomponent.d.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ declare namespace nmc { export interface BeeInstance { $set(props: any): void; diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/router.d.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/router.d.ts index 488e12dd2..2e2293458 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/router.d.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/router.d.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ declare namespace nmc { interface Router { /** diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/seajs.d.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/seajs.d.ts index f11755559..95993e420 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/seajs.d.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/seajs.d.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /// interface DefineInterface { diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/tips.d.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/tips.d.ts index 5173c4fa6..f3960c702 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/tips.d.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/ambient/tips.d.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ declare namespace nmc { interface Tips { /** diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/index.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/index.ts index da1429fb3..de0a9b6f8 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/index.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/index.ts @@ -1,4 +1,21 @@ -export * from './utils/CloudAPI'; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +export * from './utils/CloudAPI'; export * from './utils/CVM'; export * from './utils/Entry'; export * from './utils/Page'; diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/CVM.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/CVM.ts index da095c8e5..a12d3676d 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/CVM.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/CVM.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface Subnet { [index: number]: string; } diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/CloudAPI.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/CloudAPI.ts index 569fa14e6..74bb7af4d 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/CloudAPI.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/CloudAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { OperationResult } from '../../../'; import { extend } from '../../qcloud-lib'; diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Entry.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Entry.ts index 005006641..e7e2a7d3e 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Entry.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Entry.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Page } from './Page'; /* eslint-disable */ diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/LoadBalance.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/LoadBalance.ts index 900543657..a6abcc0ec 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/LoadBalance.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/LoadBalance.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface VipInfoList { vip: string; ispId: number; diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Page.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Page.ts index 5c0511b0c..518667961 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Page.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Page.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as ReactDom from 'react-dom'; diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Project.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Project.ts index 9e802bdf5..3340ca3a7 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Project.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const manager = seajs.require('manager'); const appUtil = seajs.require('appUtil'); diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Region.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Region.ts index 47dcf64bf..d1aca91f1 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Region.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Region.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { findByCondition } from '../../qcloud-lib'; const manager = seajs.require('manager'); diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Router.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Router.ts index 1ed59b592..5eef8718d 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Router.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; /** * router for nmc diff --git a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Whitelist.ts b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Whitelist.ts index 08ab6db6f..534f4471e 100644 --- a/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Whitelist.ts +++ b/web/console/lib/ff-redux/libs/qcloud-nmc/utils/Whitelist.ts @@ -1,4 +1,21 @@ -const manager = seajs.require('manager'); +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +const manager = seajs.require('manager'); type Callback = (data: T) => any; diff --git a/web/console/lib/ff-redux/libs/qcloud-redux-fetcher/index.ts b/web/console/lib/ff-redux/libs/qcloud-redux-fetcher/index.ts index 6d753e864..02ed26983 100644 --- a/web/console/lib/ff-redux/libs/qcloud-redux-fetcher/index.ts +++ b/web/console/lib/ff-redux/libs/qcloud-redux-fetcher/index.ts @@ -1 +1,18 @@ -export * from './lib/Fetcher'; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +export * from './lib/Fetcher'; diff --git a/web/console/lib/ff-redux/libs/qcloud-redux-fetcher/lib/Fetcher.ts b/web/console/lib/ff-redux/libs/qcloud-redux-fetcher/lib/Fetcher.ts index a5db21e35..4c8b3e473 100644 --- a/web/console/lib/ff-redux/libs/qcloud-redux-fetcher/lib/Fetcher.ts +++ b/web/console/lib/ff-redux/libs/qcloud-redux-fetcher/lib/Fetcher.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Dispatch } from 'redux'; import { ReduxAction } from '../../../'; diff --git a/web/console/lib/ff-redux/libs/qcloud-redux-query/index.ts b/web/console/lib/ff-redux/libs/qcloud-redux-query/index.ts index 1c45417b6..f50b06ac3 100644 --- a/web/console/lib/ff-redux/libs/qcloud-redux-query/index.ts +++ b/web/console/lib/ff-redux/libs/qcloud-redux-query/index.ts @@ -1 +1,18 @@ -export * from './lib/Query'; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +export * from './lib/Query'; diff --git a/web/console/lib/ff-redux/libs/qcloud-redux-query/lib/Query.ts b/web/console/lib/ff-redux/libs/qcloud-redux-query/lib/Query.ts index 2fcf2c501..ca30f92c4 100644 --- a/web/console/lib/ff-redux/libs/qcloud-redux-query/lib/Query.ts +++ b/web/console/lib/ff-redux/libs/qcloud-redux-query/lib/Query.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Dispatch } from 'redux'; import { extend, merge } from '../../qcloud-lib'; import { QueryState, PagingQuery, ReduxAction, ActionTypesEnum } from '../../../src/base'; diff --git a/web/console/lib/ff-redux/libs/qcloud-redux-workflow/index.ts b/web/console/lib/ff-redux/libs/qcloud-redux-workflow/index.ts index fd4e95479..ebc5dff13 100644 --- a/web/console/lib/ff-redux/libs/qcloud-redux-workflow/index.ts +++ b/web/console/lib/ff-redux/libs/qcloud-redux-workflow/index.ts @@ -1 +1,18 @@ -export * from './lib/Workflow'; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +export * from './lib/Workflow'; diff --git a/web/console/lib/ff-redux/libs/qcloud-redux-workflow/lib/Workflow.ts b/web/console/lib/ff-redux/libs/qcloud-redux-workflow/lib/Workflow.ts index 6ffa20dee..874f67a72 100644 --- a/web/console/lib/ff-redux/libs/qcloud-redux-workflow/lib/Workflow.ts +++ b/web/console/lib/ff-redux/libs/qcloud-redux-workflow/lib/Workflow.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * @author techirdliu@tencent.com * diff --git a/web/console/lib/ff-redux/src/base/Action.ts b/web/console/lib/ff-redux/src/base/Action.ts index 0769e5a26..bce009349 100644 --- a/web/console/lib/ff-redux/src/base/Action.ts +++ b/web/console/lib/ff-redux/src/base/Action.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Dispatch } from 'redux'; import { diff --git a/web/console/lib/ff-redux/src/base/Model/ActionTypesEnum.ts b/web/console/lib/ff-redux/src/base/Model/ActionTypesEnum.ts index f78141d4d..de3b0f3c6 100644 --- a/web/console/lib/ff-redux/src/base/Model/ActionTypesEnum.ts +++ b/web/console/lib/ff-redux/src/base/Model/ActionTypesEnum.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum ActionTypesEnum { ChangeKeyword = 'ChangeKeyword', PerformSearch = 'PerformSearch', diff --git a/web/console/lib/ff-redux/src/base/Model/DataType.ts b/web/console/lib/ff-redux/src/base/Model/DataType.ts index 1985b5852..426ac22f1 100644 --- a/web/console/lib/ff-redux/src/base/Model/DataType.ts +++ b/web/console/lib/ff-redux/src/base/Model/DataType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum DataType { List = 'List', Object = 'Object' diff --git a/web/console/lib/ff-redux/src/base/Model/FetchOptions.ts b/web/console/lib/ff-redux/src/base/Model/FetchOptions.ts index 0d9a61f99..4986030db 100644 --- a/web/console/lib/ff-redux/src/base/Model/FetchOptions.ts +++ b/web/console/lib/ff-redux/src/base/Model/FetchOptions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface FetchOptions { /** * 是否要求强制无缓存拉取 diff --git a/web/console/lib/ff-redux/src/base/Model/FetchState.ts b/web/console/lib/ff-redux/src/base/Model/FetchState.ts index 0fb4f7a48..bb1349fbc 100644 --- a/web/console/lib/ff-redux/src/base/Model/FetchState.ts +++ b/web/console/lib/ff-redux/src/base/Model/FetchState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum FetchState { /** indicates the data is up to date and ready to use */ Ready = 'Ready', diff --git a/web/console/lib/ff-redux/src/base/Model/FetcherPayload.ts b/web/console/lib/ff-redux/src/base/Model/FetcherPayload.ts index 86230f0fd..eafb0b799 100644 --- a/web/console/lib/ff-redux/src/base/Model/FetcherPayload.ts +++ b/web/console/lib/ff-redux/src/base/Model/FetcherPayload.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherTrigger } from './FetcherTrigger'; import { ReduxAction } from './ReduxAction'; diff --git a/web/console/lib/ff-redux/src/base/Model/FetcherState.ts b/web/console/lib/ff-redux/src/base/Model/FetcherState.ts index 9781b605e..6bc808c06 100644 --- a/web/console/lib/ff-redux/src/base/Model/FetcherState.ts +++ b/web/console/lib/ff-redux/src/base/Model/FetcherState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetchState } from './FetchState'; import { RecordSet } from './RecordSet'; diff --git a/web/console/lib/ff-redux/src/base/Model/FetcherTrigger.ts b/web/console/lib/ff-redux/src/base/Model/FetcherTrigger.ts index 54600dbdb..c866b37f9 100644 --- a/web/console/lib/ff-redux/src/base/Model/FetcherTrigger.ts +++ b/web/console/lib/ff-redux/src/base/Model/FetcherTrigger.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum FetcherTrigger { /** * trigger a load operation diff --git a/web/console/lib/ff-redux/src/base/Model/Identifiable.ts b/web/console/lib/ff-redux/src/base/Model/Identifiable.ts index 7944abaa6..96cc19101 100644 --- a/web/console/lib/ff-redux/src/base/Model/Identifiable.ts +++ b/web/console/lib/ff-redux/src/base/Model/Identifiable.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 要求主键的数据,一般用于数组 */ diff --git a/web/console/lib/ff-redux/src/base/Model/PagingQuery.ts b/web/console/lib/ff-redux/src/base/Model/PagingQuery.ts index 276ee682b..c5352053b 100644 --- a/web/console/lib/ff-redux/src/base/Model/PagingQuery.ts +++ b/web/console/lib/ff-redux/src/base/Model/PagingQuery.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 表示一次分页请求 */ export interface PagingQuery { /** 请求的页码,从 1 开始索引 */ diff --git a/web/console/lib/ff-redux/src/base/Model/QueryState.ts b/web/console/lib/ff-redux/src/base/Model/QueryState.ts index 06b84521a..72175307f 100644 --- a/web/console/lib/ff-redux/src/base/Model/QueryState.ts +++ b/web/console/lib/ff-redux/src/base/Model/QueryState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { PagingQuery } from './PagingQuery'; import { SortQuery } from './SortQuery'; diff --git a/web/console/lib/ff-redux/src/base/Model/RecordSet.ts b/web/console/lib/ff-redux/src/base/Model/RecordSet.ts index 2a0cdac2c..48ff51409 100644 --- a/web/console/lib/ff-redux/src/base/Model/RecordSet.ts +++ b/web/console/lib/ff-redux/src/base/Model/RecordSet.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface RecordSet { data?: ExtendParamsT; recordCount: number; diff --git a/web/console/lib/ff-redux/src/base/Model/ReduxAction.ts b/web/console/lib/ff-redux/src/base/Model/ReduxAction.ts index fed63fd6f..e96fc33af 100644 --- a/web/console/lib/ff-redux/src/base/Model/ReduxAction.ts +++ b/web/console/lib/ff-redux/src/base/Model/ReduxAction.ts @@ -1,4 +1,21 @@ -/** +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +/** * FSA (https://github.com/acdlite/flux-standard-action) with generic type * */ export interface ReduxAction { diff --git a/web/console/lib/ff-redux/src/base/Model/SortQuery.ts b/web/console/lib/ff-redux/src/base/Model/SortQuery.ts index 0ef71be08..423e4bfed 100644 --- a/web/console/lib/ff-redux/src/base/Model/SortQuery.ts +++ b/web/console/lib/ff-redux/src/base/Model/SortQuery.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface SortQuery { by?: string; desc?: boolean; diff --git a/web/console/lib/ff-redux/src/base/Model/index.ts b/web/console/lib/ff-redux/src/base/Model/index.ts index 7a97a1636..404f04be5 100644 --- a/web/console/lib/ff-redux/src/base/Model/index.ts +++ b/web/console/lib/ff-redux/src/base/Model/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './ActionTypesEnum'; export * from './DataType'; export * from './FetcherPayload'; diff --git a/web/console/lib/ff-redux/src/base/Reducer.ts b/web/console/lib/ff-redux/src/base/Reducer.ts index 7ad4a39ae..ea4a93e32 100644 --- a/web/console/lib/ff-redux/src/base/Reducer.ts +++ b/web/console/lib/ff-redux/src/base/Reducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, merge } from '../../libs/qcloud-lib'; import { ActionTypesEnum, diff --git a/web/console/lib/ff-redux/src/base/index.ts b/web/console/lib/ff-redux/src/base/index.ts index f78f2830a..5eff9cac6 100644 --- a/web/console/lib/ff-redux/src/base/index.ts +++ b/web/console/lib/ff-redux/src/base/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './Reducer'; export * from './Action'; export * from './Model'; diff --git a/web/console/lib/ff-redux/src/index.ts b/web/console/lib/ff-redux/src/index.ts index 3cb68ba18..b697083c1 100644 --- a/web/console/lib/ff-redux/src/index.ts +++ b/web/console/lib/ff-redux/src/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './base'; export * from './list'; export * from './object'; diff --git a/web/console/lib/ff-redux/src/list/Action.ts b/web/console/lib/ff-redux/src/list/Action.ts index e101d4cb1..26b9757b4 100644 --- a/web/console/lib/ff-redux/src/list/Action.ts +++ b/web/console/lib/ff-redux/src/list/Action.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend } from '../../libs/qcloud-lib'; import { BaseAction, createBaseAction, FetcherState, FetchOptions, FetchState, QueryState, RecordSet } from '../base'; import { createFFListActionType } from './ActionType'; diff --git a/web/console/lib/ff-redux/src/list/ActionType.ts b/web/console/lib/ff-redux/src/list/ActionType.ts index e989f8fc0..8dbf3e5cb 100644 --- a/web/console/lib/ff-redux/src/list/ActionType.ts +++ b/web/console/lib/ff-redux/src/list/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum FFListType { Base = 'Base', Fetch = 'Fetch', diff --git a/web/console/lib/ff-redux/src/list/Model.ts b/web/console/lib/ff-redux/src/list/Model.ts index 2a855137a..8ccdc344c 100644 --- a/web/console/lib/ff-redux/src/list/Model.ts +++ b/web/console/lib/ff-redux/src/list/Model.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, QueryState, RecordSet } from '../base/Model'; export type FFListModel = { diff --git a/web/console/lib/ff-redux/src/list/Reducer.ts b/web/console/lib/ff-redux/src/list/Reducer.ts index 5851ece1f..cabec1818 100644 --- a/web/console/lib/ff-redux/src/list/Reducer.ts +++ b/web/console/lib/ff-redux/src/list/Reducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { reduceToPayload } from '../../libs/qcloud-lib'; diff --git a/web/console/lib/ff-redux/src/list/index.ts b/web/console/lib/ff-redux/src/list/index.ts index 04430516d..149dcb46b 100644 --- a/web/console/lib/ff-redux/src/list/index.ts +++ b/web/console/lib/ff-redux/src/list/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './ActionType'; export * from './Model'; export * from './Reducer'; diff --git a/web/console/lib/ff-redux/src/object/Action.ts b/web/console/lib/ff-redux/src/object/Action.ts index ea10a57dc..a5426da4e 100644 --- a/web/console/lib/ff-redux/src/object/Action.ts +++ b/web/console/lib/ff-redux/src/object/Action.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, FetchOptions, QueryState } from '../../'; import { extend } from '../../libs/qcloud-lib'; import { createFFObjectActionType } from './ActionType'; diff --git a/web/console/lib/ff-redux/src/object/ActionType.ts b/web/console/lib/ff-redux/src/object/ActionType.ts index 4f016a2f3..a02439078 100644 --- a/web/console/lib/ff-redux/src/object/ActionType.ts +++ b/web/console/lib/ff-redux/src/object/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum FFObjectType { Base = 'Base', Fetch = 'Fetch', diff --git a/web/console/lib/ff-redux/src/object/Model.ts b/web/console/lib/ff-redux/src/object/Model.ts index 9b5b195ed..94f90d19b 100644 --- a/web/console/lib/ff-redux/src/object/Model.ts +++ b/web/console/lib/ff-redux/src/object/Model.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, QueryState } from '../base/Model'; export type FFObjectModel = { diff --git a/web/console/lib/ff-redux/src/object/Reducer.ts b/web/console/lib/ff-redux/src/object/Reducer.ts index 0913e94eb..bbaab9a59 100644 --- a/web/console/lib/ff-redux/src/object/Reducer.ts +++ b/web/console/lib/ff-redux/src/object/Reducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { createFFObjectActionType } from './ActionType'; diff --git a/web/console/lib/ff-redux/src/object/index.ts b/web/console/lib/ff-redux/src/object/index.ts index 04430516d..149dcb46b 100644 --- a/web/console/lib/ff-redux/src/object/index.ts +++ b/web/console/lib/ff-redux/src/object/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './ActionType'; export * from './Model'; export * from './Reducer'; diff --git a/web/console/lib/ff-redux/utils/extend.ts b/web/console/lib/ff-redux/utils/extend.ts index 2fa4fa1c3..d25ca9ecf 100644 --- a/web/console/lib/ff-redux/utils/extend.ts +++ b/web/console/lib/ff-redux/utils/extend.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export function extend(target: T, source: S): T & S; export function extend(target: T, source1: S1, source2: S2): T & S1 & S2; export function extend(target: T, source1: S1, source2: S2): T & S1 & S2; diff --git a/web/console/lib/ff-redux/utils/index.ts b/web/console/lib/ff-redux/utils/index.ts index 3852acb7e..eae45d8fc 100644 --- a/web/console/lib/ff-redux/utils/index.ts +++ b/web/console/lib/ff-redux/utils/index.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { extend } from './extend'; export { reduceToPayload, ReduxAction } from './reduceToPayload'; diff --git a/web/console/lib/ff-redux/utils/reduceToPayload.ts b/web/console/lib/ff-redux/utils/reduceToPayload.ts index 42ef9f76e..bc75975c0 100644 --- a/web/console/lib/ff-redux/utils/reduceToPayload.ts +++ b/web/console/lib/ff-redux/utils/reduceToPayload.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface ReduxAction { /** * The action type, the `number` type is to support enum. diff --git a/web/console/lib/ff-validator/index.ts b/web/console/lib/ff-validator/index.ts index d26f663d0..d7bf85afc 100644 --- a/web/console/lib/ff-validator/index.ts +++ b/web/console/lib/ff-validator/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { ValidateSchema, ValidatorStatusEnum, diff --git a/web/console/lib/ff-validator/src/Action.ts b/web/console/lib/ff-validator/src/Action.ts index 6f28c02d0..469375516 100644 --- a/web/console/lib/ff-validator/src/Action.ts +++ b/web/console/lib/ff-validator/src/Action.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ValidateSchema, RuleTypeEnum, diff --git a/web/console/lib/ff-validator/src/ActionType.ts b/web/console/lib/ff-validator/src/ActionType.ts index cc58f7d75..b5347bc6a 100644 --- a/web/console/lib/ff-validator/src/ActionType.ts +++ b/web/console/lib/ff-validator/src/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 获取ActionType * @param formKey: string 表单的名称 diff --git a/web/console/lib/ff-validator/src/Model.ts b/web/console/lib/ff-validator/src/Model.ts index 149923170..15ac4b907 100644 --- a/web/console/lib/ff-validator/src/Model.ts +++ b/web/console/lib/ff-validator/src/Model.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Validation } from './Validation'; export interface ValidatorModel { diff --git a/web/console/lib/ff-validator/src/Reducer.ts b/web/console/lib/ff-validator/src/Reducer.ts index aacee944b..2da296511 100644 --- a/web/console/lib/ff-validator/src/Reducer.ts +++ b/web/console/lib/ff-validator/src/Reducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ValidateSchema } from './Model'; import { Reducer } from 'redux'; import { reduceToPayload } from './utils/reduceToPayload'; diff --git a/web/console/lib/ff-validator/src/Validation.ts b/web/console/lib/ff-validator/src/Validation.ts index 59c085b67..4508d52d0 100644 --- a/web/console/lib/ff-validator/src/Validation.ts +++ b/web/console/lib/ff-validator/src/Validation.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface Validation { /**验证状态 0: 初始状态;1:校验通过;2:校验不通过;*/ status?: number; diff --git a/web/console/lib/ff-validator/src/utils/cloneDeep.ts b/web/console/lib/ff-validator/src/utils/cloneDeep.ts index 205dd6958..16165c3ac 100644 --- a/web/console/lib/ff-validator/src/utils/cloneDeep.ts +++ b/web/console/lib/ff-validator/src/utils/cloneDeep.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /* eslint-disable */ export const cloneDeep = function(item) { if (!item) { diff --git a/web/console/lib/ff-validator/src/utils/getFirstBracketName.ts b/web/console/lib/ff-validator/src/utils/getFirstBracketName.ts index beaaf7c52..ed25402a9 100644 --- a/web/console/lib/ff-validator/src/utils/getFirstBracketName.ts +++ b/web/console/lib/ff-validator/src/utils/getFirstBracketName.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 获取bracket的名称 * @return string diff --git a/web/console/lib/ff-validator/src/utils/getMessage.ts b/web/console/lib/ff-validator/src/utils/getMessage.ts index 0080a7c71..9bbdac436 100644 --- a/web/console/lib/ff-validator/src/utils/getMessage.ts +++ b/web/console/lib/ff-validator/src/utils/getMessage.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ValidatorModel } from '../Model'; /** diff --git a/web/console/lib/ff-validator/src/utils/getValue.ts b/web/console/lib/ff-validator/src/utils/getValue.ts index 29202c76d..4f98cbc47 100644 --- a/web/console/lib/ff-validator/src/utils/getValue.ts +++ b/web/console/lib/ff-validator/src/utils/getValue.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ValidatorModel, ValidatorStatusEnum } from '../Model'; import { Validation } from '../Validation'; diff --git a/web/console/lib/ff-validator/src/utils/index.ts b/web/console/lib/ff-validator/src/utils/index.ts index b4f25c6e4..bc6f207a3 100644 --- a/web/console/lib/ff-validator/src/utils/index.ts +++ b/web/console/lib/ff-validator/src/utils/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { getValue } from './getValue'; export { isValid } from './isValid'; export { reduceToPayload } from './reduceToPayload'; diff --git a/web/console/lib/ff-validator/src/utils/isContainBracket.ts b/web/console/lib/ff-validator/src/utils/isContainBracket.ts index 3fb05c223..9479c5eb7 100644 --- a/web/console/lib/ff-validator/src/utils/isContainBracket.ts +++ b/web/console/lib/ff-validator/src/utils/isContainBracket.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 格式化传入的vkey,将方括号当中的数字去除 */ export const formatVkeyRegExp: RegExp = /\[(\d*)\]/g; diff --git a/web/console/lib/ff-validator/src/utils/isValid.ts b/web/console/lib/ff-validator/src/utils/isValid.ts index 4c4692498..882b2d5e3 100644 --- a/web/console/lib/ff-validator/src/utils/isValid.ts +++ b/web/console/lib/ff-validator/src/utils/isValid.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ValidatorModel, ValidatorStatusEnum } from '../Model'; /** diff --git a/web/console/lib/ff-validator/src/utils/reduceToPayload.ts b/web/console/lib/ff-validator/src/utils/reduceToPayload.ts index b34edf70b..3f98b7eb9 100644 --- a/web/console/lib/ff-validator/src/utils/reduceToPayload.ts +++ b/web/console/lib/ff-validator/src/utils/reduceToPayload.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface ReduxAction { /** * The action type, the `number` type is to support enum. diff --git a/web/console/package-lock.json b/web/console/package-lock.json index 4415fffca..310b7fdb4 100644 --- a/web/console/package-lock.json +++ b/web/console/package-lock.json @@ -1322,6 +1322,12 @@ "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=", "dev": true }, + "@types/lodash": { + "version": "4.14.172", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.172.tgz", + "integrity": "sha512-/BHF5HAx3em7/KkzVKm3LrsD6HZAXuXO1AJZQ3cRRBZj4oHZDviWPYu0aEplAqDFNHZPW6d3G7KN+ONcCCC7pw==", + "dev": true + }, "@types/marked": { "version": "0.6.5", "resolved": "https://registry.npmjs.org/@types/marked/-/marked-0.6.5.tgz", diff --git a/web/console/package.json b/web/console/package.json index c2acc1fb9..34dfacfeb 100644 --- a/web/console/package.json +++ b/web/console/package.json @@ -77,6 +77,7 @@ "@babel/preset-env": "^7.0.0", "@babel/preset-react": "^7.0.0", "@types/jquery": "^3.5.5", + "@types/lodash": "^4.14.172", "@types/marked": "^0.6.3", "@types/node": "^11.11.1", "@types/react": "^16.9.56", diff --git a/web/console/src/modules/addon/WebAPI.ts b/web/console/src/modules/addon/WebAPI.ts index eb68b8cef..939e16374 100644 --- a/web/console/src/modules/addon/WebAPI.ts +++ b/web/console/src/modules/addon/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { RecordSet, uuid } from '@tencent/ff-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/addon/actions/addonActions.ts b/web/console/src/modules/addon/actions/addonActions.ts index ba8e2f030..0a0b870c0 100644 --- a/web/console/src/modules/addon/actions/addonActions.ts +++ b/web/console/src/modules/addon/actions/addonActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend } from '@tencent/ff-redux'; import { resourceConfig } from '../../../../config'; diff --git a/web/console/src/modules/addon/actions/addonEditActions.ts b/web/console/src/modules/addon/actions/addonEditActions.ts index 6926988fd..e92ce5104 100644 --- a/web/console/src/modules/addon/actions/addonEditActions.ts +++ b/web/console/src/modules/addon/actions/addonEditActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction } from '@tencent/ff-redux'; import * as ActionType from '../constants/ActionType'; diff --git a/web/console/src/modules/addon/actions/clusterActions.ts b/web/console/src/modules/addon/actions/clusterActions.ts index 82c8968b2..9da71eaae 100644 --- a/web/console/src/modules/addon/actions/clusterActions.ts +++ b/web/console/src/modules/addon/actions/clusterActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend } from '@tencent/ff-redux'; import { resourceConfig } from '../../../../config'; diff --git a/web/console/src/modules/addon/actions/index.ts b/web/console/src/modules/addon/actions/index.ts index 2a8d7a625..bb94f2021 100644 --- a/web/console/src/modules/addon/actions/index.ts +++ b/web/console/src/modules/addon/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { regionActions } from './regionActions'; import { clusterActions } from './clusterActions'; import { addonActions } from './addonActions'; diff --git a/web/console/src/modules/addon/actions/peEditActions.ts b/web/console/src/modules/addon/actions/peEditActions.ts index 64e257f24..db58e8d83 100644 --- a/web/console/src/modules/addon/actions/peEditActions.ts +++ b/web/console/src/modules/addon/actions/peEditActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction } from '@tencent/ff-redux'; import { includes } from '../../common'; diff --git a/web/console/src/modules/addon/actions/regionActions.ts b/web/console/src/modules/addon/actions/regionActions.ts index baf6d5d12..0d63391cb 100644 --- a/web/console/src/modules/addon/actions/regionActions.ts +++ b/web/console/src/modules/addon/actions/regionActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend } from '@tencent/ff-redux'; import { assureRegion, getRegionId, setRegionId } from '../../../../helpers'; diff --git a/web/console/src/modules/addon/actions/validatorActions.ts b/web/console/src/modules/addon/actions/validatorActions.ts index 5e75a6692..06ec07e78 100644 --- a/web/console/src/modules/addon/actions/validatorActions.ts +++ b/web/console/src/modules/addon/actions/validatorActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { RootState, PeEdit, AddonEdit } from '../models'; import * as ActionType from '../constants//ActionType'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/addon/actions/workflowActions.ts b/web/console/src/modules/addon/actions/workflowActions.ts index cd35fcb89..1b77785d8 100644 --- a/web/console/src/modules/addon/actions/workflowActions.ts +++ b/web/console/src/modules/addon/actions/workflowActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { generateWorkflowActionCreator, isSuccessWorkflow, OperationTrigger } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/addon/components/AddonActionPanel.tsx b/web/console/src/modules/addon/components/AddonActionPanel.tsx index a79c08f2a..8a27f3a54 100644 --- a/web/console/src/modules/addon/components/AddonActionPanel.tsx +++ b/web/console/src/modules/addon/components/AddonActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/addon/components/AddonApp.tsx b/web/console/src/modules/addon/components/AddonApp.tsx index f68b4abdf..e6dce240b 100644 --- a/web/console/src/modules/addon/components/AddonApp.tsx +++ b/web/console/src/modules/addon/components/AddonApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/addon/components/AddonDeleteDialog.tsx b/web/console/src/modules/addon/components/AddonDeleteDialog.tsx index 934d6879b..87a71927e 100644 --- a/web/console/src/modules/addon/components/AddonDeleteDialog.tsx +++ b/web/console/src/modules/addon/components/AddonDeleteDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/addon/components/AddonDetail.tsx b/web/console/src/modules/addon/components/AddonDetail.tsx index 327516718..52e8dee24 100644 --- a/web/console/src/modules/addon/components/AddonDetail.tsx +++ b/web/console/src/modules/addon/components/AddonDetail.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/addon/components/AddonDetailHeadPanel.tsx b/web/console/src/modules/addon/components/AddonDetailHeadPanel.tsx index 7e87b219a..129263b87 100644 --- a/web/console/src/modules/addon/components/AddonDetailHeadPanel.tsx +++ b/web/console/src/modules/addon/components/AddonDetailHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/addon/components/AddonDetailPanel.tsx b/web/console/src/modules/addon/components/AddonDetailPanel.tsx index d67255e89..0f777c4da 100644 --- a/web/console/src/modules/addon/components/AddonDetailPanel.tsx +++ b/web/console/src/modules/addon/components/AddonDetailPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/addon/components/AddonHeadPanel.tsx b/web/console/src/modules/addon/components/AddonHeadPanel.tsx index 3d8a8ccaf..df441d35c 100644 --- a/web/console/src/modules/addon/components/AddonHeadPanel.tsx +++ b/web/console/src/modules/addon/components/AddonHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/addon/components/AddonSubpageHeadPanel.tsx b/web/console/src/modules/addon/components/AddonSubpageHeadPanel.tsx index 0c8caad52..8aa8a79f4 100644 --- a/web/console/src/modules/addon/components/AddonSubpageHeadPanel.tsx +++ b/web/console/src/modules/addon/components/AddonSubpageHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Justify, Icon, Text } from '@tencent/tea-component'; import { router } from '../router'; diff --git a/web/console/src/modules/addon/components/AddonTablePanel.tsx b/web/console/src/modules/addon/components/AddonTablePanel.tsx index 0784f21a2..fbe5fd574 100644 --- a/web/console/src/modules/addon/components/AddonTablePanel.tsx +++ b/web/console/src/modules/addon/components/AddonTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/addon/components/EditAddonPanel.tsx b/web/console/src/modules/addon/components/EditAddonPanel.tsx index 73202efb8..bc9e3d9b7 100644 --- a/web/console/src/modules/addon/components/EditAddonPanel.tsx +++ b/web/console/src/modules/addon/components/EditAddonPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/addon/components/EditPersistentEventPanel.tsx b/web/console/src/modules/addon/components/EditPersistentEventPanel.tsx index 891b18281..c97899800 100644 --- a/web/console/src/modules/addon/components/EditPersistentEventPanel.tsx +++ b/web/console/src/modules/addon/components/EditPersistentEventPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/addon/constants/ActionType.ts b/web/console/src/modules/addon/constants/ActionType.ts index 6b0347410..1a6dfe7e4 100644 --- a/web/console/src/modules/addon/constants/ActionType.ts +++ b/web/console/src/modules/addon/constants/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const ClusterVersion = 'ClusterVersion'; /** ======================== start 开通addon相关的 ======================= */ diff --git a/web/console/src/modules/addon/constants/Config.ts b/web/console/src/modules/addon/constants/Config.ts index ea75a469a..6ae495c4b 100644 --- a/web/console/src/modules/addon/constants/Config.ts +++ b/web/console/src/modules/addon/constants/Config.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t, Trans } from '@tencent/tea-app/lib/i18n'; import { ApiVersionKeyName } from '../../../../config/resource/common'; /** ========================= start FFRedux的相关配置 ======================== */ diff --git a/web/console/src/modules/addon/constants/ValidateConfig.ts b/web/console/src/modules/addon/constants/ValidateConfig.ts index c64b2cc2a..232edad14 100644 --- a/web/console/src/modules/addon/constants/ValidateConfig.ts +++ b/web/console/src/modules/addon/constants/ValidateConfig.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { RuleTypeEnum, FieldConfig } from '../../common'; import { AddonEdit } from '../models'; import { AddonNameEnum } from './Config'; diff --git a/web/console/src/modules/addon/index.tsx b/web/console/src/modules/addon/index.tsx index bdc2d2ca0..13557a2bb 100644 --- a/web/console/src/modules/addon/index.tsx +++ b/web/console/src/modules/addon/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { AddonAppContainer } from './components/AddonApp'; diff --git a/web/console/src/modules/addon/models/Addon.ts b/web/console/src/modules/addon/models/Addon.ts index 7737de2b7..f6b9a2c71 100644 --- a/web/console/src/modules/addon/models/Addon.ts +++ b/web/console/src/modules/addon/models/Addon.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Addon extends Identifiable { diff --git a/web/console/src/modules/addon/models/AddonEdit.ts b/web/console/src/modules/addon/models/AddonEdit.ts index 455b2238e..f8a750236 100644 --- a/web/console/src/modules/addon/models/AddonEdit.ts +++ b/web/console/src/modules/addon/models/AddonEdit.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { PeEdit } from './PeEdit'; export interface AddonEdit { diff --git a/web/console/src/modules/addon/models/PeEdit.ts b/web/console/src/modules/addon/models/PeEdit.ts index aa4c5b69a..f062eadb4 100644 --- a/web/console/src/modules/addon/models/PeEdit.ts +++ b/web/console/src/modules/addon/models/PeEdit.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Validation } from '../../common'; export interface PeEdit { diff --git a/web/console/src/modules/addon/models/RootState.ts b/web/console/src/modules/addon/models/RootState.ts index 0e0530f2a..eaebd6aea 100644 --- a/web/console/src/modules/addon/models/RootState.ts +++ b/web/console/src/modules/addon/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FFListModel, WorkflowState } from '@tencent/ff-redux'; import { RouteState } from '../../../../helpers'; diff --git a/web/console/src/modules/addon/models/index.ts b/web/console/src/modules/addon/models/index.ts index 006d89512..6950b5c98 100644 --- a/web/console/src/modules/addon/models/index.ts +++ b/web/console/src/modules/addon/models/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { RootState } from './RootState'; export { Addon } from './Addon'; export * from './AddonEdit'; diff --git a/web/console/src/modules/addon/reducers/AddonEditReducer.ts b/web/console/src/modules/addon/reducers/AddonEditReducer.ts index 1793e4a91..a602753bc 100644 --- a/web/console/src/modules/addon/reducers/AddonEditReducer.ts +++ b/web/console/src/modules/addon/reducers/AddonEditReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/addon/reducers/PeEditReducer.ts b/web/console/src/modules/addon/reducers/PeEditReducer.ts index 812a4a368..5b29b6eba 100644 --- a/web/console/src/modules/addon/reducers/PeEditReducer.ts +++ b/web/console/src/modules/addon/reducers/PeEditReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/addon/reducers/RootReducer.ts b/web/console/src/modules/addon/reducers/RootReducer.ts index d7c1d72f3..6d8f1105c 100644 --- a/web/console/src/modules/addon/reducers/RootReducer.ts +++ b/web/console/src/modules/addon/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { createFFListReducer, generateWorkflowReducer, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/addon/router.ts b/web/console/src/modules/addon/router.ts index df409f198..cdc8f4167 100644 --- a/web/console/src/modules/addon/router.ts +++ b/web/console/src/modules/addon/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/addon/stores/RootStore.ts b/web/console/src/modules/addon/stores/RootStore.ts index 528dcd48c..83ff139b0 100644 --- a/web/console/src/modules/addon/stores/RootStore.ts +++ b/web/console/src/modules/addon/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/modules/alarmPolicy/WebAPI.ts b/web/console/src/modules/alarmPolicy/WebAPI.ts index 4a1196c2d..a6d377f04 100644 --- a/web/console/src/modules/alarmPolicy/WebAPI.ts +++ b/web/console/src/modules/alarmPolicy/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { reduceNs } from '@helper'; import { OperationResult, QueryState, RecordSet, uuid } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/alarmPolicy/actions/alarmPolicyActions.ts b/web/console/src/modules/alarmPolicy/actions/alarmPolicyActions.ts index 61148bfca..e26fbc5a7 100644 --- a/web/console/src/modules/alarmPolicy/actions/alarmPolicyActions.ts +++ b/web/console/src/modules/alarmPolicy/actions/alarmPolicyActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, deepClone, extend, uuid } from '@tencent/ff-redux'; import { initValidator } from '../../common/models'; diff --git a/web/console/src/modules/alarmPolicy/actions/clusterActions.ts b/web/console/src/modules/alarmPolicy/actions/clusterActions.ts index f519e50ef..db34c0d1d 100644 --- a/web/console/src/modules/alarmPolicy/actions/clusterActions.ts +++ b/web/console/src/modules/alarmPolicy/actions/clusterActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { reduceNs } from '@helper'; import { resourceConfig } from '@config'; import { ResourceInfo } from '@src/modules/common'; diff --git a/web/console/src/modules/alarmPolicy/actions/groupActions.ts b/web/console/src/modules/alarmPolicy/actions/groupActions.ts index 131bd52f0..cca4ddd66 100644 --- a/web/console/src/modules/alarmPolicy/actions/groupActions.ts +++ b/web/console/src/modules/alarmPolicy/actions/groupActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { RootState } from '../models'; type GetState = () => RootState; diff --git a/web/console/src/modules/alarmPolicy/actions/index.ts b/web/console/src/modules/alarmPolicy/actions/index.ts index fdd3846aa..1b8fc495e 100644 --- a/web/console/src/modules/alarmPolicy/actions/index.ts +++ b/web/console/src/modules/alarmPolicy/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { projectNamespaceActions } from './projectNamespaceActions.project'; import { workloadActions } from './workloadActions'; // import { groupActions } from './groupActions'; diff --git a/web/console/src/modules/alarmPolicy/actions/namespaceActions.project.ts b/web/console/src/modules/alarmPolicy/actions/namespaceActions.project.ts index 640283036..7d10f67fa 100644 --- a/web/console/src/modules/alarmPolicy/actions/namespaceActions.project.ts +++ b/web/console/src/modules/alarmPolicy/actions/namespaceActions.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator, uuid } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/alarmPolicy/actions/namespaceActions.ts b/web/console/src/modules/alarmPolicy/actions/namespaceActions.ts index 395d220f4..e1d20d34f 100644 --- a/web/console/src/modules/alarmPolicy/actions/namespaceActions.ts +++ b/web/console/src/modules/alarmPolicy/actions/namespaceActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend } from '@tencent/ff-redux'; import { generateFetcherActionCreator } from '@tencent/qcloud-redux-fetcher'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/alarmPolicy/actions/projectNamespaceActions.project.ts b/web/console/src/modules/alarmPolicy/actions/projectNamespaceActions.project.ts index 6d098b476..32d2c72f3 100644 --- a/web/console/src/modules/alarmPolicy/actions/projectNamespaceActions.project.ts +++ b/web/console/src/modules/alarmPolicy/actions/projectNamespaceActions.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { setProjectName } from '@helper'; import { extend, FetchOptions, generateFetcherActionCreator, RecordSet, ReduxAction, uuid } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/alarmPolicy/actions/regionActions.ts b/web/console/src/modules/alarmPolicy/actions/regionActions.ts index a176a53b0..b3afcd6ef 100644 --- a/web/console/src/modules/alarmPolicy/actions/regionActions.ts +++ b/web/console/src/modules/alarmPolicy/actions/regionActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ // import { extend } from '@tencent/ff-redux'; // import { router } from '../router'; // import { getRegionId, setRegionId, assureRegion } from '../../../../helpers'; diff --git a/web/console/src/modules/alarmPolicy/actions/validatorActions.ts b/web/console/src/modules/alarmPolicy/actions/validatorActions.ts index 12f0e29b9..68bc524b0 100644 --- a/web/console/src/modules/alarmPolicy/actions/validatorActions.ts +++ b/web/console/src/modules/alarmPolicy/actions/validatorActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { deepClone } from '@tencent/ff-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/alarmPolicy/actions/workflowActions.ts b/web/console/src/modules/alarmPolicy/actions/workflowActions.ts index d364fa78a..9d4f9d057 100644 --- a/web/console/src/modules/alarmPolicy/actions/workflowActions.ts +++ b/web/console/src/modules/alarmPolicy/actions/workflowActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, isSuccessWorkflow, OperationHooks, OperationTrigger, RecordSet, ReduxAction diff --git a/web/console/src/modules/alarmPolicy/actions/workloadActions.ts b/web/console/src/modules/alarmPolicy/actions/workloadActions.ts index 72eb966d8..a8b7ab257 100644 --- a/web/console/src/modules/alarmPolicy/actions/workloadActions.ts +++ b/web/console/src/modules/alarmPolicy/actions/workloadActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend } from '@tencent/ff-redux'; import { generateFetcherActionCreator } from '@tencent/qcloud-redux-fetcher'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/alarmPolicy/components/AlarmPolicyActionPanel.tsx b/web/console/src/modules/alarmPolicy/components/AlarmPolicyActionPanel.tsx index 37e2347a6..69261eb20 100644 --- a/web/console/src/modules/alarmPolicy/components/AlarmPolicyActionPanel.tsx +++ b/web/console/src/modules/alarmPolicy/components/AlarmPolicyActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ // import { connect } from 'react-redux'; // import { allActions } from '../actions'; // import * as React from 'react'; diff --git a/web/console/src/modules/alarmPolicy/components/AlarmPolicyApp.tsx b/web/console/src/modules/alarmPolicy/components/AlarmPolicyApp.tsx index e8de43d11..1be6d6382 100644 --- a/web/console/src/modules/alarmPolicy/components/AlarmPolicyApp.tsx +++ b/web/console/src/modules/alarmPolicy/components/AlarmPolicyApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/alarmPolicy/components/AlarmPolicyDetailHeaderPanel.project.tsx b/web/console/src/modules/alarmPolicy/components/AlarmPolicyDetailHeaderPanel.project.tsx index 6ff675cf0..9a51cd7b0 100644 --- a/web/console/src/modules/alarmPolicy/components/AlarmPolicyDetailHeaderPanel.project.tsx +++ b/web/console/src/modules/alarmPolicy/components/AlarmPolicyDetailHeaderPanel.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from './AlarmPolicyApp'; import { router } from '../router'; diff --git a/web/console/src/modules/alarmPolicy/components/AlarmPolicyDetailHeaderPanel.tsx b/web/console/src/modules/alarmPolicy/components/AlarmPolicyDetailHeaderPanel.tsx index 1a6819339..0aaac1660 100644 --- a/web/console/src/modules/alarmPolicy/components/AlarmPolicyDetailHeaderPanel.tsx +++ b/web/console/src/modules/alarmPolicy/components/AlarmPolicyDetailHeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from './AlarmPolicyApp'; import { router } from '../router'; diff --git a/web/console/src/modules/alarmPolicy/components/AlarmPolicyDetailPanel.tsx b/web/console/src/modules/alarmPolicy/components/AlarmPolicyDetailPanel.tsx index 66f4919ef..7c1f708f9 100644 --- a/web/console/src/modules/alarmPolicy/components/AlarmPolicyDetailPanel.tsx +++ b/web/console/src/modules/alarmPolicy/components/AlarmPolicyDetailPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from './AlarmPolicyApp'; import { LinkButton } from '../../common/components'; diff --git a/web/console/src/modules/alarmPolicy/components/AlarmPolicyHeadPanel.project.tsx b/web/console/src/modules/alarmPolicy/components/AlarmPolicyHeadPanel.project.tsx index 25c825fea..8bcf883b0 100644 --- a/web/console/src/modules/alarmPolicy/components/AlarmPolicyHeadPanel.project.tsx +++ b/web/console/src/modules/alarmPolicy/components/AlarmPolicyHeadPanel.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FormPanel } from '@tencent/ff-component'; import { t } from '@tencent/tea-app/lib/i18n'; import { Justify, Tooltip, Select } from '@tencent/tea-component'; diff --git a/web/console/src/modules/alarmPolicy/components/AlarmPolicyHeadPanel.tsx b/web/console/src/modules/alarmPolicy/components/AlarmPolicyHeadPanel.tsx index 246fde111..fbc5663bc 100644 --- a/web/console/src/modules/alarmPolicy/components/AlarmPolicyHeadPanel.tsx +++ b/web/console/src/modules/alarmPolicy/components/AlarmPolicyHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FormPanelSelect, FormPanelSelectProps } from '@tencent/ff-component'; import { t } from '@tencent/tea-app/lib/i18n'; import { Justify } from '@tencent/tea-component'; diff --git a/web/console/src/modules/alarmPolicy/components/AlarmPolicySubpageHeaderPanel.project.tsx b/web/console/src/modules/alarmPolicy/components/AlarmPolicySubpageHeaderPanel.project.tsx index 5909297a3..e3f4ae97f 100644 --- a/web/console/src/modules/alarmPolicy/components/AlarmPolicySubpageHeaderPanel.project.tsx +++ b/web/console/src/modules/alarmPolicy/components/AlarmPolicySubpageHeaderPanel.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/alarmPolicy/components/AlarmPolicySubpageHeaderPanel.tsx b/web/console/src/modules/alarmPolicy/components/AlarmPolicySubpageHeaderPanel.tsx index 1e3de2e7c..b1af4de7c 100644 --- a/web/console/src/modules/alarmPolicy/components/AlarmPolicySubpageHeaderPanel.tsx +++ b/web/console/src/modules/alarmPolicy/components/AlarmPolicySubpageHeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from './AlarmPolicyApp'; import { router } from '../router'; diff --git a/web/console/src/modules/alarmPolicy/components/AlarmPolicyTablePanel.tsx b/web/console/src/modules/alarmPolicy/components/AlarmPolicyTablePanel.tsx index 3621949bd..417e30380 100644 --- a/web/console/src/modules/alarmPolicy/components/AlarmPolicyTablePanel.tsx +++ b/web/console/src/modules/alarmPolicy/components/AlarmPolicyTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Bubble, Button, TableColumn } from 'tea-component'; diff --git a/web/console/src/modules/alarmPolicy/components/DeleteAlarmPolicyDialog.tsx b/web/console/src/modules/alarmPolicy/components/DeleteAlarmPolicyDialog.tsx index 0bac73211..14daa29ef 100644 --- a/web/console/src/modules/alarmPolicy/components/DeleteAlarmPolicyDialog.tsx +++ b/web/console/src/modules/alarmPolicy/components/DeleteAlarmPolicyDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t } from '@tencent/tea-app/lib/i18n'; import { Table } from 'tea-component'; import * as React from 'react'; diff --git a/web/console/src/modules/alarmPolicy/components/EditAlarmPolicyObject.tsx b/web/console/src/modules/alarmPolicy/components/EditAlarmPolicyObject.tsx index 880f6fec0..ecbb0335a 100644 --- a/web/console/src/modules/alarmPolicy/components/EditAlarmPolicyObject.tsx +++ b/web/console/src/modules/alarmPolicy/components/EditAlarmPolicyObject.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Checkbox, Radio } from '@tea/component'; diff --git a/web/console/src/modules/alarmPolicy/components/EditAlarmPolicyPanel.tsx b/web/console/src/modules/alarmPolicy/components/EditAlarmPolicyPanel.tsx index 9393fc02c..8c9b0cea1 100644 --- a/web/console/src/modules/alarmPolicy/components/EditAlarmPolicyPanel.tsx +++ b/web/console/src/modules/alarmPolicy/components/EditAlarmPolicyPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import classNames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/alarmPolicy/components/EditAlarmPolicyReceiverGroup.tsx b/web/console/src/modules/alarmPolicy/components/EditAlarmPolicyReceiverGroup.tsx index 3cac70101..934d3aea4 100644 --- a/web/console/src/modules/alarmPolicy/components/EditAlarmPolicyReceiverGroup.tsx +++ b/web/console/src/modules/alarmPolicy/components/EditAlarmPolicyReceiverGroup.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { ExternalLink, Text } from '@tea/component'; diff --git a/web/console/src/modules/alarmPolicy/components/resource/ResourceSidebarPanel.tsx b/web/console/src/modules/alarmPolicy/components/resource/ResourceSidebarPanel.tsx index 8c2227c64..baa9680cf 100644 --- a/web/console/src/modules/alarmPolicy/components/resource/ResourceSidebarPanel.tsx +++ b/web/console/src/modules/alarmPolicy/components/resource/ResourceSidebarPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ // import { BasicRouter } from '../../models'; import * as classnames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/alarmPolicy/constants/ActionType.ts b/web/console/src/modules/alarmPolicy/constants/ActionType.ts index e349c1735..f749bfbdd 100644 --- a/web/console/src/modules/alarmPolicy/constants/ActionType.ts +++ b/web/console/src/modules/alarmPolicy/constants/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const isI18n = 'isI18n'; export const FetchRegion = 'FetchRegion'; export const QueryRegion = 'QueryRegion'; diff --git a/web/console/src/modules/alarmPolicy/constants/Config.ts b/web/console/src/modules/alarmPolicy/constants/Config.ts index 6fa0201a8..da89b6729 100644 --- a/web/console/src/modules/alarmPolicy/constants/Config.ts +++ b/web/console/src/modules/alarmPolicy/constants/Config.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t, Trans } from '@tencent/tea-app/lib/i18n'; export const AlarmObjectsType = { diff --git a/web/console/src/modules/alarmPolicy/index.tsx b/web/console/src/modules/alarmPolicy/index.tsx index fed793d5a..f013ce239 100644 --- a/web/console/src/modules/alarmPolicy/index.tsx +++ b/web/console/src/modules/alarmPolicy/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { AlarmPolicyAppContainer } from './components/AlarmPolicyApp'; diff --git a/web/console/src/modules/alarmPolicy/models/Addon.ts b/web/console/src/modules/alarmPolicy/models/Addon.ts index d74e5affe..6baafca3c 100644 --- a/web/console/src/modules/alarmPolicy/models/Addon.ts +++ b/web/console/src/modules/alarmPolicy/models/Addon.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface AddonStatus { [propName: string]: Addon; } diff --git a/web/console/src/modules/alarmPolicy/models/AlarmPolicy.ts b/web/console/src/modules/alarmPolicy/models/AlarmPolicy.ts index 09a1030cb..931508f8f 100644 --- a/web/console/src/modules/alarmPolicy/models/AlarmPolicy.ts +++ b/web/console/src/modules/alarmPolicy/models/AlarmPolicy.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models/Validation'; diff --git a/web/console/src/modules/alarmPolicy/models/ClusterFilter.ts b/web/console/src/modules/alarmPolicy/models/ClusterFilter.ts index 83bb77782..29a5db065 100644 --- a/web/console/src/modules/alarmPolicy/models/ClusterFilter.ts +++ b/web/console/src/modules/alarmPolicy/models/ClusterFilter.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface ClusterFilter { regionId?: number; } diff --git a/web/console/src/modules/alarmPolicy/models/Group.tsx b/web/console/src/modules/alarmPolicy/models/Group.tsx index f65a4613d..4b1235603 100644 --- a/web/console/src/modules/alarmPolicy/models/Group.tsx +++ b/web/console/src/modules/alarmPolicy/models/Group.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Group extends Identifiable { diff --git a/web/console/src/modules/alarmPolicy/models/Namespace.ts b/web/console/src/modules/alarmPolicy/models/Namespace.ts index 55a8b9604..33844709c 100644 --- a/web/console/src/modules/alarmPolicy/models/Namespace.ts +++ b/web/console/src/modules/alarmPolicy/models/Namespace.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Namespace extends Identifiable { diff --git a/web/console/src/modules/alarmPolicy/models/Region.ts b/web/console/src/modules/alarmPolicy/models/Region.ts index 6b1123671..df092f5fb 100644 --- a/web/console/src/modules/alarmPolicy/models/Region.ts +++ b/web/console/src/modules/alarmPolicy/models/Region.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Region extends Identifiable { diff --git a/web/console/src/modules/alarmPolicy/models/RegionFilter.ts b/web/console/src/modules/alarmPolicy/models/RegionFilter.ts index 7c823fef6..745d06417 100644 --- a/web/console/src/modules/alarmPolicy/models/RegionFilter.ts +++ b/web/console/src/modules/alarmPolicy/models/RegionFilter.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface RegionFilter { /**默认 */ regionId?: string | number; diff --git a/web/console/src/modules/alarmPolicy/models/Resource.ts b/web/console/src/modules/alarmPolicy/models/Resource.ts index a942a5e18..0737b8c1d 100644 --- a/web/console/src/modules/alarmPolicy/models/Resource.ts +++ b/web/console/src/modules/alarmPolicy/models/Resource.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable, RecordSet } from '@tencent/ff-redux'; export interface Resource extends Identifiable { diff --git a/web/console/src/modules/alarmPolicy/models/RootState.ts b/web/console/src/modules/alarmPolicy/models/RootState.ts index 555e3869b..fb9522a09 100644 --- a/web/console/src/modules/alarmPolicy/models/RootState.ts +++ b/web/console/src/modules/alarmPolicy/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, FFListModel, QueryState, RecordSet, WorkflowState } from '@tencent/ff-redux'; //import { RouteState } from "@tencent/qcloud-nmc"; diff --git a/web/console/src/modules/alarmPolicy/models/index.ts b/web/console/src/modules/alarmPolicy/models/index.ts index 130ab4f07..0d242c749 100644 --- a/web/console/src/modules/alarmPolicy/models/index.ts +++ b/web/console/src/modules/alarmPolicy/models/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { ResourceFilter, Resource } from './Resource'; export { RootState } from './RootState'; export { RegionFilter } from './RegionFilter'; diff --git a/web/console/src/modules/alarmPolicy/reducers/AlarmPolicyEditReducer.ts b/web/console/src/modules/alarmPolicy/reducers/AlarmPolicyEditReducer.ts index fe4885387..2b94df235 100644 --- a/web/console/src/modules/alarmPolicy/reducers/AlarmPolicyEditReducer.ts +++ b/web/console/src/modules/alarmPolicy/reducers/AlarmPolicyEditReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/alarmPolicy/reducers/RootReducer.project.ts b/web/console/src/modules/alarmPolicy/reducers/RootReducer.project.ts index 5d3f4e376..19eaa67e7 100644 --- a/web/console/src/modules/alarmPolicy/reducers/RootReducer.project.ts +++ b/web/console/src/modules/alarmPolicy/reducers/RootReducer.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { createFFListReducer, generateWorkflowReducer, RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/alarmPolicy/reducers/RootReducer.ts b/web/console/src/modules/alarmPolicy/reducers/RootReducer.ts index 8a5a9503b..66327ac97 100644 --- a/web/console/src/modules/alarmPolicy/reducers/RootReducer.ts +++ b/web/console/src/modules/alarmPolicy/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { diff --git a/web/console/src/modules/alarmPolicy/router.project.ts b/web/console/src/modules/alarmPolicy/router.project.ts index 364fe409a..07092c251 100644 --- a/web/console/src/modules/alarmPolicy/router.project.ts +++ b/web/console/src/modules/alarmPolicy/router.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; export const router = new Router('/tkestack-project/alarm(/:sub)(/:tab)', { sub: '', tab: '' }); diff --git a/web/console/src/modules/alarmPolicy/router.ts b/web/console/src/modules/alarmPolicy/router.ts index f22387b69..aacdc8dde 100644 --- a/web/console/src/modules/alarmPolicy/router.ts +++ b/web/console/src/modules/alarmPolicy/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; export const router = new Router('/tkestack/alarm(/:sub)(/:tab)', { sub: '', tab: '' }); diff --git a/web/console/src/modules/alarmPolicy/stores/RootStore.ts b/web/console/src/modules/alarmPolicy/stores/RootStore.ts index 528dcd48c..83ff139b0 100644 --- a/web/console/src/modules/alarmPolicy/stores/RootStore.ts +++ b/web/console/src/modules/alarmPolicy/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/modules/alarmRecord/WebAPI.ts b/web/console/src/modules/alarmRecord/WebAPI.ts index 75eba9262..5631d9132 100644 --- a/web/console/src/modules/alarmRecord/WebAPI.ts +++ b/web/console/src/modules/alarmRecord/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { OperationResult, QueryState, RecordSet, uuid } from '@tencent/ff-redux'; import { resourceConfig } from '../../../config/resourceConfig'; diff --git a/web/console/src/modules/alarmRecord/actions/alarmRecordActions.ts b/web/console/src/modules/alarmRecord/actions/alarmRecordActions.ts index ab8502a6b..2417bc4f4 100644 --- a/web/console/src/modules/alarmRecord/actions/alarmRecordActions.ts +++ b/web/console/src/modules/alarmRecord/actions/alarmRecordActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, diff --git a/web/console/src/modules/alarmRecord/actions/clusterActions.ts b/web/console/src/modules/alarmRecord/actions/clusterActions.ts index aaebcb7cf..bf52aebc6 100644 --- a/web/console/src/modules/alarmRecord/actions/clusterActions.ts +++ b/web/console/src/modules/alarmRecord/actions/clusterActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend } from '@tencent/ff-redux'; import { FFReduxActionName } from '../../cluster/constants/Config'; import * as WebAPI from '../../cluster/WebAPI'; diff --git a/web/console/src/modules/alarmRecord/actions/index.ts b/web/console/src/modules/alarmRecord/actions/index.ts index aa65cf350..9dbf29d0f 100644 --- a/web/console/src/modules/alarmRecord/actions/index.ts +++ b/web/console/src/modules/alarmRecord/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { alarmRecordActions } from './alarmRecordActions'; import { clusterActions } from './clusterActions'; export const allActions = { diff --git a/web/console/src/modules/alarmRecord/components/AlarmHeaderPanel.tsx b/web/console/src/modules/alarmRecord/components/AlarmHeaderPanel.tsx index 2e8f2ace1..9706d37cb 100644 --- a/web/console/src/modules/alarmRecord/components/AlarmHeaderPanel.tsx +++ b/web/console/src/modules/alarmRecord/components/AlarmHeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { FormPanelSelect, FormPanelSelectProps } from '@tencent/ff-component'; diff --git a/web/console/src/modules/alarmRecord/components/AlarmRecordApp.tsx b/web/console/src/modules/alarmRecord/components/AlarmRecordApp.tsx index 9a415a466..54646a369 100644 --- a/web/console/src/modules/alarmRecord/components/AlarmRecordApp.tsx +++ b/web/console/src/modules/alarmRecord/components/AlarmRecordApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; import { t } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/alarmRecord/components/AlarmRecordPanel.tsx b/web/console/src/modules/alarmRecord/components/AlarmRecordPanel.tsx index 56fb44f9b..063ebc628 100644 --- a/web/console/src/modules/alarmRecord/components/AlarmRecordPanel.tsx +++ b/web/console/src/modules/alarmRecord/components/AlarmRecordPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { Text, TableColumn, Table, Justify, SearchBox, Bubble } from '@tea/component'; diff --git a/web/console/src/modules/alarmRecord/constants/ActionTypes.ts b/web/console/src/modules/alarmRecord/constants/ActionTypes.ts index 5686bc140..e32bca443 100644 --- a/web/console/src/modules/alarmRecord/constants/ActionTypes.ts +++ b/web/console/src/modules/alarmRecord/constants/ActionTypes.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const FetchAlarmRecord = 'FetchAlarmRecord'; export const FetchAuditFilterCondition = 'FetchAuditFilterCondition'; diff --git a/web/console/src/modules/alarmRecord/index.tsx b/web/console/src/modules/alarmRecord/index.tsx index fe36dc7b5..6df2530eb 100644 --- a/web/console/src/modules/alarmRecord/index.tsx +++ b/web/console/src/modules/alarmRecord/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { AlarmRecordContainer } from './components/AlarmRecordApp'; diff --git a/web/console/src/modules/alarmRecord/models/AlarmRecord.ts b/web/console/src/modules/alarmRecord/models/AlarmRecord.ts index 5ad58872e..38092ed70 100644 --- a/web/console/src/modules/alarmRecord/models/AlarmRecord.ts +++ b/web/console/src/modules/alarmRecord/models/AlarmRecord.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface AlarmRecord extends Identifiable { diff --git a/web/console/src/modules/alarmRecord/models/ClusterFilter.ts b/web/console/src/modules/alarmRecord/models/ClusterFilter.ts index 83bb77782..29a5db065 100644 --- a/web/console/src/modules/alarmRecord/models/ClusterFilter.ts +++ b/web/console/src/modules/alarmRecord/models/ClusterFilter.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface ClusterFilter { regionId?: number; } diff --git a/web/console/src/modules/alarmRecord/models/RootState.ts b/web/console/src/modules/alarmRecord/models/RootState.ts index 8dc43fdc7..590885332 100644 --- a/web/console/src/modules/alarmRecord/models/RootState.ts +++ b/web/console/src/modules/alarmRecord/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { RouteState } from '../../../../helpers'; import { FFListModel } from '@tencent/ff-redux'; import { AlarmRecord, AlarmRecordFilter, ClusterFilter } from '../models'; diff --git a/web/console/src/modules/alarmRecord/models/index.ts b/web/console/src/modules/alarmRecord/models/index.ts index 8544d6bc0..738842016 100644 --- a/web/console/src/modules/alarmRecord/models/index.ts +++ b/web/console/src/modules/alarmRecord/models/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { RootState } from './RootState'; export { AlarmRecord, AlarmRecordFilter } from './AlarmRecord'; export { ClusterFilter } from './ClusterFilter'; diff --git a/web/console/src/modules/alarmRecord/reducers/RootReducer.ts b/web/console/src/modules/alarmRecord/reducers/RootReducer.ts index 539a01131..af4cdb403 100644 --- a/web/console/src/modules/alarmRecord/reducers/RootReducer.ts +++ b/web/console/src/modules/alarmRecord/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { router } from '../router'; import * as ActionTypes from '../constants/ActionTypes'; diff --git a/web/console/src/modules/alarmRecord/router.ts b/web/console/src/modules/alarmRecord/router.ts index 3301ba292..2eb39427a 100644 --- a/web/console/src/modules/alarmRecord/router.ts +++ b/web/console/src/modules/alarmRecord/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/alarmRecord/stores/RootStore.ts b/web/console/src/modules/alarmRecord/stores/RootStore.ts index de5a4b40b..129458081 100644 --- a/web/console/src/modules/alarmRecord/stores/RootStore.ts +++ b/web/console/src/modules/alarmRecord/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/modules/application/WebAPI.ts b/web/console/src/modules/application/WebAPI.ts index 05cba5fa0..ac78f4657 100644 --- a/web/console/src/modules/application/WebAPI.ts +++ b/web/console/src/modules/application/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { OperationResult, QueryState, RecordSet } from '@tencent/ff-redux'; import { @@ -46,8 +63,8 @@ import { export async function fetchClusterList(query: QueryState) { const resourceInfo: ResourceInfo = resourceConfig()['cluster']; const url = reduceK8sRestfulPath({ resourceInfo }); - let rr: RequestResult = await GET({ url }); - let objs: Cluster[] = !rr.error && rr.data.items ? rr.data.items : []; + const rr: RequestResult = await GET({ url }); + const objs: Cluster[] = !rr.error && rr.data.items ? rr.data.items : []; const result: RecordSet = { recordCount: objs.length, records: objs @@ -63,8 +80,8 @@ export async function fetchNamespaceList(query: QueryState) { const { keyword, filter } = query; const resourceInfo: ResourceInfo = resourceConfig()['ns']; const url = reduceK8sRestfulPath({ resourceInfo }); - let rr: RequestResult = await GET({ url, clusterId: filter.cluster }); - let objs: Namespace[] = !rr.error && rr.data.items ? rr.data.items : []; + const rr: RequestResult = await GET({ url, clusterId: filter.cluster }); + const objs: Namespace[] = !rr.error && rr.data.items ? rr.data.items : []; const result: RecordSet = { recordCount: objs.length, records: objs @@ -80,8 +97,8 @@ export async function fetchProjectNamespaceList(query: QueryState = { recordCount: objs.length, records: objs @@ -96,12 +113,18 @@ export async function fetchProjectNamespaceList(query: QueryState) { const { keyword, filter } = query; - const queryObj = {}; + const queryObj = { + fieldSelector: { + 'spec.targetNamespace': filter.namespace, + 'spec.targetCluster': filter.cluster + } + }; const resourceInfo: ResourceInfo = resourceConfig()['app']; - const url = reduceK8sRestfulPath({ resourceInfo, namespace: filter.namespace, isSpecialNamespace: true }); + const url = reduceK8sRestfulPath({ resourceInfo: { ...resourceInfo, namespaces: undefined } }); const queryString = reduceK8sQueryString({ k8sQueryObj: queryObj }); - let rr: RequestResult = await GET({ url: url + queryString, clusterId: filter.cluster, keyword }); - let objs: App[] = !rr.error && rr.data.items ? rr.data.items : []; + + const rr: RequestResult = await GET({ url: url + queryString, clusterId: filter.cluster, keyword }); + const objs: App[] = !rr.error && rr.data.items ? rr.data.items : []; const result: RecordSet = { recordCount: objs.length, records: objs @@ -121,7 +144,7 @@ export async function fetchApp(filter: AppDetailFilter) { specificName: filter.name, isSpecialNamespace: true }); - let rr: RequestResult = await GET({ url, clusterId: filter.cluster }); + const rr: RequestResult = await GET({ url, clusterId: filter.cluster }); return rr.data; } @@ -137,7 +160,7 @@ export async function updateApp([appInfo]) { specificName: appInfo.metadata.name, isSpecialNamespace: true }); - let rr: RequestResult = await PUT({ url, bodyData: appInfo }); + const rr: RequestResult = await PUT({ url, bodyData: appInfo }); return operationResult(rr.data, rr.error); } @@ -152,7 +175,7 @@ export async function addApp([appInfo]) { namespace: appInfo.metadata.namespace, isSpecialNamespace: true }); - let rr: RequestResult = await POST({ url, bodyData: appInfo }); + const rr: RequestResult = await POST({ url, bodyData: appInfo }); return operationResult(rr.data, rr.error); } @@ -161,14 +184,14 @@ export async function addApp([appInfo]) { * @param group */ export async function deleteApp([app]: App[]) { - let resourceInfo: ResourceInfo = resourceConfig()['app']; + const resourceInfo: ResourceInfo = resourceConfig()['app']; const url = reduceK8sRestfulPath({ resourceInfo, namespace: app.metadata.namespace, specificName: app.metadata.name, isSpecialNamespace: true }); - let rr: RequestResult = await DELETE({ url }); + const rr: RequestResult = await DELETE({ url }); return operationResult(rr.data, rr.error); } @@ -185,7 +208,7 @@ export async function fetchAppResource(filter: AppResourceFilter) { extraResource: 'resources', isSpecialNamespace: true }); - let rr: RequestResult = await GET({ url, clusterId: filter.cluster }); + const rr: RequestResult = await GET({ url, clusterId: filter.cluster }); return rr.data; } @@ -202,7 +225,7 @@ export async function fetchAppHistory(filter: AppHistoryFilter) { extraResource: 'histories', isSpecialNamespace: true }); - let rr: RequestResult = await GET({ url, clusterId: filter.cluster }); + const rr: RequestResult = await GET({ url, clusterId: filter.cluster }); return rr.data; } @@ -211,7 +234,7 @@ export async function fetchAppHistory(filter: AppHistoryFilter) { * @param group */ export async function rollbackApp([app]: History[]) { - let resourceInfo: ResourceInfo = resourceConfig()['app']; + const resourceInfo: ResourceInfo = resourceConfig()['app']; const namespace = (app.involvedObject && app.involvedObject.metadata && app.involvedObject.metadata.namespace) || ''; const name = (app.involvedObject && app.involvedObject.metadata && app.involvedObject.metadata.name) || ''; const cluster = (app.involvedObject && app.involvedObject.spec && app.involvedObject.spec.targetCluster) || ''; @@ -227,7 +250,7 @@ export async function rollbackApp([app]: History[]) { isSpecialNamespace: true }); const queryString = reduceK8sQueryString({ k8sQueryObj: queryObj }); - let rr: RequestResult = await POST({ url: url + queryString, bodyData: {}, clusterId: cluster }); + const rr: RequestResult = await POST({ url: url + queryString, bodyData: {}, clusterId: cluster }); return operationResult(rr.data, rr.error); } @@ -250,18 +273,15 @@ export async function fetchChartList(query: QueryState) { } : {}; const resourceInfo: ResourceInfo = resourceConfig()['chart']; - let opts = { resourceInfo: resourceInfo }; - if (filter.namespace) { - opts['namespace'] = filter.namespace; - opts['isSpecialNamespace'] = true; - } + const opts = { resourceInfo: { ...resourceInfo, namespaces: undefined } }; + const url = reduceK8sRestfulPath(opts); const queryString = reduceK8sQueryString({ k8sQueryObj: queryObj }); - let rr: RequestResult = await GET({ + const rr: RequestResult = await GET({ url: url + queryString, keyword }); - let objs: Chart[] = !rr.error && rr.data.items ? rr.data.items : []; + const objs: Chart[] = !rr.error && rr.data.items ? rr.data.items : []; const result: RecordSet = { recordCount: objs.length, records: objs @@ -288,7 +308,7 @@ export async function fetchChartInfo(filter: ChartInfoFilter) { isSpecialNamespace: true }); const queryString = reduceK8sQueryString({ k8sQueryObj: queryObj }); - let rr: RequestResult = await GET({ + const rr: RequestResult = await GET({ url: url + '/' + filter.chartVersion + queryString }); return rr.data; @@ -304,8 +324,8 @@ export async function fetchChartGroupList(query: QueryState) { const resourceInfo: ResourceInfo = resourceConfig()['chartgroup']; const url = reduceK8sRestfulPath({ resourceInfo }); const queryString = reduceK8sQueryString({ k8sQueryObj: queryObj }); - let rr: RequestResult = await GET({ url: url + queryString, keyword }); - let objs: ChartGroup[] = !rr.error && rr.data.items ? rr.data.items : []; + const rr: RequestResult = await GET({ url: url + queryString, keyword }); + const objs: ChartGroup[] = !rr.error && rr.data.items ? rr.data.items : []; const result: RecordSet = { recordCount: objs.length, records: objs @@ -377,11 +397,11 @@ export async function fetchPortalProjectList(query: QueryState) { }; const resourceInfo: ResourceInfo = resourceConfig()['portal']; const url = reduceK8sRestfulPath({ resourceInfo }); - let rr: RequestResult = await GET({ url }); + const rr: RequestResult = await GET({ url }); if (rr.error) { return empty; } - let items = Object.keys(rr.data.projects).map(key => { + const items = Object.keys(rr.data.projects).map(key => { return { id: key, metadata: { diff --git a/web/console/src/modules/application/actions/app/createActions.ts b/web/console/src/modules/application/actions/app/createActions.ts index 7bb2a8a65..f263006f1 100644 --- a/web/console/src/modules/application/actions/app/createActions.ts +++ b/web/console/src/modules/application/actions/app/createActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction, extend, diff --git a/web/console/src/modules/application/actions/app/detailActions.ts b/web/console/src/modules/application/actions/app/detailActions.ts index 971f07388..929ff20f0 100644 --- a/web/console/src/modules/application/actions/app/detailActions.ts +++ b/web/console/src/modules/application/actions/app/detailActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction, extend, diff --git a/web/console/src/modules/application/actions/app/historyActions.ts b/web/console/src/modules/application/actions/app/historyActions.ts index 181188f6d..2409aba0d 100644 --- a/web/console/src/modules/application/actions/app/historyActions.ts +++ b/web/console/src/modules/application/actions/app/historyActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, createFFObjectActions, diff --git a/web/console/src/modules/application/actions/app/index.ts b/web/console/src/modules/application/actions/app/index.ts index a08806c5a..f7823a440 100644 --- a/web/console/src/modules/application/actions/app/index.ts +++ b/web/console/src/modules/application/actions/app/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; import { createActions } from './createActions'; import { detailActions } from './detailActions'; diff --git a/web/console/src/modules/application/actions/app/listActions.ts b/web/console/src/modules/application/actions/app/listActions.ts index e1e5142a5..42c0a501e 100644 --- a/web/console/src/modules/application/actions/app/listActions.ts +++ b/web/console/src/modules/application/actions/app/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/application/actions/app/resourceActions.ts b/web/console/src/modules/application/actions/app/resourceActions.ts index 4bcad53cb..b32e297d8 100644 --- a/web/console/src/modules/application/actions/app/resourceActions.ts +++ b/web/console/src/modules/application/actions/app/resourceActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, createFFObjectActions, uuid } from '@tencent/ff-redux'; import * as JsYAML from 'js-yaml'; import { RootState, AppResource, AppResourceFilter, Resource } from '../../models'; diff --git a/web/console/src/modules/application/actions/chart/index.ts b/web/console/src/modules/application/actions/chart/index.ts index 82f333270..b743c23e0 100644 --- a/web/console/src/modules/application/actions/chart/index.ts +++ b/web/console/src/modules/application/actions/chart/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; export const chartActions = { diff --git a/web/console/src/modules/application/actions/chart/listActions.ts b/web/console/src/modules/application/actions/chart/listActions.ts index f81c2f6ee..563d26d45 100644 --- a/web/console/src/modules/application/actions/chart/listActions.ts +++ b/web/console/src/modules/application/actions/chart/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/application/actions/chartGroup/index.ts b/web/console/src/modules/application/actions/chartGroup/index.ts index 7e6b74e20..5a6f88848 100644 --- a/web/console/src/modules/application/actions/chartGroup/index.ts +++ b/web/console/src/modules/application/actions/chartGroup/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; export const chartGroupActions = { diff --git a/web/console/src/modules/application/actions/chartGroup/listActions.ts b/web/console/src/modules/application/actions/chartGroup/listActions.ts index d419c7004..c98ba9eb5 100644 --- a/web/console/src/modules/application/actions/chartGroup/listActions.ts +++ b/web/console/src/modules/application/actions/chartGroup/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/application/actions/cluster/index.ts b/web/console/src/modules/application/actions/cluster/index.ts index b7786fac0..d22d7590d 100644 --- a/web/console/src/modules/application/actions/cluster/index.ts +++ b/web/console/src/modules/application/actions/cluster/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; export const clusterActions = { diff --git a/web/console/src/modules/application/actions/cluster/listActions.ts b/web/console/src/modules/application/actions/cluster/listActions.ts index e70410b0d..11903c56d 100644 --- a/web/console/src/modules/application/actions/cluster/listActions.ts +++ b/web/console/src/modules/application/actions/cluster/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/application/actions/index.ts b/web/console/src/modules/application/actions/index.ts index cf93e0fdb..24f8435fc 100644 --- a/web/console/src/modules/application/actions/index.ts +++ b/web/console/src/modules/application/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { appActions } from './app'; import { clusterActions } from './cluster'; import { namespaceActions, projectNamespaceActions } from './namespace'; diff --git a/web/console/src/modules/application/actions/namespace/index.ts b/web/console/src/modules/application/actions/namespace/index.ts index 2032c5dfb..459589141 100644 --- a/web/console/src/modules/application/actions/namespace/index.ts +++ b/web/console/src/modules/application/actions/namespace/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; import { projectNamespaceListActions } from './projectNamespaceListActions'; diff --git a/web/console/src/modules/application/actions/namespace/listActions.ts b/web/console/src/modules/application/actions/namespace/listActions.ts index 0d5055e14..019435e31 100644 --- a/web/console/src/modules/application/actions/namespace/listActions.ts +++ b/web/console/src/modules/application/actions/namespace/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/application/actions/namespace/projectNamespaceListActions.ts b/web/console/src/modules/application/actions/namespace/projectNamespaceListActions.ts index 5f72f8874..d69373b34 100644 --- a/web/console/src/modules/application/actions/namespace/projectNamespaceListActions.ts +++ b/web/console/src/modules/application/actions/namespace/projectNamespaceListActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/application/actions/project/index.ts b/web/console/src/modules/application/actions/project/index.ts index e0a240d9c..c82b305f5 100644 --- a/web/console/src/modules/application/actions/project/index.ts +++ b/web/console/src/modules/application/actions/project/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; export const projectActions = { diff --git a/web/console/src/modules/application/actions/project/listActions.ts b/web/console/src/modules/application/actions/project/listActions.ts index 1c8d1ec68..4feef2a21 100644 --- a/web/console/src/modules/application/actions/project/listActions.ts +++ b/web/console/src/modules/application/actions/project/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, createFFListActions } from '@tencent/ff-redux'; import { RootState, Project } from '../../models'; import * as ActionTypes from '../../constants/ActionTypes'; diff --git a/web/console/src/modules/application/components/ApplicationApp.tsx b/web/console/src/modules/application/components/ApplicationApp.tsx index 772087325..b527b189a 100644 --- a/web/console/src/modules/application/components/ApplicationApp.tsx +++ b/web/console/src/modules/application/components/ApplicationApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/application/components/app/AppContainer.tsx b/web/console/src/modules/application/components/app/AppContainer.tsx index 152fdbe38..d814b3281 100644 --- a/web/console/src/modules/application/components/app/AppContainer.tsx +++ b/web/console/src/modules/application/components/app/AppContainer.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/application/components/app/ChartActionPanel.tsx b/web/console/src/modules/application/components/app/ChartActionPanel.tsx index b490c6298..49d331105 100644 --- a/web/console/src/modules/application/components/app/ChartActionPanel.tsx +++ b/web/console/src/modules/application/components/app/ChartActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox, Segment, Select } from '@tea/component'; diff --git a/web/console/src/modules/application/components/app/ChartTablePanel.tsx b/web/console/src/modules/application/components/app/ChartTablePanel.tsx index 3ae0f6d03..e6cafddbd 100644 --- a/web/console/src/modules/application/components/app/ChartTablePanel.tsx +++ b/web/console/src/modules/application/components/app/ChartTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { TablePanel as CTablePanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/application/components/app/ChartValueYamlDialog.tsx b/web/console/src/modules/application/components/app/ChartValueYamlDialog.tsx index cb095505f..f9b6faa47 100644 --- a/web/console/src/modules/application/components/app/ChartValueYamlDialog.tsx +++ b/web/console/src/modules/application/components/app/ChartValueYamlDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as JsYAML from 'js-yaml'; import * as React from 'react'; diff --git a/web/console/src/modules/application/components/app/create/AppCreate.tsx b/web/console/src/modules/application/components/app/create/AppCreate.tsx index 758f3b2f4..9c193b28f 100644 --- a/web/console/src/modules/application/components/app/create/AppCreate.tsx +++ b/web/console/src/modules/application/components/app/create/AppCreate.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/application/components/app/create/BaseInfoPanel.tsx b/web/console/src/modules/application/components/app/create/BaseInfoPanel.tsx index 3f9e73a88..8b91d1224 100644 --- a/web/console/src/modules/application/components/app/create/BaseInfoPanel.tsx +++ b/web/console/src/modules/application/components/app/create/BaseInfoPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/application/components/app/create/HeaderPanel.tsx b/web/console/src/modules/application/components/app/create/HeaderPanel.tsx index 10fc7f682..8f61fdd8e 100644 --- a/web/console/src/modules/application/components/app/create/HeaderPanel.tsx +++ b/web/console/src/modules/application/components/app/create/HeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from '../AppContainer'; import { Justify, Icon } from '@tencent/tea-component'; diff --git a/web/console/src/modules/application/components/app/create/NamespacePanel.project.tsx b/web/console/src/modules/application/components/app/create/NamespacePanel.project.tsx index 1e4844ac3..4a2eabe61 100644 --- a/web/console/src/modules/application/components/app/create/NamespacePanel.project.tsx +++ b/web/console/src/modules/application/components/app/create/NamespacePanel.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/application/components/app/create/NamespacePanel.tsx b/web/console/src/modules/application/components/app/create/NamespacePanel.tsx index 4c40ce3cf..7777a0f61 100644 --- a/web/console/src/modules/application/components/app/create/NamespacePanel.tsx +++ b/web/console/src/modules/application/components/app/create/NamespacePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/application/components/app/detail/AppDetail.tsx b/web/console/src/modules/application/components/app/detail/AppDetail.tsx index eb818daf3..d226c42b7 100644 --- a/web/console/src/modules/application/components/app/detail/AppDetail.tsx +++ b/web/console/src/modules/application/components/app/detail/AppDetail.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/application/components/app/detail/BasicInfoPanel.tsx b/web/console/src/modules/application/components/app/detail/BasicInfoPanel.tsx index d2935ec66..dd2975747 100644 --- a/web/console/src/modules/application/components/app/detail/BasicInfoPanel.tsx +++ b/web/console/src/modules/application/components/app/detail/BasicInfoPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../AppContainer'; diff --git a/web/console/src/modules/application/components/app/detail/HeaderPanel.tsx b/web/console/src/modules/application/components/app/detail/HeaderPanel.tsx index 67aa35ca7..f9520e3b5 100644 --- a/web/console/src/modules/application/components/app/detail/HeaderPanel.tsx +++ b/web/console/src/modules/application/components/app/detail/HeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../AppContainer'; diff --git a/web/console/src/modules/application/components/app/detail/HistoryTablePanel.tsx b/web/console/src/modules/application/components/app/detail/HistoryTablePanel.tsx index c3e14b401..d1397e426 100644 --- a/web/console/src/modules/application/components/app/detail/HistoryTablePanel.tsx +++ b/web/console/src/modules/application/components/app/detail/HistoryTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { LinkButton, YamlEditorPanel } from '../../../../common/components'; diff --git a/web/console/src/modules/application/components/app/detail/ResourceTablePanel.tsx b/web/console/src/modules/application/components/app/detail/ResourceTablePanel.tsx index b1bfc38e4..3038311f0 100644 --- a/web/console/src/modules/application/components/app/detail/ResourceTablePanel.tsx +++ b/web/console/src/modules/application/components/app/detail/ResourceTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Table, TableColumn, Text, Modal, Card, Bubble, Icon, ContentView } from '@tea/component'; diff --git a/web/console/src/modules/application/components/app/list/ActionPanel.tsx b/web/console/src/modules/application/components/app/list/ActionPanel.tsx index 0c8ac0a68..c581ec373 100644 --- a/web/console/src/modules/application/components/app/list/ActionPanel.tsx +++ b/web/console/src/modules/application/components/app/list/ActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/application/components/app/list/AppList.tsx b/web/console/src/modules/application/components/app/list/AppList.tsx index 2ac67646e..2786aa69a 100644 --- a/web/console/src/modules/application/components/app/list/AppList.tsx +++ b/web/console/src/modules/application/components/app/list/AppList.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/application/components/app/list/HeaderPanel.project.tsx b/web/console/src/modules/application/components/app/list/HeaderPanel.project.tsx index 9d9344e45..8b2faf4b9 100644 --- a/web/console/src/modules/application/components/app/list/HeaderPanel.project.tsx +++ b/web/console/src/modules/application/components/app/list/HeaderPanel.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Select, Tooltip } from '@tea/component'; diff --git a/web/console/src/modules/application/components/app/list/HeaderPanel.tsx b/web/console/src/modules/application/components/app/list/HeaderPanel.tsx index 93e5830f9..f769da217 100644 --- a/web/console/src/modules/application/components/app/list/HeaderPanel.tsx +++ b/web/console/src/modules/application/components/app/list/HeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon } from '@tea/component'; diff --git a/web/console/src/modules/application/components/app/list/TablePanel.tsx b/web/console/src/modules/application/components/app/list/TablePanel.tsx index f34f26d8c..5d680dd5f 100644 --- a/web/console/src/modules/application/components/app/list/TablePanel.tsx +++ b/web/console/src/modules/application/components/app/list/TablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { TablePanel as CTablePanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/application/constants/ActionTypes.ts b/web/console/src/modules/application/constants/ActionTypes.ts index 109d73669..b9192653f 100644 --- a/web/console/src/modules/application/constants/ActionTypes.ts +++ b/web/console/src/modules/application/constants/ActionTypes.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** ----- 选择栏 ----- */ export const ClusterList = 'ClusterList'; export const NamespaceList = 'NamespaceList'; diff --git a/web/console/src/modules/application/constants/AppValidateConfig.ts b/web/console/src/modules/application/constants/AppValidateConfig.ts index 6eed4811b..39491d0bb 100644 --- a/web/console/src/modules/application/constants/AppValidateConfig.ts +++ b/web/console/src/modules/application/constants/AppValidateConfig.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ModelTypeEnum, RuleTypeEnum, ValidateSchema, ValidatorStatusEnum } from '@tencent/ff-validator'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/application/constants/initState.ts b/web/console/src/modules/application/constants/initState.ts index c465b2129..2b2b9fb89 100644 --- a/web/console/src/modules/application/constants/initState.ts +++ b/web/console/src/modules/application/constants/initState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { uuid } from '@tencent/ff-redux'; export const initAppCreationState = { diff --git a/web/console/src/modules/application/index.tsx b/web/console/src/modules/application/index.tsx index eb1233104..dd3852b57 100644 --- a/web/console/src/modules/application/index.tsx +++ b/web/console/src/modules/application/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { ApplicationAppContainer } from './components/ApplicationApp'; diff --git a/web/console/src/modules/application/models/App.ts b/web/console/src/modules/application/models/App.ts index ba92740ae..f91ca985a 100644 --- a/web/console/src/modules/application/models/App.ts +++ b/web/console/src/modules/application/models/App.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/application/models/Chart.ts b/web/console/src/modules/application/models/Chart.ts index 183752a66..5e13c1adb 100644 --- a/web/console/src/modules/application/models/Chart.ts +++ b/web/console/src/modules/application/models/Chart.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/application/models/ChartGroup.ts b/web/console/src/modules/application/models/ChartGroup.ts index 3ed43b43f..ba7d28a2d 100644 --- a/web/console/src/modules/application/models/ChartGroup.ts +++ b/web/console/src/modules/application/models/ChartGroup.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface ChartGroup extends Identifiable { diff --git a/web/console/src/modules/application/models/Cluster.ts b/web/console/src/modules/application/models/Cluster.ts index 7e479b84d..ee8c1865e 100644 --- a/web/console/src/modules/application/models/Cluster.ts +++ b/web/console/src/modules/application/models/Cluster.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/application/models/Namespace.ts b/web/console/src/modules/application/models/Namespace.ts index 71f761888..f183a1261 100644 --- a/web/console/src/modules/application/models/Namespace.ts +++ b/web/console/src/modules/application/models/Namespace.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/application/models/Project.ts b/web/console/src/modules/application/models/Project.ts index b16849c2d..e3d46a028 100644 --- a/web/console/src/modules/application/models/Project.ts +++ b/web/console/src/modules/application/models/Project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Project extends Identifiable { diff --git a/web/console/src/modules/application/models/RootState.ts b/web/console/src/modules/application/models/RootState.ts index d43dae32b..8e3fa71a8 100644 --- a/web/console/src/modules/application/models/RootState.ts +++ b/web/console/src/modules/application/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { WorkflowState, FetcherState, FFListModel, FFObjectModel } from '@tencent/ff-redux'; import { App, diff --git a/web/console/src/modules/application/models/index.ts b/web/console/src/modules/application/models/index.ts index cc444d45c..7f5b11888 100644 --- a/web/console/src/modules/application/models/index.ts +++ b/web/console/src/modules/application/models/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './App'; export * from './Cluster'; export * from './Namespace'; diff --git a/web/console/src/modules/application/reducers/RootReducer.ts b/web/console/src/modules/application/reducers/RootReducer.ts index 23316b244..fe65eee61 100644 --- a/web/console/src/modules/application/reducers/RootReducer.ts +++ b/web/console/src/modules/application/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { diff --git a/web/console/src/modules/application/router.project.ts b/web/console/src/modules/application/router.project.ts index cd678570f..cad2f6705 100644 --- a/web/console/src/modules/application/router.project.ts +++ b/web/console/src/modules/application/router.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/application/router.ts b/web/console/src/modules/application/router.ts index 41736ccf0..05469489d 100644 --- a/web/console/src/modules/application/router.ts +++ b/web/console/src/modules/application/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/application/stores/RootStore.ts b/web/console/src/modules/application/stores/RootStore.ts index 528dcd48c..83ff139b0 100644 --- a/web/console/src/modules/application/stores/RootStore.ts +++ b/web/console/src/modules/application/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/modules/audit/WebAPI.ts b/web/console/src/modules/audit/WebAPI.ts index 936d4eece..2d1d5b9b0 100644 --- a/web/console/src/modules/audit/WebAPI.ts +++ b/web/console/src/modules/audit/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { OperationResult, QueryState, RecordSet, uuid } from '@tencent/ff-redux'; import { Base64 } from 'js-base64'; diff --git a/web/console/src/modules/audit/actions/auditActions.ts b/web/console/src/modules/audit/actions/auditActions.ts index 5b95a032e..305a20ce1 100644 --- a/web/console/src/modules/audit/actions/auditActions.ts +++ b/web/console/src/modules/audit/actions/auditActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, FetchOptions, generateFetcherActionCreator, generateWorkflowActionCreator, OperationTrigger diff --git a/web/console/src/modules/audit/actions/index.ts b/web/console/src/modules/audit/actions/index.ts index 362020b75..d70d1a3e9 100644 --- a/web/console/src/modules/audit/actions/index.ts +++ b/web/console/src/modules/audit/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { auditActions } from './auditActions'; export const allActions = { audit: auditActions diff --git a/web/console/src/modules/audit/components/AuditApp.tsx b/web/console/src/modules/audit/components/AuditApp.tsx index 25938bb10..149ee4700 100644 --- a/web/console/src/modules/audit/components/AuditApp.tsx +++ b/web/console/src/modules/audit/components/AuditApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/audit/components/AuditDetailsDialog.tsx b/web/console/src/modules/audit/components/AuditDetailsDialog.tsx index fa37ef760..b3a99ec6e 100644 --- a/web/console/src/modules/audit/components/AuditDetailsDialog.tsx +++ b/web/console/src/modules/audit/components/AuditDetailsDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; diff --git a/web/console/src/modules/audit/components/AuditPanel.tsx b/web/console/src/modules/audit/components/AuditPanel.tsx index b9db16ce9..b1714048f 100644 --- a/web/console/src/modules/audit/components/AuditPanel.tsx +++ b/web/console/src/modules/audit/components/AuditPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { Card, Form, Select, Text, DatePicker, Table, Button } from 'tea-component'; diff --git a/web/console/src/modules/audit/components/AuditSettingDialog.tsx b/web/console/src/modules/audit/components/AuditSettingDialog.tsx index 66b58bdab..b49f8a274 100644 --- a/web/console/src/modules/audit/components/AuditSettingDialog.tsx +++ b/web/console/src/modules/audit/components/AuditSettingDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 审计配置 */ diff --git a/web/console/src/modules/audit/constants/ActionTypes.ts b/web/console/src/modules/audit/constants/ActionTypes.ts index 7e4531d05..6c35da280 100644 --- a/web/console/src/modules/audit/constants/ActionTypes.ts +++ b/web/console/src/modules/audit/constants/ActionTypes.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const FetchAuditList = 'FetchAuditList'; export const FetchAuditFilterCondition = 'FetchAuditFilterCondition'; diff --git a/web/console/src/modules/audit/index.tsx b/web/console/src/modules/audit/index.tsx index c65e141cf..476ab4fe8 100644 --- a/web/console/src/modules/audit/index.tsx +++ b/web/console/src/modules/audit/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { AuditAppContainer } from './components/AuditApp'; diff --git a/web/console/src/modules/audit/models/Audit.ts b/web/console/src/modules/audit/models/Audit.ts index 5b07cc848..119289877 100644 --- a/web/console/src/modules/audit/models/Audit.ts +++ b/web/console/src/modules/audit/models/Audit.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Audit extends Identifiable { diff --git a/web/console/src/modules/audit/models/RootState.ts b/web/console/src/modules/audit/models/RootState.ts index d934dd68f..853796a53 100644 --- a/web/console/src/modules/audit/models/RootState.ts +++ b/web/console/src/modules/audit/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { RouteState } from '../../../../helpers'; import { FetcherState, FFListModel, OperationResult, RecordSet, WorkflowState } from '@tencent/ff-redux'; import { Audit, AuditFilter, AuditFilterConditionValues } from '../models'; diff --git a/web/console/src/modules/audit/models/index.ts b/web/console/src/modules/audit/models/index.ts index 0064fa1ef..9e0495c5f 100644 --- a/web/console/src/modules/audit/models/index.ts +++ b/web/console/src/modules/audit/models/index.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { RootState } from './RootState'; export { Audit, AuditFilter, AuditFilterConditionValues } from './Audit'; diff --git a/web/console/src/modules/audit/reducers/RootReducer.ts b/web/console/src/modules/audit/reducers/RootReducer.ts index b9b5acf26..ab4c55902 100644 --- a/web/console/src/modules/audit/reducers/RootReducer.ts +++ b/web/console/src/modules/audit/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { router } from '../router'; import * as ActionTypes from '../constants/ActionTypes'; diff --git a/web/console/src/modules/audit/router.ts b/web/console/src/modules/audit/router.ts index abdfdf22a..df782225c 100644 --- a/web/console/src/modules/audit/router.ts +++ b/web/console/src/modules/audit/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/audit/stores/RootStore.ts b/web/console/src/modules/audit/stores/RootStore.ts index de5a4b40b..129458081 100644 --- a/web/console/src/modules/audit/stores/RootStore.ts +++ b/web/console/src/modules/audit/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/modules/cluster/WebAPI.ts b/web/console/src/modules/cluster/WebAPI.ts index acf46c577..efb2fb2bf 100644 --- a/web/console/src/modules/cluster/WebAPI.ts +++ b/web/console/src/modules/cluster/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { QueryState, RecordSet, uuid } from '@tencent/ff-redux'; import { subRouterConfig } from '../../../config'; diff --git a/web/console/src/modules/cluster/WebAPI/ClusterAPI.ts b/web/console/src/modules/cluster/WebAPI/ClusterAPI.ts index 4d277dd8d..b6f61193d 100644 --- a/web/console/src/modules/cluster/WebAPI/ClusterAPI.ts +++ b/web/console/src/modules/cluster/WebAPI/ClusterAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { QueryState, RecordSet, uuid } from '@tencent/ff-redux'; import { resourceConfig } from '../../../../config'; diff --git a/web/console/src/modules/cluster/WebAPI/ComputerAPI.ts b/web/console/src/modules/cluster/WebAPI/ComputerAPI.ts index 7d2c4d05c..abff94890 100644 --- a/web/console/src/modules/cluster/WebAPI/ComputerAPI.ts +++ b/web/console/src/modules/cluster/WebAPI/ComputerAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { QueryState, RecordSet } from '@tencent/ff-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/cluster/WebAPI/K8sResourceAPI.ts b/web/console/src/modules/cluster/WebAPI/K8sResourceAPI.ts index 89c75546d..949788552 100644 --- a/web/console/src/modules/cluster/WebAPI/K8sResourceAPI.ts +++ b/web/console/src/modules/cluster/WebAPI/K8sResourceAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { resourceConfig } from '@config'; import { QueryState, RecordSet, uuid } from '@tencent/ff-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/cluster/WebAPI/ProjectAPI.ts b/web/console/src/modules/cluster/WebAPI/ProjectAPI.ts index 21246bc1c..0a7fbfc7d 100644 --- a/web/console/src/modules/cluster/WebAPI/ProjectAPI.ts +++ b/web/console/src/modules/cluster/WebAPI/ProjectAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { QueryState, RecordSet, uuid } from '@tencent/ff-redux'; import { resourceConfig } from '../../../../config/resourceConfig'; diff --git a/web/console/src/modules/cluster/WebAPI/index.ts b/web/console/src/modules/cluster/WebAPI/index.ts index 079578276..deae3c827 100644 --- a/web/console/src/modules/cluster/WebAPI/index.ts +++ b/web/console/src/modules/cluster/WebAPI/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './ClusterAPI'; export * from './ComputerAPI'; export * from './K8sResourceAPI'; diff --git a/web/console/src/modules/cluster/WebAPI/scale.ts b/web/console/src/modules/cluster/WebAPI/scale.ts index 8e6f1a08f..d22497e66 100644 --- a/web/console/src/modules/cluster/WebAPI/scale.ts +++ b/web/console/src/modules/cluster/WebAPI/scale.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Modal } from '@tea/component'; import { Method, reduceK8sRestfulPath, reduceNetworkRequest } from '@helper/index'; import { RequestParams, Resource, ResourceInfo } from '../../common/models'; diff --git a/web/console/src/modules/cluster/actions/clusterActions.ts b/web/console/src/modules/cluster/actions/clusterActions.ts index dbd1ae3e9..58d41e6e3 100644 --- a/web/console/src/modules/cluster/actions/clusterActions.ts +++ b/web/console/src/modules/cluster/actions/clusterActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { AddonNameMapToGenerateName } from '@src/modules/addon/constants/Config'; import { AddonEditUniversalJsonYaml } from '@src/modules/addon/models'; import { createFFListActions, extend, FetchOptions, generateFetcherActionCreator, uuid } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/actions/clusterCreationAction.ts b/web/console/src/modules/cluster/actions/clusterCreationAction.ts index f312e3dd4..dc6809cd5 100644 --- a/web/console/src/modules/cluster/actions/clusterCreationAction.ts +++ b/web/console/src/modules/cluster/actions/clusterCreationAction.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { deepClone, ReduxAction, uuid } from '@tencent/ff-redux'; import * as ActionType from '../constants/ActionType'; diff --git a/web/console/src/modules/cluster/actions/cmEditActions.ts b/web/console/src/modules/cluster/actions/cmEditActions.ts index 97ac2b2e8..357f749e4 100644 --- a/web/console/src/modules/cluster/actions/cmEditActions.ts +++ b/web/console/src/modules/cluster/actions/cmEditActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction, uuid } from '@tencent/ff-redux'; import { cloneDeep } from '../../common/utils'; diff --git a/web/console/src/modules/cluster/actions/computerActions.ts b/web/console/src/modules/cluster/actions/computerActions.ts index 9f67d60fb..6ef581158 100644 --- a/web/console/src/modules/cluster/actions/computerActions.ts +++ b/web/console/src/modules/cluster/actions/computerActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { MachineStatus } from './../constants/Config'; import { createFFListActions, extend, RecordSet, uuid } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/actions/computerPodActions.ts b/web/console/src/modules/cluster/actions/computerPodActions.ts index 82ccdee67..d01396ad0 100644 --- a/web/console/src/modules/cluster/actions/computerPodActions.ts +++ b/web/console/src/modules/cluster/actions/computerPodActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator, RecordSet, ReduxAction } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/createICAction.ts b/web/console/src/modules/cluster/actions/createICAction.ts index a15ae38ac..1ab6b42a8 100644 --- a/web/console/src/modules/cluster/actions/createICAction.ts +++ b/web/console/src/modules/cluster/actions/createICAction.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { deepClone, ReduxAction, uuid } from '@tencent/ff-redux'; import * as ActionType from '../constants/ActionType'; diff --git a/web/console/src/modules/cluster/actions/dialogActions.ts b/web/console/src/modules/cluster/actions/dialogActions.ts index fd2d041d0..d9b423d89 100644 --- a/web/console/src/modules/cluster/actions/dialogActions.ts +++ b/web/console/src/modules/cluster/actions/dialogActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { RootState, DialogNameEnum } from '../models'; import { cloneDeep } from '../../common'; import * as ActionType from '../constants/ActionType'; diff --git a/web/console/src/modules/cluster/actions/index.ts b/web/console/src/modules/cluster/actions/index.ts index b79594b75..cf30de01b 100644 --- a/web/console/src/modules/cluster/actions/index.ts +++ b/web/console/src/modules/cluster/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { clusterCreationAction } from './clusterCreationAction'; import { clusterActions } from './clusterActions'; import { computerActions } from './computerActions'; diff --git a/web/console/src/modules/cluster/actions/lbcfEditActions.ts b/web/console/src/modules/cluster/actions/lbcfEditActions.ts index df612365f..e6b40f760 100644 --- a/web/console/src/modules/cluster/actions/lbcfEditActions.ts +++ b/web/console/src/modules/cluster/actions/lbcfEditActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FFReduxActionName } from './../constants/Config'; import { initStringArray } from './../constants/initState'; import { KeyValue } from 'src/modules/common'; diff --git a/web/console/src/modules/cluster/actions/modeActions.ts b/web/console/src/modules/cluster/actions/modeActions.ts index 5d5bf7c6b..2d8a9c4f2 100644 --- a/web/console/src/modules/cluster/actions/modeActions.ts +++ b/web/console/src/modules/cluster/actions/modeActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { regionActions } from './regionActions'; import { RootState } from '../models'; import * as ActionType from '../constants/ActionType'; diff --git a/web/console/src/modules/cluster/actions/namespaceActions.project.ts b/web/console/src/modules/cluster/actions/namespaceActions.project.ts index 331ac8877..5bceb6121 100644 --- a/web/console/src/modules/cluster/actions/namespaceActions.project.ts +++ b/web/console/src/modules/cluster/actions/namespaceActions.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator, uuid } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/namespaceActions.ts b/web/console/src/modules/cluster/actions/namespaceActions.ts index 913b6ef2b..008363df2 100644 --- a/web/console/src/modules/cluster/actions/namespaceActions.ts +++ b/web/console/src/modules/cluster/actions/namespaceActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/namespaceEditActions.ts b/web/console/src/modules/cluster/actions/namespaceEditActions.ts index 24f51e729..69b881f9a 100644 --- a/web/console/src/modules/cluster/actions/namespaceEditActions.ts +++ b/web/console/src/modules/cluster/actions/namespaceEditActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction } from '@tencent/ff-redux'; import * as ActionType from '../constants/ActionType'; diff --git a/web/console/src/modules/cluster/actions/projectNamespaceActions.project.ts b/web/console/src/modules/cluster/actions/projectNamespaceActions.project.ts index 2689d8f51..3907dc956 100644 --- a/web/console/src/modules/cluster/actions/projectNamespaceActions.project.ts +++ b/web/console/src/modules/cluster/actions/projectNamespaceActions.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator, RecordSet } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/regionActions.project.ts b/web/console/src/modules/cluster/actions/regionActions.project.ts index cd285ed0a..0a64b3e2c 100644 --- a/web/console/src/modules/cluster/actions/regionActions.project.ts +++ b/web/console/src/modules/cluster/actions/regionActions.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend } from '@tencent/ff-redux'; import { assureRegion } from '../../../../helpers'; diff --git a/web/console/src/modules/cluster/actions/regionActions.ts b/web/console/src/modules/cluster/actions/regionActions.ts index a428ab5bb..2d5e86886 100644 --- a/web/console/src/modules/cluster/actions/regionActions.ts +++ b/web/console/src/modules/cluster/actions/regionActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend } from '@tencent/ff-redux'; import { assureRegion } from '../../../../helpers'; diff --git a/web/console/src/modules/cluster/actions/resourceActions.project.ts b/web/console/src/modules/cluster/actions/resourceActions.project.ts index f8688f53e..6017e46c7 100644 --- a/web/console/src/modules/cluster/actions/resourceActions.project.ts +++ b/web/console/src/modules/cluster/actions/resourceActions.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, diff --git a/web/console/src/modules/cluster/actions/resourceActions.ts b/web/console/src/modules/cluster/actions/resourceActions.ts index aa2ba9aa5..4909d7a50 100644 --- a/web/console/src/modules/cluster/actions/resourceActions.ts +++ b/web/console/src/modules/cluster/actions/resourceActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, FetchOptions, ReduxAction } from '@tencent/ff-redux'; import { resourceConfig } from '../../../../config'; import { ResourceInfo } from '../../common/models'; diff --git a/web/console/src/modules/cluster/actions/resourceDetailActions.ts b/web/console/src/modules/cluster/actions/resourceDetailActions.ts index 2c6e86d93..cc25c92f3 100644 --- a/web/console/src/modules/cluster/actions/resourceDetailActions.ts +++ b/web/console/src/modules/cluster/actions/resourceDetailActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, diff --git a/web/console/src/modules/cluster/actions/resourceDetailEventActions.ts b/web/console/src/modules/cluster/actions/resourceDetailEventActions.ts index 6f4f83666..fe4a464d6 100644 --- a/web/console/src/modules/cluster/actions/resourceDetailEventActions.ts +++ b/web/console/src/modules/cluster/actions/resourceDetailEventActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, ReduxAction } from '@tencent/ff-redux'; import { resourceConfig } from '../../../../config'; diff --git a/web/console/src/modules/cluster/actions/resourceEventActions.ts b/web/console/src/modules/cluster/actions/resourceEventActions.ts index e93f44ddc..1bb768cf6 100644 --- a/web/console/src/modules/cluster/actions/resourceEventActions.ts +++ b/web/console/src/modules/cluster/actions/resourceEventActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/resourceLogActions.ts b/web/console/src/modules/cluster/actions/resourceLogActions.ts index 4f23a58d1..2defd68b9 100644 --- a/web/console/src/modules/cluster/actions/resourceLogActions.ts +++ b/web/console/src/modules/cluster/actions/resourceLogActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/resourcePodActions.ts b/web/console/src/modules/cluster/actions/resourcePodActions.ts index d7036eeba..321b3f1aa 100644 --- a/web/console/src/modules/cluster/actions/resourcePodActions.ts +++ b/web/console/src/modules/cluster/actions/resourcePodActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator, RecordSet, ReduxAction } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/resourcePodLogActions.ts b/web/console/src/modules/cluster/actions/resourcePodLogActions.ts index 46b7c223b..4fd61624b 100644 --- a/web/console/src/modules/cluster/actions/resourcePodLogActions.ts +++ b/web/console/src/modules/cluster/actions/resourcePodLogActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator, ReduxAction } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/resourceRsActions.ts b/web/console/src/modules/cluster/actions/resourceRsActions.ts index 58a40368d..5698d0004 100644 --- a/web/console/src/modules/cluster/actions/resourceRsActions.ts +++ b/web/console/src/modules/cluster/actions/resourceRsActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/secretEditActions.ts b/web/console/src/modules/cluster/actions/secretEditActions.ts index db561dae5..be84ca5c4 100644 --- a/web/console/src/modules/cluster/actions/secretEditActions.ts +++ b/web/console/src/modules/cluster/actions/secretEditActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, ReduxAction, uuid } from '@tencent/ff-redux'; import { generateFetcherActionCreator } from '@tencent/qcloud-redux-fetcher'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/serviceEditActions.ts b/web/console/src/modules/cluster/actions/serviceEditActions.ts index 4a01e7e4d..14571823c 100644 --- a/web/console/src/modules/cluster/actions/serviceEditActions.ts +++ b/web/console/src/modules/cluster/actions/serviceEditActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator, ReduxAction, uuid } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/subRouterActions.project.ts b/web/console/src/modules/cluster/actions/subRouterActions.project.ts index 4c5848184..045959068 100644 --- a/web/console/src/modules/cluster/actions/subRouterActions.project.ts +++ b/web/console/src/modules/cluster/actions/subRouterActions.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/subRouterActions.ts b/web/console/src/modules/cluster/actions/subRouterActions.ts index 0ec3e4c6b..cac435cee 100644 --- a/web/console/src/modules/cluster/actions/subRouterActions.ts +++ b/web/console/src/modules/cluster/actions/subRouterActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/validateCMActions.ts b/web/console/src/modules/cluster/actions/validateCMActions.ts index ab940caa0..edbd01c5e 100644 --- a/web/console/src/modules/cluster/actions/validateCMActions.ts +++ b/web/console/src/modules/cluster/actions/validateCMActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as ActionType from '../constants/ActionType'; import { RootState, ConfigMapEdit } from '../models'; import { cloneDeep } from '../../common/utils'; diff --git a/web/console/src/modules/cluster/actions/validateClusterCreationAction.ts b/web/console/src/modules/cluster/actions/validateClusterCreationAction.ts index 7d6824aaa..1cf44c91f 100644 --- a/web/console/src/modules/cluster/actions/validateClusterCreationAction.ts +++ b/web/console/src/modules/cluster/actions/validateClusterCreationAction.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ClusterCreationState } from './../models/ClusterCreationState'; import { RootState, NamespaceEdit } from '../models'; import { clusterCreationAction } from './clusterCreationAction'; diff --git a/web/console/src/modules/cluster/actions/validateCreateICAction.ts b/web/console/src/modules/cluster/actions/validateCreateICAction.ts index 747b23d74..83e4dac51 100644 --- a/web/console/src/modules/cluster/actions/validateCreateICAction.ts +++ b/web/console/src/modules/cluster/actions/validateCreateICAction.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as ActionType from '../constants/ActionType'; import { RootState, NamespaceEdit } from '../models'; import validatorJs from 'validator'; diff --git a/web/console/src/modules/cluster/actions/validateLbcfActions.ts b/web/console/src/modules/cluster/actions/validateLbcfActions.ts index df3d13f1e..1bdf60924 100644 --- a/web/console/src/modules/cluster/actions/validateLbcfActions.ts +++ b/web/console/src/modules/cluster/actions/validateLbcfActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { KeyValue } from 'src/modules/common'; import { deepClone, FFListModel } from '@tencent/ff-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/cluster/actions/validateNamespaceActions.ts b/web/console/src/modules/cluster/actions/validateNamespaceActions.ts index fd876d90b..443031658 100644 --- a/web/console/src/modules/cluster/actions/validateNamespaceActions.ts +++ b/web/console/src/modules/cluster/actions/validateNamespaceActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as ActionType from '../constants/ActionType'; import { RootState, NamespaceEdit } from '../models'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/cluster/actions/validateSecretActinos.ts b/web/console/src/modules/cluster/actions/validateSecretActinos.ts index c6e0834ed..16a5c44e8 100644 --- a/web/console/src/modules/cluster/actions/validateSecretActinos.ts +++ b/web/console/src/modules/cluster/actions/validateSecretActinos.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as ActionType from '../constants/ActionType'; import { RootState, SecretData, SecretEdit } from '../models'; import { cloneDeep } from '../../common/utils'; diff --git a/web/console/src/modules/cluster/actions/validateServiceActions.ts b/web/console/src/modules/cluster/actions/validateServiceActions.ts index 7380ab87b..347cdac05 100644 --- a/web/console/src/modules/cluster/actions/validateServiceActions.ts +++ b/web/console/src/modules/cluster/actions/validateServiceActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { SessionAffinity } from './../constants/Config'; import * as ActionType from '../constants/ActionType'; import { RootState, PortMap, ServiceEdit, Selector } from '../models'; diff --git a/web/console/src/modules/cluster/actions/validateWorkloadActions.ts b/web/console/src/modules/cluster/actions/validateWorkloadActions.ts index 630c8a6ec..35f892f07 100644 --- a/web/console/src/modules/cluster/actions/validateWorkloadActions.ts +++ b/web/console/src/modules/cluster/actions/validateWorkloadActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { affinityType } from './../constants/Config'; import * as ActionType from '../constants/ActionType'; import { diff --git a/web/console/src/modules/cluster/actions/validatorActions.ts b/web/console/src/modules/cluster/actions/validatorActions.ts index 3821725f2..e8191412c 100644 --- a/web/console/src/modules/cluster/actions/validatorActions.ts +++ b/web/console/src/modules/cluster/actions/validatorActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ComputerLabel, ComputerTaint } from './../models/Computer'; import { RootState } from '../models'; import * as ActionType from '../constants/ActionType'; diff --git a/web/console/src/modules/cluster/actions/workflowActions.ts b/web/console/src/modules/cluster/actions/workflowActions.ts index c71559b9a..493ef346d 100644 --- a/web/console/src/modules/cluster/actions/workflowActions.ts +++ b/web/console/src/modules/cluster/actions/workflowActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/cluster/actions/workloadConfigActions.ts b/web/console/src/modules/cluster/actions/workloadConfigActions.ts index 40c9bde1b..ab13a7435 100644 --- a/web/console/src/modules/cluster/actions/workloadConfigActions.ts +++ b/web/console/src/modules/cluster/actions/workloadConfigActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, uuid } from '@tencent/ff-redux'; import { generateFetcherActionCreator } from '@tencent/qcloud-redux-fetcher'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/workloadEditActions.ts b/web/console/src/modules/cluster/actions/workloadEditActions.ts index 579404289..5c44b3958 100644 --- a/web/console/src/modules/cluster/actions/workloadEditActions.ts +++ b/web/console/src/modules/cluster/actions/workloadEditActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ResourceInfo } from '@src/modules/common'; import { FFReduxActionName } from './../constants/Config'; import { Computer, ComputerFilter } from './../models/Computer'; diff --git a/web/console/src/modules/cluster/actions/workloadPvcActions.ts b/web/console/src/modules/cluster/actions/workloadPvcActions.ts index 7b08ed050..6110577e1 100644 --- a/web/console/src/modules/cluster/actions/workloadPvcActions.ts +++ b/web/console/src/modules/cluster/actions/workloadPvcActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/cluster/actions/workloadSecretActions.ts b/web/console/src/modules/cluster/actions/workloadSecretActions.ts index 6d730a7a4..3976097e9 100644 --- a/web/console/src/modules/cluster/actions/workloadSecretActions.ts +++ b/web/console/src/modules/cluster/actions/workloadSecretActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator, ReduxAction, uuid } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/components/ApplicationApp.project.tsx b/web/console/src/modules/cluster/components/ApplicationApp.project.tsx index 6331946c6..fe4b5d659 100644 --- a/web/console/src/modules/cluster/components/ApplicationApp.project.tsx +++ b/web/console/src/modules/cluster/components/ApplicationApp.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/ApplicationHeadPanel.project.tsx b/web/console/src/modules/cluster/components/ApplicationHeadPanel.project.tsx index 253cf871a..1bb830fe5 100644 --- a/web/console/src/modules/cluster/components/ApplicationHeadPanel.project.tsx +++ b/web/console/src/modules/cluster/components/ApplicationHeadPanel.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/ClusterApp.tsx b/web/console/src/modules/cluster/components/ClusterApp.tsx index a7e4a40e7..0a8c2dfcd 100644 --- a/web/console/src/modules/cluster/components/ClusterApp.tsx +++ b/web/console/src/modules/cluster/components/ClusterApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/KubectlDialog.tsx b/web/console/src/modules/cluster/components/KubectlDialog.tsx index 4a1827cb3..b4e4b3eb4 100644 --- a/web/console/src/modules/cluster/components/KubectlDialog.tsx +++ b/web/console/src/modules/cluster/components/KubectlDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/clusterManage/CIDR.tsx b/web/console/src/modules/cluster/components/clusterManage/CIDR.tsx index c02eea3d2..8780b07b0 100644 --- a/web/console/src/modules/cluster/components/clusterManage/CIDR.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/CIDR.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from '../ClusterApp'; import { Bubble, ExternalLink, Icon, Checkbox } from '@tea/component'; diff --git a/web/console/src/modules/cluster/components/clusterManage/ClusterActionPanel.tsx b/web/console/src/modules/cluster/components/clusterManage/ClusterActionPanel.tsx index 4ce56d6f9..79eeac69f 100644 --- a/web/console/src/modules/cluster/components/clusterManage/ClusterActionPanel.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/ClusterActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/clusterManage/ClusterDeleteDialog.tsx b/web/console/src/modules/cluster/components/clusterManage/ClusterDeleteDialog.tsx index ee5d13b88..4c4a69dd1 100644 --- a/web/console/src/modules/cluster/components/clusterManage/ClusterDeleteDialog.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/ClusterDeleteDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/clusterManage/ClusterHeadPanel.tsx b/web/console/src/modules/cluster/components/clusterManage/ClusterHeadPanel.tsx index bc5f0d656..5e91bb6f4 100644 --- a/web/console/src/modules/cluster/components/clusterManage/ClusterHeadPanel.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/ClusterHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/clusterManage/ClusterStatusDialog.tsx b/web/console/src/modules/cluster/components/clusterManage/ClusterStatusDialog.tsx index 3e79f5118..d08886ec7 100644 --- a/web/console/src/modules/cluster/components/clusterManage/ClusterStatusDialog.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/ClusterStatusDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/clusterManage/ClusterSubpageHeaderPanel.tsx b/web/console/src/modules/cluster/components/clusterManage/ClusterSubpageHeaderPanel.tsx index 90d0055d8..aff9c7f45 100644 --- a/web/console/src/modules/cluster/components/clusterManage/ClusterSubpageHeaderPanel.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/ClusterSubpageHeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from '../ClusterApp'; import { router } from '../../router'; diff --git a/web/console/src/modules/cluster/components/clusterManage/ClusterTablePanel.tsx b/web/console/src/modules/cluster/components/clusterManage/ClusterTablePanel.tsx index acd8a55e6..e38d586dd 100644 --- a/web/console/src/modules/cluster/components/clusterManage/ClusterTablePanel.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/ClusterTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/clusterManage/ClusterUpdate.tsx b/web/console/src/modules/cluster/components/clusterManage/ClusterUpdate.tsx index 2fd8de873..57cbcf0d5 100644 --- a/web/console/src/modules/cluster/components/clusterManage/ClusterUpdate.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/ClusterUpdate.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import React, { useState, useEffect } from 'react'; import { AntdLayout } from '@src/modules/common/layouts'; import { Button, H5, Form, Select, Checkbox, InputNumber } from 'tea-component'; diff --git a/web/console/src/modules/cluster/components/clusterManage/ConfigPromethus.tsx b/web/console/src/modules/cluster/components/clusterManage/ConfigPromethus.tsx index 506e4f73a..ee0ab2bfe 100644 --- a/web/console/src/modules/cluster/components/clusterManage/ConfigPromethus.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/ConfigPromethus.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import React from 'react'; import { enablePromethus, EnablePromethusParams } from '@/src/webApi/promethus'; import { RootProps } from '../ClusterApp'; diff --git a/web/console/src/modules/cluster/components/clusterManage/CreateClusterPanel.tsx b/web/console/src/modules/cluster/components/clusterManage/CreateClusterPanel.tsx index 8d04c3687..fe1b901d2 100644 --- a/web/console/src/modules/cluster/components/clusterManage/CreateClusterPanel.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/CreateClusterPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/clusterManage/CreateICPanel.tsx b/web/console/src/modules/cluster/components/clusterManage/CreateICPanel.tsx index 1a483d7b5..06346a099 100644 --- a/web/console/src/modules/cluster/components/clusterManage/CreateICPanel.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/CreateICPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/clusterManage/InputLabelsPanel.tsx b/web/console/src/modules/cluster/components/clusterManage/InputLabelsPanel.tsx index 3ce28c2ff..10ea8e88b 100644 --- a/web/console/src/modules/cluster/components/clusterManage/InputLabelsPanel.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/InputLabelsPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FormPanel } from '@tencent/ff-component'; import { t } from '@tencent/tea-app/lib/i18n'; import { Bubble, Button, Input } from '@tencent/tea-component'; diff --git a/web/console/src/modules/cluster/components/clusterManage/KubeconfigFileParse.tsx b/web/console/src/modules/cluster/components/clusterManage/KubeconfigFileParse.tsx index 14802d7ba..5c4ae0c82 100644 --- a/web/console/src/modules/cluster/components/clusterManage/KubeconfigFileParse.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/KubeconfigFileParse.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import React, { useState } from 'react'; import { Upload, Text } from '@tea/component'; import * as yaml from 'js-yaml'; diff --git a/web/console/src/modules/cluster/components/clusterManage/ModifyClusterNameDialog.tsx b/web/console/src/modules/cluster/components/clusterManage/ModifyClusterNameDialog.tsx index a480c00f8..a2d45e0ef 100644 --- a/web/console/src/modules/cluster/components/clusterManage/ModifyClusterNameDialog.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/ModifyClusterNameDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import classNames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/clusterManage/SelectICComputerPanel.tsx b/web/console/src/modules/cluster/components/clusterManage/SelectICComputerPanel.tsx index 1bddac3b2..c027aff91 100644 --- a/web/console/src/modules/cluster/components/clusterManage/SelectICComputerPanel.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/SelectICComputerPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FormPanel } from '@tencent/ff-component'; import { t } from '@tencent/tea-app/lib/i18n'; import { Button, Justify, Segment } from '@tencent/tea-component'; diff --git a/web/console/src/modules/cluster/components/clusterManage/ShowICComputerPanel.tsx b/web/console/src/modules/cluster/components/clusterManage/ShowICComputerPanel.tsx index 4f7702c69..25462d201 100644 --- a/web/console/src/modules/cluster/components/clusterManage/ShowICComputerPanel.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/ShowICComputerPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { ICComponter } from '../../models'; import { Justify, Button, Text, Bubble } from '@tencent/tea-component'; diff --git a/web/console/src/modules/cluster/components/clusterManage/TcrRegistyDeployDialog.tsx b/web/console/src/modules/cluster/components/clusterManage/TcrRegistyDeployDialog.tsx index 01383f6b2..7a751e9ab 100644 --- a/web/console/src/modules/cluster/components/clusterManage/TcrRegistyDeployDialog.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/TcrRegistyDeployDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/clusterManage/UpdateClusterTokenDialog.tsx b/web/console/src/modules/cluster/components/clusterManage/UpdateClusterTokenDialog.tsx index 20895d60a..aae280551 100644 --- a/web/console/src/modules/cluster/components/clusterManage/UpdateClusterTokenDialog.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/UpdateClusterTokenDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { CreateResource, Validation } from 'src/modules/common'; diff --git a/web/console/src/modules/cluster/components/clusterManage/WorkerUpdate.tsx b/web/console/src/modules/cluster/components/clusterManage/WorkerUpdate.tsx index 0affeccf6..6d05fd1c2 100644 --- a/web/console/src/modules/cluster/components/clusterManage/WorkerUpdate.tsx +++ b/web/console/src/modules/cluster/components/clusterManage/WorkerUpdate.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import React, { useEffect, useState } from 'react'; import { AntdLayout } from '@src/modules/common/layouts'; import { RootProps } from '../ClusterApp'; diff --git a/web/console/src/modules/cluster/components/resource/ResourceContainerPanel.tsx b/web/console/src/modules/cluster/components/resource/ResourceContainerPanel.tsx index 2f2b53ea5..d5576008e 100644 --- a/web/console/src/modules/cluster/components/resource/ResourceContainerPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/ResourceContainerPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/ResourceHeaderPanel.project.tsx b/web/console/src/modules/cluster/components/resource/ResourceHeaderPanel.project.tsx index 24877c1b6..588c1994e 100644 --- a/web/console/src/modules/cluster/components/resource/ResourceHeaderPanel.project.tsx +++ b/web/console/src/modules/cluster/components/resource/ResourceHeaderPanel.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/ResourceHeaderPanel.tsx b/web/console/src/modules/cluster/components/resource/ResourceHeaderPanel.tsx index 095156ea4..f725b6137 100644 --- a/web/console/src/modules/cluster/components/resource/ResourceHeaderPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/ResourceHeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/ResourceListPanel.tsx b/web/console/src/modules/cluster/components/resource/ResourceListPanel.tsx index 0e77973de..7d89ab191 100644 --- a/web/console/src/modules/cluster/components/resource/ResourceListPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/ResourceListPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { TipInfo } from 'src/modules/common'; diff --git a/web/console/src/modules/cluster/components/resource/ResourceSidebarPanel.tsx b/web/console/src/modules/cluster/components/resource/ResourceSidebarPanel.tsx index 8e1082a7d..b76b21511 100644 --- a/web/console/src/modules/cluster/components/resource/ResourceSidebarPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/ResourceSidebarPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/YamlEditorPanel.tsx b/web/console/src/modules/cluster/components/resource/YamlEditorPanel.tsx index 09402d98f..675615341 100644 --- a/web/console/src/modules/cluster/components/resource/YamlEditorPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/YamlEditorPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { UnControlled as CodeMirror } from 'react-codemirror2'; diff --git a/web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterDetail.tsx b/web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterDetail.tsx index bd360d59e..09477fa05 100644 --- a/web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterDetail.tsx +++ b/web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterDetail.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterDetailBasicInfoPanel.tsx b/web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterDetailBasicInfoPanel.tsx index d8b1cd365..7ef02e7f8 100644 --- a/web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterDetailBasicInfoPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterDetailBasicInfoPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FormPanel } from '@tencent/ff-component'; @@ -11,10 +28,11 @@ import { Clip } from '../../../../common/components'; import { DialogNameEnum } from '../../../models'; import { RootProps } from '../../ClusterApp'; import { ClusterStatus } from '../../clusterManage/ClusterTablePanel'; +import { ContainerRuntimeEnum } from '@src/modules/cluster/constants/Config'; export class ClusterDetailBasicInfoPanel extends React.Component { render() { - let { cluster } = this.props; + const { cluster } = this.props; return ( @@ -27,11 +45,11 @@ export class ClusterDetailBasicInfoPanel extends React.Component ); } _renderNodeMax() { - let { cluster } = this.props; - let clusterInfo: Cluster = cluster.selection; + const { cluster } = this.props; + const clusterInfo: Cluster = cluster.selection; if (clusterInfo && clusterInfo.spec.clusterCIDR) { - let b = clusterInfo.spec.clusterCIDR.split('/')[1]; - let { maxNodePodNum, maxClusterServiceNum } = clusterInfo.spec.properties; + const b = clusterInfo.spec.clusterCIDR.split('/')[1]; + const { maxNodePodNum, maxClusterServiceNum } = clusterInfo.spec.properties; return Math.pow(2, 32 - parseInt(b)) / maxNodePodNum - Math.ceil(maxClusterServiceNum / maxNodePodNum); } else { return ''; @@ -39,8 +57,8 @@ export class ClusterDetailBasicInfoPanel extends React.Component } /** 处理开关日志采集组件的的操作 */ private _handleSwitch(cluster: Cluster) { - let { actions, route } = this.props; - let enableLogAgent = !cluster.spec.logAgentName; + const { actions, route } = this.props; + const enableLogAgent = !cluster.spec.logAgentName; if (enableLogAgent) { actions.cluster.enableLogAgent(cluster); } else { @@ -53,9 +71,9 @@ export class ClusterDetailBasicInfoPanel extends React.Component } /** 展示集群的基本信息 */ private _renderClusterInfo() { - let { actions, cluster } = this.props; - let clusterInfo: Cluster = cluster.selection; - let nodeMax = this._renderNodeMax(); + const { actions, cluster } = this.props; + const clusterInfo: Cluster = cluster.selection; + const nodeMax = this._renderNodeMax(); return cluster.selection ? ( @@ -72,6 +90,9 @@ export class ClusterDetailBasicInfoPanel extends React.Component {clusterInfo.status.version} + + {clusterInfo?.spec?.features?.containerRuntime ?? ContainerRuntimeEnum.DOCKER} + {clusterInfo.spec.networkDevice && ( {clusterInfo.spec.networkDevice} diff --git a/web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterPlugInfoPanel.tsx b/web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterPlugInfoPanel.tsx index b9288f4c9..4351f53dc 100644 --- a/web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterPlugInfoPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterPlugInfoPanel.tsx @@ -1,19 +1,38 @@ -import React, { useEffect } from 'react'; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +import React from 'react'; import { FormPanel } from '@tencent/ff-component'; -import { Table, TableColumn, Button, Icon } from '@tea/component'; +import { Table, TableColumn, Button, Icon, Bubble } from '@tea/component'; import { RootProps } from '../../ClusterApp'; import { FetchState } from '@tencent/ff-redux'; import { router } from '../../../router'; +import { ContainerRuntimeEnum } from '@src/modules/cluster/constants/Config'; enum PlugType { Promethus, LogAgent } -export const ClusterPlugInfoPanel: React.FC = ({ cluster, actions, clusterVersion, route }) => { - const targetCluster = cluster.selection; - const { promethus = null, logAgent = null } = targetCluster ? cluster.selection.spec : {}; - const clusterId = targetCluster ? targetCluster.metadata.name : ''; +export const ClusterPlugInfoPanel: React.FC = ({ cluster, actions, route }) => { + const { promethus = null, logAgent = null } = cluster?.selection?.spec ?? {}; + const clusterId = cluster?.selection?.metadata?.name ?? ''; + + const isContainerd = cluster?.selection?.spec?.features?.containerRuntime === ContainerRuntimeEnum.CONTAINERD; const open = (type: PlugType) => () => { switch (type) { @@ -49,6 +68,8 @@ export const ClusterPlugInfoPanel: React.FC = ({ cluster, actions, cl key: 'action', header: '操作', render({ action, type }) { + const disabled = type === PlugType.LogAgent && isContainerd; + return action ? ( <> ) : ( - + + + ); } } @@ -87,7 +110,12 @@ export const ClusterPlugInfoPanel: React.FC = ({ cluster, actions, cl {cluster.list.fetched !== true || cluster.list.fetchState === FetchState.Fetching ? ( ) : ( - +
type === PlugType.LogAgent && isContainerd} + /> )} ); diff --git a/web/console/src/modules/cluster/components/resource/clusterInfomation/UpdateClusterAllocationRatioDialog.tsx b/web/console/src/modules/cluster/components/resource/clusterInfomation/UpdateClusterAllocationRatioDialog.tsx index 06b425387..54f98598e 100644 --- a/web/console/src/modules/cluster/components/resource/clusterInfomation/UpdateClusterAllocationRatioDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/clusterInfomation/UpdateClusterAllocationRatioDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { CreateResource } from 'src/modules/common'; diff --git a/web/console/src/modules/cluster/components/resource/nodeManage/BatchDrainComputerDialog.tsx b/web/console/src/modules/cluster/components/resource/nodeManage/BatchDrainComputerDialog.tsx index 60228d124..2bb125ecf 100644 --- a/web/console/src/modules/cluster/components/resource/nodeManage/BatchDrainComputerDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/nodeManage/BatchDrainComputerDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/cluster/components/resource/nodeManage/BatchTurnOnScheduleComputerDialog.tsx b/web/console/src/modules/cluster/components/resource/nodeManage/BatchTurnOnScheduleComputerDialog.tsx index 37cf6109d..18ebf99b2 100644 --- a/web/console/src/modules/cluster/components/resource/nodeManage/BatchTurnOnScheduleComputerDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/nodeManage/BatchTurnOnScheduleComputerDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/nodeManage/BatchUnScheduleComputerDialog.tsx b/web/console/src/modules/cluster/components/resource/nodeManage/BatchUnScheduleComputerDialog.tsx index 43d577905..8b7e849d4 100644 --- a/web/console/src/modules/cluster/components/resource/nodeManage/BatchUnScheduleComputerDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/nodeManage/BatchUnScheduleComputerDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/nodeManage/ComputerActionPanel.tsx b/web/console/src/modules/cluster/components/resource/nodeManage/ComputerActionPanel.tsx index 1a58ae735..7b103ce4c 100644 --- a/web/console/src/modules/cluster/components/resource/nodeManage/ComputerActionPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/nodeManage/ComputerActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { WorkflowDialog } from 'src/modules/common'; diff --git a/web/console/src/modules/cluster/components/resource/nodeManage/ComputerStatusDialog.tsx b/web/console/src/modules/cluster/components/resource/nodeManage/ComputerStatusDialog.tsx index e361200ab..419506222 100644 --- a/web/console/src/modules/cluster/components/resource/nodeManage/ComputerStatusDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/nodeManage/ComputerStatusDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/nodeManage/ComputerTablePanel.tsx b/web/console/src/modules/cluster/components/resource/nodeManage/ComputerTablePanel.tsx index 234746674..39b2026d9 100644 --- a/web/console/src/modules/cluster/components/resource/nodeManage/ComputerTablePanel.tsx +++ b/web/console/src/modules/cluster/components/resource/nodeManage/ComputerTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/nodeManage/CreateComputerPanel.tsx b/web/console/src/modules/cluster/components/resource/nodeManage/CreateComputerPanel.tsx index 14709fc59..42aa08dc3 100644 --- a/web/console/src/modules/cluster/components/resource/nodeManage/CreateComputerPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/nodeManage/CreateComputerPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/nodeManage/DeleteComputerDialog.tsx b/web/console/src/modules/cluster/components/resource/nodeManage/DeleteComputerDialog.tsx index 9d9bea92c..ae14cfe29 100644 --- a/web/console/src/modules/cluster/components/resource/nodeManage/DeleteComputerDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/nodeManage/DeleteComputerDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/nodeManage/UpdateNodeLabelDialog.tsx b/web/console/src/modules/cluster/components/resource/nodeManage/UpdateNodeLabelDialog.tsx index 1cfbae6f9..837298a21 100644 --- a/web/console/src/modules/cluster/components/resource/nodeManage/UpdateNodeLabelDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/nodeManage/UpdateNodeLabelDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/nodeManage/UpdateNodeTaintDialog.tsx b/web/console/src/modules/cluster/components/resource/nodeManage/UpdateNodeTaintDialog.tsx index 5855c4759..56c4794b2 100644 --- a/web/console/src/modules/cluster/components/resource/nodeManage/UpdateNodeTaintDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/nodeManage/UpdateNodeTaintDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetail.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetail.tsx index ef693bf8a..27cd5ee42 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetail.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetail.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetailEventActionPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetailEventActionPanel.tsx index 7b2b06885..0f1326b23 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetailEventActionPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetailEventActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetailEventTablePanel.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetailEventTablePanel.tsx index 22d461f8e..3815d1af8 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetailEventTablePanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetailEventTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetailPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetailPanel.tsx index 3a5cb8264..905de449a 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetailPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceDetailPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Bubble, Button, Card, PopConfirm, Table, TableColumn, TabPanel, Tabs, Text } from '@tea/component'; import { stylize } from '@tea/component/table/addons/stylize'; import { bindActionCreators, OperationState, uuid } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceGrayUpgradeDialog.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceGrayUpgradeDialog.tsx index 0e47005c6..242cd0ce1 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceGrayUpgradeDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceGrayUpgradeDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceModifyHistoryPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceModifyHistoryPanel.tsx index 4d2a5665e..7887e6408 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceModifyHistoryPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceModifyHistoryPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as yaml from 'js-yaml'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceNamespaceDetailPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceNamespaceDetailPanel.tsx index 1710eaa1e..1c1f23b47 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceNamespaceDetailPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceNamespaceDetailPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceNodeDetailPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceNodeDetailPanel.tsx index 44020ae17..c93d35356 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceNodeDetailPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceNodeDetailPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodActionPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodActionPanel.tsx index 74e6516d5..ed69b619c 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodActionPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { isEmpty, cloneDeep, uniq } from 'lodash'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodDeleteDialog.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodDeleteDialog.tsx index 37b6374aa..570c23088 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodDeleteDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodDeleteDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodLogPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodLogPanel.tsx index dd78615a5..5d7ca7541 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodLogPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodLogPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodPanel.tsx index 7bb167dcb..673d820d5 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodRemoteLoginDialog.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodRemoteLoginDialog.tsx index e7fbafcf5..8f9cf5052 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodRemoteLoginDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodRemoteLoginDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodTable.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodTable.tsx index 457d8a791..77a12eb6d 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodTable.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourcePodTable.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import React, { useEffect } from 'react'; import { Card, Pagination, Table, TableProps } from '@tea/component'; import { RootProps } from '../../ClusterApp'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceRollbackDialog.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceRollbackDialog.tsx index f61d749d1..c93b234b6 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceRollbackDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceRollbackDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceTappPodDeleteDialog.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceTappPodDeleteDialog.tsx index c38da4547..5a53b2355 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceTappPodDeleteDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceTappPodDeleteDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceYamlActionPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceYamlActionPanel.tsx index 28099cc54..a75fac7b3 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceYamlActionPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceYamlActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceYamlPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceYamlPanel.tsx index 2976a55ea..fcce32723 100644 --- a/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceYamlPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceDetail/ResourceYamlPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditConfigMapPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditConfigMapPanel.tsx index 3c4864d72..89f862ff0 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditConfigMapPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditConfigMapPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditLbcfBackGroupItemPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditLbcfBackGroupItemPanel.tsx index a598c98ea..de75fe0f3 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditLbcfBackGroupItemPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditLbcfBackGroupItemPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditLbcfBackGroupPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditLbcfBackGroupPanel.tsx index da5fea433..2fc644a03 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditLbcfBackGroupPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditLbcfBackGroupPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditLbcfPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditLbcfPanel.tsx index 535893ec8..115cb8ac5 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditLbcfPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditLbcfPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditNamespacePanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditNamespacePanel.tsx index e2530ea17..daa760ab2 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditNamespacePanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditNamespacePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceAdvancedPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceAdvancedPanel.tsx index 23211bbad..69a00a6bc 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceAdvancedPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceAdvancedPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceAnnotations.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceAnnotations.tsx index 0ab2cdb82..18be279c0 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceAnnotations.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceAnnotations.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerAdvancedPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerAdvancedPanel.tsx index 8d7e183ae..6bbb57f64 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerAdvancedPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerAdvancedPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerEnvItem.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerEnvItem.tsx index 236951098..bec5b8f5f 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerEnvItem.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerEnvItem.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerHealthCheckPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerHealthCheckPanel.tsx index f9426ec4d..fa5a23732 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerHealthCheckPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerHealthCheckPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerItem.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerItem.tsx index 560075afd..6120620b5 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerItem.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerItem.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerLimitItem.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerLimitItem.tsx index 8e5072004..a2dc9fafb 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerLimitItem.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerLimitItem.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerMountItem.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerMountItem.tsx index d14d945b6..7aeb53e99 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerMountItem.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerMountItem.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerNumPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerNumPanel.tsx index 66bb9e7e3..ebfdda5f2 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerNumPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerNumPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerPanel.tsx index db556b8e1..2f57ce417 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceContainerPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceImagePullSecretsPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceImagePullSecretsPanel.tsx index 8901b58e3..5a4f42d3c 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceImagePullSecretsPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceImagePullSecretsPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceLabelPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceLabelPanel.tsx index f4b94236b..e2a3aa5ee 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceLabelPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceLabelPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceNodeAffinityPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceNodeAffinityPanel.tsx index c5c7fc472..e4daa8490 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceNodeAffinityPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceNodeAffinityPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourcePanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourcePanel.tsx index 4570ba29e..0d4cd0e0d 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourcePanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourcePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, Icon } from '@tea/component'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceVisualizationPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceVisualizationPanel.tsx index 5421ef0f7..084792f78 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceVisualizationPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceVisualizationPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceVolumePanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceVolumePanel.tsx index 12ac69bc5..a1048f0f8 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceVolumePanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditResourceVolumePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditSecretPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditSecretPanel.tsx index 96ac97d52..3256a41b8 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditSecretPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditSecretPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditServiceAdvanceSettingPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditServiceAdvanceSettingPanel.tsx index 677dfaa96..f922dc53d 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditServiceAdvanceSettingPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditServiceAdvanceSettingPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RadioGroup, Radio } from '@tea/component'; import { FormItem, InputField } from '../../../../common/components'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditServiceCommunicationPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditServiceCommunicationPanel.tsx index 488790d29..ea5cfc2a3 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditServiceCommunicationPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditServiceCommunicationPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Bubble, Radio } from '@tea/component'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditServicePanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditServicePanel.tsx index af3fcf214..c2116cf9a 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditServicePanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditServicePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditServicePortMapPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditServicePortMapPanel.tsx index 34a91dda7..884beb5ac 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditServicePortMapPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditServicePortMapPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Bubble, Table, TableColumn } from '@tea/component'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/EditServiceWorkloadDialog.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/EditServiceWorkloadDialog.tsx index 422c6c74d..169292f09 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/EditServiceWorkloadDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/EditServiceWorkloadDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/ResourceContainerListItem.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/ResourceContainerListItem.tsx index 15b56fe8e..8cd87dff4 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/ResourceContainerListItem.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/ResourceContainerListItem.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/ResourceEditHostPathDialog.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/ResourceEditHostPathDialog.tsx index 43605f4c1..23cef3401 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/ResourceEditHostPathDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/ResourceEditHostPathDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/ResourceSelectConfigDialog.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/ResourceSelectConfigDialog.tsx index dce8a5cbd..0db26b5eb 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/ResourceSelectConfigDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/ResourceSelectConfigDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/SubHeaderPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/SubHeaderPanel.tsx index 5a222f511..b5079fcab 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/SubHeaderPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/SubHeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceEdition/UpdateResourcePanel.tsx b/web/console/src/modules/cluster/components/resource/resourceEdition/UpdateResourcePanel.tsx index 099afb64c..69463c11f 100644 --- a/web/console/src/modules/cluster/components/resource/resourceEdition/UpdateResourcePanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceEdition/UpdateResourcePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceActionPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceActionPanel.tsx index 49ca2c6ed..15785d4e4 100644 --- a/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceActionPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceDeleteDialog.tsx b/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceDeleteDialog.tsx index e09ac15c4..d4c4dec10 100644 --- a/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceDeleteDialog.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceDeleteDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceEventPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceEventPanel.tsx index ff1d1b80f..2c1c7b352 100644 --- a/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceEventPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceEventPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceLogPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceLogPanel.tsx index 294538f59..4d21056c0 100644 --- a/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceLogPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceLogPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceTablePanel.tsx b/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceTablePanel.tsx index 6a2fc9b1b..b77f7f92b 100644 --- a/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceTablePanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceTableOperation/ResourceTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceTableOperation/UpdateServiceAccessTypePanel.tsx b/web/console/src/modules/cluster/components/resource/resourceTableOperation/UpdateServiceAccessTypePanel.tsx index 3ed804e57..f9fb0aeb1 100644 --- a/web/console/src/modules/cluster/components/resource/resourceTableOperation/UpdateServiceAccessTypePanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceTableOperation/UpdateServiceAccessTypePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceTableOperation/UpdateWorkloadPodNumPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceTableOperation/UpdateWorkloadPodNumPanel.tsx index 30371f32d..88b0a6455 100644 --- a/web/console/src/modules/cluster/components/resource/resourceTableOperation/UpdateWorkloadPodNumPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceTableOperation/UpdateWorkloadPodNumPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/resource/resourceTableOperation/UpdateWorkloadRegistryPanel.tsx b/web/console/src/modules/cluster/components/resource/resourceTableOperation/UpdateWorkloadRegistryPanel.tsx index be65dbd57..afa157e6f 100644 --- a/web/console/src/modules/cluster/components/resource/resourceTableOperation/UpdateWorkloadRegistryPanel.tsx +++ b/web/console/src/modules/cluster/components/resource/resourceTableOperation/UpdateWorkloadRegistryPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/cluster/components/scale/common/hooks/index.ts b/web/console/src/modules/cluster/components/scale/common/hooks/index.ts index a0c839f2d..de1b894f3 100644 --- a/web/console/src/modules/cluster/components/scale/common/hooks/index.ts +++ b/web/console/src/modules/cluster/components/scale/common/hooks/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { useNamespaces } from './useNamespaces'; export { useNamespaces }; diff --git a/web/console/src/modules/cluster/components/scale/common/hooks/useNamespaces.ts b/web/console/src/modules/cluster/components/scale/common/hooks/useNamespaces.ts index eaeb6da01..c7a44c280 100644 --- a/web/console/src/modules/cluster/components/scale/common/hooks/useNamespaces.ts +++ b/web/console/src/modules/cluster/components/scale/common/hooks/useNamespaces.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { useState, useEffect, useRef, useCallback } from 'react'; import { fetchNamespaceList, fetchProjectNamespaceList } from '@src/modules/cluster/WebAPI/scale'; diff --git a/web/console/src/modules/cluster/components/scale/cronhpa/constant.ts b/web/console/src/modules/cluster/components/scale/cronhpa/constant.ts index 4bc84de87..101fda87c 100644 --- a/web/console/src/modules/cluster/components/scale/cronhpa/constant.ts +++ b/web/console/src/modules/cluster/components/scale/cronhpa/constant.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const MetricsResourceMap = { cpu: { key: 'cpuUtilization', meaning: 'CPU利用率', unit: '%' }, cpuUtilization: { key: 'cpuUtilization', meaning: 'CPU利用率', unit: '%' }, diff --git a/web/console/src/modules/cluster/components/scale/cronhpa/context.tsx b/web/console/src/modules/cluster/components/scale/cronhpa/context.tsx index 310fd0f19..bb3a747e8 100644 --- a/web/console/src/modules/cluster/components/scale/cronhpa/context.tsx +++ b/web/console/src/modules/cluster/components/scale/cronhpa/context.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * hpa这个scope内的全局数据 */ diff --git a/web/console/src/modules/cluster/components/scale/cronhpa/detail/basic.tsx b/web/console/src/modules/cluster/components/scale/cronhpa/detail/basic.tsx index 7abf3411a..0c869c7c6 100644 --- a/web/console/src/modules/cluster/components/scale/cronhpa/detail/basic.tsx +++ b/web/console/src/modules/cluster/components/scale/cronhpa/detail/basic.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * hpa详情,基本信息tab */ diff --git a/web/console/src/modules/cluster/components/scale/cronhpa/detail/event.tsx b/web/console/src/modules/cluster/components/scale/cronhpa/detail/event.tsx index 7975337a6..1d0818d25 100644 --- a/web/console/src/modules/cluster/components/scale/cronhpa/detail/event.tsx +++ b/web/console/src/modules/cluster/components/scale/cronhpa/detail/event.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * hpa详情,事件列表tab */ diff --git a/web/console/src/modules/cluster/components/scale/cronhpa/detail/index.tsx b/web/console/src/modules/cluster/components/scale/cronhpa/detail/index.tsx index 6da750024..da0690bcb 100644 --- a/web/console/src/modules/cluster/components/scale/cronhpa/detail/index.tsx +++ b/web/console/src/modules/cluster/components/scale/cronhpa/detail/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * hpa详情页入口 */ diff --git a/web/console/src/modules/cluster/components/scale/cronhpa/detail/yaml.tsx b/web/console/src/modules/cluster/components/scale/cronhpa/detail/yaml.tsx index 4b316ef4f..bbce06411 100644 --- a/web/console/src/modules/cluster/components/scale/cronhpa/detail/yaml.tsx +++ b/web/console/src/modules/cluster/components/scale/cronhpa/detail/yaml.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * hpa详情,yaml tab */ diff --git a/web/console/src/modules/cluster/components/scale/cronhpa/editor/hpa.tsx b/web/console/src/modules/cluster/components/scale/cronhpa/editor/hpa.tsx index 0a0ac0cf0..293ffd9d2 100644 --- a/web/console/src/modules/cluster/components/scale/cronhpa/editor/hpa.tsx +++ b/web/console/src/modules/cluster/components/scale/cronhpa/editor/hpa.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * HPA创建及修改组件 */ diff --git a/web/console/src/modules/cluster/components/scale/cronhpa/editor/yaml.tsx b/web/console/src/modules/cluster/components/scale/cronhpa/editor/yaml.tsx index 0f77d8ed4..76b377a47 100644 --- a/web/console/src/modules/cluster/components/scale/cronhpa/editor/yaml.tsx +++ b/web/console/src/modules/cluster/components/scale/cronhpa/editor/yaml.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * yaml编辑组件 */ diff --git a/web/console/src/modules/cluster/components/scale/cronhpa/index.tsx b/web/console/src/modules/cluster/components/scale/cronhpa/index.tsx index 1f0a3ebc8..d9a5c9bd7 100644 --- a/web/console/src/modules/cluster/components/scale/cronhpa/index.tsx +++ b/web/console/src/modules/cluster/components/scale/cronhpa/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import React, { useState, useEffect, useContext, useRef, useCallback, useMemo } from 'react'; import { useSelector } from 'react-redux'; import { HpaScopeProvider, DispatchContext, StateContext } from './context'; diff --git a/web/console/src/modules/cluster/components/scale/cronhpa/list/index.tsx b/web/console/src/modules/cluster/components/scale/cronhpa/list/index.tsx index d876cbb35..ae2d41c10 100644 --- a/web/console/src/modules/cluster/components/scale/cronhpa/list/index.tsx +++ b/web/console/src/modules/cluster/components/scale/cronhpa/list/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import React, { useState, useEffect, useContext, useCallback, useMemo } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/cluster/components/scale/cronhpa/list/namespaceSelect.tsx b/web/console/src/modules/cluster/components/scale/cronhpa/list/namespaceSelect.tsx index e6854ef32..7d76ab5b9 100644 --- a/web/console/src/modules/cluster/components/scale/cronhpa/list/namespaceSelect.tsx +++ b/web/console/src/modules/cluster/components/scale/cronhpa/list/namespaceSelect.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * namespace下拉选择组件 */ diff --git a/web/console/src/modules/cluster/components/scale/hpa/constant.ts b/web/console/src/modules/cluster/components/scale/hpa/constant.ts index e52966b58..703d168b6 100644 --- a/web/console/src/modules/cluster/components/scale/hpa/constant.ts +++ b/web/console/src/modules/cluster/components/scale/hpa/constant.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const NestedMetricsResourceMap = { cpu: { targetAverageUtilization: { key: 'cpuUtilization', meaning: 'CPU利用率', unit: '%' }, diff --git a/web/console/src/modules/cluster/components/scale/hpa/context.tsx b/web/console/src/modules/cluster/components/scale/hpa/context.tsx index b313b686c..46568ee4f 100644 --- a/web/console/src/modules/cluster/components/scale/hpa/context.tsx +++ b/web/console/src/modules/cluster/components/scale/hpa/context.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * hpa这个scope内的全局数据 */ diff --git a/web/console/src/modules/cluster/components/scale/hpa/detail/basic.tsx b/web/console/src/modules/cluster/components/scale/hpa/detail/basic.tsx index dd0eca3c7..1e13e97a5 100644 --- a/web/console/src/modules/cluster/components/scale/hpa/detail/basic.tsx +++ b/web/console/src/modules/cluster/components/scale/hpa/detail/basic.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * hpa详情,基本信息tab */ diff --git a/web/console/src/modules/cluster/components/scale/hpa/detail/event.tsx b/web/console/src/modules/cluster/components/scale/hpa/detail/event.tsx index 2a5fb2d53..85ef5ca90 100644 --- a/web/console/src/modules/cluster/components/scale/hpa/detail/event.tsx +++ b/web/console/src/modules/cluster/components/scale/hpa/detail/event.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * hpa详情,事件列表tab */ diff --git a/web/console/src/modules/cluster/components/scale/hpa/detail/index.tsx b/web/console/src/modules/cluster/components/scale/hpa/detail/index.tsx index bada2b7f2..988e6fb08 100644 --- a/web/console/src/modules/cluster/components/scale/hpa/detail/index.tsx +++ b/web/console/src/modules/cluster/components/scale/hpa/detail/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * hpa详情页入口 */ diff --git a/web/console/src/modules/cluster/components/scale/hpa/detail/yaml.tsx b/web/console/src/modules/cluster/components/scale/hpa/detail/yaml.tsx index 2c74667a7..030d322e8 100644 --- a/web/console/src/modules/cluster/components/scale/hpa/detail/yaml.tsx +++ b/web/console/src/modules/cluster/components/scale/hpa/detail/yaml.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * hpa详情,yaml tab */ diff --git a/web/console/src/modules/cluster/components/scale/hpa/editor/hpa.tsx b/web/console/src/modules/cluster/components/scale/hpa/editor/hpa.tsx index d0216a4fc..51cdf0911 100644 --- a/web/console/src/modules/cluster/components/scale/hpa/editor/hpa.tsx +++ b/web/console/src/modules/cluster/components/scale/hpa/editor/hpa.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * HPA创建及修改组件 */ diff --git a/web/console/src/modules/cluster/components/scale/hpa/editor/yaml.tsx b/web/console/src/modules/cluster/components/scale/hpa/editor/yaml.tsx index 256d67500..95dc2200d 100644 --- a/web/console/src/modules/cluster/components/scale/hpa/editor/yaml.tsx +++ b/web/console/src/modules/cluster/components/scale/hpa/editor/yaml.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * yaml编辑组件 */ diff --git a/web/console/src/modules/cluster/components/scale/hpa/index.tsx b/web/console/src/modules/cluster/components/scale/hpa/index.tsx index 214635e8c..2bcfe519d 100644 --- a/web/console/src/modules/cluster/components/scale/hpa/index.tsx +++ b/web/console/src/modules/cluster/components/scale/hpa/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import React, { useState, useEffect, useContext, useRef, useCallback } from 'react'; import { useSelector } from 'react-redux'; import { HpaScopeProvider, DispatchContext, StateContext } from './context'; diff --git a/web/console/src/modules/cluster/components/scale/hpa/list/index.tsx b/web/console/src/modules/cluster/components/scale/hpa/list/index.tsx index c2023330c..017a0db79 100644 --- a/web/console/src/modules/cluster/components/scale/hpa/list/index.tsx +++ b/web/console/src/modules/cluster/components/scale/hpa/list/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import React, { useState, useEffect, useContext, useCallback } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/cluster/components/scale/hpa/list/namespaceSelect.tsx b/web/console/src/modules/cluster/components/scale/hpa/list/namespaceSelect.tsx index f9efc9c8b..e321575b8 100644 --- a/web/console/src/modules/cluster/components/scale/hpa/list/namespaceSelect.tsx +++ b/web/console/src/modules/cluster/components/scale/hpa/list/namespaceSelect.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * namespace下拉选择组件 */ diff --git a/web/console/src/modules/cluster/constants/ActionType.ts b/web/console/src/modules/cluster/constants/ActionType.ts index f585fddc6..46c35d7df 100644 --- a/web/console/src/modules/cluster/constants/ActionType.ts +++ b/web/console/src/modules/cluster/constants/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 公有云 | 私有云切换 */ export const SelectMode = 'SelectMode'; export const IsI18n = 'IsI18n'; diff --git a/web/console/src/modules/cluster/constants/Config.ts b/web/console/src/modules/cluster/constants/Config.ts index 7f681bf3d..12a0a174e 100644 --- a/web/console/src/modules/cluster/constants/Config.ts +++ b/web/console/src/modules/cluster/constants/Config.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t, Trans } from '@tencent/tea-app/lib/i18n'; /** ========================= start FFRedux的相关配置 ======================== */ export const FFReduxActionName = { @@ -687,29 +704,37 @@ export const LbcfArgsConfig = [ ]; export const clearNodeSH = `#!/bin/bash -rm -rf /etc/kubernetes - -systemctl stop kubelet 2>/dev/null - -docker rm -f $(docker ps -aq) 2>/dev/null -systemctl stop docker 2>/dev/null +# common +kubeadm reset -f +rm -fv /root/.kube/config +rm -rfv /etc/kubernetes +rm -rfv /var/lib/kubelet +rm -rfv /var/lib/etcd +rm -rfv /var/lib/cni +rm -rfv /etc/cni +rm -rfv /var/lib/tke-registry-api +rm -rfv /opt/tke-installer +rm -rfv /var/lib/postgresql /etc/core/token /var/lib/redis /storage /chart_storage ip link del cni0 2>/etc/null for port in 80 2379 6443 8086 {10249..10259} ; do fuser -k -9 \${port}/tcp done -rm -rfv /etc/kubernetes +# docker +docker rm -f $(docker ps -aq) 2>/dev/null +systemctl disable docker 2>/dev/null +systemctl stop docker 2>/dev/null rm -rfv /etc/docker -rm -fv /root/.kube/config -rm -rfv /var/lib/kubelet -rm -rfv /var/lib/cni -rm -rfv /etc/cni -rm -rfv /var/lib/etcd -rm -rfv /var/lib/postgresql /etc/core/token /var/lib/redis /storage /chart_storage - -systemctl start docker 2>/dev/null`; +ip link del docker0 2>/etc/null + +# containerd +nerdctl rm -f $(nerdctl ps -aq) 2>/dev/null +ip netns list | cut -d' ' -f 1 | xargs -n1 ip netns delete 2>/dev/null +systemctl disable containerd 2>/dev/null +systemctl stop containerd 2>/dev/null +rm -rfv /var/lib/nerdctl/*`; export enum GPUTYPE { PGPU = 'Physical', diff --git a/web/console/src/modules/cluster/constants/initState.ts b/web/console/src/modules/cluster/constants/initState.ts index 1de34d33b..32543f46f 100644 --- a/web/console/src/modules/cluster/constants/initState.ts +++ b/web/console/src/modules/cluster/constants/initState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { uuid } from '@tencent/ff-redux'; import { initValidator } from '../../common/models'; diff --git a/web/console/src/modules/cluster/constants/validateConfig.ts b/web/console/src/modules/cluster/constants/validateConfig.ts index 8d88d878a..ab47bbd35 100644 --- a/web/console/src/modules/cluster/constants/validateConfig.ts +++ b/web/console/src/modules/cluster/constants/validateConfig.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ValidateSchema, RuleTypeEnum } from '../../common/validate/Model'; export const clusterValidateSchema: ValidateSchema = { diff --git a/web/console/src/modules/cluster/index.project.tsx b/web/console/src/modules/cluster/index.project.tsx index 24d95c21c..2a4c1e16d 100644 --- a/web/console/src/modules/cluster/index.project.tsx +++ b/web/console/src/modules/cluster/index.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { ApplicationAppContainer } from './components/ApplicationApp.project'; diff --git a/web/console/src/modules/cluster/index.tsx b/web/console/src/modules/cluster/index.tsx index bd5a4bfc8..04af3574d 100644 --- a/web/console/src/modules/cluster/index.tsx +++ b/web/console/src/modules/cluster/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { ClusterAppContainer } from './components/ClusterApp'; diff --git a/web/console/src/modules/cluster/models/Addon.ts b/web/console/src/modules/cluster/models/Addon.ts index d74e5affe..6baafca3c 100644 --- a/web/console/src/modules/cluster/models/Addon.ts +++ b/web/console/src/modules/cluster/models/Addon.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface AddonStatus { [propName: string]: Addon; } diff --git a/web/console/src/modules/cluster/models/AllocationRatioEdition.ts b/web/console/src/modules/cluster/models/AllocationRatioEdition.ts index 10acda2ce..2b1512c71 100644 --- a/web/console/src/modules/cluster/models/AllocationRatioEdition.ts +++ b/web/console/src/modules/cluster/models/AllocationRatioEdition.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Validation } from 'src/modules/common'; import { Identifiable } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/models/ClusterCreationState.ts b/web/console/src/modules/cluster/models/ClusterCreationState.ts index 6006d6de8..ce0e1ab1b 100644 --- a/web/console/src/modules/cluster/models/ClusterCreationState.ts +++ b/web/console/src/modules/cluster/models/ClusterCreationState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/cluster/models/Clustercredential.ts b/web/console/src/modules/cluster/models/Clustercredential.ts index 26091ea6f..1061ef0c2 100644 --- a/web/console/src/modules/cluster/models/Clustercredential.ts +++ b/web/console/src/modules/cluster/models/Clustercredential.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface Clustercredential { name: string; clusterName: string; diff --git a/web/console/src/modules/cluster/models/Computer.ts b/web/console/src/modules/cluster/models/Computer.ts index 3f5dea2cb..1a043d3b0 100644 --- a/web/console/src/modules/cluster/models/Computer.ts +++ b/web/console/src/modules/cluster/models/Computer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, FFListModel, Identifiable, QueryState, RecordSet, WorkflowState } from '@tencent/ff-redux'; import { CreateResource } from '../../common'; diff --git a/web/console/src/modules/cluster/models/ComputerOperator.ts b/web/console/src/modules/cluster/models/ComputerOperator.ts index cd573229e..b1c71b89e 100644 --- a/web/console/src/modules/cluster/models/ComputerOperator.ts +++ b/web/console/src/modules/cluster/models/ComputerOperator.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface ComputerOperator { /** * 集群Id diff --git a/web/console/src/modules/cluster/models/ConfigMapEdit.ts b/web/console/src/modules/cluster/models/ConfigMapEdit.ts index 37bcf837b..7705fea2b 100644 --- a/web/console/src/modules/cluster/models/ConfigMapEdit.ts +++ b/web/console/src/modules/cluster/models/ConfigMapEdit.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable, uuid } from '@tencent/ff-redux'; import { initValidator, Validation } from '../../common/models'; diff --git a/web/console/src/modules/cluster/models/ContainerEnv.ts b/web/console/src/modules/cluster/models/ContainerEnv.ts index eb33fd3c9..ec2c19d0b 100644 --- a/web/console/src/modules/cluster/models/ContainerEnv.ts +++ b/web/console/src/modules/cluster/models/ContainerEnv.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { t } from '@tencent/tea-app/lib/i18n'; import { Validation, initValidator } from '@tencent/ff-validator'; diff --git a/web/console/src/modules/cluster/models/ContainerItem.ts b/web/console/src/modules/cluster/models/ContainerItem.ts index d7a873fb5..c66b5feb1 100644 --- a/web/console/src/modules/cluster/models/ContainerItem.ts +++ b/web/console/src/modules/cluster/models/ContainerItem.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/cluster/models/CreateIC.ts b/web/console/src/modules/cluster/models/CreateIC.ts index b507d2098..721c60f72 100644 --- a/web/console/src/modules/cluster/models/CreateIC.ts +++ b/web/console/src/modules/cluster/models/CreateIC.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/cluster/models/DetailResourceOption.ts b/web/console/src/modules/cluster/models/DetailResourceOption.ts index 5285d6025..5188c0c85 100644 --- a/web/console/src/modules/cluster/models/DetailResourceOption.ts +++ b/web/console/src/modules/cluster/models/DetailResourceOption.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ResourceInfo } from '../../common'; export interface DetailResourceOption { diff --git a/web/console/src/modules/cluster/models/DialogState.ts b/web/console/src/modules/cluster/models/DialogState.ts index c75e771f3..a517aa6d7 100644 --- a/web/console/src/modules/cluster/models/DialogState.ts +++ b/web/console/src/modules/cluster/models/DialogState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum DialogNameEnum { /** 集群凭证 弹窗 */ kuberctlDialog = 'kuberctlDialog', diff --git a/web/console/src/modules/cluster/models/Event.ts b/web/console/src/modules/cluster/models/Event.ts index 4cf1492c0..c7f38f28e 100644 --- a/web/console/src/modules/cluster/models/Event.ts +++ b/web/console/src/modules/cluster/models/Event.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { ResourceFilter } from './ResourceOption'; diff --git a/web/console/src/modules/cluster/models/Lbcf.ts b/web/console/src/modules/cluster/models/Lbcf.ts index ee3067739..08a34ba6d 100644 --- a/web/console/src/modules/cluster/models/Lbcf.ts +++ b/web/console/src/modules/cluster/models/Lbcf.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, Identifiable, RecordSet } from '@tencent/ff-redux'; export interface LbcfResource extends Identifiable { diff --git a/web/console/src/modules/cluster/models/LbcfEdit.ts b/web/console/src/modules/cluster/models/LbcfEdit.ts index a3be0abfb..991ed0c5e 100644 --- a/web/console/src/modules/cluster/models/LbcfEdit.ts +++ b/web/console/src/modules/cluster/models/LbcfEdit.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { string } from 'prop-types'; import { extend, Identifiable, RecordSet, FFListModel } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/models/MonitorPanel.tsx b/web/console/src/modules/cluster/models/MonitorPanel.tsx index 0c0896ad5..2f1b19acf 100644 --- a/web/console/src/modules/cluster/models/MonitorPanel.tsx +++ b/web/console/src/modules/cluster/models/MonitorPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t, Trans } from '@tencent/tea-app/lib/i18n'; import { TransformField } from '@tencent/tchart'; diff --git a/web/console/src/modules/cluster/models/Namespace.ts b/web/console/src/modules/cluster/models/Namespace.ts index aba6c3781..d43085fbb 100644 --- a/web/console/src/modules/cluster/models/Namespace.ts +++ b/web/console/src/modules/cluster/models/Namespace.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/cluster/models/NamespaceCreation.ts b/web/console/src/modules/cluster/models/NamespaceCreation.ts index ddc4bb0b9..c084ed774 100644 --- a/web/console/src/modules/cluster/models/NamespaceCreation.ts +++ b/web/console/src/modules/cluster/models/NamespaceCreation.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/cluster/models/NamespaceOperator.ts b/web/console/src/modules/cluster/models/NamespaceOperator.ts index 26c3b5d10..63e57f039 100644 --- a/web/console/src/modules/cluster/models/NamespaceOperator.ts +++ b/web/console/src/modules/cluster/models/NamespaceOperator.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface NamespaceOperator { /** * 集群Id diff --git a/web/console/src/modules/cluster/models/Pod.ts b/web/console/src/modules/cluster/models/Pod.ts index 6fec38603..55dbfee43 100644 --- a/web/console/src/modules/cluster/models/Pod.ts +++ b/web/console/src/modules/cluster/models/Pod.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Pod extends Identifiable { diff --git a/web/console/src/modules/cluster/models/PortMap.ts b/web/console/src/modules/cluster/models/PortMap.ts index 570d1bc87..17000dcb6 100644 --- a/web/console/src/modules/cluster/models/PortMap.ts +++ b/web/console/src/modules/cluster/models/PortMap.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/cluster/models/Replicaset.ts b/web/console/src/modules/cluster/models/Replicaset.ts index f01db1f32..05c3d3141 100644 --- a/web/console/src/modules/cluster/models/Replicaset.ts +++ b/web/console/src/modules/cluster/models/Replicaset.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Replicaset extends Identifiable { diff --git a/web/console/src/modules/cluster/models/RequestLimit.ts b/web/console/src/modules/cluster/models/RequestLimit.ts index 96009cac0..678f365c3 100644 --- a/web/console/src/modules/cluster/models/RequestLimit.ts +++ b/web/console/src/modules/cluster/models/RequestLimit.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface RequestLimit extends Identifiable { diff --git a/web/console/src/modules/cluster/models/ResourceDetailState.ts b/web/console/src/modules/cluster/models/ResourceDetailState.ts index 1294322bc..689d605c5 100644 --- a/web/console/src/modules/cluster/models/ResourceDetailState.ts +++ b/web/console/src/modules/cluster/models/ResourceDetailState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Validation, LogAgent } from 'src/modules/common'; import { FetcherState, FFListModel, QueryState, RecordSet, WorkflowState } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/models/ResourceEventOption.ts b/web/console/src/modules/cluster/models/ResourceEventOption.ts index 1f9177585..f265a9dd8 100644 --- a/web/console/src/modules/cluster/models/ResourceEventOption.ts +++ b/web/console/src/modules/cluster/models/ResourceEventOption.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, QueryState, RecordSet } from '@tencent/ff-redux'; import { Event, EventFilter } from './Event'; diff --git a/web/console/src/modules/cluster/models/ResourceLogOption.ts b/web/console/src/modules/cluster/models/ResourceLogOption.ts index a0bbe2fc2..62aa92ce2 100644 --- a/web/console/src/modules/cluster/models/ResourceLogOption.ts +++ b/web/console/src/modules/cluster/models/ResourceLogOption.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, QueryState, RecordSet } from '@tencent/ff-redux'; import { Pod } from './Pod'; diff --git a/web/console/src/modules/cluster/models/ResourceOption.ts b/web/console/src/modules/cluster/models/ResourceOption.ts index 8bc5dfb58..0e00cc41b 100644 --- a/web/console/src/modules/cluster/models/ResourceOption.ts +++ b/web/console/src/modules/cluster/models/ResourceOption.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable, FFListModel } from '@tencent/ff-redux'; export interface ResourceOption { diff --git a/web/console/src/modules/cluster/models/RootState.ts b/web/console/src/modules/cluster/models/RootState.ts index 109d5c516..fda99eb7e 100644 --- a/web/console/src/modules/cluster/models/RootState.ts +++ b/web/console/src/modules/cluster/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, FFListModel, QueryState, RecordSet, WorkflowState } from '@tencent/ff-redux'; import { RouteState } from '../../../../helpers'; diff --git a/web/console/src/modules/cluster/models/RuleMap.ts b/web/console/src/modules/cluster/models/RuleMap.ts index 03b162377..6593cea0d 100644 --- a/web/console/src/modules/cluster/models/RuleMap.ts +++ b/web/console/src/modules/cluster/models/RuleMap.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/cluster/models/SecretEdit.ts b/web/console/src/modules/cluster/models/SecretEdit.ts index e5346d7b4..5b6a357a7 100644 --- a/web/console/src/modules/cluster/models/SecretEdit.ts +++ b/web/console/src/modules/cluster/models/SecretEdit.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, Identifiable, QueryState, RecordSet } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/cluster/models/SelectProjectState.ts b/web/console/src/modules/cluster/models/SelectProjectState.ts index 8e4950ca1..222267d31 100644 --- a/web/console/src/modules/cluster/models/SelectProjectState.ts +++ b/web/console/src/modules/cluster/models/SelectProjectState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface SelectProjectState { /** * 新业务 diff --git a/web/console/src/modules/cluster/models/ServiceEdit.ts b/web/console/src/modules/cluster/models/ServiceEdit.ts index c797b012d..f9b444a49 100644 --- a/web/console/src/modules/cluster/models/ServiceEdit.ts +++ b/web/console/src/modules/cluster/models/ServiceEdit.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, Identifiable, QueryState, RecordSet } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/cluster/models/SubRoot.ts b/web/console/src/modules/cluster/models/SubRoot.ts index 677c3e00e..97075c4e7 100644 --- a/web/console/src/modules/cluster/models/SubRoot.ts +++ b/web/console/src/modules/cluster/models/SubRoot.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, QueryState, RecordSet, WorkflowState } from '@tencent/ff-redux'; import { ResourceInfo } from '../../common/models'; diff --git a/web/console/src/modules/cluster/models/SubRouter.ts b/web/console/src/modules/cluster/models/SubRouter.ts index e6b707686..49b8651d0 100644 --- a/web/console/src/modules/cluster/models/SubRouter.ts +++ b/web/console/src/modules/cluster/models/SubRouter.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface SubRouter extends Identifiable, BasicRouter { diff --git a/web/console/src/modules/cluster/models/Version.ts b/web/console/src/modules/cluster/models/Version.ts index b65ba7a95..8cfb48ea8 100644 --- a/web/console/src/modules/cluster/models/Version.ts +++ b/web/console/src/modules/cluster/models/Version.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Version extends Identifiable { diff --git a/web/console/src/modules/cluster/models/VolumeItem.ts b/web/console/src/modules/cluster/models/VolumeItem.ts index 20fc30a6b..a405d3fe2 100644 --- a/web/console/src/modules/cluster/models/VolumeItem.ts +++ b/web/console/src/modules/cluster/models/VolumeItem.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/cluster/models/WorkloadEdit.ts b/web/console/src/modules/cluster/models/WorkloadEdit.ts index 2708060cf..6f99d7b74 100644 --- a/web/console/src/modules/cluster/models/WorkloadEdit.ts +++ b/web/console/src/modules/cluster/models/WorkloadEdit.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, Identifiable, QueryState, RecordSet, FFListModel } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/cluster/models/index.ts b/web/console/src/modules/cluster/models/index.ts index 5764e11b9..6bf8b219a 100644 --- a/web/console/src/modules/cluster/models/index.ts +++ b/web/console/src/modules/cluster/models/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { RootState } from './RootState'; export { Computer, ComputerFilter, ComputerState } from './Computer'; diff --git a/web/console/src/modules/cluster/reducers/ComputerReducer.ts b/web/console/src/modules/cluster/reducers/ComputerReducer.ts index d542443aa..da0fada49 100644 --- a/web/console/src/modules/cluster/reducers/ComputerReducer.ts +++ b/web/console/src/modules/cluster/reducers/ComputerReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { createFFListReducer, generateWorkflowReducer, RecordSet, reduceToPayload, uuid } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/reducers/ConfigMapEditReducer.ts b/web/console/src/modules/cluster/reducers/ConfigMapEditReducer.ts index 8170796d8..d50ef404d 100644 --- a/web/console/src/modules/cluster/reducers/ConfigMapEditReducer.ts +++ b/web/console/src/modules/cluster/reducers/ConfigMapEditReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { RecordSet, reduceToPayload, ReduxAction } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/reducers/CreateICReducer.ts b/web/console/src/modules/cluster/reducers/CreateICReducer.ts index 77ffa39c1..869db16ce 100644 --- a/web/console/src/modules/cluster/reducers/CreateICReducer.ts +++ b/web/console/src/modules/cluster/reducers/CreateICReducer.ts @@ -1,65 +1,82 @@ -import { combineReducers } from 'redux'; - -import { RecordSet, reduceToPayload } from '@tencent/ff-redux'; - -import { initValidator } from '../../common/models'; -import * as ActionType from '../constants/ActionType'; -import { GPUTYPE, k8sVersionList, CreateICVipType, ContainerRuntimeEnum } from '../constants/Config'; - -const TempReducer = combineReducers({ - name: reduceToPayload(ActionType.IC_Name, ''), - - v_name: reduceToPayload(ActionType.v_IC_Name, initValidator), - - networkDevice: reduceToPayload(ActionType.IC_NetworkDevice, 'eth0'), - - v_networkDevice: reduceToPayload(ActionType.v_IC_NetworkDevice, initValidator), - - maxClusterServiceNum: reduceToPayload(ActionType.IC_MaxClusterServiceNum, 256), - - maxNodePodNum: reduceToPayload(ActionType.IC_MaxNodePodNum, 256), - - k8sVersion: reduceToPayload(ActionType.IC_K8SVersion, ''), - - k8sVersionList: reduceToPayload(ActionType.IC_FetchK8SVersion, []), - - cidr: reduceToPayload(ActionType.IC_Cidr, '10.244.0.0/16'), - - computerList: reduceToPayload(ActionType.IC_ComputerList, []), - computerEdit: reduceToPayload(ActionType.IC_ComputerEdit, null), - vipAddress: reduceToPayload(ActionType.IC_VipAddress, ''), - vipPort: reduceToPayload(ActionType.IC_VipPort, '6443'), - - v_vipAddress: reduceToPayload(ActionType.v_IC_VipAddress, initValidator), - - v_vipPort: reduceToPayload(ActionType.v_IC_VipPort, initValidator), - - vipType: reduceToPayload(ActionType.v_IC_Vip, CreateICVipType.unuse), - - gpu: reduceToPayload(ActionType.v_IC_Gpu, false), - - merticsServer: reduceToPayload(ActionType.v_IC_Mertics_server, true), - - cilium: reduceToPayload(ActionType.v_IC_Cilium, 'Galaxy'), - - networkMode: reduceToPayload(ActionType.v_IC_NetworkMode, 'overlay'), - - asNumber: reduceToPayload(ActionType.IC_AS, ''), - v_asNumber: reduceToPayload(ActionType.v_IC_AS, initValidator), - - switchIp: reduceToPayload(ActionType.IC_SwitchIp, ''), - v_switchIp: reduceToPayload(ActionType.v_IC_SwitchIp, initValidator), - - gpuType: reduceToPayload(ActionType.v_IC_GpuType, GPUTYPE.PGPU), - - containerRuntime: reduceToPayload(ActionType.IC_EnableContainerRuntime, ContainerRuntimeEnum.DOCKER) -}); - -export const CreateICReducer = (state, action) => { - let newState = state; - // 销毁创建namespace 页面 - if (action.type === ActionType.IC_Clear) { - newState = undefined; - } - return TempReducer(newState, action); -}; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +import { combineReducers } from 'redux'; + +import { RecordSet, reduceToPayload } from '@tencent/ff-redux'; + +import { initValidator } from '../../common/models'; +import * as ActionType from '../constants/ActionType'; +import { GPUTYPE, k8sVersionList, CreateICVipType, ContainerRuntimeEnum } from '../constants/Config'; + +const TempReducer = combineReducers({ + name: reduceToPayload(ActionType.IC_Name, ''), + + v_name: reduceToPayload(ActionType.v_IC_Name, initValidator), + + networkDevice: reduceToPayload(ActionType.IC_NetworkDevice, 'eth0'), + + v_networkDevice: reduceToPayload(ActionType.v_IC_NetworkDevice, initValidator), + + maxClusterServiceNum: reduceToPayload(ActionType.IC_MaxClusterServiceNum, 256), + + maxNodePodNum: reduceToPayload(ActionType.IC_MaxNodePodNum, 256), + + k8sVersion: reduceToPayload(ActionType.IC_K8SVersion, ''), + + k8sVersionList: reduceToPayload(ActionType.IC_FetchK8SVersion, []), + + cidr: reduceToPayload(ActionType.IC_Cidr, '10.244.0.0/16'), + + computerList: reduceToPayload(ActionType.IC_ComputerList, []), + computerEdit: reduceToPayload(ActionType.IC_ComputerEdit, null), + vipAddress: reduceToPayload(ActionType.IC_VipAddress, ''), + vipPort: reduceToPayload(ActionType.IC_VipPort, '6443'), + + v_vipAddress: reduceToPayload(ActionType.v_IC_VipAddress, initValidator), + + v_vipPort: reduceToPayload(ActionType.v_IC_VipPort, initValidator), + + vipType: reduceToPayload(ActionType.v_IC_Vip, CreateICVipType.unuse), + + gpu: reduceToPayload(ActionType.v_IC_Gpu, false), + + merticsServer: reduceToPayload(ActionType.v_IC_Mertics_server, true), + + cilium: reduceToPayload(ActionType.v_IC_Cilium, 'Galaxy'), + + networkMode: reduceToPayload(ActionType.v_IC_NetworkMode, 'overlay'), + + asNumber: reduceToPayload(ActionType.IC_AS, ''), + v_asNumber: reduceToPayload(ActionType.v_IC_AS, initValidator), + + switchIp: reduceToPayload(ActionType.IC_SwitchIp, ''), + v_switchIp: reduceToPayload(ActionType.v_IC_SwitchIp, initValidator), + + gpuType: reduceToPayload(ActionType.v_IC_GpuType, GPUTYPE.PGPU), + + containerRuntime: reduceToPayload(ActionType.IC_EnableContainerRuntime, ContainerRuntimeEnum.CONTAINERD) +}); + +export const CreateICReducer = (state, action) => { + let newState = state; + // 销毁创建namespace 页面 + if (action.type === ActionType.IC_Clear) { + newState = undefined; + } + return TempReducer(newState, action); +}; diff --git a/web/console/src/modules/cluster/reducers/DetailResourceReducer.ts b/web/console/src/modules/cluster/reducers/DetailResourceReducer.ts index dc61f5686..d59db2ecf 100644 --- a/web/console/src/modules/cluster/reducers/DetailResourceReducer.ts +++ b/web/console/src/modules/cluster/reducers/DetailResourceReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/reducers/LbcfEditReducer.ts b/web/console/src/modules/cluster/reducers/LbcfEditReducer.ts index 6bfb3b293..68e09da97 100644 --- a/web/console/src/modules/cluster/reducers/LbcfEditReducer.ts +++ b/web/console/src/modules/cluster/reducers/LbcfEditReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FFReduxActionName } from './../constants/Config'; import { combineReducers } from 'redux'; diff --git a/web/console/src/modules/cluster/reducers/NamespaceEditReducer.ts b/web/console/src/modules/cluster/reducers/NamespaceEditReducer.ts index c58b60bb6..6818b1794 100644 --- a/web/console/src/modules/cluster/reducers/NamespaceEditReducer.ts +++ b/web/console/src/modules/cluster/reducers/NamespaceEditReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/reducers/ResourceDetailReducer.ts b/web/console/src/modules/cluster/reducers/ResourceDetailReducer.ts index b758de18a..95a406c2d 100644 --- a/web/console/src/modules/cluster/reducers/ResourceDetailReducer.ts +++ b/web/console/src/modules/cluster/reducers/ResourceDetailReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { createFFListReducer, generateWorkflowReducer, RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/reducers/ResourceEventReducer.ts b/web/console/src/modules/cluster/reducers/ResourceEventReducer.ts index 30d2cc622..272229edb 100644 --- a/web/console/src/modules/cluster/reducers/ResourceEventReducer.ts +++ b/web/console/src/modules/cluster/reducers/ResourceEventReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/reducers/ResourceLogReducer.ts b/web/console/src/modules/cluster/reducers/ResourceLogReducer.ts index 979ca4424..38b60abf5 100644 --- a/web/console/src/modules/cluster/reducers/ResourceLogReducer.ts +++ b/web/console/src/modules/cluster/reducers/ResourceLogReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/reducers/ResourceReducer.ts b/web/console/src/modules/cluster/reducers/ResourceReducer.ts index 52ccfcbab..e26cfe438 100644 --- a/web/console/src/modules/cluster/reducers/ResourceReducer.ts +++ b/web/console/src/modules/cluster/reducers/ResourceReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { reduceToPayload, createFFListReducer } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/reducers/RootReducer.project.ts b/web/console/src/modules/cluster/reducers/RootReducer.project.ts index 513e6a6e6..7f62f6f66 100644 --- a/web/console/src/modules/cluster/reducers/RootReducer.project.ts +++ b/web/console/src/modules/cluster/reducers/RootReducer.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { diff --git a/web/console/src/modules/cluster/reducers/RootReducer.ts b/web/console/src/modules/cluster/reducers/RootReducer.ts index 92ca66f31..9d76f271d 100644 --- a/web/console/src/modules/cluster/reducers/RootReducer.ts +++ b/web/console/src/modules/cluster/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { diff --git a/web/console/src/modules/cluster/reducers/SecretEditReducer.ts b/web/console/src/modules/cluster/reducers/SecretEditReducer.ts index f263ff012..c0c2ff43f 100644 --- a/web/console/src/modules/cluster/reducers/SecretEditReducer.ts +++ b/web/console/src/modules/cluster/reducers/SecretEditReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/reducers/ServiceEditReducer.ts b/web/console/src/modules/cluster/reducers/ServiceEditReducer.ts index a84c5db1e..b06467196 100644 --- a/web/console/src/modules/cluster/reducers/ServiceEditReducer.ts +++ b/web/console/src/modules/cluster/reducers/ServiceEditReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/reducers/SubReducer.ts b/web/console/src/modules/cluster/reducers/SubReducer.ts index 1abe69a38..855e2ca93 100644 --- a/web/console/src/modules/cluster/reducers/SubReducer.ts +++ b/web/console/src/modules/cluster/reducers/SubReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { generateWorkflowReducer, RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/cluster/reducers/WorkloadEditReducer.ts b/web/console/src/modules/cluster/reducers/WorkloadEditReducer.ts index 30610fd82..e51bf47d2 100644 --- a/web/console/src/modules/cluster/reducers/WorkloadEditReducer.ts +++ b/web/console/src/modules/cluster/reducers/WorkloadEditReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ComputerFilter, Computer } from './../models/Computer'; import { FFReduxActionName } from './../constants/Config'; import { combineReducers } from 'redux'; diff --git a/web/console/src/modules/cluster/router.project.ts b/web/console/src/modules/cluster/router.project.ts index bdb17950b..89d434a41 100644 --- a/web/console/src/modules/cluster/router.project.ts +++ b/web/console/src/modules/cluster/router.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/cluster/router.ts b/web/console/src/modules/cluster/router.ts index 995c4b473..87f96ada4 100644 --- a/web/console/src/modules/cluster/router.ts +++ b/web/console/src/modules/cluster/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/cluster/stores/RootStore.ts b/web/console/src/modules/cluster/stores/RootStore.ts index 528dcd48c..83ff139b0 100644 --- a/web/console/src/modules/cluster/stores/RootStore.ts +++ b/web/console/src/modules/cluster/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/modules/common/components/ChartBrush/BarChartBrush.tsx b/web/console/src/modules/common/components/ChartBrush/BarChartBrush.tsx index 02d748794..a645f62bf 100644 --- a/web/console/src/modules/common/components/ChartBrush/BarChartBrush.tsx +++ b/web/console/src/modules/common/components/ChartBrush/BarChartBrush.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as d3 from 'd3'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/ChartBrush/LineChartBrush.tsx b/web/console/src/modules/common/components/ChartBrush/LineChartBrush.tsx index 52b6b8a35..37b7f6546 100644 --- a/web/console/src/modules/common/components/ChartBrush/LineChartBrush.tsx +++ b/web/console/src/modules/common/components/ChartBrush/LineChartBrush.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as d3 from 'd3'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/ChartBrush/bytesTo.ts b/web/console/src/modules/common/components/ChartBrush/bytesTo.ts index 7e85a49d9..05b033a6f 100644 --- a/web/console/src/modules/common/components/ChartBrush/bytesTo.ts +++ b/web/console/src/modules/common/components/ChartBrush/bytesTo.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * Bytes -> GB/MB/KB/Bytes */ diff --git a/web/console/src/modules/common/components/ChartBrush/index.ts b/web/console/src/modules/common/components/ChartBrush/index.ts index 69248dd65..df7799983 100644 --- a/web/console/src/modules/common/components/ChartBrush/index.ts +++ b/web/console/src/modules/common/components/ChartBrush/index.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { LineChartBrush, LineChartBrushProps } from './LineChartBrush'; export { BarChartBrush, BarChartBrushProps } from './BarChartBrush'; diff --git a/web/console/src/modules/common/components/NavigateLink.tsx b/web/console/src/modules/common/components/NavigateLink.tsx index a8e19947b..7b24ca149 100644 --- a/web/console/src/modules/common/components/NavigateLink.tsx +++ b/web/console/src/modules/common/components/NavigateLink.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; export function NavigateLink({ title, diff --git a/web/console/src/modules/common/components/buttonbar/ButtonBar.tsx b/web/console/src/modules/common/components/buttonbar/ButtonBar.tsx index b0bf61be1..02f744200 100644 --- a/web/console/src/modules/common/components/buttonbar/ButtonBar.tsx +++ b/web/console/src/modules/common/components/buttonbar/ButtonBar.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classNames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/buttonbar/index.ts b/web/console/src/modules/common/components/buttonbar/index.ts index fabb431d2..af569e123 100644 --- a/web/console/src/modules/common/components/buttonbar/index.ts +++ b/web/console/src/modules/common/components/buttonbar/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { ButtonBar, ButtonBarItem, ButtonBarProps } from './ButtonBar'; diff --git a/web/console/src/modules/common/components/cardMenu/CardMenu.tsx b/web/console/src/modules/common/components/cardMenu/CardMenu.tsx index 8dd9b3f7a..6223ea689 100644 --- a/web/console/src/modules/common/components/cardMenu/CardMenu.tsx +++ b/web/console/src/modules/common/components/cardMenu/CardMenu.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/cardMenu/index.ts b/web/console/src/modules/common/components/cardMenu/index.ts index 5242245c4..52d9df8fb 100644 --- a/web/console/src/modules/common/components/cardMenu/index.ts +++ b/web/console/src/modules/common/components/cardMenu/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { CardMenu, CardMenuItem } from './CardMenu'; diff --git a/web/console/src/modules/common/components/clip/Clip.tsx b/web/console/src/modules/common/components/clip/Clip.tsx index 280528596..e79aae379 100644 --- a/web/console/src/modules/common/components/clip/Clip.tsx +++ b/web/console/src/modules/common/components/clip/Clip.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as Clipboard from 'clipboard'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/clip/index.ts b/web/console/src/modules/common/components/clip/index.ts index c07061bd8..11feef6d5 100644 --- a/web/console/src/modules/common/components/clip/index.ts +++ b/web/console/src/modules/common/components/clip/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { Clip, ClipProps } from './Clip'; diff --git a/web/console/src/modules/common/components/codemirror/CodeMirrorEditor.tsx b/web/console/src/modules/common/components/codemirror/CodeMirrorEditor.tsx index 3bd5881fc..173a4d0e8 100644 --- a/web/console/src/modules/common/components/codemirror/CodeMirrorEditor.tsx +++ b/web/console/src/modules/common/components/codemirror/CodeMirrorEditor.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as CodeMirror from 'react-codemirror'; diff --git a/web/console/src/modules/common/components/codemirror/index.ts b/web/console/src/modules/common/components/codemirror/index.ts index 6842e0368..c19b54a76 100644 --- a/web/console/src/modules/common/components/codemirror/index.ts +++ b/web/console/src/modules/common/components/codemirror/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { CodeMirrorEditor, CodeMirrorEditorProps } from './CodeMirrorEditor'; diff --git a/web/console/src/modules/common/components/commonbar/CommonBar.tsx b/web/console/src/modules/common/components/commonbar/CommonBar.tsx index a2d4d393c..bcc3a91ff 100644 --- a/web/console/src/modules/common/components/commonbar/CommonBar.tsx +++ b/web/console/src/modules/common/components/commonbar/CommonBar.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { ButtonBar, ButtonBarItem, ButtonBarProps } from '../buttonbar'; diff --git a/web/console/src/modules/common/components/commonbar/index.ts b/web/console/src/modules/common/components/commonbar/index.ts index 15155bdde..7feafcce7 100644 --- a/web/console/src/modules/common/components/commonbar/index.ts +++ b/web/console/src/modules/common/components/commonbar/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { CommonBar, CommonBarItem, CommonBarProps } from './CommonBar'; diff --git a/web/console/src/modules/common/components/datepicker/DatePicker.tsx b/web/console/src/modules/common/components/datepicker/DatePicker.tsx index ea3427df8..86394c353 100644 --- a/web/console/src/modules/common/components/datepicker/DatePicker.tsx +++ b/web/console/src/modules/common/components/datepicker/DatePicker.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as ReactDom from 'react-dom'; diff --git a/web/console/src/modules/common/components/datepicker/defaultDatePickerTabs.ts b/web/console/src/modules/common/components/datepicker/defaultDatePickerTabs.ts index 7da12c67e..f45534d83 100644 --- a/web/console/src/modules/common/components/datepicker/defaultDatePickerTabs.ts +++ b/web/console/src/modules/common/components/datepicker/defaultDatePickerTabs.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { DatePickerProps } from './'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/common/components/datepicker/index.ts b/web/console/src/modules/common/components/datepicker/index.ts index 1111040d4..e4f3c8ec4 100644 --- a/web/console/src/modules/common/components/datepicker/index.ts +++ b/web/console/src/modules/common/components/datepicker/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { DatePicker, DatePickerProps, diff --git a/web/console/src/modules/common/components/datetimepicker/DateTimePicker.tsx b/web/console/src/modules/common/components/datetimepicker/DateTimePicker.tsx index 06cda818a..7cf7e6236 100644 --- a/web/console/src/modules/common/components/datetimepicker/DateTimePicker.tsx +++ b/web/console/src/modules/common/components/datetimepicker/DateTimePicker.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /* eslint-disable */ import * as classNames from 'classnames'; diff --git a/web/console/src/modules/common/components/datetimepicker/SingleDatePicker.tsx b/web/console/src/modules/common/components/datetimepicker/SingleDatePicker.tsx index 39c65ecad..d178f825a 100644 --- a/web/console/src/modules/common/components/datetimepicker/SingleDatePicker.tsx +++ b/web/console/src/modules/common/components/datetimepicker/SingleDatePicker.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classNames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/datetimepicker/index.ts b/web/console/src/modules/common/components/datetimepicker/index.ts index 66445e72d..d325b4f6a 100644 --- a/web/console/src/modules/common/components/datetimepicker/index.ts +++ b/web/console/src/modules/common/components/datetimepicker/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { DateTimePicker, DateTimePickerProps, DateTimePickerValue } from './DateTimePicker'; export { diff --git a/web/console/src/modules/common/components/downMenu/DownMenu.tsx b/web/console/src/modules/common/components/downMenu/DownMenu.tsx index cd340b25b..ec6cee166 100644 --- a/web/console/src/modules/common/components/downMenu/DownMenu.tsx +++ b/web/console/src/modules/common/components/downMenu/DownMenu.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps, insertCSS } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/components/downMenu/index.ts b/web/console/src/modules/common/components/downMenu/index.ts index 8aa8937dc..aae436563 100644 --- a/web/console/src/modules/common/components/downMenu/index.ts +++ b/web/console/src/modules/common/components/downMenu/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { DownMenu, DownMenuItem } from '../downMenu/DownMenu'; diff --git a/web/console/src/modules/common/components/dropdown/Dropdown.tsx b/web/console/src/modules/common/components/dropdown/Dropdown.tsx index b472b6205..348a79af0 100644 --- a/web/console/src/modules/common/components/dropdown/Dropdown.tsx +++ b/web/console/src/modules/common/components/dropdown/Dropdown.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import * as TransitionGroup from 'react-addons-css-transition-group'; diff --git a/web/console/src/modules/common/components/dropdown/index.ts b/web/console/src/modules/common/components/dropdown/index.ts index 55332e2da..659d0599d 100644 --- a/web/console/src/modules/common/components/dropdown/index.ts +++ b/web/console/src/modules/common/components/dropdown/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { DropdownList, DropdownListItem, DropdownListProps } from './Dropdown'; diff --git a/web/console/src/modules/common/components/dropdownmenu/DropdownMenu.tsx b/web/console/src/modules/common/components/dropdownmenu/DropdownMenu.tsx index b68973662..a201eec3d 100644 --- a/web/console/src/modules/common/components/dropdownmenu/DropdownMenu.tsx +++ b/web/console/src/modules/common/components/dropdownmenu/DropdownMenu.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/dropdownmenu/index.ts b/web/console/src/modules/common/components/dropdownmenu/index.ts index 91b38dd8a..7de8dc1ff 100644 --- a/web/console/src/modules/common/components/dropdownmenu/index.ts +++ b/web/console/src/modules/common/components/dropdownmenu/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { DropdownMenu, DropdownMenuItem, DropdownMenuProps } from './DropdownMenu'; diff --git a/web/console/src/modules/common/components/empty/emptyTips.tsx b/web/console/src/modules/common/components/empty/emptyTips.tsx index d6e69f445..979026ad4 100644 --- a/web/console/src/modules/common/components/empty/emptyTips.tsx +++ b/web/console/src/modules/common/components/empty/emptyTips.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Trans } from '@tencent/tea-app/lib/i18n'; export const emptyTips: JSX.Element = ( diff --git a/web/console/src/modules/common/components/empty/index.ts b/web/console/src/modules/common/components/empty/index.ts index 29dd6e6e6..45896dcf8 100644 --- a/web/console/src/modules/common/components/empty/index.ts +++ b/web/console/src/modules/common/components/empty/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { emptyTips } from './emptyTips'; diff --git a/web/console/src/modules/common/components/errortip/ErrorTip.tsx b/web/console/src/modules/common/components/errortip/ErrorTip.tsx index 01364989c..61406687d 100644 --- a/web/console/src/modules/common/components/errortip/ErrorTip.tsx +++ b/web/console/src/modules/common/components/errortip/ErrorTip.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps, WorkflowState } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/components/errortip/index.ts b/web/console/src/modules/common/components/errortip/index.ts index 749ee436f..11eb1af9a 100644 --- a/web/console/src/modules/common/components/errortip/index.ts +++ b/web/console/src/modules/common/components/errortip/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { ErrorGuide, ErrorTipProps, ErrorTip } from './ErrorTip'; diff --git a/web/console/src/modules/common/components/formitem/FormItem.tsx b/web/console/src/modules/common/components/formitem/FormItem.tsx index 352ca3c95..9b310112f 100644 --- a/web/console/src/modules/common/components/formitem/FormItem.tsx +++ b/web/console/src/modules/common/components/formitem/FormItem.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/formitem/index.ts b/web/console/src/modules/common/components/formitem/index.ts index 011895e34..30f1a1ae5 100644 --- a/web/console/src/modules/common/components/formitem/index.ts +++ b/web/console/src/modules/common/components/formitem/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { FormItem, FormItemProps } from './FormItem'; diff --git a/web/console/src/modules/common/components/gridtable/GridTable.tsx b/web/console/src/modules/common/components/gridtable/GridTable.tsx index 64180afaa..fb258ee86 100644 --- a/web/console/src/modules/common/components/gridtable/GridTable.tsx +++ b/web/console/src/modules/common/components/gridtable/GridTable.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Card, Pagination, Table, TableProps } from '@tea/component'; diff --git a/web/console/src/modules/common/components/gridtable/index.ts b/web/console/src/modules/common/components/gridtable/index.ts index 42edf4b31..aab01ce96 100644 --- a/web/console/src/modules/common/components/gridtable/index.ts +++ b/web/console/src/modules/common/components/gridtable/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { GridTable } from './GridTable'; diff --git a/web/console/src/modules/common/components/headbubble/HeadBubble.tsx b/web/console/src/modules/common/components/headbubble/HeadBubble.tsx index 8400a9f95..971af03ca 100644 --- a/web/console/src/modules/common/components/headbubble/HeadBubble.tsx +++ b/web/console/src/modules/common/components/headbubble/HeadBubble.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Bubble } from '@tea/component'; diff --git a/web/console/src/modules/common/components/headbubble/index.ts b/web/console/src/modules/common/components/headbubble/index.ts index 777e5fbe1..5c61a52bd 100644 --- a/web/console/src/modules/common/components/headbubble/index.ts +++ b/web/console/src/modules/common/components/headbubble/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { HeadBubble, HeadBubbleProps } from './HeadBubble'; diff --git a/web/console/src/modules/common/components/index.ts b/web/console/src/modules/common/components/index.ts index 9a8ac90ae..61c4f5d0f 100644 --- a/web/console/src/modules/common/components/index.ts +++ b/web/console/src/modules/common/components/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { InputField, InputFieldProps } from './inputfield'; export { InputRange, InputRangeProps } from './inputrange'; export { SelectList, SelectListProps } from './select'; diff --git a/web/console/src/modules/common/components/inputfield/InputField.tsx b/web/console/src/modules/common/components/inputfield/InputField.tsx index c211329ed..fd7b422db 100644 --- a/web/console/src/modules/common/components/inputfield/InputField.tsx +++ b/web/console/src/modules/common/components/inputfield/InputField.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/inputfield/index.ts b/web/console/src/modules/common/components/inputfield/index.ts index ce2aaa61a..af0a18851 100644 --- a/web/console/src/modules/common/components/inputfield/index.ts +++ b/web/console/src/modules/common/components/inputfield/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { InputField, InputFieldProps } from './InputField'; diff --git a/web/console/src/modules/common/components/inputrange/InputRange.tsx b/web/console/src/modules/common/components/inputrange/InputRange.tsx index 296d87745..7cc74215c 100644 --- a/web/console/src/modules/common/components/inputrange/InputRange.tsx +++ b/web/console/src/modules/common/components/inputrange/InputRange.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/inputrange/index.ts b/web/console/src/modules/common/components/inputrange/index.ts index 707762332..6e8b93abe 100644 --- a/web/console/src/modules/common/components/inputrange/index.ts +++ b/web/console/src/modules/common/components/inputrange/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { InputRange, InputRangeProps } from './InputRange'; diff --git a/web/console/src/modules/common/components/linkbutton/LinkButton.tsx b/web/console/src/modules/common/components/linkbutton/LinkButton.tsx index 830e84908..48dda2413 100644 --- a/web/console/src/modules/common/components/linkbutton/LinkButton.tsx +++ b/web/console/src/modules/common/components/linkbutton/LinkButton.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/linkbutton/index.ts b/web/console/src/modules/common/components/linkbutton/index.ts index 361c709d3..620cb20e8 100644 --- a/web/console/src/modules/common/components/linkbutton/index.ts +++ b/web/console/src/modules/common/components/linkbutton/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { LinkButton, LinkButtonProps } from './LinkButton'; diff --git a/web/console/src/modules/common/components/listitem/ListItem.tsx b/web/console/src/modules/common/components/listitem/ListItem.tsx index b294f436c..4a40c3c4d 100644 --- a/web/console/src/modules/common/components/listitem/ListItem.tsx +++ b/web/console/src/modules/common/components/listitem/ListItem.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/listitem/index.ts b/web/console/src/modules/common/components/listitem/index.ts index 9954d9a75..1b5cac807 100644 --- a/web/console/src/modules/common/components/listitem/index.ts +++ b/web/console/src/modules/common/components/listitem/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { ListItem, ListItemProps } from './ListItem'; diff --git a/web/console/src/modules/common/components/logviewer/Panel.tsx b/web/console/src/modules/common/components/logviewer/Panel.tsx index baca039cc..1e2249024 100644 --- a/web/console/src/modules/common/components/logviewer/Panel.tsx +++ b/web/console/src/modules/common/components/logviewer/Panel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { findDOMNode } from 'react-dom'; diff --git a/web/console/src/modules/common/components/logviewer/index.ts b/web/console/src/modules/common/components/logviewer/index.ts index 8960d84f6..075a3a8c8 100644 --- a/web/console/src/modules/common/components/logviewer/index.ts +++ b/web/console/src/modules/common/components/logviewer/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './Panel'; diff --git a/web/console/src/modules/common/components/markdown/Markdown.tsx b/web/console/src/modules/common/components/markdown/Markdown.tsx index 2a29770bd..f0f64f623 100644 --- a/web/console/src/modules/common/components/markdown/Markdown.tsx +++ b/web/console/src/modules/common/components/markdown/Markdown.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as marked from 'marked'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/markdown/index.ts b/web/console/src/modules/common/components/markdown/index.ts index 9dae1f0f0..e960ff844 100644 --- a/web/console/src/modules/common/components/markdown/index.ts +++ b/web/console/src/modules/common/components/markdown/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { Markdown, MarkdownProps } from './Markdown'; diff --git a/web/console/src/modules/common/components/network/Network.tsx b/web/console/src/modules/common/components/network/Network.tsx index fa407c886..2863c5e29 100644 --- a/web/console/src/modules/common/components/network/Network.tsx +++ b/web/console/src/modules/common/components/network/Network.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/components/network/VpcNetwork.tsx b/web/console/src/modules/common/components/network/VpcNetwork.tsx index fc5c3b148..e4cd3e739 100644 --- a/web/console/src/modules/common/components/network/VpcNetwork.tsx +++ b/web/console/src/modules/common/components/network/VpcNetwork.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/components/network/index.ts b/web/console/src/modules/common/components/network/index.ts index 89933dec6..e01f63ea9 100644 --- a/web/console/src/modules/common/components/network/index.ts +++ b/web/console/src/modules/common/components/network/index.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { Network, NetworkProps } from '../network/Network'; export { VpcNetwork } from './VpcNetwork'; diff --git a/web/console/src/modules/common/components/regionbar/RegionBar.tsx b/web/console/src/modules/common/components/regionbar/RegionBar.tsx index 898301b74..1a47c739f 100644 --- a/web/console/src/modules/common/components/regionbar/RegionBar.tsx +++ b/web/console/src/modules/common/components/regionbar/RegionBar.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FetcherState, FetchState, RecordSet } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/components/regionbar/index.ts b/web/console/src/modules/common/components/regionbar/index.ts index 82db33520..dc6aad8a8 100644 --- a/web/console/src/modules/common/components/regionbar/index.ts +++ b/web/console/src/modules/common/components/regionbar/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { RegionBar, RegionBarProps } from './RegionBar'; \ No newline at end of file diff --git a/web/console/src/modules/common/components/resourcelist/ResourceList.tsx b/web/console/src/modules/common/components/resourcelist/ResourceList.tsx index 9cca0c97c..fe5689fa6 100644 --- a/web/console/src/modules/common/components/resourcelist/ResourceList.tsx +++ b/web/console/src/modules/common/components/resourcelist/ResourceList.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Table, TableColumn, Text } from '@tea/component'; diff --git a/web/console/src/modules/common/components/resourcelist/index.ts b/web/console/src/modules/common/components/resourcelist/index.ts index 808f3ddca..97122b283 100644 --- a/web/console/src/modules/common/components/resourcelist/index.ts +++ b/web/console/src/modules/common/components/resourcelist/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { ResourceList } from './ResourceList'; diff --git a/web/console/src/modules/common/components/resourceselector/ResourceSelector.tsx b/web/console/src/modules/common/components/resourceselector/ResourceSelector.tsx index f4e38c3bb..456c7e85c 100644 --- a/web/console/src/modules/common/components/resourceselector/ResourceSelector.tsx +++ b/web/console/src/modules/common/components/resourceselector/ResourceSelector.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/resourceselector/index.ts b/web/console/src/modules/common/components/resourceselector/index.ts index 723b3248d..86dfe51cc 100644 --- a/web/console/src/modules/common/components/resourceselector/index.ts +++ b/web/console/src/modules/common/components/resourceselector/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { ResourceSelectorGeneric, ResourceSelectorProps, diff --git a/web/console/src/modules/common/components/select/SelectList.tsx b/web/console/src/modules/common/components/select/SelectList.tsx index 3f8d07d4b..5daa8bad0 100644 --- a/web/console/src/modules/common/components/select/SelectList.tsx +++ b/web/console/src/modules/common/components/select/SelectList.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/select/index.ts b/web/console/src/modules/common/components/select/index.ts index e6169b7ba..b6772f85c 100644 --- a/web/console/src/modules/common/components/select/index.ts +++ b/web/console/src/modules/common/components/select/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { SelectList, SelectListProps } from './SelectList'; \ No newline at end of file diff --git a/web/console/src/modules/common/components/sidepanel/SidePanel.tsx b/web/console/src/modules/common/components/sidepanel/SidePanel.tsx index 45f909406..9fce0335f 100644 --- a/web/console/src/modules/common/components/sidepanel/SidePanel.tsx +++ b/web/console/src/modules/common/components/sidepanel/SidePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { findDOMNode } from 'react-dom'; diff --git a/web/console/src/modules/common/components/sidepanel/index.ts b/web/console/src/modules/common/components/sidepanel/index.ts index 3ed301675..b360dc514 100644 --- a/web/console/src/modules/common/components/sidepanel/index.ts +++ b/web/console/src/modules/common/components/sidepanel/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { SidePanel, SidePanelProps } from './SidePanel'; \ No newline at end of file diff --git a/web/console/src/modules/common/components/stepTab/Step.tsx b/web/console/src/modules/common/components/stepTab/Step.tsx index 8e11e69a3..665d9a95f 100644 --- a/web/console/src/modules/common/components/stepTab/Step.tsx +++ b/web/console/src/modules/common/components/stepTab/Step.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/components/stepTab/StepTab.tsx b/web/console/src/modules/common/components/stepTab/StepTab.tsx index c96d8aedf..03c3eddbc 100644 --- a/web/console/src/modules/common/components/stepTab/StepTab.tsx +++ b/web/console/src/modules/common/components/stepTab/StepTab.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as ReactCSSTransitionGroup from 'react-addons-css-transition-group'; diff --git a/web/console/src/modules/common/components/stepTab/index.ts b/web/console/src/modules/common/components/stepTab/index.ts index 3d4cdb5bd..7fd322a29 100644 --- a/web/console/src/modules/common/components/stepTab/index.ts +++ b/web/console/src/modules/common/components/stepTab/index.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { Step, StepProps } from './Step'; export { StepItem, StepTab, StepTabProps, StepTabBody, StepTabBodyProps } from './StepTab'; diff --git a/web/console/src/modules/common/components/tabselector/TabSelector.tsx b/web/console/src/modules/common/components/tabselector/TabSelector.tsx index 07e146885..771155b1e 100644 --- a/web/console/src/modules/common/components/tabselector/TabSelector.tsx +++ b/web/console/src/modules/common/components/tabselector/TabSelector.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/tabselector/index.ts b/web/console/src/modules/common/components/tabselector/index.ts index c00caba29..80769dfcb 100644 --- a/web/console/src/modules/common/components/tabselector/index.ts +++ b/web/console/src/modules/common/components/tabselector/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { TabSelector, TabSelectorProps, TabItem } from './TabSelector'; \ No newline at end of file diff --git a/web/console/src/modules/common/components/tagsearchbox/AttributeSelect.tsx b/web/console/src/modules/common/components/tagsearchbox/AttributeSelect.tsx index 84e489816..864039874 100644 --- a/web/console/src/modules/common/components/tagsearchbox/AttributeSelect.tsx +++ b/web/console/src/modules/common/components/tagsearchbox/AttributeSelect.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as classNames from 'classnames'; diff --git a/web/console/src/modules/common/components/tagsearchbox/Input.tsx b/web/console/src/modules/common/components/tagsearchbox/Input.tsx index 77bddd4ab..64864852e 100644 --- a/web/console/src/modules/common/components/tagsearchbox/Input.tsx +++ b/web/console/src/modules/common/components/tagsearchbox/Input.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as classNames from 'classnames'; import { AttributeSelect, AttributeValue } from './AttributeSelect'; diff --git a/web/console/src/modules/common/components/tagsearchbox/Tag.tsx b/web/console/src/modules/common/components/tagsearchbox/Tag.tsx index efb0903b4..109a2bc38 100644 --- a/web/console/src/modules/common/components/tagsearchbox/Tag.tsx +++ b/web/console/src/modules/common/components/tagsearchbox/Tag.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as classNames from 'classnames'; import { Input } from './Input'; diff --git a/web/console/src/modules/common/components/tagsearchbox/TagSearchBox.tsx b/web/console/src/modules/common/components/tagsearchbox/TagSearchBox.tsx index 37aa6d137..4d9f509b4 100644 --- a/web/console/src/modules/common/components/tagsearchbox/TagSearchBox.tsx +++ b/web/console/src/modules/common/components/tagsearchbox/TagSearchBox.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classNames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/tagsearchbox/index.ts b/web/console/src/modules/common/components/tagsearchbox/index.ts index 3ae63c51d..0297435db 100644 --- a/web/console/src/modules/common/components/tagsearchbox/index.ts +++ b/web/console/src/modules/common/components/tagsearchbox/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { TagSearchBox, TagSearchBoxProps } from './TagSearchBox'; diff --git a/web/console/src/modules/common/components/tagsearchbox/valueselect/Loading.tsx b/web/console/src/modules/common/components/tagsearchbox/valueselect/Loading.tsx index 25808926c..2afa80af7 100644 --- a/web/console/src/modules/common/components/tagsearchbox/valueselect/Loading.tsx +++ b/web/console/src/modules/common/components/tagsearchbox/valueselect/Loading.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/common/components/tagsearchbox/valueselect/MultipleValueSelect.tsx b/web/console/src/modules/common/components/tagsearchbox/valueselect/MultipleValueSelect.tsx index dfa2854e7..2739bc655 100644 --- a/web/console/src/modules/common/components/tagsearchbox/valueselect/MultipleValueSelect.tsx +++ b/web/console/src/modules/common/components/tagsearchbox/valueselect/MultipleValueSelect.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as classNames from 'classnames'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/common/components/tagsearchbox/valueselect/PureInput.tsx b/web/console/src/modules/common/components/tagsearchbox/valueselect/PureInput.tsx index a873de1f3..004345962 100644 --- a/web/console/src/modules/common/components/tagsearchbox/valueselect/PureInput.tsx +++ b/web/console/src/modules/common/components/tagsearchbox/valueselect/PureInput.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as classNames from 'classnames'; diff --git a/web/console/src/modules/common/components/tagsearchbox/valueselect/SingleValueSelect.tsx b/web/console/src/modules/common/components/tagsearchbox/valueselect/SingleValueSelect.tsx index 19d1e14a3..bc9874b93 100644 --- a/web/console/src/modules/common/components/tagsearchbox/valueselect/SingleValueSelect.tsx +++ b/web/console/src/modules/common/components/tagsearchbox/valueselect/SingleValueSelect.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as classNames from 'classnames'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/common/components/tagsearchbox/valueselect/index.tsx b/web/console/src/modules/common/components/tagsearchbox/valueselect/index.tsx index 46ae2e2ab..71effd8fe 100644 --- a/web/console/src/modules/common/components/tagsearchbox/valueselect/index.tsx +++ b/web/console/src/modules/common/components/tagsearchbox/valueselect/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as classNames from 'classnames'; import { PureInput } from './PureInput'; diff --git a/web/console/src/modules/common/components/timepicker/Select.tsx b/web/console/src/modules/common/components/timepicker/Select.tsx index 53ee63a1a..586f35a2a 100644 --- a/web/console/src/modules/common/components/timepicker/Select.tsx +++ b/web/console/src/modules/common/components/timepicker/Select.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as classNames from 'classnames'; import * as ReactDOM from 'react-dom'; diff --git a/web/console/src/modules/common/components/timepicker/TimePicker.tsx b/web/console/src/modules/common/components/timepicker/TimePicker.tsx index 29a655f6c..a8943cdfe 100644 --- a/web/console/src/modules/common/components/timepicker/TimePicker.tsx +++ b/web/console/src/modules/common/components/timepicker/TimePicker.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classNames from 'classnames'; /* eslint-disable */ import * as React from 'react'; diff --git a/web/console/src/modules/common/components/timepicker/index.ts b/web/console/src/modules/common/components/timepicker/index.ts index d9fffaa1a..33ccc3cf7 100644 --- a/web/console/src/modules/common/components/timepicker/index.ts +++ b/web/console/src/modules/common/components/timepicker/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { TimePicker, TimePickerProps, TimePickerValue, TimePickerRange } from './TimePicker'; diff --git a/web/console/src/modules/common/components/tipdialog/TipDialog.tsx b/web/console/src/modules/common/components/tipdialog/TipDialog.tsx index dfc3d35af..06ad014f6 100644 --- a/web/console/src/modules/common/components/tipdialog/TipDialog.tsx +++ b/web/console/src/modules/common/components/tipdialog/TipDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, Modal } from '@tea/component'; diff --git a/web/console/src/modules/common/components/tipdialog/index.ts b/web/console/src/modules/common/components/tipdialog/index.ts index db97c2bb2..eedb02f0c 100644 --- a/web/console/src/modules/common/components/tipdialog/index.ts +++ b/web/console/src/modules/common/components/tipdialog/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { TipDialog } from './TipDialog'; diff --git a/web/console/src/modules/common/components/tipinfo/TipInfo.tsx b/web/console/src/modules/common/components/tipinfo/TipInfo.tsx index bb79b892c..96353f205 100644 --- a/web/console/src/modules/common/components/tipinfo/TipInfo.tsx +++ b/web/console/src/modules/common/components/tipinfo/TipInfo.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/components/tipinfo/index.ts b/web/console/src/modules/common/components/tipinfo/index.ts index f0015e5e5..678b5a6b4 100644 --- a/web/console/src/modules/common/components/tipinfo/index.ts +++ b/web/console/src/modules/common/components/tipinfo/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { TipInfo, TipInfoProps } from './TipInfo'; diff --git a/web/console/src/modules/common/components/tke-version/index.tsx b/web/console/src/modules/common/components/tke-version/index.tsx index b9682d65c..78af694ac 100644 --- a/web/console/src/modules/common/components/tke-version/index.tsx +++ b/web/console/src/modules/common/components/tke-version/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import React, { useEffect, useState } from 'react'; import { getTkeStackVersion } from '@/src/webApi/tkestack'; import { Text } from 'tea-component'; diff --git a/web/console/src/modules/common/components/transferTable/TransferTable.tsx b/web/console/src/modules/common/components/transferTable/TransferTable.tsx index 3b476bd2d..9f04be0df 100644 --- a/web/console/src/modules/common/components/transferTable/TransferTable.tsx +++ b/web/console/src/modules/common/components/transferTable/TransferTable.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { SearchBox } from '@tea/component/searchbox'; diff --git a/web/console/src/modules/common/components/transferTable/index.ts b/web/console/src/modules/common/components/transferTable/index.ts index 926a75f69..053a21bb5 100644 --- a/web/console/src/modules/common/components/transferTable/index.ts +++ b/web/console/src/modules/common/components/transferTable/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { TransferTable, TransferTableProps } from './TransferTable'; diff --git a/web/console/src/modules/common/components/workflowdialog/WorkflowDialog.tsx b/web/console/src/modules/common/components/workflowdialog/WorkflowDialog.tsx index 7fdd19f3a..264c59b12 100644 --- a/web/console/src/modules/common/components/workflowdialog/WorkflowDialog.tsx +++ b/web/console/src/modules/common/components/workflowdialog/WorkflowDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, Modal } from '@tea/component'; diff --git a/web/console/src/modules/common/components/workflowdialog/index.tsx b/web/console/src/modules/common/components/workflowdialog/index.tsx index 07e3e5f73..b8998d0bf 100644 --- a/web/console/src/modules/common/components/workflowdialog/index.tsx +++ b/web/console/src/modules/common/components/workflowdialog/index.tsx @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { WorkflowDialog, WorkflowDialogProps } from './WorkflowDialog'; diff --git a/web/console/src/modules/common/components/yamleditor/YamlDialog.tsx b/web/console/src/modules/common/components/yamleditor/YamlDialog.tsx index 7d05eb2fa..94ff37156 100644 --- a/web/console/src/modules/common/components/yamleditor/YamlDialog.tsx +++ b/web/console/src/modules/common/components/yamleditor/YamlDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as JsYAML from 'js-yaml'; import React, { useState } from 'react'; diff --git a/web/console/src/modules/common/components/yamleditor/YamlEditorPanel.tsx b/web/console/src/modules/common/components/yamleditor/YamlEditorPanel.tsx index 3bec81d8f..af8348348 100644 --- a/web/console/src/modules/common/components/yamleditor/YamlEditorPanel.tsx +++ b/web/console/src/modules/common/components/yamleditor/YamlEditorPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Controlled as CodeMirror } from 'react-codemirror2'; diff --git a/web/console/src/modules/common/components/yamleditor/YamlSearchHelperPanel.tsx b/web/console/src/modules/common/components/yamleditor/YamlSearchHelperPanel.tsx index 27a11d68b..b44da3187 100644 --- a/web/console/src/modules/common/components/yamleditor/YamlSearchHelperPanel.tsx +++ b/web/console/src/modules/common/components/yamleditor/YamlSearchHelperPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as JsYAML from 'js-yaml'; import * as React from 'react'; diff --git a/web/console/src/modules/common/components/yamleditor/index.ts b/web/console/src/modules/common/components/yamleditor/index.ts index 9787f4c7a..ab1feb0c4 100644 --- a/web/console/src/modules/common/components/yamleditor/index.ts +++ b/web/console/src/modules/common/components/yamleditor/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { YamlEditorPanel } from './YamlEditorPanel'; export { YamlDialog } from './YamlDialog'; export { YamlSearchHelperPanel } from './YamlSearchHelperPanel'; diff --git a/web/console/src/modules/common/index.ts b/web/console/src/modules/common/index.ts index fd2082c76..9c5966b2b 100644 --- a/web/console/src/modules/common/index.ts +++ b/web/console/src/modules/common/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './components'; export * from './layouts'; export * from './models'; diff --git a/web/console/src/modules/common/layouts/AntdLayout.tsx b/web/console/src/modules/common/layouts/AntdLayout.tsx index e1ba8a341..fa28992b1 100644 --- a/web/console/src/modules/common/layouts/AntdLayout.tsx +++ b/web/console/src/modules/common/layouts/AntdLayout.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import React from 'react'; import { Card, Layout } from 'tea-component'; diff --git a/web/console/src/modules/common/layouts/DetailLayout.tsx b/web/console/src/modules/common/layouts/DetailLayout.tsx index 2560d3e0a..2554c5fe8 100644 --- a/web/console/src/modules/common/layouts/DetailLayout.tsx +++ b/web/console/src/modules/common/layouts/DetailLayout.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/layouts/DialogBodyLayout.tsx b/web/console/src/modules/common/layouts/DialogBodyLayout.tsx index 735d29b3f..e4124cfa9 100644 --- a/web/console/src/modules/common/layouts/DialogBodyLayout.tsx +++ b/web/console/src/modules/common/layouts/DialogBodyLayout.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/layouts/FixedFormLayout.tsx b/web/console/src/modules/common/layouts/FixedFormLayout.tsx index 87a52fb4b..23dbf0ac4 100644 --- a/web/console/src/modules/common/layouts/FixedFormLayout.tsx +++ b/web/console/src/modules/common/layouts/FixedFormLayout.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/layouts/FormLayout.tsx b/web/console/src/modules/common/layouts/FormLayout.tsx index 1348df522..9b0187e71 100644 --- a/web/console/src/modules/common/layouts/FormLayout.tsx +++ b/web/console/src/modules/common/layouts/FormLayout.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/layouts/MainBodyLayout.tsx b/web/console/src/modules/common/layouts/MainBodyLayout.tsx index 4409e196d..8c96f20b8 100644 --- a/web/console/src/modules/common/layouts/MainBodyLayout.tsx +++ b/web/console/src/modules/common/layouts/MainBodyLayout.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/layouts/MainTitleLayout.tsx b/web/console/src/modules/common/layouts/MainTitleLayout.tsx index a07d9b69c..ada9c9be3 100644 --- a/web/console/src/modules/common/layouts/MainTitleLayout.tsx +++ b/web/console/src/modules/common/layouts/MainTitleLayout.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/layouts/SubPageLayout.tsx b/web/console/src/modules/common/layouts/SubPageLayout.tsx index e69de29bb..16e981287 100644 --- a/web/console/src/modules/common/layouts/SubPageLayout.tsx +++ b/web/console/src/modules/common/layouts/SubPageLayout.tsx @@ -0,0 +1,17 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ diff --git a/web/console/src/modules/common/layouts/TableLayout.tsx b/web/console/src/modules/common/layouts/TableLayout.tsx index f45aa0362..2f33ae1e7 100644 --- a/web/console/src/modules/common/layouts/TableLayout.tsx +++ b/web/console/src/modules/common/layouts/TableLayout.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/layouts/index.ts b/web/console/src/modules/common/layouts/index.ts index dad8c4ce7..a46930562 100644 --- a/web/console/src/modules/common/layouts/index.ts +++ b/web/console/src/modules/common/layouts/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { MainTitleLayout } from './MainTitleLayout'; export { MainBodyLayout } from './MainBodyLayout'; export { TableLayout } from './TableLayout'; diff --git a/web/console/src/modules/common/models/BaseType.ts b/web/console/src/modules/common/models/BaseType.ts index 0d2a9e2e0..38f6bf463 100644 --- a/web/console/src/modules/common/models/BaseType.ts +++ b/web/console/src/modules/common/models/BaseType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface BaseType { /**类型的值 */ value: string; diff --git a/web/console/src/modules/common/models/Cluster.ts b/web/console/src/modules/common/models/Cluster.ts index b53f0f0d7..ae1c8863f 100644 --- a/web/console/src/modules/common/models/Cluster.ts +++ b/web/console/src/modules/common/models/Cluster.ts @@ -1,3 +1,21 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +import { ContainerRuntimeEnum } from '@src/modules/cluster/constants/Config'; import { Identifiable } from '@tencent/ff-redux'; import { Resource } from './Resource'; @@ -39,6 +57,7 @@ interface ClusterSpec { features?: { ipvs: boolean; public: boolean; + containerRuntime?: ContainerRuntimeEnum; }; /** 集群类型 */ diff --git a/web/console/src/modules/common/models/Config.ts b/web/console/src/modules/common/models/Config.ts index c11496318..f31363a0d 100644 --- a/web/console/src/modules/common/models/Config.ts +++ b/web/console/src/modules/common/models/Config.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; interface Base extends Identifiable { diff --git a/web/console/src/modules/common/models/Container.ts b/web/console/src/modules/common/models/Container.ts index 6b20bb742..c32823555 100644 --- a/web/console/src/modules/common/models/Container.ts +++ b/web/console/src/modules/common/models/Container.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { EnvItem, HealthCheck, MountItem, Validation } from './'; diff --git a/web/console/src/modules/common/models/CreateResource.ts b/web/console/src/modules/common/models/CreateResource.ts index c227bad7a..5d9d1047c 100644 --- a/web/console/src/modules/common/models/CreateResource.ts +++ b/web/console/src/modules/common/models/CreateResource.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { ResourceInfo } from './'; diff --git a/web/console/src/modules/common/models/Env.ts b/web/console/src/modules/common/models/Env.ts index 4bd909208..f88ed1ed7 100644 --- a/web/console/src/modules/common/models/Env.ts +++ b/web/console/src/modules/common/models/Env.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from './'; diff --git a/web/console/src/modules/common/models/HealthCheck.ts b/web/console/src/modules/common/models/HealthCheck.ts index 6a4190fca..d2f27881b 100644 --- a/web/console/src/modules/common/models/HealthCheck.ts +++ b/web/console/src/modules/common/models/HealthCheck.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Validation, EnvItem, BaseType } from './'; export interface HealthCheck { diff --git a/web/console/src/modules/common/models/K8sVersion.ts b/web/console/src/modules/common/models/K8sVersion.ts index d295c3d4e..41aa9606a 100644 --- a/web/console/src/modules/common/models/K8sVersion.ts +++ b/web/console/src/modules/common/models/K8sVersion.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface K8sVersion extends Identifiable { diff --git a/web/console/src/modules/common/models/KeyValue.ts b/web/console/src/modules/common/models/KeyValue.ts index 38db7a1ae..c3524feff 100644 --- a/web/console/src/modules/common/models/KeyValue.ts +++ b/web/console/src/modules/common/models/KeyValue.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface KeyValue { key?: string; value?: string; diff --git a/web/console/src/modules/common/models/Kubectl.ts b/web/console/src/modules/common/models/Kubectl.ts index 1d08d90ba..3a26c8acc 100644 --- a/web/console/src/modules/common/models/Kubectl.ts +++ b/web/console/src/modules/common/models/Kubectl.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Kubectl extends Identifiable { diff --git a/web/console/src/modules/common/models/Label.ts b/web/console/src/modules/common/models/Label.ts index 7344aa8cc..767da10bc 100644 --- a/web/console/src/modules/common/models/Label.ts +++ b/web/console/src/modules/common/models/Label.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable, uuid } from '@tencent/ff-redux'; import { initValidator, Validation } from './'; diff --git a/web/console/src/modules/common/models/Link.ts b/web/console/src/modules/common/models/Link.ts index 97bd15384..7ec849202 100644 --- a/web/console/src/modules/common/models/Link.ts +++ b/web/console/src/modules/common/models/Link.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface Link { /**链接名称 */ text?: string; diff --git a/web/console/src/modules/common/models/LogAgent.ts b/web/console/src/modules/common/models/LogAgent.ts index 134659166..352dfe1d5 100644 --- a/web/console/src/modules/common/models/LogAgent.ts +++ b/web/console/src/modules/common/models/LogAgent.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface LAMetadata { name?: string; diff --git a/web/console/src/modules/common/models/Mount.ts b/web/console/src/modules/common/models/Mount.ts index 428f6b7f4..0ef1f61b6 100644 --- a/web/console/src/modules/common/models/Mount.ts +++ b/web/console/src/modules/common/models/Mount.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from './'; diff --git a/web/console/src/modules/common/models/Namespace.ts b/web/console/src/modules/common/models/Namespace.ts index 949e8f473..8526423ad 100644 --- a/web/console/src/modules/common/models/Namespace.ts +++ b/web/console/src/modules/common/models/Namespace.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Cluster } from './Cluster'; diff --git a/web/console/src/modules/common/models/PortMap.ts b/web/console/src/modules/common/models/PortMap.ts index dca8d21bb..77945421f 100644 --- a/web/console/src/modules/common/models/PortMap.ts +++ b/web/console/src/modules/common/models/PortMap.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { BaseType, Validation } from './'; diff --git a/web/console/src/modules/common/models/Repository.ts b/web/console/src/modules/common/models/Repository.ts index 03fcb1257..d5ae99c73 100644 --- a/web/console/src/modules/common/models/Repository.ts +++ b/web/console/src/modules/common/models/Repository.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Repository extends Identifiable { diff --git a/web/console/src/modules/common/models/Resource.ts b/web/console/src/modules/common/models/Resource.ts index 4614a27d7..1054718e1 100644 --- a/web/console/src/modules/common/models/Resource.ts +++ b/web/console/src/modules/common/models/Resource.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Resource extends Identifiable { diff --git a/web/console/src/modules/common/models/ResourceInfo.ts b/web/console/src/modules/common/models/ResourceInfo.ts index 2899ed2cc..ecd80e6a6 100644 --- a/web/console/src/modules/common/models/ResourceInfo.ts +++ b/web/console/src/modules/common/models/ResourceInfo.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** resourceConfig当中所需要定义的字段 */ export interface ResourceInfo { k8sVersion?: string; diff --git a/web/console/src/modules/common/models/TableFilterOption.ts b/web/console/src/modules/common/models/TableFilterOption.ts index c5dcfbe3e..f508300a6 100644 --- a/web/console/src/modules/common/models/TableFilterOption.ts +++ b/web/console/src/modules/common/models/TableFilterOption.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface TableFilterOption extends Identifiable { diff --git a/web/console/src/modules/common/models/Tag.ts b/web/console/src/modules/common/models/Tag.ts index b9efdf83e..8b6f8dca5 100644 --- a/web/console/src/modules/common/models/Tag.ts +++ b/web/console/src/modules/common/models/Tag.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Tag extends Identifiable { diff --git a/web/console/src/modules/common/models/Validation.ts b/web/console/src/modules/common/models/Validation.ts index 59c085b67..4508d52d0 100644 --- a/web/console/src/modules/common/models/Validation.ts +++ b/web/console/src/modules/common/models/Validation.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface Validation { /**验证状态 0: 初始状态;1:校验通过;2:校验不通过;*/ status?: number; diff --git a/web/console/src/modules/common/models/index.ts b/web/console/src/modules/common/models/index.ts index a2e67c4bc..0ac2e821d 100644 --- a/web/console/src/modules/common/models/index.ts +++ b/web/console/src/modules/common/models/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { Link } from './Link'; export { Region, RegionFilter } from './region'; export { initValidator, Validation } from './Validation'; diff --git a/web/console/src/modules/common/models/region.ts b/web/console/src/modules/common/models/region.ts index 460ba0f3d..390df0604 100644 --- a/web/console/src/modules/common/models/region.ts +++ b/web/console/src/modules/common/models/region.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Region extends Identifiable { diff --git a/web/console/src/modules/common/models/requestParams.ts b/web/console/src/modules/common/models/requestParams.ts index fd1f6308a..a5042b4b6 100644 --- a/web/console/src/modules/common/models/requestParams.ts +++ b/web/console/src/modules/common/models/requestParams.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 发起参数请求的数据格式 */ export interface RequestParams { /** 获取数据的方法,用于独立部署版 */ diff --git a/web/console/src/modules/common/utils/bytesTo.ts b/web/console/src/modules/common/utils/bytesTo.ts index 7e85a49d9..05b033a6f 100644 --- a/web/console/src/modules/common/utils/bytesTo.ts +++ b/web/console/src/modules/common/utils/bytesTo.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * Bytes -> GB/MB/KB/Bytes */ diff --git a/web/console/src/modules/common/utils/cloneDeep.ts b/web/console/src/modules/common/utils/cloneDeep.ts index 205dd6958..16165c3ac 100644 --- a/web/console/src/modules/common/utils/cloneDeep.ts +++ b/web/console/src/modules/common/utils/cloneDeep.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /* eslint-disable */ export const cloneDeep = function(item) { if (!item) { diff --git a/web/console/src/modules/common/utils/getWorkflowError.ts b/web/console/src/modules/common/utils/getWorkflowError.ts index fd9bcc403..22a801bf7 100644 --- a/web/console/src/modules/common/utils/getWorkflowError.ts +++ b/web/console/src/modules/common/utils/getWorkflowError.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { WorkflowState } from '@tencent/ff-redux'; export const getWorkflowError = (workflow: WorkflowState) => { diff --git a/web/console/src/modules/common/utils/includes.ts b/web/console/src/modules/common/utils/includes.ts index 7ae0b1ce8..6e16ee563 100644 --- a/web/console/src/modules/common/utils/includes.ts +++ b/web/console/src/modules/common/utils/includes.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { isEmpty } from './isEmpty'; /** 判断数组是否存在某个值 */ diff --git a/web/console/src/modules/common/utils/index.ts b/web/console/src/modules/common/utils/index.ts index a3fc04bcb..8d9f29151 100644 --- a/web/console/src/modules/common/utils/index.ts +++ b/web/console/src/modules/common/utils/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { orderBy } from './orderBy'; export { uniq } from './uniq'; export { pluck } from './pluck'; diff --git a/web/console/src/modules/common/utils/isEmpty.ts b/web/console/src/modules/common/utils/isEmpty.ts index ede0cce71..7622500a6 100644 --- a/web/console/src/modules/common/utils/isEmpty.ts +++ b/web/console/src/modules/common/utils/isEmpty.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const isEmpty = (value: any): boolean => { if (Array.isArray(value)) { //value为数组 diff --git a/web/console/src/modules/common/utils/orderBy.ts b/web/console/src/modules/common/utils/orderBy.ts index ffbfc7ecb..6a9020a36 100644 --- a/web/console/src/modules/common/utils/orderBy.ts +++ b/web/console/src/modules/common/utils/orderBy.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const orderBy = (arr: Array, by: string, order?: string) => { let aa = arr.sort((a, b) => { //默认升序asc diff --git a/web/console/src/modules/common/utils/pluck.ts b/web/console/src/modules/common/utils/pluck.ts index 48d7591cb..cc8fc0beb 100644 --- a/web/console/src/modules/common/utils/pluck.ts +++ b/web/console/src/modules/common/utils/pluck.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const pluck = (arr: Array, ckey: string) => { let res = []; if (Array.isArray(arr) && !!ckey) { diff --git a/web/console/src/modules/common/utils/remove.ts b/web/console/src/modules/common/utils/remove.ts index 146ae653b..c0d2907e4 100644 --- a/web/console/src/modules/common/utils/remove.ts +++ b/web/console/src/modules/common/utils/remove.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * @returns 删除数据后的新数组,改变原数组 */ diff --git a/web/console/src/modules/common/utils/tHooks.ts b/web/console/src/modules/common/utils/tHooks.ts index 4b5b94826..e8a943636 100644 --- a/web/console/src/modules/common/utils/tHooks.ts +++ b/web/console/src/modules/common/utils/tHooks.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { useState, useEffect, useRef, useCallback } from 'react'; export const useModal = (isShowingParam = false) => { diff --git a/web/console/src/modules/common/utils/tea_adapter.ts b/web/console/src/modules/common/utils/tea_adapter.ts index d5965b049..11ee2b79d 100644 --- a/web/console/src/modules/common/utils/tea_adapter.ts +++ b/web/console/src/modules/common/utils/tea_adapter.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { TableColumn } from '@tea/component'; const execColumnWidth = (columns: TableColumn[], hasChecker: boolean = true) => { diff --git a/web/console/src/modules/common/utils/uniq.ts b/web/console/src/modules/common/utils/uniq.ts index f61cc1fbc..ccb07c15d 100644 --- a/web/console/src/modules/common/utils/uniq.ts +++ b/web/console/src/modules/common/utils/uniq.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 数组去重函数 * @param Array arr diff --git a/web/console/src/modules/common/validate/Action.ts b/web/console/src/modules/common/validate/Action.ts index 6b4d9d3a4..19a88b9ca 100644 --- a/web/console/src/modules/common/validate/Action.ts +++ b/web/console/src/modules/common/validate/Action.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ValidateSchema, RuleTypeEnum, Rule, ValidationIns, FieldConfig, ValidatorStatusEnum } from './Model'; import { getValidationActionType } from './ActionType'; import { Validation, initValidator } from '../models'; diff --git a/web/console/src/modules/common/validate/ActionType.ts b/web/console/src/modules/common/validate/ActionType.ts index 2f364d772..734a34f81 100644 --- a/web/console/src/modules/common/validate/ActionType.ts +++ b/web/console/src/modules/common/validate/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 获取ActionType * @param formKey: string 表单的名称 diff --git a/web/console/src/modules/common/validate/Form.ts b/web/console/src/modules/common/validate/Form.ts index 1898aa1b7..512f03618 100644 --- a/web/console/src/modules/common/validate/Form.ts +++ b/web/console/src/modules/common/validate/Form.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export function getStatus(meta, validating?: any) { if (meta.active && validating) { return 'validating'; diff --git a/web/console/src/modules/common/validate/Model.ts b/web/console/src/modules/common/validate/Model.ts index ed28e7d81..29f8c0a3a 100644 --- a/web/console/src/modules/common/validate/Model.ts +++ b/web/console/src/modules/common/validate/Model.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Validation } from '../models'; export interface ValidateSchema { diff --git a/web/console/src/modules/common/validate/Reducer.ts b/web/console/src/modules/common/validate/Reducer.ts index 9ab71071e..2a98ef87f 100644 --- a/web/console/src/modules/common/validate/Reducer.ts +++ b/web/console/src/modules/common/validate/Reducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers, Reducer } from 'redux'; import { reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/common/validate/index.ts b/web/console/src/modules/common/validate/index.ts index 869790776..0578cc2c6 100644 --- a/web/console/src/modules/common/validate/index.ts +++ b/web/console/src/modules/common/validate/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { generateValidationIns, validateValue } from './Action'; export { ValidateSchema, diff --git a/web/console/src/modules/common/webapi/K8sResourceAPI.ts b/web/console/src/modules/common/webapi/K8sResourceAPI.ts index 708195bff..07a48d23b 100644 --- a/web/console/src/modules/common/webapi/K8sResourceAPI.ts +++ b/web/console/src/modules/common/webapi/K8sResourceAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { QueryState, RecordSet, uuid } from '@tencent/ff-redux'; import { t } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/common/webapi/LogAgentAPI.ts b/web/console/src/modules/common/webapi/LogAgentAPI.ts index 464a86787..8752f56ad 100644 --- a/web/console/src/modules/common/webapi/LogAgentAPI.ts +++ b/web/console/src/modules/common/webapi/LogAgentAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { resourceConfig } from '@config'; import { RecordSet, uuid } from '@tencent/ff-redux'; import { diff --git a/web/console/src/modules/common/webapi/PromethusAPI.ts b/web/console/src/modules/common/webapi/PromethusAPI.ts index 3e63fc188..b3fe39995 100644 --- a/web/console/src/modules/common/webapi/PromethusAPI.ts +++ b/web/console/src/modules/common/webapi/PromethusAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { QueryState, RecordSet, uuid } from '@tencent/ff-redux'; import { t } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/common/webapi/RegionAPI.ts b/web/console/src/modules/common/webapi/RegionAPI.ts index 5d5552e6e..dd4e6f3fc 100644 --- a/web/console/src/modules/common/webapi/RegionAPI.ts +++ b/web/console/src/modules/common/webapi/RegionAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { QueryState, RecordSet, uuid } from '@tencent/ff-redux'; import { Region, RegionFilter } from '../models'; diff --git a/web/console/src/modules/common/webapi/index.ts b/web/console/src/modules/common/webapi/index.ts index 3aed00c6c..efa9cf02c 100644 --- a/web/console/src/modules/common/webapi/index.ts +++ b/web/console/src/modules/common/webapi/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as RegionAPI from './RegionAPI'; import * as K8sResourceAPI from './K8sResourceAPI'; import * as LogAgentAPI from './LogAgentAPI'; diff --git a/web/console/src/modules/helm/WebAPI.ts b/web/console/src/modules/helm/WebAPI.ts index f2ee31faa..25005f212 100644 --- a/web/console/src/modules/helm/WebAPI.ts +++ b/web/console/src/modules/helm/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as JsYAML from 'js-yaml'; import { Resource, ResourceFilter } from '@src/modules/common'; diff --git a/web/console/src/modules/helm/actions/clusterActions.ts b/web/console/src/modules/helm/actions/clusterActions.ts index 76c83ea85..268f3a406 100644 --- a/web/console/src/modules/helm/actions/clusterActions.ts +++ b/web/console/src/modules/helm/actions/clusterActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend } from '@tencent/ff-redux'; import { resourceConfig } from '../../../../config'; diff --git a/web/console/src/modules/helm/actions/createActions.ts b/web/console/src/modules/helm/actions/createActions.ts index 64cf86499..f455684d1 100644 --- a/web/console/src/modules/helm/actions/createActions.ts +++ b/web/console/src/modules/helm/actions/createActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, ReduxAction } from '@tencent/ff-redux'; import { generateFetcherActionCreator } from '@tencent/qcloud-redux-fetcher'; import { t } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/helm/actions/detailActions.ts b/web/console/src/modules/helm/actions/detailActions.ts index 30f18d79d..62af11327 100644 --- a/web/console/src/modules/helm/actions/detailActions.ts +++ b/web/console/src/modules/helm/actions/detailActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as JsYAML from 'js-yaml'; import { ReduxAction } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/helm/actions/helmActions.ts b/web/console/src/modules/helm/actions/helmActions.ts index bcf63ee90..edd1aab4a 100644 --- a/web/console/src/modules/helm/actions/helmActions.ts +++ b/web/console/src/modules/helm/actions/helmActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend } from '@tencent/ff-redux'; import { generateFetcherActionCreator } from '@tencent/qcloud-redux-fetcher'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/helm/actions/index.ts b/web/console/src/modules/helm/actions/index.ts index 72db142fa..c74002e12 100644 --- a/web/console/src/modules/helm/actions/index.ts +++ b/web/console/src/modules/helm/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { projectNamespaceActions } from './projectNamespaceActions.project'; import { namespaceActions } from './namespaceActions'; import { clusterActions } from './clusterActions'; diff --git a/web/console/src/modules/helm/actions/namespaceActions.project.ts b/web/console/src/modules/helm/actions/namespaceActions.project.ts index 7044c5808..ebfa89455 100644 --- a/web/console/src/modules/helm/actions/namespaceActions.project.ts +++ b/web/console/src/modules/helm/actions/namespaceActions.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator, uuid } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/helm/actions/namespaceActions.ts b/web/console/src/modules/helm/actions/namespaceActions.ts index 68451bdc3..4b335218f 100644 --- a/web/console/src/modules/helm/actions/namespaceActions.ts +++ b/web/console/src/modules/helm/actions/namespaceActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { helmActions } from './helmActions'; import { resourceConfig } from '@config'; import { extend, FetchOptions, generateFetcherActionCreator, uuid } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/helm/actions/projectNamespaceActions.project.ts b/web/console/src/modules/helm/actions/projectNamespaceActions.project.ts index 60a2564df..18cd80f11 100644 --- a/web/console/src/modules/helm/actions/projectNamespaceActions.project.ts +++ b/web/console/src/modules/helm/actions/projectNamespaceActions.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { setProjectName } from '@helper'; import { extend, FetchOptions, generateFetcherActionCreator, RecordSet } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/helm/actions/regionActions.ts b/web/console/src/modules/helm/actions/regionActions.ts index 13b84bece..130b7eb86 100644 --- a/web/console/src/modules/helm/actions/regionActions.ts +++ b/web/console/src/modules/helm/actions/regionActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions } from '@tencent/ff-redux'; import { assureRegion } from '../../../../helpers'; diff --git a/web/console/src/modules/helm/components/HelmApp.tsx b/web/console/src/modules/helm/components/HelmApp.tsx index 894aac85f..890871391 100644 --- a/web/console/src/modules/helm/components/HelmApp.tsx +++ b/web/console/src/modules/helm/components/HelmApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/helm/components/helmManage/create/BaseInfoPanel.tsx b/web/console/src/modules/helm/components/helmManage/create/BaseInfoPanel.tsx index 4e849074f..cfce85202 100644 --- a/web/console/src/modules/helm/components/helmManage/create/BaseInfoPanel.tsx +++ b/web/console/src/modules/helm/components/helmManage/create/BaseInfoPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t } from '@tencent/tea-app/lib/i18n'; import classNames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/helm/components/helmManage/create/HelmCreate.project.tsx b/web/console/src/modules/helm/components/helmManage/create/HelmCreate.project.tsx index a17ebbbe6..28aac8079 100644 --- a/web/console/src/modules/helm/components/helmManage/create/HelmCreate.project.tsx +++ b/web/console/src/modules/helm/components/helmManage/create/HelmCreate.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Button } from '@tea/component/button'; import { t } from '@tencent/tea-app/lib/i18n'; import * as React from 'react'; diff --git a/web/console/src/modules/helm/components/helmManage/create/HelmCreate.tsx b/web/console/src/modules/helm/components/helmManage/create/HelmCreate.tsx index d4ab8a07b..930a5bcec 100644 --- a/web/console/src/modules/helm/components/helmManage/create/HelmCreate.tsx +++ b/web/console/src/modules/helm/components/helmManage/create/HelmCreate.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Button } from '@tea/component/button'; import { t } from '@tencent/tea-app/lib/i18n'; import * as React from 'react'; diff --git a/web/console/src/modules/helm/components/helmManage/create/KeyValuesPanel.tsx b/web/console/src/modules/helm/components/helmManage/create/KeyValuesPanel.tsx index f142f3e74..f3d5d7ca1 100644 --- a/web/console/src/modules/helm/components/helmManage/create/KeyValuesPanel.tsx +++ b/web/console/src/modules/helm/components/helmManage/create/KeyValuesPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import classNames from 'classnames'; import { FormItem, LinkButton } from '../../../../common/components'; diff --git a/web/console/src/modules/helm/components/helmManage/create/OtherChartPanel.tsx b/web/console/src/modules/helm/components/helmManage/create/OtherChartPanel.tsx index 19a76794b..b5583d151 100644 --- a/web/console/src/modules/helm/components/helmManage/create/OtherChartPanel.tsx +++ b/web/console/src/modules/helm/components/helmManage/create/OtherChartPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from '../../HelmApp'; import classNames from 'classnames'; diff --git a/web/console/src/modules/helm/components/helmManage/create/TencentHubChartPanel.tsx b/web/console/src/modules/helm/components/helmManage/create/TencentHubChartPanel.tsx index 6c440bccd..01a3ac312 100644 --- a/web/console/src/modules/helm/components/helmManage/create/TencentHubChartPanel.tsx +++ b/web/console/src/modules/helm/components/helmManage/create/TencentHubChartPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from '../../HelmApp'; import classNames from 'classnames'; diff --git a/web/console/src/modules/helm/components/helmManage/detail/HelmDetail.tsx b/web/console/src/modules/helm/components/helmManage/detail/HelmDetail.tsx index 7fd701f81..9188c0bf3 100644 --- a/web/console/src/modules/helm/components/helmManage/detail/HelmDetail.tsx +++ b/web/console/src/modules/helm/components/helmManage/detail/HelmDetail.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { TabPanel, Tabs } from '@tea/component/tabs'; diff --git a/web/console/src/modules/helm/components/helmManage/detail/HelmDetailBasicInfoPanel.tsx b/web/console/src/modules/helm/components/helmManage/detail/HelmDetailBasicInfoPanel.tsx index de5bf1613..cc5d09fab 100644 --- a/web/console/src/modules/helm/components/helmManage/detail/HelmDetailBasicInfoPanel.tsx +++ b/web/console/src/modules/helm/components/helmManage/detail/HelmDetailBasicInfoPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from '../../HelmApp'; import { FormPanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/helm/components/helmManage/detail/HistoryTablePanel.tsx b/web/console/src/modules/helm/components/helmManage/detail/HistoryTablePanel.tsx index cbac6cc86..715b81519 100644 --- a/web/console/src/modules/helm/components/helmManage/detail/HistoryTablePanel.tsx +++ b/web/console/src/modules/helm/components/helmManage/detail/HistoryTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import classNames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/helm/components/helmManage/detail/ValueYamlPanel.tsx b/web/console/src/modules/helm/components/helmManage/detail/ValueYamlPanel.tsx index b25f29d8c..3b9aa088f 100644 --- a/web/console/src/modules/helm/components/helmManage/detail/ValueYamlPanel.tsx +++ b/web/console/src/modules/helm/components/helmManage/detail/ValueYamlPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from '../../HelmApp'; import { UnControlled as CodeMirror } from 'react-codemirror2'; diff --git a/web/console/src/modules/helm/components/helmManage/list/HelmActionPanel.tsx b/web/console/src/modules/helm/components/helmManage/list/HelmActionPanel.tsx index c841e0ebd..afe02a138 100644 --- a/web/console/src/modules/helm/components/helmManage/list/HelmActionPanel.tsx +++ b/web/console/src/modules/helm/components/helmManage/list/HelmActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/helm/components/helmManage/list/HelmHeadPanel.project.tsx b/web/console/src/modules/helm/components/helmManage/list/HelmHeadPanel.project.tsx index 205e57bd8..ed9b83b26 100644 --- a/web/console/src/modules/helm/components/helmManage/list/HelmHeadPanel.project.tsx +++ b/web/console/src/modules/helm/components/helmManage/list/HelmHeadPanel.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/helm/components/helmManage/list/HelmHeadPanel.tsx b/web/console/src/modules/helm/components/helmManage/list/HelmHeadPanel.tsx index de0e4d35c..88a93b9a6 100644 --- a/web/console/src/modules/helm/components/helmManage/list/HelmHeadPanel.tsx +++ b/web/console/src/modules/helm/components/helmManage/list/HelmHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/helm/components/helmManage/list/HelmTablePanel.tsx b/web/console/src/modules/helm/components/helmManage/list/HelmTablePanel.tsx index eae237dd7..3e4cc9c26 100644 --- a/web/console/src/modules/helm/components/helmManage/list/HelmTablePanel.tsx +++ b/web/console/src/modules/helm/components/helmManage/list/HelmTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import classNames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/helm/components/helmManage/list/InlineOpenHelmDialog.tsx b/web/console/src/modules/helm/components/helmManage/list/InlineOpenHelmDialog.tsx index 9f98fe630..bd270418b 100644 --- a/web/console/src/modules/helm/components/helmManage/list/InlineOpenHelmDialog.tsx +++ b/web/console/src/modules/helm/components/helmManage/list/InlineOpenHelmDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from '../../HelmApp'; import { Button, Modal } from '@tea/component'; diff --git a/web/console/src/modules/helm/components/helmManage/list/InstallingDialog.tsx b/web/console/src/modules/helm/components/helmManage/list/InstallingDialog.tsx index b0f274bcc..f0af997d8 100644 --- a/web/console/src/modules/helm/components/helmManage/list/InstallingDialog.tsx +++ b/web/console/src/modules/helm/components/helmManage/list/InstallingDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Table, TableColumn, Text } from '@tea/component'; import { LinkButton } from '../../../../common/components'; diff --git a/web/console/src/modules/helm/components/helmManage/list/UpdateHelmDialog.tsx b/web/console/src/modules/helm/components/helmManage/list/UpdateHelmDialog.tsx index add3fa5f8..1d341ac6a 100644 --- a/web/console/src/modules/helm/components/helmManage/list/UpdateHelmDialog.tsx +++ b/web/console/src/modules/helm/components/helmManage/list/UpdateHelmDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, Modal } from '@tea/component'; diff --git a/web/console/src/modules/helm/components/helmManage/list/UpdateHelmDialogOther.tsx b/web/console/src/modules/helm/components/helmManage/list/UpdateHelmDialogOther.tsx index 666b03b80..d6ad1c128 100644 --- a/web/console/src/modules/helm/components/helmManage/list/UpdateHelmDialogOther.tsx +++ b/web/console/src/modules/helm/components/helmManage/list/UpdateHelmDialogOther.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import classNames from 'classnames'; import * as React from 'react'; diff --git a/web/console/src/modules/helm/constants/ActionType.ts b/web/console/src/modules/helm/constants/ActionType.ts index b6223b130..62067edeb 100644 --- a/web/console/src/modules/helm/constants/ActionType.ts +++ b/web/console/src/modules/helm/constants/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 集群helm开通状态 */ export const ClusterHelmStatus = 'ClusterHelmStatus'; diff --git a/web/console/src/modules/helm/constants/Config.ts b/web/console/src/modules/helm/constants/Config.ts index 8224b82e3..7e0925804 100644 --- a/web/console/src/modules/helm/constants/Config.ts +++ b/web/console/src/modules/helm/constants/Config.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t, Trans } from '@tencent/tea-app/lib/i18n'; /** ========================= start FFRedux的相关配置 ======================== */ diff --git a/web/console/src/modules/helm/index.tsx b/web/console/src/modules/helm/index.tsx index 998986f02..166105417 100644 --- a/web/console/src/modules/helm/index.tsx +++ b/web/console/src/modules/helm/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { HelmAppContainer } from './components/HelmApp'; diff --git a/web/console/src/modules/helm/models/DetailState.ts b/web/console/src/modules/helm/models/DetailState.ts index 43aace51a..17e5f7d8a 100644 --- a/web/console/src/modules/helm/models/DetailState.ts +++ b/web/console/src/modules/helm/models/DetailState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, QueryState, RecordSet, WorkflowState } from '@tencent/ff-redux'; import { Helm, HelmHistory, HelmHistoryFilter } from './'; diff --git a/web/console/src/modules/helm/models/Helm.ts b/web/console/src/modules/helm/models/Helm.ts index 7fc44f52f..43c17d6a5 100644 --- a/web/console/src/modules/helm/models/Helm.ts +++ b/web/console/src/modules/helm/models/Helm.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface ClusterHelmStatus { diff --git a/web/console/src/modules/helm/models/HelmCreation.ts b/web/console/src/modules/helm/models/HelmCreation.ts index 893b7433d..68399ac4c 100644 --- a/web/console/src/modules/helm/models/HelmCreation.ts +++ b/web/console/src/modules/helm/models/HelmCreation.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, FFListModel, RecordSet } from '@tencent/ff-redux'; import { Region, RegionFilter, Resource, ResourceFilter } from '../../common/models'; diff --git a/web/console/src/modules/helm/models/ListState.ts b/web/console/src/modules/helm/models/ListState.ts index 31cc6caad..3a0dfbe01 100644 --- a/web/console/src/modules/helm/models/ListState.ts +++ b/web/console/src/modules/helm/models/ListState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, FFListModel, QueryState, RecordSet } from '@tencent/ff-redux'; import { Region, RegionFilter, Resource, ResourceFilter } from '../../common/models'; diff --git a/web/console/src/modules/helm/models/LogRow.ts b/web/console/src/modules/helm/models/LogRow.ts index f0c6dab52..a1d6a2401 100644 --- a/web/console/src/modules/helm/models/LogRow.ts +++ b/web/console/src/modules/helm/models/LogRow.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface LogRow { name?: string; time?: string; diff --git a/web/console/src/modules/helm/models/Namespace.ts b/web/console/src/modules/helm/models/Namespace.ts index 1c72a9764..7637985a0 100644 --- a/web/console/src/modules/helm/models/Namespace.ts +++ b/web/console/src/modules/helm/models/Namespace.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/helm/models/RootState.ts b/web/console/src/modules/helm/models/RootState.ts index 74e3a947b..1d88c698b 100644 --- a/web/console/src/modules/helm/models/RootState.ts +++ b/web/console/src/modules/helm/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, QueryState, RecordSet, WorkflowState } from '@tencent/ff-redux'; import { RouteState } from '../../../../helpers'; diff --git a/web/console/src/modules/helm/models/Tencenthub.ts b/web/console/src/modules/helm/models/Tencenthub.ts index 038c5fcd4..a2835b205 100644 --- a/web/console/src/modules/helm/models/Tencenthub.ts +++ b/web/console/src/modules/helm/models/Tencenthub.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface TencenthubNamespace { name?: string; } diff --git a/web/console/src/modules/helm/models/Zone.ts b/web/console/src/modules/helm/models/Zone.ts index caf424cb6..9537324db 100644 --- a/web/console/src/modules/helm/models/Zone.ts +++ b/web/console/src/modules/helm/models/Zone.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Zone extends Identifiable { diff --git a/web/console/src/modules/helm/models/index.ts b/web/console/src/modules/helm/models/index.ts index 8d339ae89..c0b280dc9 100644 --- a/web/console/src/modules/helm/models/index.ts +++ b/web/console/src/modules/helm/models/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { RootState } from './RootState'; export { Zone, ZoneInfo, ZoneFilter, ZoneQuotaFilter } from './Zone'; export { DetailState } from './DetailState'; diff --git a/web/console/src/modules/helm/reducers/DetailReducer.ts b/web/console/src/modules/helm/reducers/DetailReducer.ts index 1d70d2ff6..dead4de27 100644 --- a/web/console/src/modules/helm/reducers/DetailReducer.ts +++ b/web/console/src/modules/helm/reducers/DetailReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/helm/reducers/HelmCreationReducer.ts b/web/console/src/modules/helm/reducers/HelmCreationReducer.ts index 1eb5405e5..81ef474ee 100644 --- a/web/console/src/modules/helm/reducers/HelmCreationReducer.ts +++ b/web/console/src/modules/helm/reducers/HelmCreationReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { createFFListReducer, RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/helm/reducers/ListReducer.ts b/web/console/src/modules/helm/reducers/ListReducer.ts index 7620e4b54..192807dec 100644 --- a/web/console/src/modules/helm/reducers/ListReducer.ts +++ b/web/console/src/modules/helm/reducers/ListReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { createFFListReducer, RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/helm/reducers/RootReducer.project.ts b/web/console/src/modules/helm/reducers/RootReducer.project.ts index 8d3d98b25..4a1b78dd8 100644 --- a/web/console/src/modules/helm/reducers/RootReducer.project.ts +++ b/web/console/src/modules/helm/reducers/RootReducer.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/helm/reducers/RootReducer.ts b/web/console/src/modules/helm/reducers/RootReducer.ts index 7e8c28669..4437a7b55 100644 --- a/web/console/src/modules/helm/reducers/RootReducer.ts +++ b/web/console/src/modules/helm/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/helm/reducers/initState.ts b/web/console/src/modules/helm/reducers/initState.ts index 59249b688..abd8fb677 100644 --- a/web/console/src/modules/helm/reducers/initState.ts +++ b/web/console/src/modules/helm/reducers/initState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t, Trans } from '@tencent/tea-app/lib/i18n'; import { initValidator } from '../../common/models'; export const initRegionInfo = { diff --git a/web/console/src/modules/helm/router.project.ts b/web/console/src/modules/helm/router.project.ts index 9456b1c09..b252ff032 100644 --- a/web/console/src/modules/helm/router.project.ts +++ b/web/console/src/modules/helm/router.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/helm/router.ts b/web/console/src/modules/helm/router.ts index f1dc4d2f3..9300ba132 100644 --- a/web/console/src/modules/helm/router.ts +++ b/web/console/src/modules/helm/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/helm/stores/RootStore.ts b/web/console/src/modules/helm/stores/RootStore.ts index 528dcd48c..83ff139b0 100644 --- a/web/console/src/modules/helm/stores/RootStore.ts +++ b/web/console/src/modules/helm/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/modules/logStash/WebAPI.ts b/web/console/src/modules/logStash/WebAPI.ts index 4e96d020f..987794d23 100644 --- a/web/console/src/modules/logStash/WebAPI.ts +++ b/web/console/src/modules/logStash/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { QueryState, RecordSet, uuid } from '@tencent/ff-redux'; import { tip } from '@tencent/tea-app/lib/bridge'; import { t } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/logStash/actions/clusterActions.ts b/web/console/src/modules/logStash/actions/clusterActions.ts index d9f30b599..fd7d6c49a 100644 --- a/web/console/src/modules/logStash/actions/clusterActions.ts +++ b/web/console/src/modules/logStash/actions/clusterActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, uuid } from '@tencent/ff-redux'; import { generateFetcherActionCreator } from '@tencent/qcloud-redux-fetcher'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/logStash/actions/editLogStashActions.ts b/web/console/src/modules/logStash/actions/editLogStashActions.ts index 8c03acdfd..9a5e24e37 100644 --- a/web/console/src/modules/logStash/actions/editLogStashActions.ts +++ b/web/console/src/modules/logStash/actions/editLogStashActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction, uuid } from '@tencent/ff-redux'; import { initValidator, Namespace } from '../../common/models'; diff --git a/web/console/src/modules/logStash/actions/index.ts b/web/console/src/modules/logStash/actions/index.ts index 5d176a0b1..50adb2e19 100644 --- a/web/console/src/modules/logStash/actions/index.ts +++ b/web/console/src/modules/logStash/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { regionActions } from './regionActions'; import { clusterActions } from './clusterActions'; import { logActions } from './logActions'; diff --git a/web/console/src/modules/logStash/actions/logActions.ts b/web/console/src/modules/logStash/actions/logActions.ts index 73f921ea2..7e29bd9b2 100644 --- a/web/console/src/modules/logStash/actions/logActions.ts +++ b/web/console/src/modules/logStash/actions/logActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateQueryActionCreator, QueryState, RecordSet, ReduxAction, uuid } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/logStash/actions/logDaemonsetActions.ts b/web/console/src/modules/logStash/actions/logDaemonsetActions.ts index 35770e43f..1d4dd31f7 100644 --- a/web/console/src/modules/logStash/actions/logDaemonsetActions.ts +++ b/web/console/src/modules/logStash/actions/logDaemonsetActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend } from '@tencent/ff-redux'; import { generateFetcherActionCreator } from '@tencent/qcloud-redux-fetcher'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/logStash/actions/namespaceActions.ts b/web/console/src/modules/logStash/actions/namespaceActions.ts index 66690107f..a28ba8113 100644 --- a/web/console/src/modules/logStash/actions/namespaceActions.ts +++ b/web/console/src/modules/logStash/actions/namespaceActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, ReduxAction } from '@tencent/ff-redux'; import { generateFetcherActionCreator } from '@tencent/qcloud-redux-fetcher'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/logStash/actions/podActions.ts b/web/console/src/modules/logStash/actions/podActions.ts index cbf360274..499e0a7bc 100644 --- a/web/console/src/modules/logStash/actions/podActions.ts +++ b/web/console/src/modules/logStash/actions/podActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend } from '@tencent/ff-redux'; import { generateFetcherActionCreator } from '@tencent/qcloud-redux-fetcher'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/logStash/actions/regionActions.ts b/web/console/src/modules/logStash/actions/regionActions.ts index 7bcd6f2e7..77be8e59c 100644 --- a/web/console/src/modules/logStash/actions/regionActions.ts +++ b/web/console/src/modules/logStash/actions/regionActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, getRegionId } from '@tencent/ff-redux'; import { generateFetcherActionCreator } from '@tencent/qcloud-redux-fetcher'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/logStash/actions/resourceActions.ts b/web/console/src/modules/logStash/actions/resourceActions.ts index 6f67e79ad..5db4b7e97 100644 --- a/web/console/src/modules/logStash/actions/resourceActions.ts +++ b/web/console/src/modules/logStash/actions/resourceActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend } from '@tencent/ff-redux'; import { generateFetcherActionCreator } from '@tencent/qcloud-redux-fetcher'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/logStash/actions/validatorActions.ts b/web/console/src/modules/logStash/actions/validatorActions.ts index 48a05b788..666baedbb 100644 --- a/web/console/src/modules/logStash/actions/validatorActions.ts +++ b/web/console/src/modules/logStash/actions/validatorActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { RootState, ContainerLogs, MetadataItem, WorkloadType, LogStashEdit, ContainerFilePathItem } from '../models'; import * as ActionType from '../constants/ActionType'; import * as WebAPI from '../WebAPI'; diff --git a/web/console/src/modules/logStash/actions/workflowActions.ts b/web/console/src/modules/logStash/actions/workflowActions.ts index 379c55bcd..877f84f68 100644 --- a/web/console/src/modules/logStash/actions/workflowActions.ts +++ b/web/console/src/modules/logStash/actions/workflowActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { CreateResource } from 'src/modules/cluster/models'; import { diff --git a/web/console/src/modules/logStash/components/DeleteLogDialog.tsx b/web/console/src/modules/logStash/components/DeleteLogDialog.tsx index 8793cdb34..2129bdfd3 100644 --- a/web/console/src/modules/logStash/components/DeleteLogDialog.tsx +++ b/web/console/src/modules/logStash/components/DeleteLogDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/logStash/components/EditConsumerPanel.tsx b/web/console/src/modules/logStash/components/EditConsumerPanel.tsx index 2aa3aef53..1f779bdd6 100644 --- a/web/console/src/modules/logStash/components/EditConsumerPanel.tsx +++ b/web/console/src/modules/logStash/components/EditConsumerPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/logStash/components/EditLogStashPanel.tsx b/web/console/src/modules/logStash/components/EditLogStashPanel.tsx index 02d881049..b71d728db 100644 --- a/web/console/src/modules/logStash/components/EditLogStashPanel.tsx +++ b/web/console/src/modules/logStash/components/EditLogStashPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { CreateResource } from 'src/modules/cluster/models'; diff --git a/web/console/src/modules/logStash/components/EditOriginContainerFilePanel.tsx b/web/console/src/modules/logStash/components/EditOriginContainerFilePanel.tsx index bba1c1422..e7125f328 100644 --- a/web/console/src/modules/logStash/components/EditOriginContainerFilePanel.tsx +++ b/web/console/src/modules/logStash/components/EditOriginContainerFilePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/logStash/components/EditOriginContainerItemPanel.tsx b/web/console/src/modules/logStash/components/EditOriginContainerItemPanel.tsx index e1593a351..0ccd88977 100644 --- a/web/console/src/modules/logStash/components/EditOriginContainerItemPanel.tsx +++ b/web/console/src/modules/logStash/components/EditOriginContainerItemPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/logStash/components/EditOriginContainerPanel.tsx b/web/console/src/modules/logStash/components/EditOriginContainerPanel.tsx index 604946a13..aecc55f86 100644 --- a/web/console/src/modules/logStash/components/EditOriginContainerPanel.tsx +++ b/web/console/src/modules/logStash/components/EditOriginContainerPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 日志源 */ diff --git a/web/console/src/modules/logStash/components/EditOriginNodePanel.tsx b/web/console/src/modules/logStash/components/EditOriginNodePanel.tsx index 3c3baa05c..1a013ea20 100644 --- a/web/console/src/modules/logStash/components/EditOriginNodePanel.tsx +++ b/web/console/src/modules/logStash/components/EditOriginNodePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/logStash/components/ListOriginContainerItemPanel.tsx b/web/console/src/modules/logStash/components/ListOriginContainerItemPanel.tsx index e1be7340f..f402dbf01 100644 --- a/web/console/src/modules/logStash/components/ListOriginContainerItemPanel.tsx +++ b/web/console/src/modules/logStash/components/ListOriginContainerItemPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/logStash/components/LogDetailPanel.tsx b/web/console/src/modules/logStash/components/LogDetailPanel.tsx index 108c8b6b1..45aafcea8 100644 --- a/web/console/src/modules/logStash/components/LogDetailPanel.tsx +++ b/web/console/src/modules/logStash/components/LogDetailPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/logStash/components/LogSettingTablePanel.tsx b/web/console/src/modules/logStash/components/LogSettingTablePanel.tsx index 5085c1ff0..cfc609c37 100644 --- a/web/console/src/modules/logStash/components/LogSettingTablePanel.tsx +++ b/web/console/src/modules/logStash/components/LogSettingTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Cluster } from 'src/modules/common/models'; diff --git a/web/console/src/modules/logStash/components/LogStashActionPanel.tsx b/web/console/src/modules/logStash/components/LogStashActionPanel.tsx index 3a1ab8718..fbb5759be 100644 --- a/web/console/src/modules/logStash/components/LogStashActionPanel.tsx +++ b/web/console/src/modules/logStash/components/LogStashActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/logStash/components/LogStashApp.tsx b/web/console/src/modules/logStash/components/LogStashApp.tsx index 2442c629c..5df54a835 100644 --- a/web/console/src/modules/logStash/components/LogStashApp.tsx +++ b/web/console/src/modules/logStash/components/LogStashApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/logStash/components/LogStashHeadPanel.tsx b/web/console/src/modules/logStash/components/LogStashHeadPanel.tsx index 69c25950e..6bc790e38 100644 --- a/web/console/src/modules/logStash/components/LogStashHeadPanel.tsx +++ b/web/console/src/modules/logStash/components/LogStashHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/logStash/components/LogStashSubHeadPanel.tsx b/web/console/src/modules/logStash/components/LogStashSubHeadPanel.tsx index 00e4ea190..df4d59efc 100644 --- a/web/console/src/modules/logStash/components/LogStashSubHeadPanel.tsx +++ b/web/console/src/modules/logStash/components/LogStashSubHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/logStash/components/LogStashTablePanel.tsx b/web/console/src/modules/logStash/components/LogStashTablePanel.tsx index 574fdfb90..26ec0305e 100644 --- a/web/console/src/modules/logStash/components/LogStashTablePanel.tsx +++ b/web/console/src/modules/logStash/components/LogStashTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import classnames from 'classnames'; import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/logStash/components/OpenLogStashDialog.tsx b/web/console/src/modules/logStash/components/OpenLogStashDialog.tsx index 3be399a2d..dfbd50c64 100644 --- a/web/console/src/modules/logStash/components/OpenLogStashDialog.tsx +++ b/web/console/src/modules/logStash/components/OpenLogStashDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { CreateResource } from 'src/modules/cluster/models'; diff --git a/web/console/src/modules/logStash/constants/ActionType.ts b/web/console/src/modules/logStash/constants/ActionType.ts index beca17c1c..b79fca375 100644 --- a/web/console/src/modules/logStash/constants/ActionType.ts +++ b/web/console/src/modules/logStash/constants/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 地域的相关操作 */ export const QueryRegion = 'QueryRegion'; export const FetchRegion = 'FetchRegion'; diff --git a/web/console/src/modules/logStash/constants/Config.ts b/web/console/src/modules/logStash/constants/Config.ts index 87523d332..d85edb1b3 100644 --- a/web/console/src/modules/logStash/constants/Config.ts +++ b/web/console/src/modules/logStash/constants/Config.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** ========================= start FFRedux的相关配置 ======================== */ export const FFReduxActionName = { OPENADDON: 'openAddon', diff --git a/web/console/src/modules/logStash/constants/initState.ts b/web/console/src/modules/logStash/constants/initState.ts index 337e3c526..f7d17ab30 100644 --- a/web/console/src/modules/logStash/constants/initState.ts +++ b/web/console/src/modules/logStash/constants/initState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { uuid } from '@tencent/ff-redux'; import { initValidator } from '../../common/models'; diff --git a/web/console/src/modules/logStash/index.tsx b/web/console/src/modules/logStash/index.tsx index 8a8cb161d..7a16af525 100644 --- a/web/console/src/modules/logStash/index.tsx +++ b/web/console/src/modules/logStash/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { LogStashAppContainer } from './components/LogStashApp'; diff --git a/web/console/src/modules/logStash/models/Ckafka.ts b/web/console/src/modules/logStash/models/Ckafka.ts index b34fbd85a..3e907008b 100644 --- a/web/console/src/modules/logStash/models/Ckafka.ts +++ b/web/console/src/modules/logStash/models/Ckafka.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Cluster } from '../../common/models'; diff --git a/web/console/src/modules/logStash/models/Cls.ts b/web/console/src/modules/logStash/models/Cls.ts index be2aaddb8..fa8d86f4b 100644 --- a/web/console/src/modules/logStash/models/Cls.ts +++ b/web/console/src/modules/logStash/models/Cls.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Cls extends Identifiable { diff --git a/web/console/src/modules/logStash/models/ContainerFilePathItem.ts b/web/console/src/modules/logStash/models/ContainerFilePathItem.ts index 020e26ba2..543f1cce4 100644 --- a/web/console/src/modules/logStash/models/ContainerFilePathItem.ts +++ b/web/console/src/modules/logStash/models/ContainerFilePathItem.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/logStash/models/ContainerLogs.ts b/web/console/src/modules/logStash/models/ContainerLogs.ts index 4d12856fd..20821d305 100644 --- a/web/console/src/modules/logStash/models/ContainerLogs.ts +++ b/web/console/src/modules/logStash/models/ContainerLogs.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Resource } from '../../cluster/models'; diff --git a/web/console/src/modules/logStash/models/LogDaemonset.ts b/web/console/src/modules/logStash/models/LogDaemonset.ts index 3bdc41a16..a06039e82 100644 --- a/web/console/src/modules/logStash/models/LogDaemonset.ts +++ b/web/console/src/modules/logStash/models/LogDaemonset.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { cluster } from 'config/resource/k8sConfig'; import { Identifiable } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/logStash/models/LogStashEdit.ts b/web/console/src/modules/logStash/models/LogStashEdit.ts index 8586786f2..aedacd534 100644 --- a/web/console/src/modules/logStash/models/LogStashEdit.ts +++ b/web/console/src/modules/logStash/models/LogStashEdit.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, Identifiable, QueryState, RecordSet } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/logStash/models/LogStatsh.ts b/web/console/src/modules/logStash/models/LogStatsh.ts index 1168e8e4f..4417f847f 100644 --- a/web/console/src/modules/logStash/models/LogStatsh.ts +++ b/web/console/src/modules/logStash/models/LogStatsh.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { any } from 'prop-types'; import { Identifiable } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/logStash/models/MetadataItem.ts b/web/console/src/modules/logStash/models/MetadataItem.ts index 45aaacbf0..fa211aa01 100644 --- a/web/console/src/modules/logStash/models/MetadataItem.ts +++ b/web/console/src/modules/logStash/models/MetadataItem.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/logStash/models/Resource.ts b/web/console/src/modules/logStash/models/Resource.ts index 586c313fe..7919b6412 100644 --- a/web/console/src/modules/logStash/models/Resource.ts +++ b/web/console/src/modules/logStash/models/Resource.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Resource extends Identifiable { diff --git a/web/console/src/modules/logStash/models/RootState.ts b/web/console/src/modules/logStash/models/RootState.ts index 970a0777b..1efe7c3bc 100644 --- a/web/console/src/modules/logStash/models/RootState.ts +++ b/web/console/src/modules/logStash/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { CreateResource } from 'src/modules/cluster/models'; import { FetcherState, FFListModel, QueryState, RecordSet, WorkflowState } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/logStash/models/index.ts b/web/console/src/modules/logStash/models/index.ts index c09558f41..d077cff75 100644 --- a/web/console/src/modules/logStash/models/index.ts +++ b/web/console/src/modules/logStash/models/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { RootState } from './RootState'; export { Log, LogFilter, LogOperator } from './LogStatsh'; export { LogStashEdit, LogStashEditOperator } from './LogStashEdit'; diff --git a/web/console/src/modules/logStash/models/pod.ts b/web/console/src/modules/logStash/models/pod.ts index d4c65616c..383c5bfae 100644 --- a/web/console/src/modules/logStash/models/pod.ts +++ b/web/console/src/modules/logStash/models/pod.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Pod extends Identifiable { diff --git a/web/console/src/modules/logStash/reducers/LogStashEditReducer.ts b/web/console/src/modules/logStash/reducers/LogStashEditReducer.ts index ade58926e..e93d31d0f 100644 --- a/web/console/src/modules/logStash/reducers/LogStashEditReducer.ts +++ b/web/console/src/modules/logStash/reducers/LogStashEditReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/logStash/reducers/RootReducer.ts b/web/console/src/modules/logStash/reducers/RootReducer.ts index 997db42be..50552fd73 100644 --- a/web/console/src/modules/logStash/reducers/RootReducer.ts +++ b/web/console/src/modules/logStash/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { createFFListReducer, generateWorkflowReducer, RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/logStash/router.ts b/web/console/src/modules/logStash/router.ts index c8fe0507a..1a270f7a0 100644 --- a/web/console/src/modules/logStash/router.ts +++ b/web/console/src/modules/logStash/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/logStash/stores/RootStore.ts b/web/console/src/modules/logStash/stores/RootStore.ts index 528dcd48c..83ff139b0 100644 --- a/web/console/src/modules/logStash/stores/RootStore.ts +++ b/web/console/src/modules/logStash/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/modules/notify/WebAPI.ts b/web/console/src/modules/notify/WebAPI.ts index e3b5f38b5..47d3c9ca4 100644 --- a/web/console/src/modules/notify/WebAPI.ts +++ b/web/console/src/modules/notify/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { oc } from 'ts-optchain'; import { OperationResult, QueryState, RecordSet } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/notify/actions/index.ts b/web/console/src/modules/notify/actions/index.ts index 3e1afb1e8..5d7198813 100644 --- a/web/console/src/modules/notify/actions/index.ts +++ b/web/console/src/modules/notify/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { resourceActions } from './resourceActions'; import { workflowActions } from './workflowActions'; diff --git a/web/console/src/modules/notify/actions/resourceActions.ts b/web/console/src/modules/notify/actions/resourceActions.ts index 2d567b45c..3875e6876 100644 --- a/web/console/src/modules/notify/actions/resourceActions.ts +++ b/web/console/src/modules/notify/actions/resourceActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions } from '@tencent/ff-redux'; import { resourceConfig } from '../../../../config'; diff --git a/web/console/src/modules/notify/actions/workflowActions.ts b/web/console/src/modules/notify/actions/workflowActions.ts index ed8a5de8f..8ff43ff71 100644 --- a/web/console/src/modules/notify/actions/workflowActions.ts +++ b/web/console/src/modules/notify/actions/workflowActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { generateWorkflowActionCreator, isSuccessWorkflow, OperationTrigger } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/notify/components/DeleteResourceDialog.tsx b/web/console/src/modules/notify/components/DeleteResourceDialog.tsx index a559dc38e..b83cce1d9 100644 --- a/web/console/src/modules/notify/components/DeleteResourceDialog.tsx +++ b/web/console/src/modules/notify/components/DeleteResourceDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from './NotifyApp'; import { WorkflowDialog } from '../../common/components'; diff --git a/web/console/src/modules/notify/components/NotifyApp.tsx b/web/console/src/modules/notify/components/NotifyApp.tsx index 8d575e9be..7ac41b035 100644 --- a/web/console/src/modules/notify/components/NotifyApp.tsx +++ b/web/console/src/modules/notify/components/NotifyApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/notify/components/NotifyHead.tsx b/web/console/src/modules/notify/components/NotifyHead.tsx index bab149660..941ba6d6f 100644 --- a/web/console/src/modules/notify/components/NotifyHead.tsx +++ b/web/console/src/modules/notify/components/NotifyHead.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from './NotifyApp'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/notify/components/ResourceSidebar.tsx b/web/console/src/modules/notify/components/ResourceSidebar.tsx index 6ae25b246..6d6e3cfde 100644 --- a/web/console/src/modules/notify/components/ResourceSidebar.tsx +++ b/web/console/src/modules/notify/components/ResourceSidebar.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from './NotifyApp'; import * as classnames from 'classnames'; diff --git a/web/console/src/modules/notify/components/resourceDetail/ResourceDetail.tsx b/web/console/src/modules/notify/components/resourceDetail/ResourceDetail.tsx index 3d5c7da61..e2b20bdb0 100644 --- a/web/console/src/modules/notify/components/resourceDetail/ResourceDetail.tsx +++ b/web/console/src/modules/notify/components/resourceDetail/ResourceDetail.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from '../NotifyApp'; import { LinkButton } from '../../../common/components'; diff --git a/web/console/src/modules/notify/components/resourceDetail/ResourceDetailChannel.tsx b/web/console/src/modules/notify/components/resourceDetail/ResourceDetailChannel.tsx index 1ede43b42..c45b1c629 100644 --- a/web/console/src/modules/notify/components/resourceDetail/ResourceDetailChannel.tsx +++ b/web/console/src/modules/notify/components/resourceDetail/ResourceDetailChannel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { ResourceDetail } from './ResourceDetail'; import { FormPanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/notify/components/resourceDetail/ResourceDetailReceiver.tsx b/web/console/src/modules/notify/components/resourceDetail/ResourceDetailReceiver.tsx index 960a3f5ad..eba149450 100644 --- a/web/console/src/modules/notify/components/resourceDetail/ResourceDetailReceiver.tsx +++ b/web/console/src/modules/notify/components/resourceDetail/ResourceDetailReceiver.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { ResourceDetail } from './ResourceDetail'; import { FormPanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/notify/components/resourceDetail/ResourceDetailReceiverGroup.tsx b/web/console/src/modules/notify/components/resourceDetail/ResourceDetailReceiverGroup.tsx index f58fe46c3..2eae9ee3a 100644 --- a/web/console/src/modules/notify/components/resourceDetail/ResourceDetailReceiverGroup.tsx +++ b/web/console/src/modules/notify/components/resourceDetail/ResourceDetailReceiverGroup.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { ResourceDetail } from './ResourceDetail'; import { FormPanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/notify/components/resourceDetail/ResourceDetailTemplate.tsx b/web/console/src/modules/notify/components/resourceDetail/ResourceDetailTemplate.tsx index 40f0904be..615837c96 100644 --- a/web/console/src/modules/notify/components/resourceDetail/ResourceDetailTemplate.tsx +++ b/web/console/src/modules/notify/components/resourceDetail/ResourceDetailTemplate.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { ResourceDetail } from './ResourceDetail'; import { LinkButton } from '../../../common/components'; diff --git a/web/console/src/modules/notify/components/resourceDetail/ResourceHeader.tsx b/web/console/src/modules/notify/components/resourceDetail/ResourceHeader.tsx index bc9d4c9fe..68306a734 100644 --- a/web/console/src/modules/notify/components/resourceDetail/ResourceHeader.tsx +++ b/web/console/src/modules/notify/components/resourceDetail/ResourceHeader.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from '../NotifyApp'; import { router } from '../../router'; diff --git a/web/console/src/modules/notify/components/resourceEdition/EditResource.tsx b/web/console/src/modules/notify/components/resourceEdition/EditResource.tsx index 1668437e6..db359fe05 100644 --- a/web/console/src/modules/notify/components/resourceEdition/EditResource.tsx +++ b/web/console/src/modules/notify/components/resourceEdition/EditResource.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button } from '@tea/component/button'; diff --git a/web/console/src/modules/notify/components/resourceEdition/EditResourceChannel.tsx b/web/console/src/modules/notify/components/resourceEdition/EditResourceChannel.tsx index 5ddd1fe69..6c1fd84fb 100644 --- a/web/console/src/modules/notify/components/resourceEdition/EditResourceChannel.tsx +++ b/web/console/src/modules/notify/components/resourceEdition/EditResourceChannel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t } from '@tencent/tea-app/lib/i18n'; import { Form } from '@tea/component/form'; diff --git a/web/console/src/modules/notify/components/resourceEdition/EditResourceReceiver.tsx b/web/console/src/modules/notify/components/resourceEdition/EditResourceReceiver.tsx index 2d115a547..bf1909d98 100644 --- a/web/console/src/modules/notify/components/resourceEdition/EditResourceReceiver.tsx +++ b/web/console/src/modules/notify/components/resourceEdition/EditResourceReceiver.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Form } from '@tea/component/form'; import { Input } from '@tea/component/input'; diff --git a/web/console/src/modules/notify/components/resourceEdition/EditResourceReceiverGroup.tsx b/web/console/src/modules/notify/components/resourceEdition/EditResourceReceiverGroup.tsx index 548502807..866b0b70b 100644 --- a/web/console/src/modules/notify/components/resourceEdition/EditResourceReceiverGroup.tsx +++ b/web/console/src/modules/notify/components/resourceEdition/EditResourceReceiverGroup.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; import { Form } from '@tea/component/form'; diff --git a/web/console/src/modules/notify/components/resourceEdition/EditResourceTemplate.tsx b/web/console/src/modules/notify/components/resourceEdition/EditResourceTemplate.tsx index efcc2a488..495ed58e0 100644 --- a/web/console/src/modules/notify/components/resourceEdition/EditResourceTemplate.tsx +++ b/web/console/src/modules/notify/components/resourceEdition/EditResourceTemplate.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t } from '@tencent/tea-app/lib/i18n'; import { Form } from '@tea/component/form'; diff --git a/web/console/src/modules/notify/components/resourceIntro/BodyIntro.tsx b/web/console/src/modules/notify/components/resourceIntro/BodyIntro.tsx index 304fcb95a..b1bde274d 100644 --- a/web/console/src/modules/notify/components/resourceIntro/BodyIntro.tsx +++ b/web/console/src/modules/notify/components/resourceIntro/BodyIntro.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from '../NotifyApp'; import { insertCSS } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/notify/components/resourceIntro/BodyIntroHeader.tsx b/web/console/src/modules/notify/components/resourceIntro/BodyIntroHeader.tsx index d313a654e..1e2f6a53d 100644 --- a/web/console/src/modules/notify/components/resourceIntro/BodyIntroHeader.tsx +++ b/web/console/src/modules/notify/components/resourceIntro/BodyIntroHeader.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; import { Justify } from '@tencent/tea-component'; diff --git a/web/console/src/modules/notify/components/resourceList/ResourceTable.tsx b/web/console/src/modules/notify/components/resourceList/ResourceTable.tsx index 30f4da03f..3144739c4 100644 --- a/web/console/src/modules/notify/components/resourceList/ResourceTable.tsx +++ b/web/console/src/modules/notify/components/resourceList/ResourceTable.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, Text } from '@tea/component'; import { RootProps } from '../NotifyApp'; diff --git a/web/console/src/modules/notify/components/resourceList/ResourceTableChannel.tsx b/web/console/src/modules/notify/components/resourceList/ResourceTableChannel.tsx index 321898bc3..8c0cb81b8 100644 --- a/web/console/src/modules/notify/components/resourceList/ResourceTableChannel.tsx +++ b/web/console/src/modules/notify/components/resourceList/ResourceTableChannel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ResourceTable } from './ResourceTable'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; import { TablePanelColumnProps } from '@tencent/ff-component'; diff --git a/web/console/src/modules/notify/components/resourceList/ResourceTableReceiver.tsx b/web/console/src/modules/notify/components/resourceList/ResourceTableReceiver.tsx index bf7899d1c..9f3a493ef 100644 --- a/web/console/src/modules/notify/components/resourceList/ResourceTableReceiver.tsx +++ b/web/console/src/modules/notify/components/resourceList/ResourceTableReceiver.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ResourceTable } from './ResourceTable'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; import { TablePanelColumnProps } from '@tencent/ff-component'; diff --git a/web/console/src/modules/notify/components/resourceList/ResourceTableTemplate.tsx b/web/console/src/modules/notify/components/resourceList/ResourceTableTemplate.tsx index 745cc2960..3b6ca1b7d 100644 --- a/web/console/src/modules/notify/components/resourceList/ResourceTableTemplate.tsx +++ b/web/console/src/modules/notify/components/resourceList/ResourceTableTemplate.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t } from '@tencent/tea-app/lib/i18n'; import { ResourceTableChannel } from './ResourceTableChannel'; diff --git a/web/console/src/modules/notify/constants/ActionType.ts b/web/console/src/modules/notify/constants/ActionType.ts index 306d58e52..2da6f564b 100644 --- a/web/console/src/modules/notify/constants/ActionType.ts +++ b/web/console/src/modules/notify/constants/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const isI18n = 'isI18n'; export const FetchRegion = 'FetchRegion'; export const QueryRegion = 'QueryRegion'; diff --git a/web/console/src/modules/notify/index.tsx b/web/console/src/modules/notify/index.tsx index c650dae58..4616a2abc 100644 --- a/web/console/src/modules/notify/index.tsx +++ b/web/console/src/modules/notify/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { NotifyAppContainer } from './components/NotifyApp'; diff --git a/web/console/src/modules/notify/models/ClusterFilter.ts b/web/console/src/modules/notify/models/ClusterFilter.ts index 83bb77782..29a5db065 100644 --- a/web/console/src/modules/notify/models/ClusterFilter.ts +++ b/web/console/src/modules/notify/models/ClusterFilter.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface ClusterFilter { regionId?: number; } diff --git a/web/console/src/modules/notify/models/Group.tsx b/web/console/src/modules/notify/models/Group.tsx index f65a4613d..4b1235603 100644 --- a/web/console/src/modules/notify/models/Group.tsx +++ b/web/console/src/modules/notify/models/Group.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Group extends Identifiable { diff --git a/web/console/src/modules/notify/models/Namespace.ts b/web/console/src/modules/notify/models/Namespace.ts index fe76f6e3b..7b571747c 100644 --- a/web/console/src/modules/notify/models/Namespace.ts +++ b/web/console/src/modules/notify/models/Namespace.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Namespace extends Identifiable { diff --git a/web/console/src/modules/notify/models/Region.ts b/web/console/src/modules/notify/models/Region.ts index 6b1123671..df092f5fb 100644 --- a/web/console/src/modules/notify/models/Region.ts +++ b/web/console/src/modules/notify/models/Region.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Region extends Identifiable { diff --git a/web/console/src/modules/notify/models/RegionFilter.ts b/web/console/src/modules/notify/models/RegionFilter.ts index 7c823fef6..745d06417 100644 --- a/web/console/src/modules/notify/models/RegionFilter.ts +++ b/web/console/src/modules/notify/models/RegionFilter.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface RegionFilter { /**默认 */ regionId?: string | number; diff --git a/web/console/src/modules/notify/models/Resource.ts b/web/console/src/modules/notify/models/Resource.ts index cd09879b9..743de58b7 100644 --- a/web/console/src/modules/notify/models/Resource.ts +++ b/web/console/src/modules/notify/models/Resource.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable, RecordSet } from '@tencent/ff-redux'; export interface Resource extends Identifiable { diff --git a/web/console/src/modules/notify/models/RootState.ts b/web/console/src/modules/notify/models/RootState.ts index a8aaaae87..10a8369b6 100644 --- a/web/console/src/modules/notify/models/RootState.ts +++ b/web/console/src/modules/notify/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FFListModel, WorkflowState } from '@tencent/ff-redux'; import { RouteState } from '../../../../helpers/Router'; diff --git a/web/console/src/modules/notify/models/index.ts b/web/console/src/modules/notify/models/index.ts index 18d848d33..844635e0f 100644 --- a/web/console/src/modules/notify/models/index.ts +++ b/web/console/src/modules/notify/models/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { ResourceFilter, Resource } from './Resource'; export { RootState } from './RootState'; // export { RegionFilter } from './RegionFilter'; diff --git a/web/console/src/modules/notify/reducers/RootReducer.ts b/web/console/src/modules/notify/reducers/RootReducer.ts index b3b80bd56..3e4d9d938 100644 --- a/web/console/src/modules/notify/reducers/RootReducer.ts +++ b/web/console/src/modules/notify/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { createFFListReducer, generateWorkflowReducer, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/notify/router.project.ts b/web/console/src/modules/notify/router.project.ts index fc2dbcf97..c994dcc8c 100644 --- a/web/console/src/modules/notify/router.project.ts +++ b/web/console/src/modules/notify/router.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; export const router = new Router('/tkestack-project/notify(/:mode)(/:resourceName)(/:tab)', { diff --git a/web/console/src/modules/notify/router.ts b/web/console/src/modules/notify/router.ts index b5708095b..885d6b815 100644 --- a/web/console/src/modules/notify/router.ts +++ b/web/console/src/modules/notify/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; export const router = new Router('/tkestack/notify(/:mode)(/:resourceName)(/:tab)', { diff --git a/web/console/src/modules/notify/schema/channelSchema.ts b/web/console/src/modules/notify/schema/channelSchema.ts index bdadcc802..ec38fc849 100644 --- a/web/console/src/modules/notify/schema/channelSchema.ts +++ b/web/console/src/modules/notify/schema/channelSchema.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { TYPES } from './schemaUtil'; import { resourceConfig } from '@config'; import validatorjs from 'validator'; diff --git a/web/console/src/modules/notify/schema/receiverGroupSchema.ts b/web/console/src/modules/notify/schema/receiverGroupSchema.ts index f29a69841..ba40562aa 100644 --- a/web/console/src/modules/notify/schema/receiverGroupSchema.ts +++ b/web/console/src/modules/notify/schema/receiverGroupSchema.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { TYPES } from './schemaUtil'; import { resourceConfig } from '@config'; diff --git a/web/console/src/modules/notify/schema/receiverSchema.ts b/web/console/src/modules/notify/schema/receiverSchema.ts index 7dafbf8a6..731f46223 100644 --- a/web/console/src/modules/notify/schema/receiverSchema.ts +++ b/web/console/src/modules/notify/schema/receiverSchema.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { TYPES } from './schemaUtil'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; import { resourceConfig } from '@config'; diff --git a/web/console/src/modules/notify/schema/schemaUtil.ts b/web/console/src/modules/notify/schema/schemaUtil.ts index 58c2fb140..cf0b33ba8 100644 --- a/web/console/src/modules/notify/schema/schemaUtil.ts +++ b/web/console/src/modules/notify/schema/schemaUtil.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const TYPES = { string: { type: 'string', diff --git a/web/console/src/modules/notify/schema/templateSchema.ts b/web/console/src/modules/notify/schema/templateSchema.ts index 5007de37d..9375307ee 100644 --- a/web/console/src/modules/notify/schema/templateSchema.ts +++ b/web/console/src/modules/notify/schema/templateSchema.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { TYPES } from './schemaUtil'; import { resourceConfig } from '@config'; diff --git a/web/console/src/modules/notify/stores/RootStore.ts b/web/console/src/modules/notify/stores/RootStore.ts index 528dcd48c..83ff139b0 100644 --- a/web/console/src/modules/notify/stores/RootStore.ts +++ b/web/console/src/modules/notify/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/modules/overview/WebAPI.ts b/web/console/src/modules/overview/WebAPI.ts index f02b9c91c..3b6bc4ee9 100644 --- a/web/console/src/modules/overview/WebAPI.ts +++ b/web/console/src/modules/overview/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { RequestParams } from './../common/models/requestParams'; import { Method, reduceNetworkRequest } from '@helper/reduceNetwork'; import { OperationResult, RecordSet, uuid } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/overview/actions/overviewActions.ts b/web/console/src/modules/overview/actions/overviewActions.ts index 9c13cb926..61e7c4aa2 100644 --- a/web/console/src/modules/overview/actions/overviewActions.ts +++ b/web/console/src/modules/overview/actions/overviewActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { RootState, ClusterOverview, ClusterOverviewFilter } from './../models/RootState'; import { Dispatch } from 'redux'; import * as ActionType from '../constants/ActionType'; diff --git a/web/console/src/modules/overview/components/ClusterDetailPanel.tsx b/web/console/src/modules/overview/components/ClusterDetailPanel.tsx index be1210451..e945cf404 100644 --- a/web/console/src/modules/overview/components/ClusterDetailPanel.tsx +++ b/web/console/src/modules/overview/components/ClusterDetailPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Card, Row, Col, MetricsBoard, Icon, Text, SearchBox, Button, Bubble, List } from '@tencent/tea-component'; import { ClusterOverview, ClusterDetail } from '../models/RootState'; diff --git a/web/console/src/modules/overview/components/ClusterOverview.tsx b/web/console/src/modules/overview/components/ClusterOverview.tsx index 91259bd6f..ca7da2d16 100644 --- a/web/console/src/modules/overview/components/ClusterOverview.tsx +++ b/web/console/src/modules/overview/components/ClusterOverview.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Card, Row, Col, MetricsBoard, Icon, Text, Bubble } from '@tencent/tea-component'; import { ClusterOverview } from '../models/RootState'; diff --git a/web/console/src/modules/overview/components/OverviewApp.tsx b/web/console/src/modules/overview/components/OverviewApp.tsx index ca021e4e8..3f6f25945 100644 --- a/web/console/src/modules/overview/components/OverviewApp.tsx +++ b/web/console/src/modules/overview/components/OverviewApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/overview/components/OverviewHeadPanel.tsx b/web/console/src/modules/overview/components/OverviewHeadPanel.tsx index 33930eee8..ec689de2d 100644 --- a/web/console/src/modules/overview/components/OverviewHeadPanel.tsx +++ b/web/console/src/modules/overview/components/OverviewHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/overview/components/QuickHelpPanel.tsx b/web/console/src/modules/overview/components/QuickHelpPanel.tsx index 270c51025..36dccad20 100644 --- a/web/console/src/modules/overview/components/QuickHelpPanel.tsx +++ b/web/console/src/modules/overview/components/QuickHelpPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Card, List, Button } from '@tencent/tea-component'; export function QuickHelpPanel() { diff --git a/web/console/src/modules/overview/components/TipsPanel.tsx b/web/console/src/modules/overview/components/TipsPanel.tsx index 00b14a498..33c2b3929 100644 --- a/web/console/src/modules/overview/components/TipsPanel.tsx +++ b/web/console/src/modules/overview/components/TipsPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Card, List, Icon, Text, Button } from '@tencent/tea-component'; export function TipsPanel() { diff --git a/web/console/src/modules/overview/constants/ActionType.ts b/web/console/src/modules/overview/constants/ActionType.ts index 466d6b1db..b4b3e26dd 100644 --- a/web/console/src/modules/overview/constants/ActionType.ts +++ b/web/console/src/modules/overview/constants/ActionType.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const ClusterOverview = 'ClusterOverview'; diff --git a/web/console/src/modules/overview/constants/Config.ts b/web/console/src/modules/overview/constants/Config.ts index 8fd537ac1..f6fdb58c3 100644 --- a/web/console/src/modules/overview/constants/Config.ts +++ b/web/console/src/modules/overview/constants/Config.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t } from '@tencent/tea-app/lib/i18n'; export const canNotOperateCluster = { diff --git a/web/console/src/modules/overview/index.tsx b/web/console/src/modules/overview/index.tsx index d5826d686..057bf4104 100644 --- a/web/console/src/modules/overview/index.tsx +++ b/web/console/src/modules/overview/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { OverviewAppContainer } from './components/OverviewApp'; diff --git a/web/console/src/modules/overview/models/RootState.ts b/web/console/src/modules/overview/models/RootState.ts index 3227dd5cb..c82e7998d 100644 --- a/web/console/src/modules/overview/models/RootState.ts +++ b/web/console/src/modules/overview/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FFObjectModel } from './../../../../lib/ff-redux/src/object/Model'; import { FetcherState } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/overview/reducers/RootReducer.ts b/web/console/src/modules/overview/reducers/RootReducer.ts index dcbe079f4..a02adef6e 100644 --- a/web/console/src/modules/overview/reducers/RootReducer.ts +++ b/web/console/src/modules/overview/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ClusterOverview, ClusterOverviewFilter } from './../models/RootState'; import { combineReducers } from 'redux'; import * as ActionType from '../constants/ActionType'; diff --git a/web/console/src/modules/overview/router.ts b/web/console/src/modules/overview/router.ts index 9faeea2f6..51f6a8d20 100644 --- a/web/console/src/modules/overview/router.ts +++ b/web/console/src/modules/overview/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/overview/stores/RootStore.ts b/web/console/src/modules/overview/stores/RootStore.ts index 528dcd48c..83ff139b0 100644 --- a/web/console/src/modules/overview/stores/RootStore.ts +++ b/web/console/src/modules/overview/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/modules/persistentEvent/WebAPI.ts b/web/console/src/modules/persistentEvent/WebAPI.ts index 9343feb1f..2cde02bc5 100644 --- a/web/console/src/modules/persistentEvent/WebAPI.ts +++ b/web/console/src/modules/persistentEvent/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { RequestParams, UserDefinedHeader } from '../common/models'; import { reduceNetworkRequest, diff --git a/web/console/src/modules/persistentEvent/actions/clusterActions.ts b/web/console/src/modules/persistentEvent/actions/clusterActions.ts index 7bc03e93e..84dce44c3 100644 --- a/web/console/src/modules/persistentEvent/actions/clusterActions.ts +++ b/web/console/src/modules/persistentEvent/actions/clusterActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, FetchOptions, ReduxAction } from '@tencent/ff-redux'; import { resourceConfig } from '../../../../config'; diff --git a/web/console/src/modules/persistentEvent/actions/index.ts b/web/console/src/modules/persistentEvent/actions/index.ts index 0194a8c32..9532a01ce 100644 --- a/web/console/src/modules/persistentEvent/actions/index.ts +++ b/web/console/src/modules/persistentEvent/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { clusterActions } from './clusterActions'; import { peActions } from './peActions'; import { regionActions } from './regionActions'; diff --git a/web/console/src/modules/persistentEvent/actions/peActions.ts b/web/console/src/modules/persistentEvent/actions/peActions.ts index 6b9058d52..f23174b16 100644 --- a/web/console/src/modules/persistentEvent/actions/peActions.ts +++ b/web/console/src/modules/persistentEvent/actions/peActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, FetchOptions, generateFetcherActionCreator, ReduxAction } from '@tencent/ff-redux'; import { generateQueryActionCreator } from '@tencent/qcloud-redux-query'; diff --git a/web/console/src/modules/persistentEvent/actions/peEditActions.ts b/web/console/src/modules/persistentEvent/actions/peEditActions.ts index dfd318890..d31f2abe7 100644 --- a/web/console/src/modules/persistentEvent/actions/peEditActions.ts +++ b/web/console/src/modules/persistentEvent/actions/peEditActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetchOptions, ReduxAction } from '@tencent/ff-redux'; import { Resource } from '../../common'; diff --git a/web/console/src/modules/persistentEvent/actions/regionActions.ts b/web/console/src/modules/persistentEvent/actions/regionActions.ts index 6edbe26d4..0dedff27f 100644 --- a/web/console/src/modules/persistentEvent/actions/regionActions.ts +++ b/web/console/src/modules/persistentEvent/actions/regionActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, FetchOptions, getRegionId } from '@tencent/ff-redux'; import { assureRegion, setRegionId } from '../../../../helpers'; diff --git a/web/console/src/modules/persistentEvent/actions/validatorActions.ts b/web/console/src/modules/persistentEvent/actions/validatorActions.ts index 859727dfe..1e2699400 100644 --- a/web/console/src/modules/persistentEvent/actions/validatorActions.ts +++ b/web/console/src/modules/persistentEvent/actions/validatorActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { RootState, PeEdit } from '../models'; import * as ActionType from '../constants//ActionType'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/persistentEvent/actions/workflowActions.ts b/web/console/src/modules/persistentEvent/actions/workflowActions.ts index 6b057640f..a8a2eded6 100644 --- a/web/console/src/modules/persistentEvent/actions/workflowActions.ts +++ b/web/console/src/modules/persistentEvent/actions/workflowActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { generateWorkflowActionCreator, isSuccessWorkflow, OperationTrigger } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/persistentEvent/components/ClusterActionPanel.tsx b/web/console/src/modules/persistentEvent/components/ClusterActionPanel.tsx index 3317ca13d..2f58cd922 100644 --- a/web/console/src/modules/persistentEvent/components/ClusterActionPanel.tsx +++ b/web/console/src/modules/persistentEvent/components/ClusterActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/persistentEvent/components/ClusterTablePanel.tsx b/web/console/src/modules/persistentEvent/components/ClusterTablePanel.tsx index a1976dca6..1a46797fd 100644 --- a/web/console/src/modules/persistentEvent/components/ClusterTablePanel.tsx +++ b/web/console/src/modules/persistentEvent/components/ClusterTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/persistentEvent/components/EditPersistentEventPanel.tsx b/web/console/src/modules/persistentEvent/components/EditPersistentEventPanel.tsx index eb9fe3d38..0fba7f45d 100644 --- a/web/console/src/modules/persistentEvent/components/EditPersistentEventPanel.tsx +++ b/web/console/src/modules/persistentEvent/components/EditPersistentEventPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/persistentEvent/components/PersistentEventApp.tsx b/web/console/src/modules/persistentEvent/components/PersistentEventApp.tsx index d5a6c665c..72a3325a4 100644 --- a/web/console/src/modules/persistentEvent/components/PersistentEventApp.tsx +++ b/web/console/src/modules/persistentEvent/components/PersistentEventApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/persistentEvent/components/PersistentEventDeleteDialog.tsx b/web/console/src/modules/persistentEvent/components/PersistentEventDeleteDialog.tsx index 54d58f804..e921ca857 100644 --- a/web/console/src/modules/persistentEvent/components/PersistentEventDeleteDialog.tsx +++ b/web/console/src/modules/persistentEvent/components/PersistentEventDeleteDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/persistentEvent/components/PersistentEventHeadPanel.tsx b/web/console/src/modules/persistentEvent/components/PersistentEventHeadPanel.tsx index faf7d4dc6..4b0b175ac 100644 --- a/web/console/src/modules/persistentEvent/components/PersistentEventHeadPanel.tsx +++ b/web/console/src/modules/persistentEvent/components/PersistentEventHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/persistentEvent/constants/ActionType.ts b/web/console/src/modules/persistentEvent/constants/ActionType.ts index 1366fc29c..5fea1b26d 100644 --- a/web/console/src/modules/persistentEvent/constants/ActionType.ts +++ b/web/console/src/modules/persistentEvent/constants/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 是否为国际版 */ export const IsI18n = 'IsI18n'; diff --git a/web/console/src/modules/persistentEvent/constants/Config.ts b/web/console/src/modules/persistentEvent/constants/Config.ts index aea7a7277..654f3d256 100644 --- a/web/console/src/modules/persistentEvent/constants/Config.ts +++ b/web/console/src/modules/persistentEvent/constants/Config.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t, Trans } from '@tencent/tea-app/lib/i18n'; /** ========================= start FFRedux的相关配置 ======================== */ diff --git a/web/console/src/modules/persistentEvent/constants/initState.ts b/web/console/src/modules/persistentEvent/constants/initState.ts index 182a24b21..5d6c1f728 100644 --- a/web/console/src/modules/persistentEvent/constants/initState.ts +++ b/web/console/src/modules/persistentEvent/constants/initState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t, Trans } from '@tencent/tea-app/lib/i18n'; export const initRegionInfo = { diff --git a/web/console/src/modules/persistentEvent/index.tsx b/web/console/src/modules/persistentEvent/index.tsx index 8f2b5b319..5bda97038 100644 --- a/web/console/src/modules/persistentEvent/index.tsx +++ b/web/console/src/modules/persistentEvent/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { PersistentEventAppContainer } from './components/PersistentEventApp'; diff --git a/web/console/src/modules/persistentEvent/models/PeEdit.ts b/web/console/src/modules/persistentEvent/models/PeEdit.ts index f7b5ad8c5..77a359653 100644 --- a/web/console/src/modules/persistentEvent/models/PeEdit.ts +++ b/web/console/src/modules/persistentEvent/models/PeEdit.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Validation } from '../../common/models/Validation'; export interface PeEdit { diff --git a/web/console/src/modules/persistentEvent/models/RootState.ts b/web/console/src/modules/persistentEvent/models/RootState.ts index beec66f7f..acfc8cf7f 100644 --- a/web/console/src/modules/persistentEvent/models/RootState.ts +++ b/web/console/src/modules/persistentEvent/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, FFListModel, QueryState, RecordSet, WorkflowState } from '@tencent/ff-redux'; import { RouteState } from '../../../../helpers'; diff --git a/web/console/src/modules/persistentEvent/models/index.ts b/web/console/src/modules/persistentEvent/models/index.ts index 671b5d5c7..23221ce0a 100644 --- a/web/console/src/modules/persistentEvent/models/index.ts +++ b/web/console/src/modules/persistentEvent/models/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { RootState, FetchPeList } from './RootState'; export { PeEdit, PeEditJSONYaml, EsInfo, PersistentBackEnd } from './PeEdit'; export { CreateResource } from '../../common/models'; diff --git a/web/console/src/modules/persistentEvent/reducers/PeEditReducer.ts b/web/console/src/modules/persistentEvent/reducers/PeEditReducer.ts index a55cb4612..7ff4087b3 100644 --- a/web/console/src/modules/persistentEvent/reducers/PeEditReducer.ts +++ b/web/console/src/modules/persistentEvent/reducers/PeEditReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { RecordSet, reduceToPayload } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/persistentEvent/reducers/RootReducer.ts b/web/console/src/modules/persistentEvent/reducers/RootReducer.ts index c43a78dca..9a67ff7fc 100644 --- a/web/console/src/modules/persistentEvent/reducers/RootReducer.ts +++ b/web/console/src/modules/persistentEvent/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { diff --git a/web/console/src/modules/persistentEvent/router.ts b/web/console/src/modules/persistentEvent/router.ts index b0d41a128..332dc9523 100644 --- a/web/console/src/modules/persistentEvent/router.ts +++ b/web/console/src/modules/persistentEvent/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/persistentEvent/stores/RootStore.ts b/web/console/src/modules/persistentEvent/stores/RootStore.ts index 528dcd48c..83ff139b0 100644 --- a/web/console/src/modules/persistentEvent/stores/RootStore.ts +++ b/web/console/src/modules/persistentEvent/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/modules/project/UserManageWebAPI.ts b/web/console/src/modules/project/UserManageWebAPI.ts index af5ad37df..0e1f87c90 100644 --- a/web/console/src/modules/project/UserManageWebAPI.ts +++ b/web/console/src/modules/project/UserManageWebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { QueryState, RecordSet } from '@tencent/ff-redux'; import { Method, diff --git a/web/console/src/modules/project/WebAPI.ts b/web/console/src/modules/project/WebAPI.ts index 3542f2bea..c76cab619 100644 --- a/web/console/src/modules/project/WebAPI.ts +++ b/web/console/src/modules/project/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { collectionPaging, OperationResult, QueryState, RecordSet, uuid } from '@tencent/ff-redux'; import { resourceConfig } from '../../../config/resourceConfig'; diff --git a/web/console/src/modules/project/actions/bussinessActions.ts b/web/console/src/modules/project/actions/bussinessActions.ts index 634f68cef..1b55d2fa3 100644 --- a/web/console/src/modules/project/actions/bussinessActions.ts +++ b/web/console/src/modules/project/actions/bussinessActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { UserManagedProject, UserManagedProjectFilter } from './../models/Project'; import { User, UserFilter, UserInfo } from './../models/User'; import { FFReduxActionName } from './../constants/Config'; diff --git a/web/console/src/modules/project/actions/clusterActions.ts b/web/console/src/modules/project/actions/clusterActions.ts index 01822e74e..6ff1bfea8 100644 --- a/web/console/src/modules/project/actions/clusterActions.ts +++ b/web/console/src/modules/project/actions/clusterActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend } from '@tencent/ff-redux'; import { Cluster, ClusterFilter, RootState } from '../models'; diff --git a/web/console/src/modules/project/actions/detailActions.ts b/web/console/src/modules/project/actions/detailActions.ts index 72efd1144..d8f7733d4 100644 --- a/web/console/src/modules/project/actions/detailActions.ts +++ b/web/console/src/modules/project/actions/detailActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions } from '@tencent/ff-redux'; import { Project, ProjectEdition, ProjectFilter, RootState } from '../models'; diff --git a/web/console/src/modules/project/actions/index.ts b/web/console/src/modules/project/actions/index.ts index 8d467e4e0..514a47cf8 100644 --- a/web/console/src/modules/project/actions/index.ts +++ b/web/console/src/modules/project/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { bussinessActions } from './bussinessActions'; import { detailActions } from './detailActions'; import { projectActions } from './projectActions'; diff --git a/web/console/src/modules/project/actions/managerActions.ts b/web/console/src/modules/project/actions/managerActions.ts index 46705f925..7453bd835 100644 --- a/web/console/src/modules/project/actions/managerActions.ts +++ b/web/console/src/modules/project/actions/managerActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, diff --git a/web/console/src/modules/project/actions/namespaceActions.ts b/web/console/src/modules/project/actions/namespaceActions.ts index 9f3578d66..fb9f672f1 100644 --- a/web/console/src/modules/project/actions/namespaceActions.ts +++ b/web/console/src/modules/project/actions/namespaceActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FFReduxActionName } from './../constants/Config'; import { K8SUNIT, valueLabels1000, valueLabels1024 } from '@helper/k8sUnitUtil'; import { diff --git a/web/console/src/modules/project/actions/policy/associateActions.ts b/web/console/src/modules/project/actions/policy/associateActions.ts index 0fdc7b85b..838421598 100644 --- a/web/console/src/modules/project/actions/policy/associateActions.ts +++ b/web/console/src/modules/project/actions/policy/associateActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/project/actions/policy/index.ts b/web/console/src/modules/project/actions/policy/index.ts index acd10621f..8fc34d0be 100644 --- a/web/console/src/modules/project/actions/policy/index.ts +++ b/web/console/src/modules/project/actions/policy/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { associateActions } from './associateActions'; export const policyActions = { diff --git a/web/console/src/modules/project/actions/projectActions.ts b/web/console/src/modules/project/actions/projectActions.ts index 3d9f2059e..5c3ce2a8a 100644 --- a/web/console/src/modules/project/actions/projectActions.ts +++ b/web/console/src/modules/project/actions/projectActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { detailActions } from './detailActions'; import { ProjectUserMap } from './../models/Project'; import { FFReduxActionName } from './../constants/Config'; diff --git a/web/console/src/modules/project/actions/regionActions.ts b/web/console/src/modules/project/actions/regionActions.ts index 327bb40f4..2d31d43a6 100644 --- a/web/console/src/modules/project/actions/regionActions.ts +++ b/web/console/src/modules/project/actions/regionActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend } from '@tencent/ff-redux'; import { Region, RegionFilter, RootState } from '../models'; diff --git a/web/console/src/modules/project/actions/userActions.ts b/web/console/src/modules/project/actions/userActions.ts index b76dc03fd..36de7f94f 100644 --- a/web/console/src/modules/project/actions/userActions.ts +++ b/web/console/src/modules/project/actions/userActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { resourceConfig } from '@config'; import { CommonAPI, ResourceFilter, ResourceInfo } from '@src/modules/common'; import { diff --git a/web/console/src/modules/project/components/CreateNamespacePanel.tsx b/web/console/src/modules/project/components/CreateNamespacePanel.tsx index 6f1dfb0a3..ec54dcb0f 100644 --- a/web/console/src/modules/project/components/CreateNamespacePanel.tsx +++ b/web/console/src/modules/project/components/CreateNamespacePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/project/components/CreateProjectPanel.tsx b/web/console/src/modules/project/components/CreateProjectPanel.tsx index 2a43ef98a..37efeaef8 100644 --- a/web/console/src/modules/project/components/CreateProjectPanel.tsx +++ b/web/console/src/modules/project/components/CreateProjectPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/project/components/CreateProjectResourceLimitPanel.tsx b/web/console/src/modules/project/components/CreateProjectResourceLimitPanel.tsx index d1b34c6a1..eea02ede7 100644 --- a/web/console/src/modules/project/components/CreateProjectResourceLimitPanel.tsx +++ b/web/console/src/modules/project/components/CreateProjectResourceLimitPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { K8SUNIT, valueLabels1000, valueLabels1024 } from '@helper/k8sUnitUtil'; diff --git a/web/console/src/modules/project/components/DetailSubProjectActionPanel.tsx b/web/console/src/modules/project/components/DetailSubProjectActionPanel.tsx index 28380ff35..63a8170e2 100644 --- a/web/console/src/modules/project/components/DetailSubProjectActionPanel.tsx +++ b/web/console/src/modules/project/components/DetailSubProjectActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/project/components/DetailSubProjectPanel.tsx b/web/console/src/modules/project/components/DetailSubProjectPanel.tsx index 57595e7be..af37b1a1e 100644 --- a/web/console/src/modules/project/components/DetailSubProjectPanel.tsx +++ b/web/console/src/modules/project/components/DetailSubProjectPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/project/components/EditProjectManagerPanel.tsx b/web/console/src/modules/project/components/EditProjectManagerPanel.tsx index b531e044c..d87486ac2 100644 --- a/web/console/src/modules/project/components/EditProjectManagerPanel.tsx +++ b/web/console/src/modules/project/components/EditProjectManagerPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t } from '@tencent/tea-app/lib/i18n'; import * as React from 'react'; import { TransferTable, TransferTableProps } from '../../common/components'; diff --git a/web/console/src/modules/project/components/EditProjectNamePanel.tsx b/web/console/src/modules/project/components/EditProjectNamePanel.tsx index 8d9b6750a..0fd3233f6 100644 --- a/web/console/src/modules/project/components/EditProjectNamePanel.tsx +++ b/web/console/src/modules/project/components/EditProjectNamePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FormPanel } from '@tencent/ff-component'; import { t } from '@tencent/tea-app/lib/i18n'; import * as React from 'react'; diff --git a/web/console/src/modules/project/components/NamespaceActionPanel.tsx b/web/console/src/modules/project/components/NamespaceActionPanel.tsx index 7fdd1465c..f81111725 100644 --- a/web/console/src/modules/project/components/NamespaceActionPanel.tsx +++ b/web/console/src/modules/project/components/NamespaceActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/project/components/NamespaceTablePanel.tsx b/web/console/src/modules/project/components/NamespaceTablePanel.tsx index ff0f8a5cc..98887cab5 100644 --- a/web/console/src/modules/project/components/NamespaceTablePanel.tsx +++ b/web/console/src/modules/project/components/NamespaceTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/project/components/ProjectActionPanel.project.tsx b/web/console/src/modules/project/components/ProjectActionPanel.project.tsx index 3739db0a8..7965fdf9a 100644 --- a/web/console/src/modules/project/components/ProjectActionPanel.project.tsx +++ b/web/console/src/modules/project/components/ProjectActionPanel.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/project/components/ProjectActionPanel.tsx b/web/console/src/modules/project/components/ProjectActionPanel.tsx index eff102722..2fd9442a9 100644 --- a/web/console/src/modules/project/components/ProjectActionPanel.tsx +++ b/web/console/src/modules/project/components/ProjectActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/project/components/ProjectApp.tsx b/web/console/src/modules/project/components/ProjectApp.tsx index da4912b00..716d377f9 100644 --- a/web/console/src/modules/project/components/ProjectApp.tsx +++ b/web/console/src/modules/project/components/ProjectApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/project/components/ProjectDetail.tsx b/web/console/src/modules/project/components/ProjectDetail.tsx index 9f2bc0257..c69f9a4a9 100644 --- a/web/console/src/modules/project/components/ProjectDetail.tsx +++ b/web/console/src/modules/project/components/ProjectDetail.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { ContentView, TabPanel, Tabs } from '@tea/component'; diff --git a/web/console/src/modules/project/components/ProjectDetailPanel.tsx b/web/console/src/modules/project/components/ProjectDetailPanel.tsx index 87b914130..52faf5994 100644 --- a/web/console/src/modules/project/components/ProjectDetailPanel.tsx +++ b/web/console/src/modules/project/components/ProjectDetailPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { K8SUNIT, valueLabels1000, valueLabels1024 } from '@helper/k8sUnitUtil'; diff --git a/web/console/src/modules/project/components/ProjectDetailResourcePanel.tsx b/web/console/src/modules/project/components/ProjectDetailResourcePanel.tsx index 18239432a..4eb3bd074 100644 --- a/web/console/src/modules/project/components/ProjectDetailResourcePanel.tsx +++ b/web/console/src/modules/project/components/ProjectDetailResourcePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { K8SUNIT, valueLabels1000, valueLabels1024 } from '@helper/k8sUnitUtil'; diff --git a/web/console/src/modules/project/components/ProjectHeadPanel.tsx b/web/console/src/modules/project/components/ProjectHeadPanel.tsx index f4dba7065..c8e43f6fd 100644 --- a/web/console/src/modules/project/components/ProjectHeadPanel.tsx +++ b/web/console/src/modules/project/components/ProjectHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from './ProjectApp'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/project/components/ProjectTablePanel.tsx b/web/console/src/modules/project/components/ProjectTablePanel.tsx index a325b9c97..372f0f73f 100644 --- a/web/console/src/modules/project/components/ProjectTablePanel.tsx +++ b/web/console/src/modules/project/components/ProjectTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/project/components/SelectExistProjectDialog.tsx b/web/console/src/modules/project/components/SelectExistProjectDialog.tsx index f87a58f44..56da20f00 100644 --- a/web/console/src/modules/project/components/SelectExistProjectDialog.tsx +++ b/web/console/src/modules/project/components/SelectExistProjectDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/project/components/SubpageHeadPanel.tsx b/web/console/src/modules/project/components/SubpageHeadPanel.tsx index 36699b4cf..7bae754a5 100644 --- a/web/console/src/modules/project/components/SubpageHeadPanel.tsx +++ b/web/console/src/modules/project/components/SubpageHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/project/components/user/UserPanel.tsx b/web/console/src/modules/project/components/user/UserPanel.tsx index cbe1fad0c..3802b68ef 100644 --- a/web/console/src/modules/project/components/user/UserPanel.tsx +++ b/web/console/src/modules/project/components/user/UserPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/project/components/user/create/UserCreate.tsx b/web/console/src/modules/project/components/user/create/UserCreate.tsx index 4e9c36711..2d322a25f 100644 --- a/web/console/src/modules/project/components/user/create/UserCreate.tsx +++ b/web/console/src/modules/project/components/user/create/UserCreate.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/project/components/user/list/RoleModifyDialog.tsx b/web/console/src/modules/project/components/user/list/RoleModifyDialog.tsx index 2139bb395..782d262a1 100644 --- a/web/console/src/modules/project/components/user/list/RoleModifyDialog.tsx +++ b/web/console/src/modules/project/components/user/list/RoleModifyDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { Button, Modal, Form, Text, Radio, Transfer, Table, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/project/components/user/list/UserActionPanel.tsx b/web/console/src/modules/project/components/user/list/UserActionPanel.tsx index 302cf4c34..fbc774978 100644 --- a/web/console/src/modules/project/components/user/list/UserActionPanel.tsx +++ b/web/console/src/modules/project/components/user/list/UserActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/project/components/user/list/UserList.tsx b/web/console/src/modules/project/components/user/list/UserList.tsx index 880f189f8..4f959f6a0 100644 --- a/web/console/src/modules/project/components/user/list/UserList.tsx +++ b/web/console/src/modules/project/components/user/list/UserList.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/project/components/user/list/UserTablePanel.tsx b/web/console/src/modules/project/components/user/list/UserTablePanel.tsx index f4275059c..a384c1de9 100644 --- a/web/console/src/modules/project/components/user/list/UserTablePanel.tsx +++ b/web/console/src/modules/project/components/user/list/UserTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; diff --git a/web/console/src/modules/project/constants/ActionType.ts b/web/console/src/modules/project/constants/ActionType.ts index c0f08f211..4a03e8a40 100644 --- a/web/console/src/modules/project/constants/ActionType.ts +++ b/web/console/src/modules/project/constants/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 业务的相关操作 */ export const CreateProject = 'CreateProject'; export const EditProjectName = 'EditProjectName'; diff --git a/web/console/src/modules/project/constants/Config.ts b/web/console/src/modules/project/constants/Config.ts index 028187dd2..9f39565e1 100644 --- a/web/console/src/modules/project/constants/Config.ts +++ b/web/console/src/modules/project/constants/Config.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { uuid } from '@tencent/ff-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/project/constants/initState.ts b/web/console/src/modules/project/constants/initState.ts index af2896d3f..eba97c142 100644 --- a/web/console/src/modules/project/constants/initState.ts +++ b/web/console/src/modules/project/constants/initState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { initValidator } from '../../common/models'; import { uuid } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/project/index.tsx b/web/console/src/modules/project/index.tsx index 35749fbeb..4e36d84d5 100644 --- a/web/console/src/modules/project/index.tsx +++ b/web/console/src/modules/project/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { ProjectAppContainer } from './components/ProjectApp'; diff --git a/web/console/src/modules/project/models/Cluster.ts b/web/console/src/modules/project/models/Cluster.ts index d388c1d3f..6ee80e781 100644 --- a/web/console/src/modules/project/models/Cluster.ts +++ b/web/console/src/modules/project/models/Cluster.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Cluster extends Identifiable { diff --git a/web/console/src/modules/project/models/Manager.ts b/web/console/src/modules/project/models/Manager.ts index 28c3a9a26..dc9bbc7e5 100644 --- a/web/console/src/modules/project/models/Manager.ts +++ b/web/console/src/modules/project/models/Manager.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Manager extends Identifiable { diff --git a/web/console/src/modules/project/models/Namespace.ts b/web/console/src/modules/project/models/Namespace.ts index 9c41854be..a47e9e321 100644 --- a/web/console/src/modules/project/models/Namespace.ts +++ b/web/console/src/modules/project/models/Namespace.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/project/models/Policy.ts b/web/console/src/modules/project/models/Policy.ts index d5c15c72c..d772d076d 100644 --- a/web/console/src/modules/project/models/Policy.ts +++ b/web/console/src/modules/project/models/Policy.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/project/models/Project.ts b/web/console/src/modules/project/models/Project.ts index 82cdf0a88..8723d113f 100644 --- a/web/console/src/modules/project/models/Project.ts +++ b/web/console/src/modules/project/models/Project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/project/models/Region.ts b/web/console/src/modules/project/models/Region.ts index 460ba0f3d..390df0604 100644 --- a/web/console/src/modules/project/models/Region.ts +++ b/web/console/src/modules/project/models/Region.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Region extends Identifiable { diff --git a/web/console/src/modules/project/models/RootState.ts b/web/console/src/modules/project/models/RootState.ts index fd0128063..505623da9 100644 --- a/web/console/src/modules/project/models/RootState.ts +++ b/web/console/src/modules/project/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, FFListModel, OperationResult, RecordSet, WorkflowState } from '@tencent/ff-redux'; import { RouteState } from '../../../../helpers'; diff --git a/web/console/src/modules/project/models/Strategy.ts b/web/console/src/modules/project/models/Strategy.ts index 0b7fc4d3d..c09bdb379 100644 --- a/web/console/src/modules/project/models/Strategy.ts +++ b/web/console/src/modules/project/models/Strategy.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Strategy extends Identifiable { diff --git a/web/console/src/modules/project/models/User.ts b/web/console/src/modules/project/models/User.ts index 90e42d007..a17930548 100644 --- a/web/console/src/modules/project/models/User.ts +++ b/web/console/src/modules/project/models/User.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface User extends Identifiable { diff --git a/web/console/src/modules/project/models/index.ts b/web/console/src/modules/project/models/index.ts index 13dae16c1..911066ffb 100644 --- a/web/console/src/modules/project/models/index.ts +++ b/web/console/src/modules/project/models/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { RootState } from './RootState'; export { Project, ProjectFilter, ProjectEdition } from './Project'; export { Manager, ManagerFilter } from './Manager'; diff --git a/web/console/src/modules/project/reducers/RootReducer.ts b/web/console/src/modules/project/reducers/RootReducer.ts index f50c5afd4..86e06ccd2 100644 --- a/web/console/src/modules/project/reducers/RootReducer.ts +++ b/web/console/src/modules/project/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { diff --git a/web/console/src/modules/project/router.project.ts b/web/console/src/modules/project/router.project.ts index cf57a2a96..eeae0c778 100644 --- a/web/console/src/modules/project/router.project.ts +++ b/web/console/src/modules/project/router.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/project/router.ts b/web/console/src/modules/project/router.ts index c918740a3..2c8916bb4 100644 --- a/web/console/src/modules/project/router.ts +++ b/web/console/src/modules/project/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/project/stores/RootStore.ts b/web/console/src/modules/project/stores/RootStore.ts index 528dcd48c..83ff139b0 100644 --- a/web/console/src/modules/project/stores/RootStore.ts +++ b/web/console/src/modules/project/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/modules/registry/WebAPI.ts b/web/console/src/modules/registry/WebAPI.ts index fb9b4f1b7..2fd21ff6a 100644 --- a/web/console/src/modules/registry/WebAPI.ts +++ b/web/console/src/modules/registry/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { OperationResult, QueryState, RecordSet } from '@tencent/ff-redux'; import { @@ -709,7 +726,7 @@ export async function fetchChartList(query: QueryState) { } : {}; const resourceInfo: ResourceInfo = resourceConfig()['chart']; - const opts = { resourceInfo: resourceInfo }; + const opts = { resourceInfo: { ...resourceInfo, namespaces: undefined } }; // if (filter.namespace) { // opts['namespace'] = filter.namespace; // opts['isSpecialNamespace'] = true; diff --git a/web/console/src/modules/registry/actions/apiKeyActions.ts b/web/console/src/modules/registry/actions/apiKeyActions.ts index d8701aca1..d761b6fa2 100644 --- a/web/console/src/modules/registry/actions/apiKeyActions.ts +++ b/web/console/src/modules/registry/actions/apiKeyActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, generateWorkflowActionCreator, isSuccessWorkflow, OperationTrigger } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/registry/actions/app/createActions.ts b/web/console/src/modules/registry/actions/app/createActions.ts index eef714d53..2148d5a8c 100644 --- a/web/console/src/modules/registry/actions/app/createActions.ts +++ b/web/console/src/modules/registry/actions/app/createActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction, extend, diff --git a/web/console/src/modules/registry/actions/app/index.ts b/web/console/src/modules/registry/actions/app/index.ts index 18424a92c..44f5311d0 100644 --- a/web/console/src/modules/registry/actions/app/index.ts +++ b/web/console/src/modules/registry/actions/app/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createActions } from './createActions'; export const appActions = { diff --git a/web/console/src/modules/registry/actions/chart/detailActions.ts b/web/console/src/modules/registry/actions/chart/detailActions.ts index 474d68d05..a8aa94aa2 100644 --- a/web/console/src/modules/registry/actions/chart/detailActions.ts +++ b/web/console/src/modules/registry/actions/chart/detailActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction, extend, diff --git a/web/console/src/modules/registry/actions/chart/index.ts b/web/console/src/modules/registry/actions/chart/index.ts index 460d4a87c..aae416194 100644 --- a/web/console/src/modules/registry/actions/chart/index.ts +++ b/web/console/src/modules/registry/actions/chart/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; // import { createActions } from './createActions'; import { detailActions } from './detailActions'; diff --git a/web/console/src/modules/registry/actions/chart/listActions.ts b/web/console/src/modules/registry/actions/chart/listActions.ts index b811779ca..ed80c73de 100644 --- a/web/console/src/modules/registry/actions/chart/listActions.ts +++ b/web/console/src/modules/registry/actions/chart/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/registry/actions/chartActions.ts b/web/console/src/modules/registry/actions/chartActions.ts index 449676d3b..f44364beb 100644 --- a/web/console/src/modules/registry/actions/chartActions.ts +++ b/web/console/src/modules/registry/actions/chartActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { initValidator } from './../../common/models/Validation'; import { extend, diff --git a/web/console/src/modules/registry/actions/chartGroup/createActions.ts b/web/console/src/modules/registry/actions/chartGroup/createActions.ts index a9f4d7d6b..a49b5e8f7 100644 --- a/web/console/src/modules/registry/actions/chartGroup/createActions.ts +++ b/web/console/src/modules/registry/actions/chartGroup/createActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction, extend, generateWorkflowActionCreator, OperationTrigger, isSuccessWorkflow } from '@tencent/ff-redux'; import { ChartGroup, RootState } from '../../models/index'; diff --git a/web/console/src/modules/registry/actions/chartGroup/detailActions.ts b/web/console/src/modules/registry/actions/chartGroup/detailActions.ts index 28a947702..57160a648 100644 --- a/web/console/src/modules/registry/actions/chartGroup/detailActions.ts +++ b/web/console/src/modules/registry/actions/chartGroup/detailActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction, extend, diff --git a/web/console/src/modules/registry/actions/chartGroup/index.ts b/web/console/src/modules/registry/actions/chartGroup/index.ts index 17fe37269..7eb558f1f 100644 --- a/web/console/src/modules/registry/actions/chartGroup/index.ts +++ b/web/console/src/modules/registry/actions/chartGroup/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; import { createActions } from './createActions'; import { detailActions } from './detailActions'; diff --git a/web/console/src/modules/registry/actions/chartGroup/listActions.ts b/web/console/src/modules/registry/actions/chartGroup/listActions.ts index e027fb6a2..1ed512223 100644 --- a/web/console/src/modules/registry/actions/chartGroup/listActions.ts +++ b/web/console/src/modules/registry/actions/chartGroup/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/registry/actions/chartInsActions.ts b/web/console/src/modules/registry/actions/chartInsActions.ts index e66420909..f17bb8837 100644 --- a/web/console/src/modules/registry/actions/chartInsActions.ts +++ b/web/console/src/modules/registry/actions/chartInsActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, createFFListActions } from '@tencent/ff-redux'; import { RootState, ChartIns, ChartInsFilter } from '../models'; import * as ActionType from '../constants/ActionType'; diff --git a/web/console/src/modules/registry/actions/cluster/index.ts b/web/console/src/modules/registry/actions/cluster/index.ts index b7786fac0..d22d7590d 100644 --- a/web/console/src/modules/registry/actions/cluster/index.ts +++ b/web/console/src/modules/registry/actions/cluster/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; export const clusterActions = { diff --git a/web/console/src/modules/registry/actions/cluster/listActions.ts b/web/console/src/modules/registry/actions/cluster/listActions.ts index cdbb7c628..4de0a49ea 100644 --- a/web/console/src/modules/registry/actions/cluster/listActions.ts +++ b/web/console/src/modules/registry/actions/cluster/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/registry/actions/imageActions.ts b/web/console/src/modules/registry/actions/imageActions.ts index 71821a018..425c09bad 100644 --- a/web/console/src/modules/registry/actions/imageActions.ts +++ b/web/console/src/modules/registry/actions/imageActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, generateWorkflowActionCreator, isSuccessWorkflow, OperationTrigger } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/registry/actions/index.ts b/web/console/src/modules/registry/actions/index.ts index b21e193b6..7c7ae87a3 100644 --- a/web/console/src/modules/registry/actions/index.ts +++ b/web/console/src/modules/registry/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { apiKeyActions } from './apiKeyActions'; import { repoActions } from './repoActions'; import { imageActions } from './imageActions'; diff --git a/web/console/src/modules/registry/actions/namespace/index.ts b/web/console/src/modules/registry/actions/namespace/index.ts index 2032c5dfb..459589141 100644 --- a/web/console/src/modules/registry/actions/namespace/index.ts +++ b/web/console/src/modules/registry/actions/namespace/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; import { projectNamespaceListActions } from './projectNamespaceListActions'; diff --git a/web/console/src/modules/registry/actions/namespace/listActions.ts b/web/console/src/modules/registry/actions/namespace/listActions.ts index e4841db3e..1bbafe17c 100644 --- a/web/console/src/modules/registry/actions/namespace/listActions.ts +++ b/web/console/src/modules/registry/actions/namespace/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/registry/actions/namespace/projectNamespaceListActions.ts b/web/console/src/modules/registry/actions/namespace/projectNamespaceListActions.ts index 5e947b529..1f53851c3 100644 --- a/web/console/src/modules/registry/actions/namespace/projectNamespaceListActions.ts +++ b/web/console/src/modules/registry/actions/namespace/projectNamespaceListActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/registry/actions/project/index.ts b/web/console/src/modules/registry/actions/project/index.ts index e0a240d9c..c82b305f5 100644 --- a/web/console/src/modules/registry/actions/project/index.ts +++ b/web/console/src/modules/registry/actions/project/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; export const projectActions = { diff --git a/web/console/src/modules/registry/actions/project/listActions.ts b/web/console/src/modules/registry/actions/project/listActions.ts index f0b74cfc2..69fd9b6bb 100644 --- a/web/console/src/modules/registry/actions/project/listActions.ts +++ b/web/console/src/modules/registry/actions/project/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, createFFListActions } from '@tencent/ff-redux'; import { RootState, Project, ChartInfoFilter, ProjectFilter } from '../../models'; import * as ActionTypes from '../../constants/ActionType'; diff --git a/web/console/src/modules/registry/actions/repoActions.ts b/web/console/src/modules/registry/actions/repoActions.ts index 158e82e7d..a1c639622 100644 --- a/web/console/src/modules/registry/actions/repoActions.ts +++ b/web/console/src/modules/registry/actions/repoActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, generateWorkflowActionCreator, isSuccessWorkflow, OperationTrigger } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/registry/actions/user/associateActions.ts b/web/console/src/modules/registry/actions/user/associateActions.ts index 111e87489..7c10986c0 100644 --- a/web/console/src/modules/registry/actions/user/associateActions.ts +++ b/web/console/src/modules/registry/actions/user/associateActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, diff --git a/web/console/src/modules/registry/actions/user/detailActions.ts b/web/console/src/modules/registry/actions/user/detailActions.ts index 9a87671f8..4cd883f20 100644 --- a/web/console/src/modules/registry/actions/user/detailActions.ts +++ b/web/console/src/modules/registry/actions/user/detailActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend } from '@tencent/ff-redux'; import { RootState, UserInfo } from '../../models'; import * as ActionTypes from '../../constants/ActionType'; diff --git a/web/console/src/modules/registry/actions/user/index.ts b/web/console/src/modules/registry/actions/user/index.ts index a12e5a871..056fe6e99 100644 --- a/web/console/src/modules/registry/actions/user/index.ts +++ b/web/console/src/modules/registry/actions/user/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { detailActions } from './detailActions'; import { associateActions } from './associateActions'; diff --git a/web/console/src/modules/registry/components/AppCenter.tsx b/web/console/src/modules/registry/components/AppCenter.tsx index ea4994f1a..85906203e 100644 --- a/web/console/src/modules/registry/components/AppCenter.tsx +++ b/web/console/src/modules/registry/components/AppCenter.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/registry/components/ChartUsageGuideDialog.tsx b/web/console/src/modules/registry/components/ChartUsageGuideDialog.tsx index b6e0a263c..252834d79 100644 --- a/web/console/src/modules/registry/components/ChartUsageGuideDialog.tsx +++ b/web/console/src/modules/registry/components/ChartUsageGuideDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/registry/components/RegistryApp.tsx b/web/console/src/modules/registry/components/RegistryApp.tsx index 9f51a8675..f370e0b15 100644 --- a/web/console/src/modules/registry/components/RegistryApp.tsx +++ b/web/console/src/modules/registry/components/RegistryApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/registry/components/apikey/ApiKeyActionPanel.tsx b/web/console/src/modules/registry/components/apikey/ApiKeyActionPanel.tsx index d8b4b0c58..d39ec436c 100644 --- a/web/console/src/modules/registry/components/apikey/ApiKeyActionPanel.tsx +++ b/web/console/src/modules/registry/components/apikey/ApiKeyActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/registry/components/apikey/ApiKeyContainer.tsx b/web/console/src/modules/registry/components/apikey/ApiKeyContainer.tsx index 13dd997c7..c055821e7 100644 --- a/web/console/src/modules/registry/components/apikey/ApiKeyContainer.tsx +++ b/web/console/src/modules/registry/components/apikey/ApiKeyContainer.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/registry/components/apikey/ApiKeyTablePanel.tsx b/web/console/src/modules/registry/components/apikey/ApiKeyTablePanel.tsx index bb0c0e775..5d403469e 100644 --- a/web/console/src/modules/registry/components/apikey/ApiKeyTablePanel.tsx +++ b/web/console/src/modules/registry/components/apikey/ApiKeyTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/registry/components/apikey/CreateApiKeyPanel.tsx b/web/console/src/modules/registry/components/apikey/CreateApiKeyPanel.tsx index b5f66ed12..a2705c6e5 100644 --- a/web/console/src/modules/registry/components/apikey/CreateApiKeyPanel.tsx +++ b/web/console/src/modules/registry/components/apikey/CreateApiKeyPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FormPanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/registry/components/chart/ChartApp.tsx b/web/console/src/modules/registry/components/chart/ChartApp.tsx index 80628d7e5..809060d99 100644 --- a/web/console/src/modules/registry/components/chart/ChartApp.tsx +++ b/web/console/src/modules/registry/components/chart/ChartApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/registry/components/chart/ChartContainer.tsx b/web/console/src/modules/registry/components/chart/ChartContainer.tsx index 4d284d7c3..a94e46796 100644 --- a/web/console/src/modules/registry/components/chart/ChartContainer.tsx +++ b/web/console/src/modules/registry/components/chart/ChartContainer.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/registry/components/chart/ChartDetailPanel.tsx b/web/console/src/modules/registry/components/chart/ChartDetailPanel.tsx index d3aa94f99..7aef73a4c 100644 --- a/web/console/src/modules/registry/components/chart/ChartDetailPanel.tsx +++ b/web/console/src/modules/registry/components/chart/ChartDetailPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/registry/components/chart/ChartGroupTablePanel.tsx b/web/console/src/modules/registry/components/chart/ChartGroupTablePanel.tsx index 7f41283d5..4212214b4 100644 --- a/web/console/src/modules/registry/components/chart/ChartGroupTablePanel.tsx +++ b/web/console/src/modules/registry/components/chart/ChartGroupTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/registry/components/chart/ChartTablePanel.tsx b/web/console/src/modules/registry/components/chart/ChartTablePanel.tsx index c6a054156..f16d8ad75 100644 --- a/web/console/src/modules/registry/components/chart/ChartTablePanel.tsx +++ b/web/console/src/modules/registry/components/chart/ChartTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/registry/components/chart/CreateChartPanel.tsx b/web/console/src/modules/registry/components/chart/CreateChartPanel.tsx index 8bae92cbb..fe2c460e4 100644 --- a/web/console/src/modules/registry/components/chart/CreateChartPanel.tsx +++ b/web/console/src/modules/registry/components/chart/CreateChartPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { OperationState } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/registry/components/chart/detail/BasicInfoPanel.tsx b/web/console/src/modules/registry/components/chart/detail/BasicInfoPanel.tsx index 48505125f..c0f87ec11 100644 --- a/web/console/src/modules/registry/components/chart/detail/BasicInfoPanel.tsx +++ b/web/console/src/modules/registry/components/chart/detail/BasicInfoPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../ChartApp'; diff --git a/web/console/src/modules/registry/components/chart/detail/ChartDetail.tsx b/web/console/src/modules/registry/components/chart/detail/ChartDetail.tsx index 29501e839..05666a0d8 100644 --- a/web/console/src/modules/registry/components/chart/detail/ChartDetail.tsx +++ b/web/console/src/modules/registry/components/chart/detail/ChartDetail.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/registry/components/chart/detail/DeployPanel.tsx b/web/console/src/modules/registry/components/chart/detail/DeployPanel.tsx index befe316c3..5d26b5812 100644 --- a/web/console/src/modules/registry/components/chart/detail/DeployPanel.tsx +++ b/web/console/src/modules/registry/components/chart/detail/DeployPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as JsYAML from 'js-yaml'; import { connect } from 'react-redux'; diff --git a/web/console/src/modules/registry/components/chart/detail/FileTreePanel.tsx b/web/console/src/modules/registry/components/chart/detail/FileTreePanel.tsx index 36b363b6d..20b705140 100644 --- a/web/console/src/modules/registry/components/chart/detail/FileTreePanel.tsx +++ b/web/console/src/modules/registry/components/chart/detail/FileTreePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../ChartApp'; diff --git a/web/console/src/modules/registry/components/chart/detail/HeaderPanel.tsx b/web/console/src/modules/registry/components/chart/detail/HeaderPanel.tsx index 260f26306..c57a65a7c 100644 --- a/web/console/src/modules/registry/components/chart/detail/HeaderPanel.tsx +++ b/web/console/src/modules/registry/components/chart/detail/HeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../ChartApp'; diff --git a/web/console/src/modules/registry/components/chart/detail/NamespacePanel.project.tsx b/web/console/src/modules/registry/components/chart/detail/NamespacePanel.project.tsx index 932d6db52..19c27a2eb 100644 --- a/web/console/src/modules/registry/components/chart/detail/NamespacePanel.project.tsx +++ b/web/console/src/modules/registry/components/chart/detail/NamespacePanel.project.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/registry/components/chart/detail/NamespacePanel.tsx b/web/console/src/modules/registry/components/chart/detail/NamespacePanel.tsx index ed0c06ee0..17f2f4093 100644 --- a/web/console/src/modules/registry/components/chart/detail/NamespacePanel.tsx +++ b/web/console/src/modules/registry/components/chart/detail/NamespacePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/registry/components/chart/detail/VersionTablePanel.tsx b/web/console/src/modules/registry/components/chart/detail/VersionTablePanel.tsx index b775e081c..6ecf2b07b 100644 --- a/web/console/src/modules/registry/components/chart/detail/VersionTablePanel.tsx +++ b/web/console/src/modules/registry/components/chart/detail/VersionTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { LinkButton, emptyTips } from '../../../../common/components'; diff --git a/web/console/src/modules/registry/components/chart/list/ActionPanel.tsx b/web/console/src/modules/registry/components/chart/list/ActionPanel.tsx index c312bd781..c5fbae5e3 100644 --- a/web/console/src/modules/registry/components/chart/list/ActionPanel.tsx +++ b/web/console/src/modules/registry/components/chart/list/ActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox, Segment, Select } from '@tea/component'; diff --git a/web/console/src/modules/registry/components/chart/list/ChartList.tsx b/web/console/src/modules/registry/components/chart/list/ChartList.tsx index 1d36480f2..27c68a5a7 100644 --- a/web/console/src/modules/registry/components/chart/list/ChartList.tsx +++ b/web/console/src/modules/registry/components/chart/list/ChartList.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/registry/components/chart/list/HeaderPanel.tsx b/web/console/src/modules/registry/components/chart/list/HeaderPanel.tsx index a2bced807..1e63725a1 100644 --- a/web/console/src/modules/registry/components/chart/list/HeaderPanel.tsx +++ b/web/console/src/modules/registry/components/chart/list/HeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon } from '@tea/component'; diff --git a/web/console/src/modules/registry/components/chart/list/TablePanel.tsx b/web/console/src/modules/registry/components/chart/list/TablePanel.tsx index 184599653..5ed84dd7f 100644 --- a/web/console/src/modules/registry/components/chart/list/TablePanel.tsx +++ b/web/console/src/modules/registry/components/chart/list/TablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { TablePanel as CTablePanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/registry/components/chartgroup/ChartGroupApp.tsx b/web/console/src/modules/registry/components/chartgroup/ChartGroupApp.tsx index 71ddc752f..7aeddfe23 100644 --- a/web/console/src/modules/registry/components/chartgroup/ChartGroupApp.tsx +++ b/web/console/src/modules/registry/components/chartgroup/ChartGroupApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/registry/components/chartgroup/associate/UserAssociatePanel.tsx b/web/console/src/modules/registry/components/chartgroup/associate/UserAssociatePanel.tsx index 970e28232..cc4e74039 100644 --- a/web/console/src/modules/registry/components/chartgroup/associate/UserAssociatePanel.tsx +++ b/web/console/src/modules/registry/components/chartgroup/associate/UserAssociatePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../ChartGroupApp'; diff --git a/web/console/src/modules/registry/components/chartgroup/create/BaseInfoPanel.tsx b/web/console/src/modules/registry/components/chartgroup/create/BaseInfoPanel.tsx index 4150b2bee..fda76b256 100644 --- a/web/console/src/modules/registry/components/chartgroup/create/BaseInfoPanel.tsx +++ b/web/console/src/modules/registry/components/chartgroup/create/BaseInfoPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/registry/components/chartgroup/create/ChartGroupCreate.tsx b/web/console/src/modules/registry/components/chartgroup/create/ChartGroupCreate.tsx index 7ad590b5c..e620fc9c6 100644 --- a/web/console/src/modules/registry/components/chartgroup/create/ChartGroupCreate.tsx +++ b/web/console/src/modules/registry/components/chartgroup/create/ChartGroupCreate.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/registry/components/chartgroup/create/HeaderPanel.tsx b/web/console/src/modules/registry/components/chartgroup/create/HeaderPanel.tsx index 06cbe531a..ce244ffb5 100644 --- a/web/console/src/modules/registry/components/chartgroup/create/HeaderPanel.tsx +++ b/web/console/src/modules/registry/components/chartgroup/create/HeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from '../ChartGroupApp'; import { Justify, Icon } from '@tencent/tea-component'; diff --git a/web/console/src/modules/registry/components/chartgroup/detail/BaseInfoPanel.tsx b/web/console/src/modules/registry/components/chartgroup/detail/BaseInfoPanel.tsx index dfeca5bcb..d636524a2 100644 --- a/web/console/src/modules/registry/components/chartgroup/detail/BaseInfoPanel.tsx +++ b/web/console/src/modules/registry/components/chartgroup/detail/BaseInfoPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../ChartGroupApp'; diff --git a/web/console/src/modules/registry/components/chartgroup/detail/ChartGroupDetail.tsx b/web/console/src/modules/registry/components/chartgroup/detail/ChartGroupDetail.tsx index 274eb6ddb..89fcbb10e 100644 --- a/web/console/src/modules/registry/components/chartgroup/detail/ChartGroupDetail.tsx +++ b/web/console/src/modules/registry/components/chartgroup/detail/ChartGroupDetail.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/registry/components/chartgroup/detail/HeaderPanel.tsx b/web/console/src/modules/registry/components/chartgroup/detail/HeaderPanel.tsx index ff17ac07c..29b0ada27 100644 --- a/web/console/src/modules/registry/components/chartgroup/detail/HeaderPanel.tsx +++ b/web/console/src/modules/registry/components/chartgroup/detail/HeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../ChartGroupApp'; diff --git a/web/console/src/modules/registry/components/chartgroup/list/ActionPanel.tsx b/web/console/src/modules/registry/components/chartgroup/list/ActionPanel.tsx index 79ce4678b..83888aa27 100644 --- a/web/console/src/modules/registry/components/chartgroup/list/ActionPanel.tsx +++ b/web/console/src/modules/registry/components/chartgroup/list/ActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/registry/components/chartgroup/list/ChartGroupList.tsx b/web/console/src/modules/registry/components/chartgroup/list/ChartGroupList.tsx index 88cc5114d..072383e98 100644 --- a/web/console/src/modules/registry/components/chartgroup/list/ChartGroupList.tsx +++ b/web/console/src/modules/registry/components/chartgroup/list/ChartGroupList.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/registry/components/chartgroup/list/HeaderPanel.tsx b/web/console/src/modules/registry/components/chartgroup/list/HeaderPanel.tsx index ed0299407..caf6c59ab 100644 --- a/web/console/src/modules/registry/components/chartgroup/list/HeaderPanel.tsx +++ b/web/console/src/modules/registry/components/chartgroup/list/HeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon } from '@tea/component'; diff --git a/web/console/src/modules/registry/components/chartgroup/list/TablePanel.tsx b/web/console/src/modules/registry/components/chartgroup/list/TablePanel.tsx index 4560fa66f..7007d27e2 100644 --- a/web/console/src/modules/registry/components/chartgroup/list/TablePanel.tsx +++ b/web/console/src/modules/registry/components/chartgroup/list/TablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { TablePanel as CTablePanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/registry/components/repo/CreateImagePanel.tsx b/web/console/src/modules/registry/components/repo/CreateImagePanel.tsx index 61e9811f4..f9c412fc1 100644 --- a/web/console/src/modules/registry/components/repo/CreateImagePanel.tsx +++ b/web/console/src/modules/registry/components/repo/CreateImagePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FormPanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/registry/components/repo/CreateRepoPanel.tsx b/web/console/src/modules/registry/components/repo/CreateRepoPanel.tsx index 7ab2a2d5d..534f61fdf 100644 --- a/web/console/src/modules/registry/components/repo/CreateRepoPanel.tsx +++ b/web/console/src/modules/registry/components/repo/CreateRepoPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FormPanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/registry/components/repo/ImageTablePanel.tsx b/web/console/src/modules/registry/components/repo/ImageTablePanel.tsx index 381092f7c..874daabd4 100644 --- a/web/console/src/modules/registry/components/repo/ImageTablePanel.tsx +++ b/web/console/src/modules/registry/components/repo/ImageTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/registry/components/repo/RepoContainer.tsx b/web/console/src/modules/registry/components/repo/RepoContainer.tsx index cf9b4b08c..c55f1bddf 100644 --- a/web/console/src/modules/registry/components/repo/RepoContainer.tsx +++ b/web/console/src/modules/registry/components/repo/RepoContainer.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/registry/components/repo/RepoDetailPanel.tsx b/web/console/src/modules/registry/components/repo/RepoDetailPanel.tsx index 378ccddec..f32f41bdb 100644 --- a/web/console/src/modules/registry/components/repo/RepoDetailPanel.tsx +++ b/web/console/src/modules/registry/components/repo/RepoDetailPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/registry/components/repo/RepoTablePanel.tsx b/web/console/src/modules/registry/components/repo/RepoTablePanel.tsx index 79f45cc78..c62f8aa2c 100644 --- a/web/console/src/modules/registry/components/repo/RepoTablePanel.tsx +++ b/web/console/src/modules/registry/components/repo/RepoTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/registry/constants/ActionType.ts b/web/console/src/modules/registry/constants/ActionType.ts index 7ae6f0306..9064d3adc 100644 --- a/web/console/src/modules/registry/constants/ActionType.ts +++ b/web/console/src/modules/registry/constants/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** ----- 访问凭证相关 ----- */ export const CreateApiKey = 'CreateApiKey'; export const C_ApiKeyDescription = 'C_ApiKeyDescription'; diff --git a/web/console/src/modules/registry/constants/AppValidateConfig.ts b/web/console/src/modules/registry/constants/AppValidateConfig.ts index 6eed4811b..39491d0bb 100644 --- a/web/console/src/modules/registry/constants/AppValidateConfig.ts +++ b/web/console/src/modules/registry/constants/AppValidateConfig.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ModelTypeEnum, RuleTypeEnum, ValidateSchema, ValidatorStatusEnum } from '@tencent/ff-validator'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/registry/constants/ChartGroupValidateConfig.ts b/web/console/src/modules/registry/constants/ChartGroupValidateConfig.ts index f5c2f41d4..93b4a987e 100644 --- a/web/console/src/modules/registry/constants/ChartGroupValidateConfig.ts +++ b/web/console/src/modules/registry/constants/ChartGroupValidateConfig.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ModelTypeEnum, RuleTypeEnum, ValidateSchema, ValidatorStatusEnum } from '@tencent/ff-validator'; import { Validation } from '../../common/models'; import { UserInfo } from '../models'; diff --git a/web/console/src/modules/registry/constants/ChartValidateConfig.ts b/web/console/src/modules/registry/constants/ChartValidateConfig.ts index db64d3fb1..0a12e5a37 100644 --- a/web/console/src/modules/registry/constants/ChartValidateConfig.ts +++ b/web/console/src/modules/registry/constants/ChartValidateConfig.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ModelTypeEnum, RuleTypeEnum, ValidateSchema, ValidatorStatusEnum } from '@tencent/ff-validator'; import { Validation } from '../../common/models'; import { UserInfo } from '../models'; diff --git a/web/console/src/modules/registry/constants/Config.ts b/web/console/src/modules/registry/constants/Config.ts index 1a145c1d8..302802f0e 100644 --- a/web/console/src/modules/registry/constants/Config.ts +++ b/web/console/src/modules/registry/constants/Config.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { initValidator } from '../../common/models/Validation'; export const REPO_URL = '/apis/registry.tkestack.io/v1/namespaces/'; diff --git a/web/console/src/modules/registry/constants/initState.ts b/web/console/src/modules/registry/constants/initState.ts index 3c90832e7..f1e12d084 100644 --- a/web/console/src/modules/registry/constants/initState.ts +++ b/web/console/src/modules/registry/constants/initState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { uuid } from '@tencent/ff-redux'; export const initChartGroupCreationState = { diff --git a/web/console/src/modules/registry/index.tsx b/web/console/src/modules/registry/index.tsx index 2eef497ee..b6d32234a 100644 --- a/web/console/src/modules/registry/index.tsx +++ b/web/console/src/modules/registry/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RegistryAppContainer } from './components/RegistryApp'; diff --git a/web/console/src/modules/registry/models/ApiKey.ts b/web/console/src/modules/registry/models/ApiKey.ts index ae936d94f..d919c3176 100644 --- a/web/console/src/modules/registry/models/ApiKey.ts +++ b/web/console/src/modules/registry/models/ApiKey.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/registry/models/App.ts b/web/console/src/modules/registry/models/App.ts index ead794f7f..179d4f8d4 100644 --- a/web/console/src/modules/registry/models/App.ts +++ b/web/console/src/modules/registry/models/App.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/registry/models/Chart.ts b/web/console/src/modules/registry/models/Chart.ts index 1397cc211..46503da5f 100644 --- a/web/console/src/modules/registry/models/Chart.ts +++ b/web/console/src/modules/registry/models/Chart.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/registry/models/ChartGroup.ts b/web/console/src/modules/registry/models/ChartGroup.ts index 908565baa..1d2a5f500 100644 --- a/web/console/src/modules/registry/models/ChartGroup.ts +++ b/web/console/src/modules/registry/models/ChartGroup.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface ChartGroup extends Identifiable { diff --git a/web/console/src/modules/registry/models/Cluster.ts b/web/console/src/modules/registry/models/Cluster.ts index 85ff35e1a..abba191d9 100644 --- a/web/console/src/modules/registry/models/Cluster.ts +++ b/web/console/src/modules/registry/models/Cluster.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; import { ChartInfoFilter } from './Chart'; diff --git a/web/console/src/modules/registry/models/CommonUser.ts b/web/console/src/modules/registry/models/CommonUser.ts index a0636aebc..3897e3994 100644 --- a/web/console/src/modules/registry/models/CommonUser.ts +++ b/web/console/src/modules/registry/models/CommonUser.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; /** 原有User在localidentities和user概念之间混用了,anyway,用于关联角色等 */ diff --git a/web/console/src/modules/registry/models/Image.ts b/web/console/src/modules/registry/models/Image.ts index 34a00a042..465a4d94e 100644 --- a/web/console/src/modules/registry/models/Image.ts +++ b/web/console/src/modules/registry/models/Image.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/registry/models/Namespace.ts b/web/console/src/modules/registry/models/Namespace.ts index 4e2e4a5a8..9bfae0215 100644 --- a/web/console/src/modules/registry/models/Namespace.ts +++ b/web/console/src/modules/registry/models/Namespace.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; import { ChartInfoFilter } from './Chart'; diff --git a/web/console/src/modules/registry/models/Project.ts b/web/console/src/modules/registry/models/Project.ts index 239c380cf..8fc096439 100644 --- a/web/console/src/modules/registry/models/Project.ts +++ b/web/console/src/modules/registry/models/Project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { ChartInfoFilter } from './Chart'; diff --git a/web/console/src/modules/registry/models/Repo.ts b/web/console/src/modules/registry/models/Repo.ts index 5f250d8db..628f954c4 100644 --- a/web/console/src/modules/registry/models/Repo.ts +++ b/web/console/src/modules/registry/models/Repo.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/registry/models/RootState.ts b/web/console/src/modules/registry/models/RootState.ts index f6f935f43..4f39afd15 100644 --- a/web/console/src/modules/registry/models/RootState.ts +++ b/web/console/src/modules/registry/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { WorkflowState, FetcherState, FFListModel, FFObjectModel } from '@tencent/ff-redux'; import { ApiKey, ApiKeyFilter, ApiKeyCreation } from './ApiKey'; import { Repo, RepoFilter, RepoCreation } from './Repo'; diff --git a/web/console/src/modules/registry/models/UserInfo.ts b/web/console/src/modules/registry/models/UserInfo.ts index 10b1ae6e7..2d73428d3 100644 --- a/web/console/src/modules/registry/models/UserInfo.ts +++ b/web/console/src/modules/registry/models/UserInfo.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface UserInfo extends Identifiable { diff --git a/web/console/src/modules/registry/models/index.ts b/web/console/src/modules/registry/models/index.ts index 70e42a77a..68c688980 100644 --- a/web/console/src/modules/registry/models/index.ts +++ b/web/console/src/modules/registry/models/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { ApiKey, ApiKeyFilter, ApiKeyCreation } from './ApiKey'; export { Repo, RepoFilter, RepoCreation } from './Repo'; export * from './Chart'; diff --git a/web/console/src/modules/registry/reducers/RootReducer.ts b/web/console/src/modules/registry/reducers/RootReducer.ts index 3b1d4a2cf..19ce58c07 100644 --- a/web/console/src/modules/registry/reducers/RootReducer.ts +++ b/web/console/src/modules/registry/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { diff --git a/web/console/src/modules/registry/router.project.ts b/web/console/src/modules/registry/router.project.ts index 693bf9639..734b7d23a 100644 --- a/web/console/src/modules/registry/router.project.ts +++ b/web/console/src/modules/registry/router.project.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/registry/router.ts b/web/console/src/modules/registry/router.ts index ba87ed961..4bdc841e4 100644 --- a/web/console/src/modules/registry/router.ts +++ b/web/console/src/modules/registry/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/registry/stores/RootStore.ts b/web/console/src/modules/registry/stores/RootStore.ts index 528dcd48c..83ff139b0 100644 --- a/web/console/src/modules/registry/stores/RootStore.ts +++ b/web/console/src/modules/registry/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/modules/uam/WebAPI.ts b/web/console/src/modules/uam/WebAPI.ts index ca10bd238..4ae54733e 100644 --- a/web/console/src/modules/uam/WebAPI.ts +++ b/web/console/src/modules/uam/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { QueryState, RecordSet } from '@tencent/ff-redux'; import { Method, diff --git a/web/console/src/modules/uam/actions/associatedActions.ts b/web/console/src/modules/uam/actions/associatedActions.ts index 08ea08e25..e2b75ed1f 100644 --- a/web/console/src/modules/uam/actions/associatedActions.ts +++ b/web/console/src/modules/uam/actions/associatedActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, generateWorkflowActionCreator, OperationTrigger } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/uam/actions/group/associateActions.ts b/web/console/src/modules/uam/actions/group/associateActions.ts index 3e09186b7..0254d07c6 100644 --- a/web/console/src/modules/uam/actions/group/associateActions.ts +++ b/web/console/src/modules/uam/actions/group/associateActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, createFFListActions, isSuccessWorkflow, generateWorkflowActionCreator, OperationTrigger } from '@tencent/ff-redux'; import { RootState, GroupAssociation, GroupPlain, GroupFilter } from '../../models'; import * as ActionTypes from '../../constants/ActionTypes'; diff --git a/web/console/src/modules/uam/actions/group/createActions.ts b/web/console/src/modules/uam/actions/group/createActions.ts index 484acffdd..34e254d19 100644 --- a/web/console/src/modules/uam/actions/group/createActions.ts +++ b/web/console/src/modules/uam/actions/group/createActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction, extend, generateWorkflowActionCreator, OperationTrigger, isSuccessWorkflow } from '@tencent/ff-redux'; import { Group, RootState } from '../../models/index'; diff --git a/web/console/src/modules/uam/actions/group/detailActions.ts b/web/console/src/modules/uam/actions/group/detailActions.ts index 79fff5aed..15ac871c3 100644 --- a/web/console/src/modules/uam/actions/group/detailActions.ts +++ b/web/console/src/modules/uam/actions/group/detailActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction, extend, generateWorkflowActionCreator, OperationTrigger, isSuccessWorkflow } from '@tencent/ff-redux'; import { RootState, GroupInfoFilter, GroupEditor, Group } from '../../models'; import * as ActionTypes from '../../constants/ActionTypes'; diff --git a/web/console/src/modules/uam/actions/group/index.ts b/web/console/src/modules/uam/actions/group/index.ts index 7dedc3298..e69daf7b8 100644 --- a/web/console/src/modules/uam/actions/group/index.ts +++ b/web/console/src/modules/uam/actions/group/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; import { createActions } from './createActions'; import { detailActions } from './detailActions'; diff --git a/web/console/src/modules/uam/actions/group/listActions.ts b/web/console/src/modules/uam/actions/group/listActions.ts index ed760ab4b..debb0af90 100644 --- a/web/console/src/modules/uam/actions/group/listActions.ts +++ b/web/console/src/modules/uam/actions/group/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, OperationResult, OperationTrigger, createFFListActions } from '@tencent/ff-redux'; import { RootState, Group, GroupFilter } from '../../models'; import * as ActionTypes from '../../constants/ActionTypes'; diff --git a/web/console/src/modules/uam/actions/index.ts b/web/console/src/modules/uam/actions/index.ts index 7e658291e..52aa854bf 100644 --- a/web/console/src/modules/uam/actions/index.ts +++ b/web/console/src/modules/uam/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { userActions } from './userActions'; import { strategyActions } from './strategyActions'; import { associateActions } from './associatedActions'; diff --git a/web/console/src/modules/uam/actions/policy/associateActions.ts b/web/console/src/modules/uam/actions/policy/associateActions.ts index 4bf4be5a6..c163044f6 100644 --- a/web/console/src/modules/uam/actions/policy/associateActions.ts +++ b/web/console/src/modules/uam/actions/policy/associateActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, OperationTrigger, isSuccessWorkflow, createFFListActions } from '@tencent/ff-redux'; import { RootState, PolicyAssociation, PolicyPlain, PolicyFilter } from '../../models'; import * as ActionTypes from '../../constants/ActionTypes'; diff --git a/web/console/src/modules/uam/actions/policy/detailActions.ts b/web/console/src/modules/uam/actions/policy/detailActions.ts index ede25779d..dc8ec7930 100644 --- a/web/console/src/modules/uam/actions/policy/detailActions.ts +++ b/web/console/src/modules/uam/actions/policy/detailActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction, extend } from '@tencent/ff-redux'; import { RootState, PolicyInfoFilter, PolicyEditor, Policy } from '../../models'; import * as ActionTypes from '../../constants/ActionTypes'; diff --git a/web/console/src/modules/uam/actions/policy/index.ts b/web/console/src/modules/uam/actions/policy/index.ts index 55fa159fc..ac81b5bb4 100644 --- a/web/console/src/modules/uam/actions/policy/index.ts +++ b/web/console/src/modules/uam/actions/policy/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; import { associateActions } from './associateActions'; import { detailActions } from './detailActions'; diff --git a/web/console/src/modules/uam/actions/policy/listActions.ts b/web/console/src/modules/uam/actions/policy/listActions.ts index 38f79615c..b106293a6 100644 --- a/web/console/src/modules/uam/actions/policy/listActions.ts +++ b/web/console/src/modules/uam/actions/policy/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend } from '@tencent/ff-redux'; import { RootState, Policy, PolicyFilter } from '../../models'; import * as ActionTypes from '../../constants/ActionTypes'; diff --git a/web/console/src/modules/uam/actions/role/associateActions.ts b/web/console/src/modules/uam/actions/role/associateActions.ts index e8fb2e9e6..d45a256a9 100644 --- a/web/console/src/modules/uam/actions/role/associateActions.ts +++ b/web/console/src/modules/uam/actions/role/associateActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, OperationTrigger, isSuccessWorkflow, createFFListActions } from '@tencent/ff-redux'; import { RootState, RoleAssociation, RolePlain, RoleFilter } from '../../models'; import * as ActionTypes from '../../constants/ActionTypes'; diff --git a/web/console/src/modules/uam/actions/role/createActions.ts b/web/console/src/modules/uam/actions/role/createActions.ts index 6ea56394a..f99176f80 100644 --- a/web/console/src/modules/uam/actions/role/createActions.ts +++ b/web/console/src/modules/uam/actions/role/createActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction, extend, generateWorkflowActionCreator, OperationTrigger, isSuccessWorkflow } from '@tencent/ff-redux'; import { Role, RootState } from '../../models/index'; diff --git a/web/console/src/modules/uam/actions/role/detailActions.ts b/web/console/src/modules/uam/actions/role/detailActions.ts index 3d2eb05e3..4a2ff88ae 100644 --- a/web/console/src/modules/uam/actions/role/detailActions.ts +++ b/web/console/src/modules/uam/actions/role/detailActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction, extend, generateWorkflowActionCreator, OperationTrigger, isSuccessWorkflow } from '@tencent/ff-redux'; import { RootState, RoleInfoFilter, RoleEditor, Role } from '../../models'; import * as ActionTypes from '../../constants/ActionTypes'; diff --git a/web/console/src/modules/uam/actions/role/index.ts b/web/console/src/modules/uam/actions/role/index.ts index 59cec1c1d..a49c03616 100644 --- a/web/console/src/modules/uam/actions/role/index.ts +++ b/web/console/src/modules/uam/actions/role/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; import { createActions } from './createActions'; import { detailActions } from './detailActions'; diff --git a/web/console/src/modules/uam/actions/role/listActions.ts b/web/console/src/modules/uam/actions/role/listActions.ts index 7e1d19c90..8e7411813 100644 --- a/web/console/src/modules/uam/actions/role/listActions.ts +++ b/web/console/src/modules/uam/actions/role/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, OperationResult, OperationTrigger, createFFListActions } from '@tencent/ff-redux'; import { RootState, Role, RoleFilter } from '../../models'; import * as ActionTypes from '../../constants/ActionTypes'; diff --git a/web/console/src/modules/uam/actions/strategyActions.ts b/web/console/src/modules/uam/actions/strategyActions.ts index 12db4ddc5..67b3bd1f2 100644 --- a/web/console/src/modules/uam/actions/strategyActions.ts +++ b/web/console/src/modules/uam/actions/strategyActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createFFListActions, extend, FetchOptions, generateFetcherActionCreator, generateWorkflowActionCreator, OperationTrigger diff --git a/web/console/src/modules/uam/actions/user/associateActions.ts b/web/console/src/modules/uam/actions/user/associateActions.ts index 16f329a7e..f1fe0b282 100644 --- a/web/console/src/modules/uam/actions/user/associateActions.ts +++ b/web/console/src/modules/uam/actions/user/associateActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, generateWorkflowActionCreator, OperationTrigger, isSuccessWorkflow, createFFListActions } from '@tencent/ff-redux'; import { RootState, CommonUserAssociation, UserPlain, CommonUserFilter } from '../../models'; import * as ActionTypes from '../../constants/ActionTypes'; diff --git a/web/console/src/modules/uam/actions/user/index.ts b/web/console/src/modules/uam/actions/user/index.ts index 249a120f8..84500512b 100644 --- a/web/console/src/modules/uam/actions/user/index.ts +++ b/web/console/src/modules/uam/actions/user/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { listActions } from './listActions'; import { associateActions } from './associateActions'; diff --git a/web/console/src/modules/uam/actions/user/listActions.ts b/web/console/src/modules/uam/actions/user/listActions.ts index 0c8f0ee48..e8f414335 100644 --- a/web/console/src/modules/uam/actions/user/listActions.ts +++ b/web/console/src/modules/uam/actions/user/listActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend } from '@tencent/ff-redux'; import { RootState, UserPlain, CommonUserFilter } from '../../models'; import * as ActionTypes from '../../constants/ActionTypes'; diff --git a/web/console/src/modules/uam/actions/userActions.ts b/web/console/src/modules/uam/actions/userActions.ts index 6bab7b604..47250073c 100644 --- a/web/console/src/modules/uam/actions/userActions.ts +++ b/web/console/src/modules/uam/actions/userActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { resourceConfig } from '@config'; import { CommonAPI, ResourceFilter, ResourceInfo } from '@src/modules/common'; import { diff --git a/web/console/src/modules/uam/components/UamApp.tsx b/web/console/src/modules/uam/components/UamApp.tsx index c0d8482d1..e5201f620 100644 --- a/web/console/src/modules/uam/components/UamApp.tsx +++ b/web/console/src/modules/uam/components/UamApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/console/src/modules/uam/components/group/GroupPanel.tsx b/web/console/src/modules/uam/components/group/GroupPanel.tsx index 7d5343203..2932fe33e 100644 --- a/web/console/src/modules/uam/components/group/GroupPanel.tsx +++ b/web/console/src/modules/uam/components/group/GroupPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/uam/components/group/associate/PolicyAssociatePanel.tsx b/web/console/src/modules/uam/components/group/associate/PolicyAssociatePanel.tsx index e94d0b073..72dd45209 100644 --- a/web/console/src/modules/uam/components/group/associate/PolicyAssociatePanel.tsx +++ b/web/console/src/modules/uam/components/group/associate/PolicyAssociatePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../GroupPanel'; diff --git a/web/console/src/modules/uam/components/group/associate/UserAssociatePanel.tsx b/web/console/src/modules/uam/components/group/associate/UserAssociatePanel.tsx index 1ec7fa904..e41ac5d4c 100644 --- a/web/console/src/modules/uam/components/group/associate/UserAssociatePanel.tsx +++ b/web/console/src/modules/uam/components/group/associate/UserAssociatePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../GroupPanel'; diff --git a/web/console/src/modules/uam/components/group/associate/UserAssociateWorkflowDialog.tsx b/web/console/src/modules/uam/components/group/associate/UserAssociateWorkflowDialog.tsx index 5da46bc30..816f94c67 100644 --- a/web/console/src/modules/uam/components/group/associate/UserAssociateWorkflowDialog.tsx +++ b/web/console/src/modules/uam/components/group/associate/UserAssociateWorkflowDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/uam/components/group/create/BaseInfoPanel.tsx b/web/console/src/modules/uam/components/group/create/BaseInfoPanel.tsx index 10ffa1ee2..0e3dac461 100644 --- a/web/console/src/modules/uam/components/group/create/BaseInfoPanel.tsx +++ b/web/console/src/modules/uam/components/group/create/BaseInfoPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/uam/components/group/create/GroupCreate.tsx b/web/console/src/modules/uam/components/group/create/GroupCreate.tsx index 1676cd6d6..112fce8dc 100644 --- a/web/console/src/modules/uam/components/group/create/GroupCreate.tsx +++ b/web/console/src/modules/uam/components/group/create/GroupCreate.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/uam/components/group/detail/BaseInfoPanel.tsx b/web/console/src/modules/uam/components/group/detail/BaseInfoPanel.tsx index 197b407ad..c6293afec 100644 --- a/web/console/src/modules/uam/components/group/detail/BaseInfoPanel.tsx +++ b/web/console/src/modules/uam/components/group/detail/BaseInfoPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../GroupPanel'; diff --git a/web/console/src/modules/uam/components/group/detail/GroupDetail.tsx b/web/console/src/modules/uam/components/group/detail/GroupDetail.tsx index 716245511..99c63669a 100644 --- a/web/console/src/modules/uam/components/group/detail/GroupDetail.tsx +++ b/web/console/src/modules/uam/components/group/detail/GroupDetail.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/uam/components/group/detail/HeaderPanel.tsx b/web/console/src/modules/uam/components/group/detail/HeaderPanel.tsx index 236490144..a98e410f2 100644 --- a/web/console/src/modules/uam/components/group/detail/HeaderPanel.tsx +++ b/web/console/src/modules/uam/components/group/detail/HeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../GroupPanel'; diff --git a/web/console/src/modules/uam/components/group/detail/PolicyActionPanel.tsx b/web/console/src/modules/uam/components/group/detail/PolicyActionPanel.tsx index 569d9f8d0..4b7582f6e 100644 --- a/web/console/src/modules/uam/components/group/detail/PolicyActionPanel.tsx +++ b/web/console/src/modules/uam/components/group/detail/PolicyActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/group/detail/PolicyTablePanel.tsx b/web/console/src/modules/uam/components/group/detail/PolicyTablePanel.tsx index 86dd1b503..14823ebd0 100644 --- a/web/console/src/modules/uam/components/group/detail/PolicyTablePanel.tsx +++ b/web/console/src/modules/uam/components/group/detail/PolicyTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { LinkButton, emptyTips } from '../../../../common/components'; diff --git a/web/console/src/modules/uam/components/group/detail/RoleActionPanel.tsx b/web/console/src/modules/uam/components/group/detail/RoleActionPanel.tsx index 2312abc2b..449668e86 100644 --- a/web/console/src/modules/uam/components/group/detail/RoleActionPanel.tsx +++ b/web/console/src/modules/uam/components/group/detail/RoleActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/group/detail/RoleTablePanel.tsx b/web/console/src/modules/uam/components/group/detail/RoleTablePanel.tsx index d3b1d50d6..47c3321fb 100644 --- a/web/console/src/modules/uam/components/group/detail/RoleTablePanel.tsx +++ b/web/console/src/modules/uam/components/group/detail/RoleTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { LinkButton, emptyTips } from '../../../../common/components'; diff --git a/web/console/src/modules/uam/components/group/detail/UserActionPanel.tsx b/web/console/src/modules/uam/components/group/detail/UserActionPanel.tsx index 36b1313c9..c13957372 100644 --- a/web/console/src/modules/uam/components/group/detail/UserActionPanel.tsx +++ b/web/console/src/modules/uam/components/group/detail/UserActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/group/detail/UserTablePanel.tsx b/web/console/src/modules/uam/components/group/detail/UserTablePanel.tsx index e93e46151..04f8f9625 100644 --- a/web/console/src/modules/uam/components/group/detail/UserTablePanel.tsx +++ b/web/console/src/modules/uam/components/group/detail/UserTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { LinkButton, emptyTips } from '../../../../common/components'; diff --git a/web/console/src/modules/uam/components/group/list/ActionPanel.tsx b/web/console/src/modules/uam/components/group/list/ActionPanel.tsx index 6a21ab921..4c863af31 100644 --- a/web/console/src/modules/uam/components/group/list/ActionPanel.tsx +++ b/web/console/src/modules/uam/components/group/list/ActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/group/list/GroupList.tsx b/web/console/src/modules/uam/components/group/list/GroupList.tsx index fd6a0c8c5..7667c21fe 100644 --- a/web/console/src/modules/uam/components/group/list/GroupList.tsx +++ b/web/console/src/modules/uam/components/group/list/GroupList.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/uam/components/group/list/HeaderPanel.tsx b/web/console/src/modules/uam/components/group/list/HeaderPanel.tsx index 1bdee471a..fa2c173cd 100644 --- a/web/console/src/modules/uam/components/group/list/HeaderPanel.tsx +++ b/web/console/src/modules/uam/components/group/list/HeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/group/list/RoleModifyDialog.tsx b/web/console/src/modules/uam/components/group/list/RoleModifyDialog.tsx index 843178315..e9a1ce7c6 100644 --- a/web/console/src/modules/uam/components/group/list/RoleModifyDialog.tsx +++ b/web/console/src/modules/uam/components/group/list/RoleModifyDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { Button, Modal, Form, Text, Radio, Transfer, Table, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/group/list/TablePanel.tsx b/web/console/src/modules/uam/components/group/list/TablePanel.tsx index f2bbbf945..056c9fcf4 100644 --- a/web/console/src/modules/uam/components/group/list/TablePanel.tsx +++ b/web/console/src/modules/uam/components/group/list/TablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { TablePanel as CTablePanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/uam/components/role/RoleApp.tsx b/web/console/src/modules/uam/components/role/RoleApp.tsx index 1af5baedb..b0522f722 100644 --- a/web/console/src/modules/uam/components/role/RoleApp.tsx +++ b/web/console/src/modules/uam/components/role/RoleApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/uam/components/role/associate/GroupAssociatePanel.tsx b/web/console/src/modules/uam/components/role/associate/GroupAssociatePanel.tsx index 0628eac82..68ddf2f2b 100644 --- a/web/console/src/modules/uam/components/role/associate/GroupAssociatePanel.tsx +++ b/web/console/src/modules/uam/components/role/associate/GroupAssociatePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../RoleApp'; diff --git a/web/console/src/modules/uam/components/role/associate/GroupAssociateWorkflowDialog.tsx b/web/console/src/modules/uam/components/role/associate/GroupAssociateWorkflowDialog.tsx index 7feabaa60..931cafb26 100644 --- a/web/console/src/modules/uam/components/role/associate/GroupAssociateWorkflowDialog.tsx +++ b/web/console/src/modules/uam/components/role/associate/GroupAssociateWorkflowDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/uam/components/role/associate/PolicyAssociatePanel.tsx b/web/console/src/modules/uam/components/role/associate/PolicyAssociatePanel.tsx index 0e0db6622..0cc17c61c 100644 --- a/web/console/src/modules/uam/components/role/associate/PolicyAssociatePanel.tsx +++ b/web/console/src/modules/uam/components/role/associate/PolicyAssociatePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../RoleApp'; diff --git a/web/console/src/modules/uam/components/role/associate/PolicyAssociateWorkflowDialog.tsx b/web/console/src/modules/uam/components/role/associate/PolicyAssociateWorkflowDialog.tsx index 307115616..63fcf046e 100644 --- a/web/console/src/modules/uam/components/role/associate/PolicyAssociateWorkflowDialog.tsx +++ b/web/console/src/modules/uam/components/role/associate/PolicyAssociateWorkflowDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/uam/components/role/associate/UserAssociatePanel.tsx b/web/console/src/modules/uam/components/role/associate/UserAssociatePanel.tsx index 82325b436..9abf1c86c 100644 --- a/web/console/src/modules/uam/components/role/associate/UserAssociatePanel.tsx +++ b/web/console/src/modules/uam/components/role/associate/UserAssociatePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../RoleApp'; diff --git a/web/console/src/modules/uam/components/role/associate/UserAssociateWorkflowDialog.tsx b/web/console/src/modules/uam/components/role/associate/UserAssociateWorkflowDialog.tsx index 762cb0a59..b94c8ece0 100644 --- a/web/console/src/modules/uam/components/role/associate/UserAssociateWorkflowDialog.tsx +++ b/web/console/src/modules/uam/components/role/associate/UserAssociateWorkflowDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/uam/components/role/create/BaseInfoPanel.tsx b/web/console/src/modules/uam/components/role/create/BaseInfoPanel.tsx index 0a2423082..53a4e03e6 100644 --- a/web/console/src/modules/uam/components/role/create/BaseInfoPanel.tsx +++ b/web/console/src/modules/uam/components/role/create/BaseInfoPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/uam/components/role/create/HeaderPanel.tsx b/web/console/src/modules/uam/components/role/create/HeaderPanel.tsx index 70e3fb35b..3cb1a88e4 100644 --- a/web/console/src/modules/uam/components/role/create/HeaderPanel.tsx +++ b/web/console/src/modules/uam/components/role/create/HeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from '../RoleApp'; import { Justify, Icon } from '@tencent/tea-component'; diff --git a/web/console/src/modules/uam/components/role/create/RoleCreate.tsx b/web/console/src/modules/uam/components/role/create/RoleCreate.tsx index 07f05e9ba..7c108181b 100644 --- a/web/console/src/modules/uam/components/role/create/RoleCreate.tsx +++ b/web/console/src/modules/uam/components/role/create/RoleCreate.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/uam/components/role/detail/BaseInfoPanel.tsx b/web/console/src/modules/uam/components/role/detail/BaseInfoPanel.tsx index a58a97e5e..d37f748aa 100644 --- a/web/console/src/modules/uam/components/role/detail/BaseInfoPanel.tsx +++ b/web/console/src/modules/uam/components/role/detail/BaseInfoPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../RoleApp'; diff --git a/web/console/src/modules/uam/components/role/detail/GroupActionPanel.tsx b/web/console/src/modules/uam/components/role/detail/GroupActionPanel.tsx index 1de9a3790..62a4389a7 100644 --- a/web/console/src/modules/uam/components/role/detail/GroupActionPanel.tsx +++ b/web/console/src/modules/uam/components/role/detail/GroupActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/role/detail/GroupTablePanel.tsx b/web/console/src/modules/uam/components/role/detail/GroupTablePanel.tsx index 821e3285e..e784a87e4 100644 --- a/web/console/src/modules/uam/components/role/detail/GroupTablePanel.tsx +++ b/web/console/src/modules/uam/components/role/detail/GroupTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { TablePanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/uam/components/role/detail/HeaderPanel.tsx b/web/console/src/modules/uam/components/role/detail/HeaderPanel.tsx index da485c6d5..28d101027 100644 --- a/web/console/src/modules/uam/components/role/detail/HeaderPanel.tsx +++ b/web/console/src/modules/uam/components/role/detail/HeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../RoleApp'; diff --git a/web/console/src/modules/uam/components/role/detail/PolicyActionPanel.tsx b/web/console/src/modules/uam/components/role/detail/PolicyActionPanel.tsx index ff21b0496..d1f791159 100644 --- a/web/console/src/modules/uam/components/role/detail/PolicyActionPanel.tsx +++ b/web/console/src/modules/uam/components/role/detail/PolicyActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/role/detail/PolicyTablePanel.tsx b/web/console/src/modules/uam/components/role/detail/PolicyTablePanel.tsx index e963ae174..3b6972aba 100644 --- a/web/console/src/modules/uam/components/role/detail/PolicyTablePanel.tsx +++ b/web/console/src/modules/uam/components/role/detail/PolicyTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { TablePanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/uam/components/role/detail/RoleDetail.tsx b/web/console/src/modules/uam/components/role/detail/RoleDetail.tsx index dfcb3223f..7bf04f511 100644 --- a/web/console/src/modules/uam/components/role/detail/RoleDetail.tsx +++ b/web/console/src/modules/uam/components/role/detail/RoleDetail.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/uam/components/role/detail/UserActionPanel.tsx b/web/console/src/modules/uam/components/role/detail/UserActionPanel.tsx index 5c77780f3..98ac2a0ed 100644 --- a/web/console/src/modules/uam/components/role/detail/UserActionPanel.tsx +++ b/web/console/src/modules/uam/components/role/detail/UserActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/role/detail/UserTablePanel.tsx b/web/console/src/modules/uam/components/role/detail/UserTablePanel.tsx index 5a7c78640..9486c245f 100644 --- a/web/console/src/modules/uam/components/role/detail/UserTablePanel.tsx +++ b/web/console/src/modules/uam/components/role/detail/UserTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { TablePanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/uam/components/role/list/ActionPanel.tsx b/web/console/src/modules/uam/components/role/list/ActionPanel.tsx index 895876d64..41e3e0bb3 100644 --- a/web/console/src/modules/uam/components/role/list/ActionPanel.tsx +++ b/web/console/src/modules/uam/components/role/list/ActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/role/list/HeaderPanel.tsx b/web/console/src/modules/uam/components/role/list/HeaderPanel.tsx index deb634d31..099f451c5 100644 --- a/web/console/src/modules/uam/components/role/list/HeaderPanel.tsx +++ b/web/console/src/modules/uam/components/role/list/HeaderPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/role/list/RoleList.tsx b/web/console/src/modules/uam/components/role/list/RoleList.tsx index b0542ae1b..7500d5213 100644 --- a/web/console/src/modules/uam/components/role/list/RoleList.tsx +++ b/web/console/src/modules/uam/components/role/list/RoleList.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/uam/components/role/list/TablePanel.tsx b/web/console/src/modules/uam/components/role/list/TablePanel.tsx index a79a9ebe1..54608ca4d 100644 --- a/web/console/src/modules/uam/components/role/list/TablePanel.tsx +++ b/web/console/src/modules/uam/components/role/list/TablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { TablePanel as CTablePanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/uam/components/strategy/StrategyActionPanel.tsx b/web/console/src/modules/uam/components/strategy/StrategyActionPanel.tsx index f6a6b2f5f..bad89923a 100644 --- a/web/console/src/modules/uam/components/strategy/StrategyActionPanel.tsx +++ b/web/console/src/modules/uam/components/strategy/StrategyActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; diff --git a/web/console/src/modules/uam/components/strategy/StrategyApp.tsx b/web/console/src/modules/uam/components/strategy/StrategyApp.tsx index 4f7784ceb..d03d9dfaf 100644 --- a/web/console/src/modules/uam/components/strategy/StrategyApp.tsx +++ b/web/console/src/modules/uam/components/strategy/StrategyApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; diff --git a/web/console/src/modules/uam/components/strategy/StrategyDetailsPanel.tsx b/web/console/src/modules/uam/components/strategy/StrategyDetailsPanel.tsx index 7f7d66363..4b5f762f0 100644 --- a/web/console/src/modules/uam/components/strategy/StrategyDetailsPanel.tsx +++ b/web/console/src/modules/uam/components/strategy/StrategyDetailsPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; diff --git a/web/console/src/modules/uam/components/strategy/StrategyHeadPanel.tsx b/web/console/src/modules/uam/components/strategy/StrategyHeadPanel.tsx index 3f3d3abd7..34306a2fa 100644 --- a/web/console/src/modules/uam/components/strategy/StrategyHeadPanel.tsx +++ b/web/console/src/modules/uam/components/strategy/StrategyHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { Justify, Icon } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/strategy/StrategyTablePanel.tsx b/web/console/src/modules/uam/components/strategy/StrategyTablePanel.tsx index 7e990e400..b87f46d06 100644 --- a/web/console/src/modules/uam/components/strategy/StrategyTablePanel.tsx +++ b/web/console/src/modules/uam/components/strategy/StrategyTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; diff --git a/web/console/src/modules/uam/components/strategy/associate/GroupAssociatePanel.tsx b/web/console/src/modules/uam/components/strategy/associate/GroupAssociatePanel.tsx index 4ad52de88..5caf84b00 100644 --- a/web/console/src/modules/uam/components/strategy/associate/GroupAssociatePanel.tsx +++ b/web/console/src/modules/uam/components/strategy/associate/GroupAssociatePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { RootProps } from '../StrategyApp'; diff --git a/web/console/src/modules/uam/components/strategy/associate/GroupAssociateWorkflowDialog.tsx b/web/console/src/modules/uam/components/strategy/associate/GroupAssociateWorkflowDialog.tsx index ed9d074e7..69913656b 100644 --- a/web/console/src/modules/uam/components/strategy/associate/GroupAssociateWorkflowDialog.tsx +++ b/web/console/src/modules/uam/components/strategy/associate/GroupAssociateWorkflowDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/uam/components/strategy/detail/GroupActionPanel.tsx b/web/console/src/modules/uam/components/strategy/detail/GroupActionPanel.tsx index 6798680f0..30b64a9f4 100644 --- a/web/console/src/modules/uam/components/strategy/detail/GroupActionPanel.tsx +++ b/web/console/src/modules/uam/components/strategy/detail/GroupActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/strategy/detail/GroupTablePanel.tsx b/web/console/src/modules/uam/components/strategy/detail/GroupTablePanel.tsx index b4a82e035..b101f1c85 100644 --- a/web/console/src/modules/uam/components/strategy/detail/GroupTablePanel.tsx +++ b/web/console/src/modules/uam/components/strategy/detail/GroupTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { TablePanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/uam/components/strategy/detail/RoleActionPanel.tsx b/web/console/src/modules/uam/components/strategy/detail/RoleActionPanel.tsx index 686a6a501..5c70beb51 100644 --- a/web/console/src/modules/uam/components/strategy/detail/RoleActionPanel.tsx +++ b/web/console/src/modules/uam/components/strategy/detail/RoleActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/strategy/detail/RoleTablePanel.tsx b/web/console/src/modules/uam/components/strategy/detail/RoleTablePanel.tsx index a6fb4ff06..dde2f2255 100644 --- a/web/console/src/modules/uam/components/strategy/detail/RoleTablePanel.tsx +++ b/web/console/src/modules/uam/components/strategy/detail/RoleTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { TablePanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/uam/components/user/UserApp.tsx b/web/console/src/modules/uam/components/user/UserApp.tsx index 670387da9..dfcc5c7df 100644 --- a/web/console/src/modules/uam/components/user/UserApp.tsx +++ b/web/console/src/modules/uam/components/user/UserApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { Layout, Tabs, TabPanel } from '@tencent/tea-component'; diff --git a/web/console/src/modules/uam/components/user/UserPanel.tsx b/web/console/src/modules/uam/components/user/UserPanel.tsx index 24dc71c16..04890f51d 100644 --- a/web/console/src/modules/uam/components/user/UserPanel.tsx +++ b/web/console/src/modules/uam/components/user/UserPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { bindActionCreators } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/uam/components/user/create/UserCreate.tsx b/web/console/src/modules/uam/components/user/create/UserCreate.tsx index acc5923ff..e70b0d9bc 100644 --- a/web/console/src/modules/uam/components/user/create/UserCreate.tsx +++ b/web/console/src/modules/uam/components/user/create/UserCreate.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/uam/components/user/detail/GroupActionPanel.tsx b/web/console/src/modules/uam/components/user/detail/GroupActionPanel.tsx index cbb7f4ed8..cde669362 100644 --- a/web/console/src/modules/uam/components/user/detail/GroupActionPanel.tsx +++ b/web/console/src/modules/uam/components/user/detail/GroupActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/user/detail/GroupTablePanel.tsx b/web/console/src/modules/uam/components/user/detail/GroupTablePanel.tsx index 786eaf8ca..cb85a3ab8 100644 --- a/web/console/src/modules/uam/components/user/detail/GroupTablePanel.tsx +++ b/web/console/src/modules/uam/components/user/detail/GroupTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { TablePanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/uam/components/user/detail/RoleActionPanel.tsx b/web/console/src/modules/uam/components/user/detail/RoleActionPanel.tsx index cfa29d270..44bdd7b5c 100644 --- a/web/console/src/modules/uam/components/user/detail/RoleActionPanel.tsx +++ b/web/console/src/modules/uam/components/user/detail/RoleActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/user/detail/RoleTablePanel.tsx b/web/console/src/modules/uam/components/user/detail/RoleTablePanel.tsx index 1be724910..7f4427d6b 100644 --- a/web/console/src/modules/uam/components/user/detail/RoleTablePanel.tsx +++ b/web/console/src/modules/uam/components/user/detail/RoleTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect } from 'react-redux'; import { TablePanel } from '@tencent/ff-component'; diff --git a/web/console/src/modules/uam/components/user/detail/UserDetail.tsx b/web/console/src/modules/uam/components/user/detail/UserDetail.tsx index eab4ddee7..10f48c390 100644 --- a/web/console/src/modules/uam/components/user/detail/UserDetail.tsx +++ b/web/console/src/modules/uam/components/user/detail/UserDetail.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; diff --git a/web/console/src/modules/uam/components/user/list/PasswordModifyDialog.tsx b/web/console/src/modules/uam/components/user/list/PasswordModifyDialog.tsx index 3bb18e74e..567165ebd 100644 --- a/web/console/src/modules/uam/components/user/list/PasswordModifyDialog.tsx +++ b/web/console/src/modules/uam/components/user/list/PasswordModifyDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { Button, Modal, Form, Input, Table } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/user/list/RoleModifyDialog.tsx b/web/console/src/modules/uam/components/user/list/RoleModifyDialog.tsx index 16805f698..dc2c07e9e 100644 --- a/web/console/src/modules/uam/components/user/list/RoleModifyDialog.tsx +++ b/web/console/src/modules/uam/components/user/list/RoleModifyDialog.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { Button, Modal, Form, Text, Radio, Transfer, Table, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/user/list/UserActionPanel.tsx b/web/console/src/modules/uam/components/user/list/UserActionPanel.tsx index db09fd08c..424ea2815 100644 --- a/web/console/src/modules/uam/components/user/list/UserActionPanel.tsx +++ b/web/console/src/modules/uam/components/user/list/UserActionPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { Justify, Icon, Table, Button, SearchBox } from '@tea/component'; diff --git a/web/console/src/modules/uam/components/user/list/UserList.tsx b/web/console/src/modules/uam/components/user/list/UserList.tsx index 7deeb1e9c..2295394d3 100644 --- a/web/console/src/modules/uam/components/user/list/UserList.tsx +++ b/web/console/src/modules/uam/components/user/list/UserList.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { Layout } from '@tencent/tea-component'; diff --git a/web/console/src/modules/uam/components/user/list/UserTablePanel.tsx b/web/console/src/modules/uam/components/user/list/UserTablePanel.tsx index 3b41eed06..306b8a2f6 100644 --- a/web/console/src/modules/uam/components/user/list/UserTablePanel.tsx +++ b/web/console/src/modules/uam/components/user/list/UserTablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; diff --git a/web/console/src/modules/uam/constants/ActionTypes.ts b/web/console/src/modules/uam/constants/ActionTypes.ts index cacd750cd..8b5042815 100644 --- a/web/console/src/modules/uam/constants/ActionTypes.ts +++ b/web/console/src/modules/uam/constants/ActionTypes.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const UserList = 'UserList'; export const FetchUserList = 'FetchUserList'; export const AddUser = 'AddUser'; diff --git a/web/console/src/modules/uam/constants/Config.ts b/web/console/src/modules/uam/constants/Config.ts index cd148b2ec..0799f56d0 100644 --- a/web/console/src/modules/uam/constants/Config.ts +++ b/web/console/src/modules/uam/constants/Config.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t, Trans } from '@tencent/tea-app/lib/i18n'; export const VALIDATE_PASSWORD_RULE = { diff --git a/web/console/src/modules/uam/constants/GroupValidateConfig.ts b/web/console/src/modules/uam/constants/GroupValidateConfig.ts index d4707a092..a39c40f0a 100644 --- a/web/console/src/modules/uam/constants/GroupValidateConfig.ts +++ b/web/console/src/modules/uam/constants/GroupValidateConfig.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ModelTypeEnum, RuleTypeEnum, ValidateSchema, ValidatorStatusEnum } from '@tencent/ff-validator'; import { t } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/uam/constants/RoleValidateConfig.ts b/web/console/src/modules/uam/constants/RoleValidateConfig.ts index d7e6ffaf1..8a1aee30d 100644 --- a/web/console/src/modules/uam/constants/RoleValidateConfig.ts +++ b/web/console/src/modules/uam/constants/RoleValidateConfig.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ModelTypeEnum, RuleTypeEnum, ValidateSchema, ValidatorStatusEnum } from '@tencent/ff-validator'; import { t } from '@tencent/tea-app/lib/i18n'; diff --git a/web/console/src/modules/uam/constants/initState.ts b/web/console/src/modules/uam/constants/initState.ts index 0a2361cfc..1b7f18926 100644 --- a/web/console/src/modules/uam/constants/initState.ts +++ b/web/console/src/modules/uam/constants/initState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { initValidator } from '../../common/models'; import { uuid } from '@tencent/ff-redux'; diff --git a/web/console/src/modules/uam/index.tsx b/web/console/src/modules/uam/index.tsx index 007fee651..ac0c97cc5 100644 --- a/web/console/src/modules/uam/index.tsx +++ b/web/console/src/modules/uam/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { UamAppContainer } from './components/UamApp'; diff --git a/web/console/src/modules/uam/models/Cagtegory.ts b/web/console/src/modules/uam/models/Cagtegory.ts index 90886e061..2cb0f33ce 100644 --- a/web/console/src/modules/uam/models/Cagtegory.ts +++ b/web/console/src/modules/uam/models/Cagtegory.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Category extends Identifiable { diff --git a/web/console/src/modules/uam/models/CommonUser.ts b/web/console/src/modules/uam/models/CommonUser.ts index bda3d6d3e..cbdd74119 100644 --- a/web/console/src/modules/uam/models/CommonUser.ts +++ b/web/console/src/modules/uam/models/CommonUser.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; /** 原有User在localidentities和user概念之间混用了,anyway,用于关联角色等 */ diff --git a/web/console/src/modules/uam/models/Group.ts b/web/console/src/modules/uam/models/Group.ts index 3f43380fd..d82bd427a 100644 --- a/web/console/src/modules/uam/models/Group.ts +++ b/web/console/src/modules/uam/models/Group.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '@tencent/ff-validator'; diff --git a/web/console/src/modules/uam/models/Policy.ts b/web/console/src/modules/uam/models/Policy.ts index ad016732f..024f76335 100644 --- a/web/console/src/modules/uam/models/Policy.ts +++ b/web/console/src/modules/uam/models/Policy.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/uam/models/Role.ts b/web/console/src/modules/uam/models/Role.ts index 6841ee075..e73cb6c41 100644 --- a/web/console/src/modules/uam/models/Role.ts +++ b/web/console/src/modules/uam/models/Role.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; import { Validation } from '../../common/models'; diff --git a/web/console/src/modules/uam/models/RootState.ts b/web/console/src/modules/uam/models/RootState.ts index 939c3ff14..f3ceaaa74 100644 --- a/web/console/src/modules/uam/models/RootState.ts +++ b/web/console/src/modules/uam/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { User, UserFilter, diff --git a/web/console/src/modules/uam/models/Strategy.ts b/web/console/src/modules/uam/models/Strategy.ts index d16a53f67..ac1fcdd1a 100644 --- a/web/console/src/modules/uam/models/Strategy.ts +++ b/web/console/src/modules/uam/models/Strategy.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface Strategy extends Identifiable { diff --git a/web/console/src/modules/uam/models/StrategyFilter.ts b/web/console/src/modules/uam/models/StrategyFilter.ts index 90ab7a5e3..5631cd548 100644 --- a/web/console/src/modules/uam/models/StrategyFilter.ts +++ b/web/console/src/modules/uam/models/StrategyFilter.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface StrategyFilter { /** 策略名称 */ name?: string; diff --git a/web/console/src/modules/uam/models/User.ts b/web/console/src/modules/uam/models/User.ts index 3c022d355..a946d8086 100644 --- a/web/console/src/modules/uam/models/User.ts +++ b/web/console/src/modules/uam/models/User.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '@tencent/ff-redux'; export interface User extends Identifiable { diff --git a/web/console/src/modules/uam/models/UserFilter.ts b/web/console/src/modules/uam/models/UserFilter.ts index 7883cfd70..87e58fa62 100644 --- a/web/console/src/modules/uam/models/UserFilter.ts +++ b/web/console/src/modules/uam/models/UserFilter.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface UserFilter { /** 用户名(唯一) */ name?: string; diff --git a/web/console/src/modules/uam/models/index.ts b/web/console/src/modules/uam/models/index.ts index 417a5b0df..cf579b586 100644 --- a/web/console/src/modules/uam/models/index.ts +++ b/web/console/src/modules/uam/models/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { RootState } from './RootState'; export { User } from './User'; export { UserFilter } from './UserFilter'; diff --git a/web/console/src/modules/uam/reducers/RootReducer.ts b/web/console/src/modules/uam/reducers/RootReducer.ts index edc908dbe..9ea3d2546 100644 --- a/web/console/src/modules/uam/reducers/RootReducer.ts +++ b/web/console/src/modules/uam/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { diff --git a/web/console/src/modules/uam/router.ts b/web/console/src/modules/uam/router.ts index 42c78bc6c..f7aaa4102 100644 --- a/web/console/src/modules/uam/router.ts +++ b/web/console/src/modules/uam/router.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Router } from '../../../helpers/Router'; /** diff --git a/web/console/src/modules/uam/stores/RootStore.ts b/web/console/src/modules/uam/stores/RootStore.ts index 528dcd48c..83ff139b0 100644 --- a/web/console/src/modules/uam/stores/RootStore.ts +++ b/web/console/src/modules/uam/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/console/src/webApi/cluster.ts b/web/console/src/webApi/cluster.ts index d254c70d2..fafaa30b6 100644 --- a/web/console/src/webApi/cluster.ts +++ b/web/console/src/webApi/cluster.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import Request from './request'; import { compareVersion } from '@helper/version'; diff --git a/web/console/src/webApi/promethus.ts b/web/console/src/webApi/promethus.ts index 214f1fa9f..0b3746999 100644 --- a/web/console/src/webApi/promethus.ts +++ b/web/console/src/webApi/promethus.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import Request from './request'; export interface EnablePromethusParams { diff --git a/web/console/src/webApi/request.ts b/web/console/src/webApi/request.ts index b25140e61..808732b77 100644 --- a/web/console/src/webApi/request.ts +++ b/web/console/src/webApi/request.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { changeForbiddentConfig } from '@/index.tke'; import { Method } from '@helper'; import Axios from 'axios'; diff --git a/web/console/src/webApi/tkestack.ts b/web/console/src/webApi/tkestack.ts index 497336592..78d66a60f 100644 --- a/web/console/src/webApi/tkestack.ts +++ b/web/console/src/webApi/tkestack.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import Request from './request'; export const getTkeStackVersion = async () => { diff --git a/web/console/webpack/loaders/ifelse-loader.js b/web/console/webpack/loaders/ifelse-loader.js index 72add9cd1..1847f38d2 100644 --- a/web/console/webpack/loaders/ifelse-loader.js +++ b/web/console/webpack/loaders/ifelse-loader.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const parse = require('./lib/parse'); module.exports = function (source) { diff --git a/web/console/webpack/loaders/iffile-loader.js b/web/console/webpack/loaders/iffile-loader.js index d2f847184..bef91f094 100644 --- a/web/console/webpack/loaders/iffile-loader.js +++ b/web/console/webpack/loaders/iffile-loader.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const fs = require('fs'); const currentEntry = ''; diff --git a/web/console/webpack/loaders/lib/parse.js b/web/console/webpack/loaders/lib/parse.js index b0beceb30..6fdf39987 100644 --- a/web/console/webpack/loaders/lib/parse.js +++ b/web/console/webpack/loaders/lib/parse.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ function parse(source, defs, verbose) { let lines = source.split('\n'); lines = lines.map(function (line) { diff --git a/web/console/webpack/webpack.base.js b/web/console/webpack/webpack.base.js index 9caee8be7..607830a69 100644 --- a/web/console/webpack/webpack.base.js +++ b/web/console/webpack/webpack.base.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const path = require('path'); const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; const webpack = require('webpack'); diff --git a/web/console/webpack/webpack.dev.js b/web/console/webpack/webpack.dev.js index f66f032af..450debdb8 100644 --- a/web/console/webpack/webpack.dev.js +++ b/web/console/webpack/webpack.dev.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const baseConfig = require('./webpack.base'); const SpeedMeasurePlugin = require('speed-measure-webpack-plugin'); const smp = new SpeedMeasurePlugin(); diff --git a/web/console/webpack/webpack.prod.js b/web/console/webpack/webpack.prod.js index 5b2bdb5e8..1ded9ea0a 100644 --- a/web/console/webpack/webpack.prod.js +++ b/web/console/webpack/webpack.prod.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const baseConfig = require('./webpack.base'); module.exports = ({ version }) => baseConfig({ version, mode: 'production' }); diff --git a/web/installer/.nvmrc b/web/installer/.nvmrc new file mode 100644 index 000000000..e00efe40d --- /dev/null +++ b/web/installer/.nvmrc @@ -0,0 +1 @@ +v12.22.4 \ No newline at end of file diff --git a/web/installer/ambient/appUtil.d.ts b/web/installer/ambient/appUtil.d.ts index a3f37c4fd..8d8f88ad5 100644 --- a/web/installer/ambient/appUtil.d.ts +++ b/web/installer/ambient/appUtil.d.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ declare namespace nmc { interface AppUtil{ getRegionId: ()=>RegionId; diff --git a/web/installer/ambient/clipboard.ts b/web/installer/ambient/clipboard.ts index 659c088a7..867770da4 100644 --- a/web/installer/ambient/clipboard.ts +++ b/web/installer/ambient/clipboard.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ declare var __clipboard; declare module "clipboard" { diff --git a/web/installer/ambient/index.d.ts b/web/installer/ambient/index.d.ts index 00a25716c..6414df46e 100644 --- a/web/installer/ambient/index.d.ts +++ b/web/installer/ambient/index.d.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /// \ No newline at end of file diff --git a/web/installer/ambient/redux.d.ts b/web/installer/ambient/redux.d.ts index 4bd89b8ef..3f6186195 100644 --- a/web/installer/ambient/redux.d.ts +++ b/web/installer/ambient/redux.d.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ declare module Redux { interface ActionCreator extends Function { (...args: any[]): any; diff --git a/web/installer/develop/index.ts b/web/installer/develop/index.ts index 14cdcf687..9b47cb189 100644 --- a/web/installer/develop/index.ts +++ b/web/installer/develop/index.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ require('ts-node/register'); require('./server/index.ts'); diff --git a/web/installer/develop/server/index.ts b/web/installer/develop/server/index.ts index 464be287c..dd58bc453 100644 --- a/web/installer/develop/server/index.ts +++ b/web/installer/develop/server/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { serve } from './server'; serve(8088); diff --git a/web/installer/develop/server/server.ts b/web/installer/develop/server/server.ts index 43ca9fbc9..f9d851432 100644 --- a/web/installer/develop/server/server.ts +++ b/web/installer/develop/server/server.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as express from 'express'; import * as path from 'path'; import * as webpack from 'webpack'; diff --git a/web/installer/helpers/Validator.ts b/web/installer/helpers/Validator.ts index 229ed2f5c..f7442c4ce 100644 --- a/web/installer/helpers/Validator.ts +++ b/web/installer/helpers/Validator.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface Validation { /**验证状态 0: 初始状态;1:校验通过;2:校验不通过 */ status?: number; diff --git a/web/installer/helpers/downloadCrt.ts b/web/installer/helpers/downloadCrt.ts index 8d19e4de0..31bdcd3db 100644 --- a/web/installer/helpers/downloadCrt.ts +++ b/web/installer/helpers/downloadCrt.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const tips = seajs.require('tips'); export function downloadCrt(crtText, filename = 'cluster-ca.crt') { diff --git a/web/installer/helpers/index.ts b/web/installer/helpers/index.ts index 23043df4a..764544e16 100644 --- a/web/installer/helpers/index.ts +++ b/web/installer/helpers/index.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { ResetStoreAction, generateResetableReducer } from './reduxStore'; export { downloadCrt } from './downloadCrt'; diff --git a/web/installer/helpers/reduxAction.ts b/web/installer/helpers/reduxAction.ts index 9fa6efe4e..95cd11a58 100644 --- a/web/installer/helpers/reduxAction.ts +++ b/web/installer/helpers/reduxAction.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Dispatch } from 'redux'; import { FetcherPayload, FetcherTrigger, FetchOptions, ReduxAction } from '@tencent/ff-redux'; diff --git a/web/installer/helpers/reduxReducer.ts b/web/installer/helpers/reduxReducer.ts index 8ec009d74..a9d326b7c 100644 --- a/web/installer/helpers/reduxReducer.ts +++ b/web/installer/helpers/reduxReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { generateFetcherReducer } from '@tencent/ff-redux'; export const createFetcherReducer = generateFetcherReducer; diff --git a/web/installer/helpers/reduxStore.ts b/web/installer/helpers/reduxStore.ts index 07e61d566..7bc8adf22 100644 --- a/web/installer/helpers/reduxStore.ts +++ b/web/installer/helpers/reduxStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Reducer } from 'redux'; /** diff --git a/web/installer/index.tsx b/web/installer/index.tsx index 815dc2bf3..60043b9c7 100644 --- a/web/installer/index.tsx +++ b/web/installer/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from './node_modules/react'; window['React16'] = React; import * as ReactDOM from './node_modules/react-dom'; diff --git a/web/installer/lib/ff-component/index.ts b/web/installer/lib/ff-component/index.ts index 8420b1093..a0d03e4f1 100644 --- a/web/installer/lib/ff-component/index.ts +++ b/web/installer/lib/ff-component/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './src'; diff --git a/web/installer/lib/ff-component/src/cam/Cam.tsx b/web/installer/lib/ff-component/src/cam/Cam.tsx index 04fa4aa6b..a7fd1d294 100644 --- a/web/installer/lib/ff-component/src/cam/Cam.tsx +++ b/web/installer/lib/ff-component/src/cam/Cam.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/installer/lib/ff-component/src/cam/index.ts b/web/installer/lib/ff-component/src/cam/index.ts index a4d0f0f61..39e441d2a 100644 --- a/web/installer/lib/ff-component/src/cam/index.ts +++ b/web/installer/lib/ff-component/src/cam/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { CamBox, CamTips, CamPanel, isCamRefused } from './Cam'; diff --git a/web/installer/lib/ff-component/src/formpanel/Checkbox.tsx b/web/installer/lib/ff-component/src/formpanel/Checkbox.tsx index 845d584a7..5e008103e 100644 --- a/web/installer/lib/ff-component/src/formpanel/Checkbox.tsx +++ b/web/installer/lib/ff-component/src/formpanel/Checkbox.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Checkbox, CheckboxProps } from '@tencent/tea-component'; diff --git a/web/installer/lib/ff-component/src/formpanel/Checkboxs.tsx b/web/installer/lib/ff-component/src/formpanel/Checkboxs.tsx index f5ababda0..5e4fb1cf6 100644 --- a/web/installer/lib/ff-component/src/formpanel/Checkboxs.tsx +++ b/web/installer/lib/ff-component/src/formpanel/Checkboxs.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FetchState, FFListAction, FFListModel } from '@tencent/ff-redux'; diff --git a/web/installer/lib/ff-component/src/formpanel/Footer.tsx b/web/installer/lib/ff-component/src/formpanel/Footer.tsx index 82bfe1e32..a0eccea5c 100644 --- a/web/installer/lib/ff-component/src/formpanel/Footer.tsx +++ b/web/installer/lib/ff-component/src/formpanel/Footer.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { insertCSS } from '@tencent/ff-redux'; diff --git a/web/installer/lib/ff-component/src/formpanel/FormPanel.tsx b/web/installer/lib/ff-component/src/formpanel/FormPanel.tsx index bec68e883..70a230420 100644 --- a/web/installer/lib/ff-component/src/formpanel/FormPanel.tsx +++ b/web/installer/lib/ff-component/src/formpanel/FormPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/installer/lib/ff-component/src/formpanel/HelpText.tsx b/web/installer/lib/ff-component/src/formpanel/HelpText.tsx index 8db4751c5..76858c6c3 100644 --- a/web/installer/lib/ff-component/src/formpanel/HelpText.tsx +++ b/web/installer/lib/ff-component/src/formpanel/HelpText.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Text } from '@tencent/tea-component'; diff --git a/web/installer/lib/ff-component/src/formpanel/InlineText.tsx b/web/installer/lib/ff-component/src/formpanel/InlineText.tsx index 7faf9720f..6afdd6cb5 100644 --- a/web/installer/lib/ff-component/src/formpanel/InlineText.tsx +++ b/web/installer/lib/ff-component/src/formpanel/InlineText.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Text } from '@tencent/tea-component'; diff --git a/web/installer/lib/ff-component/src/formpanel/Input.tsx b/web/installer/lib/ff-component/src/formpanel/Input.tsx index b3aa3c10e..aaab6cc9c 100644 --- a/web/installer/lib/ff-component/src/formpanel/Input.tsx +++ b/web/installer/lib/ff-component/src/formpanel/Input.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/installer/lib/ff-component/src/formpanel/InputNumber.tsx b/web/installer/lib/ff-component/src/formpanel/InputNumber.tsx index 1ddeb14c7..9042ce626 100644 --- a/web/installer/lib/ff-component/src/formpanel/InputNumber.tsx +++ b/web/installer/lib/ff-component/src/formpanel/InputNumber.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/installer/lib/ff-component/src/formpanel/Item.tsx b/web/installer/lib/ff-component/src/formpanel/Item.tsx index e9a3d8696..4ea785fbd 100644 --- a/web/installer/lib/ff-component/src/formpanel/Item.tsx +++ b/web/installer/lib/ff-component/src/formpanel/Item.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { insertCSS } from '@tencent/ff-redux'; diff --git a/web/installer/lib/ff-component/src/formpanel/KeyValuePanel.tsx b/web/installer/lib/ff-component/src/formpanel/KeyValuePanel.tsx index ffe636138..264c37611 100644 --- a/web/installer/lib/ff-component/src/formpanel/KeyValuePanel.tsx +++ b/web/installer/lib/ff-component/src/formpanel/KeyValuePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/installer/lib/ff-component/src/formpanel/Radios.tsx b/web/installer/lib/ff-component/src/formpanel/Radios.tsx index ef1e79c7f..5fcca6e4b 100644 --- a/web/installer/lib/ff-component/src/formpanel/Radios.tsx +++ b/web/installer/lib/ff-component/src/formpanel/Radios.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FetchState, FFListAction, FFListModel } from '@tencent/ff-redux'; diff --git a/web/installer/lib/ff-component/src/formpanel/Segment.tsx b/web/installer/lib/ff-component/src/formpanel/Segment.tsx index 230532b8c..78a6ab484 100644 --- a/web/installer/lib/ff-component/src/formpanel/Segment.tsx +++ b/web/installer/lib/ff-component/src/formpanel/Segment.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FetchState, FFListAction, FFListModel, insertCSS } from '@tencent/ff-redux'; diff --git a/web/installer/lib/ff-component/src/formpanel/Select.tsx b/web/installer/lib/ff-component/src/formpanel/Select.tsx index 0ee2a1341..d5550757e 100644 --- a/web/installer/lib/ff-component/src/formpanel/Select.tsx +++ b/web/installer/lib/ff-component/src/formpanel/Select.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FetchState, FFListAction, FFListModel } from '@tencent/ff-redux'; diff --git a/web/installer/lib/ff-component/src/formpanel/Switch.tsx b/web/installer/lib/ff-component/src/formpanel/Switch.tsx index d6a94f899..cbf5157be 100644 --- a/web/installer/lib/ff-component/src/formpanel/Switch.tsx +++ b/web/installer/lib/ff-component/src/formpanel/Switch.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Switch, SwitchProps } from '@tencent/tea-component'; diff --git a/web/installer/lib/ff-component/src/formpanel/Text.tsx b/web/installer/lib/ff-component/src/formpanel/Text.tsx index f4b070f7b..71440fa25 100644 --- a/web/installer/lib/ff-component/src/formpanel/Text.tsx +++ b/web/installer/lib/ff-component/src/formpanel/Text.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FormText, Icon } from '@tencent/tea-component'; diff --git a/web/installer/lib/ff-component/src/formpanel/TransferTable.tsx b/web/installer/lib/ff-component/src/formpanel/TransferTable.tsx index ef11fc19b..a4161aa00 100644 --- a/web/installer/lib/ff-component/src/formpanel/TransferTable.tsx +++ b/web/installer/lib/ff-component/src/formpanel/TransferTable.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FetcherState, FetchState, FFListAction, FFListModel, RecordSet } from '@tencent/ff-redux'; diff --git a/web/installer/lib/ff-component/src/formpanel/Validatable.tsx b/web/installer/lib/ff-component/src/formpanel/Validatable.tsx index f070ab281..217c3b33c 100644 --- a/web/installer/lib/ff-component/src/formpanel/Validatable.tsx +++ b/web/installer/lib/ff-component/src/formpanel/Validatable.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Placement } from 'popper.js'; import * as React from 'react'; diff --git a/web/installer/lib/ff-component/src/formpanel/index.ts b/web/installer/lib/ff-component/src/formpanel/index.ts index a7023dbad..16387a80a 100644 --- a/web/installer/lib/ff-component/src/formpanel/index.ts +++ b/web/installer/lib/ff-component/src/formpanel/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './Checkbox'; export * from './Checkboxs'; export * from './Footer'; diff --git a/web/installer/lib/ff-component/src/index.ts b/web/installer/lib/ff-component/src/index.ts index fdb9cb61d..dacdf5e98 100644 --- a/web/installer/lib/ff-component/src/index.ts +++ b/web/installer/lib/ff-component/src/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './formpanel'; export * from './tablepanel'; export * from './cam'; diff --git a/web/installer/lib/ff-component/src/lib/classname.ts b/web/installer/lib/ff-component/src/lib/classname.ts index 290bae2a8..394a66c97 100644 --- a/web/installer/lib/ff-component/src/lib/classname.ts +++ b/web/installer/lib/ff-component/src/lib/classname.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ let hasOwn = {}.hasOwnProperty; export function classNames(...args) { diff --git a/web/installer/lib/ff-component/src/lib/index.ts b/web/installer/lib/ff-component/src/lib/index.ts index 683888032..fa8a52285 100644 --- a/web/installer/lib/ff-component/src/lib/index.ts +++ b/web/installer/lib/ff-component/src/lib/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './classname'; diff --git a/web/installer/lib/ff-component/src/tablepanel/TablePanel.tsx b/web/installer/lib/ff-component/src/tablepanel/TablePanel.tsx index d15be4d07..7a59d0d32 100644 --- a/web/installer/lib/ff-component/src/tablepanel/TablePanel.tsx +++ b/web/installer/lib/ff-component/src/tablepanel/TablePanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FetchState, FFListAction, FFListModel, insertCSS, uuid } from '@tencent/ff-redux'; diff --git a/web/installer/lib/ff-component/src/tablepanel/TagSearch.tsx b/web/installer/lib/ff-component/src/tablepanel/TagSearch.tsx index 398ad3f0d..8808fede6 100644 --- a/web/installer/lib/ff-component/src/tablepanel/TagSearch.tsx +++ b/web/installer/lib/ff-component/src/tablepanel/TagSearch.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { FFListAction, FFListModel } from '@tencent/ff-redux'; diff --git a/web/installer/lib/ff-component/src/tablepanel/index.ts b/web/installer/lib/ff-component/src/tablepanel/index.ts index 1da35a4ba..bc02d886a 100644 --- a/web/installer/lib/ff-component/src/tablepanel/index.ts +++ b/web/installer/lib/ff-component/src/tablepanel/index.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { TablePanel, TablePanelColumnProps } from './TablePanel'; export { TablePanelTagSearchBox, TablePanelTagSearchProps } from './TagSearch'; diff --git a/web/installer/lib/ff-redux/index.ts b/web/installer/lib/ff-redux/index.ts index 52b6c25af..91aceb716 100644 --- a/web/installer/lib/ff-redux/index.ts +++ b/web/installer/lib/ff-redux/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './src'; export * from './libs/qcloud-lib'; export * from './libs/qcloud-redux-fetcher'; diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/decorators/OnOuterClick.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/decorators/OnOuterClick.ts index 196098a02..62bbfe3f4 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/decorators/OnOuterClick.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/decorators/OnOuterClick.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import * as ReactDom from 'react-dom'; diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/decorators/OnResize.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/decorators/OnResize.ts index 44c55bfc7..42c393845 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/decorators/OnResize.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/decorators/OnResize.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { appendFunction } from '../helpers/appendFunction'; diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/addComma.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/addComma.ts index 34899d49a..93c0515c6 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/addComma.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/addComma.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 位数字添加逗号分隔 * diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/appendFunction.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/appendFunction.ts index f1f8b1a85..b446d6687 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/appendFunction.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/appendFunction.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 在指定函数后面追加一个函数 */ diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/bindActionCreators.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/bindActionCreators.ts index 2b347440d..ddcf1df8a 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/bindActionCreators.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/bindActionCreators.ts @@ -1,4 +1,21 @@ -/** +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +/** * like redux.bindActionCreators but do it recurisivly * */ export function bindActionCreators(actions: T, dispatch: Redux.Dispatch): T { diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/collectionPaging.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/collectionPaging.ts index dbcfa0ec5..60f9c0607 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/collectionPaging.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/collectionPaging.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { PagingQuery } from '../../../'; // 集合分页 diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/collectionWhere.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/collectionWhere.ts index 4e20323ef..f486f49db 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/collectionWhere.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/collectionWhere.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 集合筛选 * */ diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/createConstant.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/createConstant.ts index 102575f90..ed3893feb 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/createConstant.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/createConstant.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 从枚举类型创建 key-value 一样的常量 */ export function createConstant(enumType: T): T { let constant = {}; diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/createStore.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/createStore.ts index c684419f9..58e9a9ba4 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/createStore.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/createStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { applyMiddleware, createStore as createReduxStore } from 'redux'; import { createLogger } from 'redux-logger'; import thunk from 'redux-thunk'; diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/deepClone.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/deepClone.ts index b08f8db91..c99b802a3 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/deepClone.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/deepClone.ts @@ -1,4 +1,21 @@ -/** +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +/** * 深度拷贝值 */ export function deepClone(source: T): T { diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/findByCondition.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/findByCondition.ts index 94d6b9007..eff564af8 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/findByCondition.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/findByCondition.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 查找集合中满足给定条件的记录 */ diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/findById.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/findById.ts index b0ca36a12..e1f5ec941 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/findById.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/findById.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Identifiable } from '../types/Identifiable'; export function findById(collection: T[], id: string | number): T { diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateDelta.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateDelta.ts index e07e0534b..d334cba7d 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateDelta.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateDelta.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /**Parses string formatted as YYYY-MM-DD to a Date object. * If the supplied string does not match the format, an * invalid Date (value NaN) is returned. diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateStride.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateStride.ts index 1ac21fb3e..84c8293b9 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateStride.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateStride.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { getDateDelta } from './getDateDelta'; function rangeLength(from: string, to: string) { diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateString.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateString.ts index 859c5883c..11b858711 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateString.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateString.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ function pad(num: number) { let r = String(num); if (r.length === 1) { diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateUTC.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateUTC.ts index 2758f2090..437c8e21a 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateUTC.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getDateUTC.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ function parseDate(dateStr) { if (/^(\d{4})[-\s\.,\/]*(\d+)[-\s\.,\/]*(\d+)(?:\s*(\d+)\:(\d+):(\d+))?$/.test(dateStr)) { let year = +RegExp.$1; diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getOffsetDate.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getOffsetDate.ts index 84f5a862f..0458da97f 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getOffsetDate.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/getOffsetDate.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export function getOffsetDate(date: Date, day: number) { let newDate = new Date(date.valueOf()); newDate.setDate(date.getDate() + day); diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/hashObject.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/hashObject.ts index 40a63813a..cad885b31 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/hashObject.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/hashObject.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { hashString } from './hashString'; export function hashObject(obj: any) { diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/hashString.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/hashString.ts index 92fd378b8..77ed25955 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/hashString.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/hashString.ts @@ -1,4 +1,21 @@ -export function hashString(str: string) { +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +export function hashString(str: string) { let hash = 0, i, chr, diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/insertCSS.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/insertCSS.ts index bcf463c7a..0a8e26627 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/insertCSS.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/insertCSS.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const prefix = 'dynamic-inserted-css-'; /** diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/isComponentOfType.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/isComponentOfType.ts index fdd0d06da..093f2fafd 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/isComponentOfType.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/isComponentOfType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; export type ComponentType = diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/isValidDomain.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/isValidDomain.ts index c36fb8aa3..1afff6a83 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/isValidDomain.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/isValidDomain.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export function isValidDomain(domain: string) { // regex from https://github.com/johnotander/domain-regex/blob/master/index.js return /^((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}$/.test(domain); diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/isValidIPAddress.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/isValidIPAddress.ts index ff37aa9f9..bbece54cb 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/isValidIPAddress.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/isValidIPAddress.ts @@ -1,4 +1,21 @@ -/** +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +/** * 检查一个 IP 地址是否为合法的 IP 地址 * */ export function isValidIPAddress(ipAddress: string) { diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/objectExtend.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/objectExtend.ts index 2fa4fa1c3..d25ca9ecf 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/objectExtend.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/objectExtend.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export function extend(target: T, source: S): T & S; export function extend(target: T, source1: S1, source2: S2): T & S1 & S2; export function extend(target: T, source1: S1, source2: S2): T & S1 & S2; diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/objectFetch.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/objectFetch.ts index 039266986..4e32289fd 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/objectFetch.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/objectFetch.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 从 source 抓取 target 中定义的值 * diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/objectMerge.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/objectMerge.ts index 84612e312..37f47c058 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/objectMerge.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/objectMerge.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const deepExtend = require('deep-extend'); export function merge(target: T, source: S): T & S; diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/otherMember.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/otherMember.ts index a30214409..e4a7cad7b 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/otherMember.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/otherMember.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 查找一个集合中不再排除集合里的部分 * diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/pageList.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/pageList.ts index b889b47da..b1634b40a 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/pageList.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/pageList.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { PagingQuery } from '../../..'; export function pageList(list: T[], paging: PagingQuery): T[] { diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/reduceToPayload.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/reduceToPayload.ts index 268ea1cf6..655b79fa2 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/reduceToPayload.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/reduceToPayload.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ReduxAction } from '../../../'; export function reduceToPayload(actionType: string | number, initialState: T) { diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/searchList.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/searchList.ts index 6ecc5832d..2d0b1ba65 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/searchList.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/searchList.ts @@ -1,4 +1,21 @@ -export function searchList(list: T[], search: string, ...fields: string[]): T[] { +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +export function searchList(list: T[], search: string, ...fields: string[]): T[] { if (!search) { return list; } diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/serialReducer.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/serialReducer.ts index 07bf59f02..452107f07 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/serialReducer.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/serialReducer.ts @@ -1,4 +1,21 @@ -export type Reducer = (state: TState, action: TAction) => TState; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +export type Reducer = (state: TState, action: TAction) => TState; export function serialReducer( first: Reducer, diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/uuid.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/uuid.ts index ba121f7d9..27f0a4d24 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/uuid.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/helpers/uuid.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ let index = 10000; const timeLead = 1e12; export function uuid() { diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/index.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/index.ts index f66b5f612..2e5c27101 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/index.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/index.ts @@ -1,4 +1,21 @@ -// export all helpers +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +// export all helpers // export * from "./helpers/addComma"; export * from './helpers/appendFunction'; export * from './helpers/bindActionCreators'; diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/types/BaseReactProps.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/types/BaseReactProps.ts index fd16ac51e..4b7bba920 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/types/BaseReactProps.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/types/BaseReactProps.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; /** diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/types/DateQuery.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/types/DateQuery.ts index 310ac1a28..5eb6997e5 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/types/DateQuery.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/types/DateQuery.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface DateQuery { /** * 查询的起始日期 diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/types/Identifiable.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/types/Identifiable.ts index 7944abaa6..96cc19101 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/types/Identifiable.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/types/Identifiable.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 要求主键的数据,一般用于数组 */ diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/types/PagingQuery.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/types/PagingQuery.ts index 36cc0f9eb..5c907bdcf 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/types/PagingQuery.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/types/PagingQuery.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 表示一次分页请求 */ export interface PagingQuery { /** 请求的页码,从 1 开始索引 */ diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/types/RecordSet.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/types/RecordSet.ts index 7b4d7ae11..b9d18fd82 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/types/RecordSet.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/types/RecordSet.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface RecordSet { data?: ExtendParamsT; recordCount: number; diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/types/ReduxAction.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/types/ReduxAction.ts index fed63fd6f..e96fc33af 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/types/ReduxAction.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/types/ReduxAction.ts @@ -1,4 +1,21 @@ -/** +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +/** * FSA (https://github.com/acdlite/flux-standard-action) with generic type * */ export interface ReduxAction { diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/types/ReduxConnectedProps.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/types/ReduxConnectedProps.ts index edf55fbf4..f3dd270d6 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/types/ReduxConnectedProps.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/types/ReduxConnectedProps.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export declare interface ReduxConnectedProps { dispatch?: Redux.Dispatch; } diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/types/SortQuery.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/types/SortQuery.ts index 0ef71be08..423e4bfed 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/types/SortQuery.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/types/SortQuery.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface SortQuery { by?: string; desc?: boolean; diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/utils/Children.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/utils/Children.ts index e463d8d89..52d8be29a 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/utils/Children.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/utils/Children.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { isComponentOfType } from '../helpers/isComponentOfType'; diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/utils/Selection.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/utils/Selection.ts index d422bc8ad..b459ae6c8 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/utils/Selection.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/utils/Selection.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * @fileOverview * diff --git a/web/installer/lib/ff-redux/libs/qcloud-lib/utils/Transition.ts b/web/installer/lib/ff-redux/libs/qcloud-lib/utils/Transition.ts index 999704c99..b6b5b4e52 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-lib/utils/Transition.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-lib/utils/Transition.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { hashObject } from '../helpers/hashObject'; import { insertCSS } from '../helpers/insertCSS'; diff --git a/web/installer/lib/ff-redux/libs/qcloud-redux-fetcher/index.ts b/web/installer/lib/ff-redux/libs/qcloud-redux-fetcher/index.ts index 6d753e864..02ed26983 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-redux-fetcher/index.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-redux-fetcher/index.ts @@ -1 +1,18 @@ -export * from './lib/Fetcher'; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +export * from './lib/Fetcher'; diff --git a/web/installer/lib/ff-redux/libs/qcloud-redux-fetcher/lib/Fetcher.ts b/web/installer/lib/ff-redux/libs/qcloud-redux-fetcher/lib/Fetcher.ts index 238a1a54c..47303e2f8 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-redux-fetcher/lib/Fetcher.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-redux-fetcher/lib/Fetcher.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Dispatch } from 'redux'; import { ReduxAction } from '../../../'; diff --git a/web/installer/lib/ff-redux/libs/qcloud-redux-query/index.ts b/web/installer/lib/ff-redux/libs/qcloud-redux-query/index.ts index 1c45417b6..f50b06ac3 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-redux-query/index.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-redux-query/index.ts @@ -1 +1,18 @@ -export * from './lib/Query'; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +export * from './lib/Query'; diff --git a/web/installer/lib/ff-redux/libs/qcloud-redux-query/lib/Query.ts b/web/installer/lib/ff-redux/libs/qcloud-redux-query/lib/Query.ts index 2f9e1b635..e72dcf6c7 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-redux-query/lib/Query.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-redux-query/lib/Query.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Dispatch } from 'redux'; import { ActionTypesEnum, PagingQuery, QueryState, ReduxAction } from '../../../src/base'; diff --git a/web/installer/lib/ff-redux/libs/qcloud-redux-workflow/index.ts b/web/installer/lib/ff-redux/libs/qcloud-redux-workflow/index.ts index fd4e95479..ebc5dff13 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-redux-workflow/index.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-redux-workflow/index.ts @@ -1 +1,18 @@ -export * from './lib/Workflow'; +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +export * from './lib/Workflow'; diff --git a/web/installer/lib/ff-redux/libs/qcloud-redux-workflow/lib/Workflow.ts b/web/installer/lib/ff-redux/libs/qcloud-redux-workflow/lib/Workflow.ts index 20c0d722f..d6ca7cb64 100644 --- a/web/installer/lib/ff-redux/libs/qcloud-redux-workflow/lib/Workflow.ts +++ b/web/installer/lib/ff-redux/libs/qcloud-redux-workflow/lib/Workflow.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * @author techirdliu@tencent.com * diff --git a/web/installer/lib/ff-redux/src/base/Action.ts b/web/installer/lib/ff-redux/src/base/Action.ts index 354c0f25a..5f4fe6ef0 100644 --- a/web/installer/lib/ff-redux/src/base/Action.ts +++ b/web/installer/lib/ff-redux/src/base/Action.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Dispatch } from 'redux'; import { diff --git a/web/installer/lib/ff-redux/src/base/Model/ActionTypesEnum.ts b/web/installer/lib/ff-redux/src/base/Model/ActionTypesEnum.ts index f78141d4d..de3b0f3c6 100644 --- a/web/installer/lib/ff-redux/src/base/Model/ActionTypesEnum.ts +++ b/web/installer/lib/ff-redux/src/base/Model/ActionTypesEnum.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum ActionTypesEnum { ChangeKeyword = 'ChangeKeyword', PerformSearch = 'PerformSearch', diff --git a/web/installer/lib/ff-redux/src/base/Model/DataType.ts b/web/installer/lib/ff-redux/src/base/Model/DataType.ts index 1985b5852..426ac22f1 100644 --- a/web/installer/lib/ff-redux/src/base/Model/DataType.ts +++ b/web/installer/lib/ff-redux/src/base/Model/DataType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum DataType { List = 'List', Object = 'Object' diff --git a/web/installer/lib/ff-redux/src/base/Model/FetchOptions.ts b/web/installer/lib/ff-redux/src/base/Model/FetchOptions.ts index 0d9a61f99..4986030db 100644 --- a/web/installer/lib/ff-redux/src/base/Model/FetchOptions.ts +++ b/web/installer/lib/ff-redux/src/base/Model/FetchOptions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface FetchOptions { /** * 是否要求强制无缓存拉取 diff --git a/web/installer/lib/ff-redux/src/base/Model/FetchState.ts b/web/installer/lib/ff-redux/src/base/Model/FetchState.ts index 0fb4f7a48..bb1349fbc 100644 --- a/web/installer/lib/ff-redux/src/base/Model/FetchState.ts +++ b/web/installer/lib/ff-redux/src/base/Model/FetchState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum FetchState { /** indicates the data is up to date and ready to use */ Ready = 'Ready', diff --git a/web/installer/lib/ff-redux/src/base/Model/FetcherPayload.ts b/web/installer/lib/ff-redux/src/base/Model/FetcherPayload.ts index 86230f0fd..eafb0b799 100644 --- a/web/installer/lib/ff-redux/src/base/Model/FetcherPayload.ts +++ b/web/installer/lib/ff-redux/src/base/Model/FetcherPayload.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherTrigger } from './FetcherTrigger'; import { ReduxAction } from './ReduxAction'; diff --git a/web/installer/lib/ff-redux/src/base/Model/FetcherState.ts b/web/installer/lib/ff-redux/src/base/Model/FetcherState.ts index 9781b605e..6bc808c06 100644 --- a/web/installer/lib/ff-redux/src/base/Model/FetcherState.ts +++ b/web/installer/lib/ff-redux/src/base/Model/FetcherState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetchState } from './FetchState'; import { RecordSet } from './RecordSet'; diff --git a/web/installer/lib/ff-redux/src/base/Model/FetcherTrigger.ts b/web/installer/lib/ff-redux/src/base/Model/FetcherTrigger.ts index 54600dbdb..c866b37f9 100644 --- a/web/installer/lib/ff-redux/src/base/Model/FetcherTrigger.ts +++ b/web/installer/lib/ff-redux/src/base/Model/FetcherTrigger.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum FetcherTrigger { /** * trigger a load operation diff --git a/web/installer/lib/ff-redux/src/base/Model/Identifiable.ts b/web/installer/lib/ff-redux/src/base/Model/Identifiable.ts index 7944abaa6..96cc19101 100644 --- a/web/installer/lib/ff-redux/src/base/Model/Identifiable.ts +++ b/web/installer/lib/ff-redux/src/base/Model/Identifiable.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 要求主键的数据,一般用于数组 */ diff --git a/web/installer/lib/ff-redux/src/base/Model/PagingQuery.ts b/web/installer/lib/ff-redux/src/base/Model/PagingQuery.ts index 276ee682b..c5352053b 100644 --- a/web/installer/lib/ff-redux/src/base/Model/PagingQuery.ts +++ b/web/installer/lib/ff-redux/src/base/Model/PagingQuery.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 表示一次分页请求 */ export interface PagingQuery { /** 请求的页码,从 1 开始索引 */ diff --git a/web/installer/lib/ff-redux/src/base/Model/QueryState.ts b/web/installer/lib/ff-redux/src/base/Model/QueryState.ts index fa0571889..b6a261468 100644 --- a/web/installer/lib/ff-redux/src/base/Model/QueryState.ts +++ b/web/installer/lib/ff-redux/src/base/Model/QueryState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { PagingQuery } from './PagingQuery'; import { SortQuery } from './SortQuery'; diff --git a/web/installer/lib/ff-redux/src/base/Model/RecordSet.ts b/web/installer/lib/ff-redux/src/base/Model/RecordSet.ts index 2a0cdac2c..48ff51409 100644 --- a/web/installer/lib/ff-redux/src/base/Model/RecordSet.ts +++ b/web/installer/lib/ff-redux/src/base/Model/RecordSet.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface RecordSet { data?: ExtendParamsT; recordCount: number; diff --git a/web/installer/lib/ff-redux/src/base/Model/ReduxAction.ts b/web/installer/lib/ff-redux/src/base/Model/ReduxAction.ts index fed63fd6f..e96fc33af 100644 --- a/web/installer/lib/ff-redux/src/base/Model/ReduxAction.ts +++ b/web/installer/lib/ff-redux/src/base/Model/ReduxAction.ts @@ -1,4 +1,21 @@ -/** +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +/** * FSA (https://github.com/acdlite/flux-standard-action) with generic type * */ export interface ReduxAction { diff --git a/web/installer/lib/ff-redux/src/base/Model/SortQuery.ts b/web/installer/lib/ff-redux/src/base/Model/SortQuery.ts index 0ef71be08..423e4bfed 100644 --- a/web/installer/lib/ff-redux/src/base/Model/SortQuery.ts +++ b/web/installer/lib/ff-redux/src/base/Model/SortQuery.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface SortQuery { by?: string; desc?: boolean; diff --git a/web/installer/lib/ff-redux/src/base/Model/index.ts b/web/installer/lib/ff-redux/src/base/Model/index.ts index 7a97a1636..404f04be5 100644 --- a/web/installer/lib/ff-redux/src/base/Model/index.ts +++ b/web/installer/lib/ff-redux/src/base/Model/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './ActionTypesEnum'; export * from './DataType'; export * from './FetcherPayload'; diff --git a/web/installer/lib/ff-redux/src/base/Reducer.ts b/web/installer/lib/ff-redux/src/base/Reducer.ts index 3fda72e26..d22c73cad 100644 --- a/web/installer/lib/ff-redux/src/base/Reducer.ts +++ b/web/installer/lib/ff-redux/src/base/Reducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend, merge } from '../../libs/qcloud-lib'; import { ActionTypesEnum, DataType, FetcherAction, FetcherState, FetcherTrigger, FetchState, PagingQuery, diff --git a/web/installer/lib/ff-redux/src/base/index.ts b/web/installer/lib/ff-redux/src/base/index.ts index f78f2830a..5eff9cac6 100644 --- a/web/installer/lib/ff-redux/src/base/index.ts +++ b/web/installer/lib/ff-redux/src/base/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './Reducer'; export * from './Action'; export * from './Model'; diff --git a/web/installer/lib/ff-redux/src/index.ts b/web/installer/lib/ff-redux/src/index.ts index 3cb68ba18..b697083c1 100644 --- a/web/installer/lib/ff-redux/src/index.ts +++ b/web/installer/lib/ff-redux/src/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './base'; export * from './list'; export * from './object'; diff --git a/web/installer/lib/ff-redux/src/list/Action.ts b/web/installer/lib/ff-redux/src/list/Action.ts index 16d230449..c4ca56d36 100644 --- a/web/installer/lib/ff-redux/src/list/Action.ts +++ b/web/installer/lib/ff-redux/src/list/Action.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { extend } from '../../libs/qcloud-lib'; import { BaseAction, createBaseAction, FetcherState, FetchOptions, FetchState, QueryState, RecordSet } from '../base'; import { createFFListActionType } from './ActionType'; diff --git a/web/installer/lib/ff-redux/src/list/ActionType.ts b/web/installer/lib/ff-redux/src/list/ActionType.ts index e989f8fc0..8dbf3e5cb 100644 --- a/web/installer/lib/ff-redux/src/list/ActionType.ts +++ b/web/installer/lib/ff-redux/src/list/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum FFListType { Base = 'Base', Fetch = 'Fetch', diff --git a/web/installer/lib/ff-redux/src/list/Model.ts b/web/installer/lib/ff-redux/src/list/Model.ts index cfabc0b63..b5951e7a1 100644 --- a/web/installer/lib/ff-redux/src/list/Model.ts +++ b/web/installer/lib/ff-redux/src/list/Model.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, QueryState, RecordSet } from '../base/Model'; export type FFListModel = { diff --git a/web/installer/lib/ff-redux/src/list/Reducer.ts b/web/installer/lib/ff-redux/src/list/Reducer.ts index 5851ece1f..cabec1818 100644 --- a/web/installer/lib/ff-redux/src/list/Reducer.ts +++ b/web/installer/lib/ff-redux/src/list/Reducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { reduceToPayload } from '../../libs/qcloud-lib'; diff --git a/web/installer/lib/ff-redux/src/list/index.ts b/web/installer/lib/ff-redux/src/list/index.ts index 04430516d..149dcb46b 100644 --- a/web/installer/lib/ff-redux/src/list/index.ts +++ b/web/installer/lib/ff-redux/src/list/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './ActionType'; export * from './Model'; export * from './Reducer'; diff --git a/web/installer/lib/ff-redux/src/object/Action.ts b/web/installer/lib/ff-redux/src/object/Action.ts index be5c5401a..b7b271c0f 100644 --- a/web/installer/lib/ff-redux/src/object/Action.ts +++ b/web/installer/lib/ff-redux/src/object/Action.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, FetchOptions, QueryState } from '../../'; import { extend } from '../../libs/qcloud-lib'; import { BaseAction, createBaseAction, DataType, RecordSet } from '../base'; diff --git a/web/installer/lib/ff-redux/src/object/ActionType.ts b/web/installer/lib/ff-redux/src/object/ActionType.ts index 4f016a2f3..a02439078 100644 --- a/web/installer/lib/ff-redux/src/object/ActionType.ts +++ b/web/installer/lib/ff-redux/src/object/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export enum FFObjectType { Base = 'Base', Fetch = 'Fetch', diff --git a/web/installer/lib/ff-redux/src/object/Model.ts b/web/installer/lib/ff-redux/src/object/Model.ts index 9b5b195ed..94f90d19b 100644 --- a/web/installer/lib/ff-redux/src/object/Model.ts +++ b/web/installer/lib/ff-redux/src/object/Model.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, QueryState } from '../base/Model'; export type FFObjectModel = { diff --git a/web/installer/lib/ff-redux/src/object/Reducer.ts b/web/installer/lib/ff-redux/src/object/Reducer.ts index 8aaa876be..e2cfc84a3 100644 --- a/web/installer/lib/ff-redux/src/object/Reducer.ts +++ b/web/installer/lib/ff-redux/src/object/Reducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { createBaseReducer, QueryState } from '../base'; diff --git a/web/installer/lib/ff-redux/src/object/index.ts b/web/installer/lib/ff-redux/src/object/index.ts index 04430516d..149dcb46b 100644 --- a/web/installer/lib/ff-redux/src/object/index.ts +++ b/web/installer/lib/ff-redux/src/object/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from './ActionType'; export * from './Model'; export * from './Reducer'; diff --git a/web/installer/lib/ff-redux/utils/extend.ts b/web/installer/lib/ff-redux/utils/extend.ts index 2fa4fa1c3..d25ca9ecf 100644 --- a/web/installer/lib/ff-redux/utils/extend.ts +++ b/web/installer/lib/ff-redux/utils/extend.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export function extend(target: T, source: S): T & S; export function extend(target: T, source1: S1, source2: S2): T & S1 & S2; export function extend(target: T, source1: S1, source2: S2): T & S1 & S2; diff --git a/web/installer/lib/ff-redux/utils/index.ts b/web/installer/lib/ff-redux/utils/index.ts index 3852acb7e..eae45d8fc 100644 --- a/web/installer/lib/ff-redux/utils/index.ts +++ b/web/installer/lib/ff-redux/utils/index.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { extend } from './extend'; export { reduceToPayload, ReduxAction } from './reduceToPayload'; diff --git a/web/installer/lib/ff-redux/utils/reduceToPayload.ts b/web/installer/lib/ff-redux/utils/reduceToPayload.ts index 42ef9f76e..bc75975c0 100644 --- a/web/installer/lib/ff-redux/utils/reduceToPayload.ts +++ b/web/installer/lib/ff-redux/utils/reduceToPayload.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface ReduxAction { /** * The action type, the `number` type is to support enum. diff --git a/web/installer/lib/ff-validator/index.ts b/web/installer/lib/ff-validator/index.ts index d26f663d0..d7bf85afc 100644 --- a/web/installer/lib/ff-validator/index.ts +++ b/web/installer/lib/ff-validator/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { ValidateSchema, ValidatorStatusEnum, diff --git a/web/installer/lib/ff-validator/src/Action.ts b/web/installer/lib/ff-validator/src/Action.ts index d29c9bd2c..ee7d043b6 100644 --- a/web/installer/lib/ff-validator/src/Action.ts +++ b/web/installer/lib/ff-validator/src/Action.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { t, Trans } from '@tencent/tea-app/lib/i18n'; import { getValidatorActionType } from './ActionType'; diff --git a/web/installer/lib/ff-validator/src/ActionType.ts b/web/installer/lib/ff-validator/src/ActionType.ts index cc58f7d75..b5347bc6a 100644 --- a/web/installer/lib/ff-validator/src/ActionType.ts +++ b/web/installer/lib/ff-validator/src/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 获取ActionType * @param formKey: string 表单的名称 diff --git a/web/installer/lib/ff-validator/src/Model.ts b/web/installer/lib/ff-validator/src/Model.ts index 149923170..15ac4b907 100644 --- a/web/installer/lib/ff-validator/src/Model.ts +++ b/web/installer/lib/ff-validator/src/Model.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Validation } from './Validation'; export interface ValidatorModel { diff --git a/web/installer/lib/ff-validator/src/Reducer.ts b/web/installer/lib/ff-validator/src/Reducer.ts index d8fdbb6e2..71637665a 100644 --- a/web/installer/lib/ff-validator/src/Reducer.ts +++ b/web/installer/lib/ff-validator/src/Reducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Reducer } from 'redux'; import { getValidatorActionType } from './ActionType'; diff --git a/web/installer/lib/ff-validator/src/Validation.ts b/web/installer/lib/ff-validator/src/Validation.ts index 59c085b67..4508d52d0 100644 --- a/web/installer/lib/ff-validator/src/Validation.ts +++ b/web/installer/lib/ff-validator/src/Validation.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface Validation { /**验证状态 0: 初始状态;1:校验通过;2:校验不通过;*/ status?: number; diff --git a/web/installer/lib/ff-validator/src/utils/cloneDeep.ts b/web/installer/lib/ff-validator/src/utils/cloneDeep.ts index 205dd6958..16165c3ac 100644 --- a/web/installer/lib/ff-validator/src/utils/cloneDeep.ts +++ b/web/installer/lib/ff-validator/src/utils/cloneDeep.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /* eslint-disable */ export const cloneDeep = function(item) { if (!item) { diff --git a/web/installer/lib/ff-validator/src/utils/getFirstBracketName.ts b/web/installer/lib/ff-validator/src/utils/getFirstBracketName.ts index beaaf7c52..ed25402a9 100644 --- a/web/installer/lib/ff-validator/src/utils/getFirstBracketName.ts +++ b/web/installer/lib/ff-validator/src/utils/getFirstBracketName.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 获取bracket的名称 * @return string diff --git a/web/installer/lib/ff-validator/src/utils/getMessage.ts b/web/installer/lib/ff-validator/src/utils/getMessage.ts index 0080a7c71..9bbdac436 100644 --- a/web/installer/lib/ff-validator/src/utils/getMessage.ts +++ b/web/installer/lib/ff-validator/src/utils/getMessage.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ValidatorModel } from '../Model'; /** diff --git a/web/installer/lib/ff-validator/src/utils/getValue.ts b/web/installer/lib/ff-validator/src/utils/getValue.ts index 29202c76d..4f98cbc47 100644 --- a/web/installer/lib/ff-validator/src/utils/getValue.ts +++ b/web/installer/lib/ff-validator/src/utils/getValue.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ValidatorModel, ValidatorStatusEnum } from '../Model'; import { Validation } from '../Validation'; diff --git a/web/installer/lib/ff-validator/src/utils/index.ts b/web/installer/lib/ff-validator/src/utils/index.ts index b4f25c6e4..bc6f207a3 100644 --- a/web/installer/lib/ff-validator/src/utils/index.ts +++ b/web/installer/lib/ff-validator/src/utils/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { getValue } from './getValue'; export { isValid } from './isValid'; export { reduceToPayload } from './reduceToPayload'; diff --git a/web/installer/lib/ff-validator/src/utils/isContainBracket.ts b/web/installer/lib/ff-validator/src/utils/isContainBracket.ts index 3fb05c223..9479c5eb7 100644 --- a/web/installer/lib/ff-validator/src/utils/isContainBracket.ts +++ b/web/installer/lib/ff-validator/src/utils/isContainBracket.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** 格式化传入的vkey,将方括号当中的数字去除 */ export const formatVkeyRegExp: RegExp = /\[(\d*)\]/g; diff --git a/web/installer/lib/ff-validator/src/utils/isValid.ts b/web/installer/lib/ff-validator/src/utils/isValid.ts index 4c4692498..882b2d5e3 100644 --- a/web/installer/lib/ff-validator/src/utils/isValid.ts +++ b/web/installer/lib/ff-validator/src/utils/isValid.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { ValidatorModel, ValidatorStatusEnum } from '../Model'; /** diff --git a/web/installer/lib/ff-validator/src/utils/reduceToPayload.ts b/web/installer/lib/ff-validator/src/utils/reduceToPayload.ts index b34edf70b..3f98b7eb9 100644 --- a/web/installer/lib/ff-validator/src/utils/reduceToPayload.ts +++ b/web/installer/lib/ff-validator/src/utils/reduceToPayload.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface ReduxAction { /** * The action type, the `number` type is to support enum. diff --git a/web/installer/loader/ifelse-loader.js b/web/installer/loader/ifelse-loader.js index fc70cf5b7..006e57b2e 100644 --- a/web/installer/loader/ifelse-loader.js +++ b/web/installer/loader/ifelse-loader.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ // let loaderUtils = require('loader-utils'); let parse = require('./lib/parse'); let fs = require('fs'); diff --git a/web/installer/loader/iffile-loader.js b/web/installer/loader/iffile-loader.js index 159423892..08ae3d592 100644 --- a/web/installer/loader/iffile-loader.js +++ b/web/installer/loader/iffile-loader.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ // let loaderUtils = require('loader-utils'); // let parse = require('./lib/parse'); let fs = require('fs'); diff --git a/web/installer/loader/lib/parse.js b/web/installer/loader/lib/parse.js index 866809a8a..e7abc6f0b 100644 --- a/web/installer/loader/lib/parse.js +++ b/web/installer/loader/lib/parse.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ function parse(source, defs, verbose) { let lines = source.split('\n'); diff --git a/web/installer/src/modules/common/components/clip/Clip.tsx b/web/installer/src/modules/common/components/clip/Clip.tsx index da2d81873..4b05b1b50 100644 --- a/web/installer/src/modules/common/components/clip/Clip.tsx +++ b/web/installer/src/modules/common/components/clip/Clip.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as Clipboard from 'clipboard'; import * as React from 'react'; diff --git a/web/installer/src/modules/common/components/clip/index.ts b/web/installer/src/modules/common/components/clip/index.ts index c07061bd8..11feef6d5 100644 --- a/web/installer/src/modules/common/components/clip/index.ts +++ b/web/installer/src/modules/common/components/clip/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { Clip, ClipProps } from './Clip'; diff --git a/web/installer/src/modules/common/components/codemirror/CodeMirrorEditor.tsx b/web/installer/src/modules/common/components/codemirror/CodeMirrorEditor.tsx index 303bcf444..3b56ffb8a 100644 --- a/web/installer/src/modules/common/components/codemirror/CodeMirrorEditor.tsx +++ b/web/installer/src/modules/common/components/codemirror/CodeMirrorEditor.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Controlled as CodeMirror } from 'react-codemirror2'; diff --git a/web/installer/src/modules/common/components/codemirror/index.ts b/web/installer/src/modules/common/components/codemirror/index.ts index 6842e0368..c19b54a76 100644 --- a/web/installer/src/modules/common/components/codemirror/index.ts +++ b/web/installer/src/modules/common/components/codemirror/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { CodeMirrorEditor, CodeMirrorEditorProps } from './CodeMirrorEditor'; diff --git a/web/installer/src/modules/common/components/errortip/ErrorTip.tsx b/web/installer/src/modules/common/components/errortip/ErrorTip.tsx index 4b90e45f8..219b94726 100644 --- a/web/installer/src/modules/common/components/errortip/ErrorTip.tsx +++ b/web/installer/src/modules/common/components/errortip/ErrorTip.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps, WorkflowState } from '@tencent/ff-redux'; diff --git a/web/installer/src/modules/common/components/errortip/index.ts b/web/installer/src/modules/common/components/errortip/index.ts index 749ee436f..11eb1af9a 100644 --- a/web/installer/src/modules/common/components/errortip/index.ts +++ b/web/installer/src/modules/common/components/errortip/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { ErrorGuide, ErrorTipProps, ErrorTip } from './ErrorTip'; diff --git a/web/installer/src/modules/common/components/headbubble/HeadBubble.tsx b/web/installer/src/modules/common/components/headbubble/HeadBubble.tsx index b3a68e7bd..f70640310 100644 --- a/web/installer/src/modules/common/components/headbubble/HeadBubble.tsx +++ b/web/installer/src/modules/common/components/headbubble/HeadBubble.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { BaseReactProps } from '@tencent/ff-redux'; diff --git a/web/installer/src/modules/common/components/headbubble/index.ts b/web/installer/src/modules/common/components/headbubble/index.ts index d14087546..ebe5d50da 100644 --- a/web/installer/src/modules/common/components/headbubble/index.ts +++ b/web/installer/src/modules/common/components/headbubble/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { HeadBubble, HeadBubbleProps } from './HeadBubble'; \ No newline at end of file diff --git a/web/installer/src/modules/common/components/index.ts b/web/installer/src/modules/common/components/index.ts index 9c77ebdc0..1ea97c334 100644 --- a/web/installer/src/modules/common/components/index.ts +++ b/web/installer/src/modules/common/components/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { Clip } from './clip'; export { HeadBubble } from './headbubble'; export { ErrorGuide, ErrorTip } from './errortip'; diff --git a/web/installer/src/modules/common/components/logviewer/Panel.tsx b/web/installer/src/modules/common/components/logviewer/Panel.tsx index f811d6ab1..cfd7a63df 100644 --- a/web/installer/src/modules/common/components/logviewer/Panel.tsx +++ b/web/installer/src/modules/common/components/logviewer/Panel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { findDOMNode } from 'react-dom'; diff --git a/web/installer/src/modules/common/components/logviewer/index.ts b/web/installer/src/modules/common/components/logviewer/index.ts index c9401816c..1630454d4 100644 --- a/web/installer/src/modules/common/components/logviewer/index.ts +++ b/web/installer/src/modules/common/components/logviewer/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export * from "./Panel"; diff --git a/web/installer/src/modules/common/components/toptips/TopTips.tsx b/web/installer/src/modules/common/components/toptips/TopTips.tsx index 3915482e6..5c8ebc103 100644 --- a/web/installer/src/modules/common/components/toptips/TopTips.tsx +++ b/web/installer/src/modules/common/components/toptips/TopTips.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; import * as ReactDom from 'react-dom'; diff --git a/web/installer/src/modules/common/components/toptips/index.ts b/web/installer/src/modules/common/components/toptips/index.ts index df2e7d5b8..a4571ed64 100644 --- a/web/installer/src/modules/common/components/toptips/index.ts +++ b/web/installer/src/modules/common/components/toptips/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { TopTips, TopTipsProps } from './TopTips'; diff --git a/web/installer/src/modules/common/configs/menuConfig.ts b/web/installer/src/modules/common/configs/menuConfig.ts index cd27978cf..70e578fc2 100644 --- a/web/installer/src/modules/common/configs/menuConfig.ts +++ b/web/installer/src/modules/common/configs/menuConfig.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const businessKey = 'oss'; export const defaultMenu = `/${businessKey}/userinfo`; diff --git a/web/installer/src/modules/common/libs/Validator.ts b/web/installer/src/modules/common/libs/Validator.ts index 384565f7e..188044d8a 100644 --- a/web/installer/src/modules/common/libs/Validator.ts +++ b/web/installer/src/modules/common/libs/Validator.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ // import { Validation } from '../models'; // import { isEmpty } from '../utils'; // import { ReduxAction } from '@tencent/ff-redux'; diff --git a/web/installer/src/modules/common/models/Record.ts b/web/installer/src/modules/common/models/Record.ts index 134314e23..a4a067748 100644 --- a/web/installer/src/modules/common/models/Record.ts +++ b/web/installer/src/modules/common/models/Record.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface Record { record: T; auth?: { diff --git a/web/installer/src/modules/common/models/Validation.ts b/web/installer/src/modules/common/models/Validation.ts index 40cb36012..d145822e5 100644 --- a/web/installer/src/modules/common/models/Validation.ts +++ b/web/installer/src/modules/common/models/Validation.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export interface Validation { /**验证状态 0: 初始状态;1:校验通过;2:校验不通过;*/ status?: number; diff --git a/web/installer/src/modules/common/models/index.ts b/web/installer/src/modules/common/models/index.ts index baeb1802c..762731ed5 100644 --- a/web/installer/src/modules/common/models/index.ts +++ b/web/installer/src/modules/common/models/index.ts @@ -1,2 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { initValidation, Validation } from './Validation'; export { Record } from './Record'; diff --git a/web/installer/src/modules/common/utils/bytesTo.ts b/web/installer/src/modules/common/utils/bytesTo.ts index 7e85a49d9..05b033a6f 100644 --- a/web/installer/src/modules/common/utils/bytesTo.ts +++ b/web/installer/src/modules/common/utils/bytesTo.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * Bytes -> GB/MB/KB/Bytes */ diff --git a/web/installer/src/modules/common/utils/cloneDeep.ts b/web/installer/src/modules/common/utils/cloneDeep.ts index 205dd6958..16165c3ac 100644 --- a/web/installer/src/modules/common/utils/cloneDeep.ts +++ b/web/installer/src/modules/common/utils/cloneDeep.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /* eslint-disable */ export const cloneDeep = function(item) { if (!item) { diff --git a/web/installer/src/modules/common/utils/flatten.ts b/web/installer/src/modules/common/utils/flatten.ts index 14d028c53..b02cc7124 100644 --- a/web/installer/src/modules/common/utils/flatten.ts +++ b/web/installer/src/modules/common/utils/flatten.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const flat = (arr: Array) => { return arr.reduce((prev, cur) => prev.concat(cur), []); }; diff --git a/web/installer/src/modules/common/utils/formatRequestResult.ts b/web/installer/src/modules/common/utils/formatRequestResult.ts index 5280f0088..b20ac866b 100644 --- a/web/installer/src/modules/common/utils/formatRequestResult.ts +++ b/web/installer/src/modules/common/utils/formatRequestResult.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const formatRequestRequest = (rsp: any) => { let dataList = [], data = null, diff --git a/web/installer/src/modules/common/utils/formatTime.ts b/web/installer/src/modules/common/utils/formatTime.ts index 491bb31eb..6a2d65cdb 100644 --- a/web/installer/src/modules/common/utils/formatTime.ts +++ b/web/installer/src/modules/common/utils/formatTime.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const formatTime = (time: string) => { let re = time; if (time.includes('.')) { diff --git a/web/installer/src/modules/common/utils/getCidrMask.ts b/web/installer/src/modules/common/utils/getCidrMask.ts index be524e995..b02d00621 100644 --- a/web/installer/src/modules/common/utils/getCidrMask.ts +++ b/web/installer/src/modules/common/utils/getCidrMask.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const getCidrMask = (cidr: string): string => { if (!cidr) { return ''; diff --git a/web/installer/src/modules/common/utils/getCidrPeriod.ts b/web/installer/src/modules/common/utils/getCidrPeriod.ts index c8940d80a..c79854e36 100644 --- a/web/installer/src/modules/common/utils/getCidrPeriod.ts +++ b/web/installer/src/modules/common/utils/getCidrPeriod.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const getCidrPeriod = (cidr: string): string => { if (!cidr) { return ''; diff --git a/web/installer/src/modules/common/utils/getCookie.ts b/web/installer/src/modules/common/utils/getCookie.ts index d4b119983..25243af11 100644 --- a/web/installer/src/modules/common/utils/getCookie.ts +++ b/web/installer/src/modules/common/utils/getCookie.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const getCookie = (name: string) => { let arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); diff --git a/web/installer/src/modules/common/utils/getQueryStatus.ts b/web/installer/src/modules/common/utils/getQueryStatus.ts index dbbf21cf0..98faa7616 100644 --- a/web/installer/src/modules/common/utils/getQueryStatus.ts +++ b/web/installer/src/modules/common/utils/getQueryStatus.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, FetchState, RecordSet } from '@tencent/ff-redux'; export const getQueryStatus = (fetcher: FetcherState>, search?: any) => { diff --git a/web/installer/src/modules/common/utils/getRangeSliderSection.ts b/web/installer/src/modules/common/utils/getRangeSliderSection.ts index f91ca56a1..d99ddd690 100644 --- a/web/installer/src/modules/common/utils/getRangeSliderSection.ts +++ b/web/installer/src/modules/common/utils/getRangeSliderSection.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ // 计算数据盘条 之间的 距离 和数值,主要取四个点: 开始、1/5、1/2、结束 export const getRangeSliderSection = function(diskMaxSize: number, rangeWidth: number = 600) { return [ diff --git a/web/installer/src/modules/common/utils/getScrollBarWidth.ts b/web/installer/src/modules/common/utils/getScrollBarWidth.ts index b2c369044..30d8fa504 100644 --- a/web/installer/src/modules/common/utils/getScrollBarWidth.ts +++ b/web/installer/src/modules/common/utils/getScrollBarWidth.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ //计算滚动条宽度 export const getScrollBarSize = (className?: string) => { let inner = document.createElement('p'); diff --git a/web/installer/src/modules/common/utils/getValidateStatus.ts b/web/installer/src/modules/common/utils/getValidateStatus.ts index 68d79e58b..9d5308eff 100644 --- a/web/installer/src/modules/common/utils/getValidateStatus.ts +++ b/web/installer/src/modules/common/utils/getValidateStatus.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Validation } from '../models/Validation'; export const getValidateStatus = (validate: Validation) => { diff --git a/web/installer/src/modules/common/utils/getWorkflowError.ts b/web/installer/src/modules/common/utils/getWorkflowError.ts index dd420008b..dd57564c2 100644 --- a/web/installer/src/modules/common/utils/getWorkflowError.ts +++ b/web/installer/src/modules/common/utils/getWorkflowError.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { WorkflowState } from '@tencent/ff-redux'; import { t, Trans } from '@tencent/tea-app/lib/i18n'; diff --git a/web/installer/src/modules/common/utils/hasScrolled.ts b/web/installer/src/modules/common/utils/hasScrolled.ts index 23d2d8e06..be972b395 100644 --- a/web/installer/src/modules/common/utils/hasScrolled.ts +++ b/web/installer/src/modules/common/utils/hasScrolled.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 判断目标元素是否出现了滚动条 */ diff --git a/web/installer/src/modules/common/utils/includes.ts b/web/installer/src/modules/common/utils/includes.ts index 7ae0b1ce8..6e16ee563 100644 --- a/web/installer/src/modules/common/utils/includes.ts +++ b/web/installer/src/modules/common/utils/includes.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { isEmpty } from './isEmpty'; /** 判断数组是否存在某个值 */ diff --git a/web/installer/src/modules/common/utils/index.ts b/web/installer/src/modules/common/utils/index.ts index 5bd19d1a2..559922bc9 100644 --- a/web/installer/src/modules/common/utils/index.ts +++ b/web/installer/src/modules/common/utils/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { stringSizeOf } from './stringSizeOf'; export { orderBy } from './orderBy'; export { uniq } from './uniq'; diff --git a/web/installer/src/modules/common/utils/isEmpty.ts b/web/installer/src/modules/common/utils/isEmpty.ts index ede0cce71..7622500a6 100644 --- a/web/installer/src/modules/common/utils/isEmpty.ts +++ b/web/installer/src/modules/common/utils/isEmpty.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const isEmpty = (value: any): boolean => { if (Array.isArray(value)) { //value为数组 diff --git a/web/installer/src/modules/common/utils/operationResult.ts b/web/installer/src/modules/common/utils/operationResult.ts index 4c847c28b..46055cb34 100644 --- a/web/installer/src/modules/common/utils/operationResult.ts +++ b/web/installer/src/modules/common/utils/operationResult.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { OperationResult } from '@tencent/ff-redux'; // 返回标准操作结果 diff --git a/web/installer/src/modules/common/utils/orderBy.ts b/web/installer/src/modules/common/utils/orderBy.ts index ffbfc7ecb..6a9020a36 100644 --- a/web/installer/src/modules/common/utils/orderBy.ts +++ b/web/installer/src/modules/common/utils/orderBy.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const orderBy = (arr: Array, by: string, order?: string) => { let aa = arr.sort((a, b) => { //默认升序asc diff --git a/web/installer/src/modules/common/utils/pluck.ts b/web/installer/src/modules/common/utils/pluck.ts index 48d7591cb..cc8fc0beb 100644 --- a/web/installer/src/modules/common/utils/pluck.ts +++ b/web/installer/src/modules/common/utils/pluck.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const pluck = (arr: Array, ckey: string) => { let res = []; if (Array.isArray(arr) && !!ckey) { diff --git a/web/installer/src/modules/common/utils/remove.ts b/web/installer/src/modules/common/utils/remove.ts index 146ae653b..c0d2907e4 100644 --- a/web/installer/src/modules/common/utils/remove.ts +++ b/web/installer/src/modules/common/utils/remove.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * @returns 删除数据后的新数组,改变原数组 */ diff --git a/web/installer/src/modules/common/utils/stringSizeOf.ts b/web/installer/src/modules/common/utils/stringSizeOf.ts index e9873c470..3e14d9e8c 100644 --- a/web/installer/src/modules/common/utils/stringSizeOf.ts +++ b/web/installer/src/modules/common/utils/stringSizeOf.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 计算字符串所占的内存字节数,默认使用 utf-8的形式进行编码 * @param userScript:string diff --git a/web/installer/src/modules/common/utils/tea_adapter.ts b/web/installer/src/modules/common/utils/tea_adapter.ts index 4ed298ca3..9a23e5983 100644 --- a/web/installer/src/modules/common/utils/tea_adapter.ts +++ b/web/installer/src/modules/common/utils/tea_adapter.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { TableColumn } from '@tencent/qcloud-component'; const execColumnWidth = (columns: TableColumn[], hasChecker: boolean = true) => { diff --git a/web/installer/src/modules/common/utils/uniq.ts b/web/installer/src/modules/common/utils/uniq.ts index f61cc1fbc..ccb07c15d 100644 --- a/web/installer/src/modules/common/utils/uniq.ts +++ b/web/installer/src/modules/common/utils/uniq.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /** * 数组去重函数 * @param Array arr diff --git a/web/installer/src/modules/installer/WebAPI.ts b/web/installer/src/modules/installer/WebAPI.ts index a195f5562..dd25a7b03 100644 --- a/web/installer/src/modules/installer/WebAPI.ts +++ b/web/installer/src/modules/installer/WebAPI.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import axios from 'axios'; import { Base64 } from 'js-base64'; diff --git a/web/installer/src/modules/installer/actions/index.ts b/web/installer/src/modules/installer/actions/index.ts index 1f4dd52f1..a9ea35f49 100644 --- a/web/installer/src/modules/installer/actions/index.ts +++ b/web/installer/src/modules/installer/actions/index.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { installerActions } from './installerActions'; import { validateActions } from './validateActions'; diff --git a/web/installer/src/modules/installer/actions/installerActions.ts b/web/installer/src/modules/installer/actions/installerActions.ts index c1212afb6..d6129d884 100644 --- a/web/installer/src/modules/installer/actions/installerActions.ts +++ b/web/installer/src/modules/installer/actions/installerActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Base64 } from 'js-base64'; import { diff --git a/web/installer/src/modules/installer/actions/validateActions.ts b/web/installer/src/modules/installer/actions/validateActions.ts index a74013bc9..68e375a0f 100644 --- a/web/installer/src/modules/installer/actions/validateActions.ts +++ b/web/installer/src/modules/installer/actions/validateActions.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as ActionType from '../constants/ActionType'; import { EditState, Machine, RootState } from '../models'; import { installerActions } from './installerActions'; diff --git a/web/installer/src/modules/installer/components/CIDR.tsx b/web/installer/src/modules/installer/components/CIDR.tsx index a9ec5d770..86c156756 100644 --- a/web/installer/src/modules/installer/components/CIDR.tsx +++ b/web/installer/src/modules/installer/components/CIDR.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Bubble } from '@tencent/tea-component'; diff --git a/web/installer/src/modules/installer/components/EditingItem.tsx b/web/installer/src/modules/installer/components/EditingItem.tsx index 484d649e4..757c656d0 100644 --- a/web/installer/src/modules/installer/components/EditingItem.tsx +++ b/web/installer/src/modules/installer/components/EditingItem.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, Form, Input, Justify, Segment, Text } from '@tencent/tea-component'; diff --git a/web/installer/src/modules/installer/components/InstallerApp.tsx b/web/installer/src/modules/installer/components/InstallerApp.tsx index 70bcbf304..c5485f574 100644 --- a/web/installer/src/modules/installer/components/InstallerApp.tsx +++ b/web/installer/src/modules/installer/components/InstallerApp.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { connect, Provider } from 'react-redux'; diff --git a/web/installer/src/modules/installer/components/InstallerHeadPanel.tsx b/web/installer/src/modules/installer/components/InstallerHeadPanel.tsx index cfef50984..f394b38e1 100644 --- a/web/installer/src/modules/installer/components/InstallerHeadPanel.tsx +++ b/web/installer/src/modules/installer/components/InstallerHeadPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { RootProps } from './InstallerApp'; diff --git a/web/installer/src/modules/installer/components/ListItem.tsx b/web/installer/src/modules/installer/components/ListItem.tsx index 40209f347..3c31cd79f 100644 --- a/web/installer/src/modules/installer/components/ListItem.tsx +++ b/web/installer/src/modules/installer/components/ListItem.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as classnames from 'classnames'; import * as React from 'react'; diff --git a/web/installer/src/modules/installer/components/ResultPanel.tsx b/web/installer/src/modules/installer/components/ResultPanel.tsx index 41c6f1be7..e50cb1f38 100644 --- a/web/installer/src/modules/installer/components/ResultPanel.tsx +++ b/web/installer/src/modules/installer/components/ResultPanel.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Base64 } from 'js-base64'; import * as React from 'react'; diff --git a/web/installer/src/modules/installer/components/Step1.tsx b/web/installer/src/modules/installer/components/Step1.tsx index d84ec0896..e7671e37a 100644 --- a/web/installer/src/modules/installer/components/Step1.tsx +++ b/web/installer/src/modules/installer/components/Step1.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, ExternalLink, Form } from '@tencent/tea-component'; diff --git a/web/installer/src/modules/installer/components/Step10.tsx b/web/installer/src/modules/installer/components/Step10.tsx index 4ed41c08d..54b8f8d78 100644 --- a/web/installer/src/modules/installer/components/Step10.tsx +++ b/web/installer/src/modules/installer/components/Step10.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { Base64 } from 'js-base64'; import * as React from 'react'; diff --git a/web/installer/src/modules/installer/components/Step2.tsx b/web/installer/src/modules/installer/components/Step2.tsx index 1945251c6..8ccd7a098 100644 --- a/web/installer/src/modules/installer/components/Step2.tsx +++ b/web/installer/src/modules/installer/components/Step2.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, Form, Input, Segment, Text, Bubble, Icon } from '@tencent/tea-component'; diff --git a/web/installer/src/modules/installer/components/Step3.tsx b/web/installer/src/modules/installer/components/Step3.tsx index be57fe1cd..c1670bc15 100644 --- a/web/installer/src/modules/installer/components/Step3.tsx +++ b/web/installer/src/modules/installer/components/Step3.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, ExternalLink, Form, Input, Segment, Switch, Text } from '@tencent/tea-component'; diff --git a/web/installer/src/modules/installer/components/Step4.tsx b/web/installer/src/modules/installer/components/Step4.tsx index 929973909..efb21ad49 100644 --- a/web/installer/src/modules/installer/components/Step4.tsx +++ b/web/installer/src/modules/installer/components/Step4.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, Form, Input, Segment } from '@tencent/tea-component'; diff --git a/web/installer/src/modules/installer/components/Step5.tsx b/web/installer/src/modules/installer/components/Step5.tsx index ebeea5658..8952c58f2 100644 --- a/web/installer/src/modules/installer/components/Step5.tsx +++ b/web/installer/src/modules/installer/components/Step5.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, Form, Input, Segment, Switch } from '@tencent/tea-component'; diff --git a/web/installer/src/modules/installer/components/Step6.tsx b/web/installer/src/modules/installer/components/Step6.tsx index 020a70ea5..cc72f3763 100644 --- a/web/installer/src/modules/installer/components/Step6.tsx +++ b/web/installer/src/modules/installer/components/Step6.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, Form, Switch, Input, InputNumber, InputAdorment } from '@tencent/tea-component'; diff --git a/web/installer/src/modules/installer/components/Step7.tsx b/web/installer/src/modules/installer/components/Step7.tsx index ec8bc3f7e..acebf8007 100644 --- a/web/installer/src/modules/installer/components/Step7.tsx +++ b/web/installer/src/modules/installer/components/Step7.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, Form, Input, Segment } from '@tencent/tea-component'; diff --git a/web/installer/src/modules/installer/components/Step8.tsx b/web/installer/src/modules/installer/components/Step8.tsx index 031da3aa7..701c4cb7a 100644 --- a/web/installer/src/modules/installer/components/Step8.tsx +++ b/web/installer/src/modules/installer/components/Step8.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { Button, Form, Input, Segment, Switch } from '@tencent/tea-component'; diff --git a/web/installer/src/modules/installer/components/Step9.tsx b/web/installer/src/modules/installer/components/Step9.tsx index 8624400e8..33c053c1b 100644 --- a/web/installer/src/modules/installer/components/Step9.tsx +++ b/web/installer/src/modules/installer/components/Step9.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { isSuccessWorkflow, OperationState } from '@tencent/ff-redux'; diff --git a/web/installer/src/modules/installer/constants/ActionType.ts b/web/installer/src/modules/installer/constants/ActionType.ts index bc7a7fe6a..4eb081bb1 100644 --- a/web/installer/src/modules/installer/constants/ActionType.ts +++ b/web/installer/src/modules/installer/constants/ActionType.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export const FetchCluster = 'FetchCluster'; export const FetchProgress = 'FetchProgress'; export const StepNext = 'StepNext'; diff --git a/web/installer/src/modules/installer/index.tsx b/web/installer/src/modules/installer/index.tsx index dcce1aec8..0f2bb7338 100644 --- a/web/installer/src/modules/installer/index.tsx +++ b/web/installer/src/modules/installer/index.tsx @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import * as React from 'react'; import { insertCSS } from '@tencent/ff-redux'; diff --git a/web/installer/src/modules/installer/models/RootState.ts b/web/installer/src/modules/installer/models/RootState.ts index 17a5858dd..119a3f159 100644 --- a/web/installer/src/modules/installer/models/RootState.ts +++ b/web/installer/src/modules/installer/models/RootState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { FetcherState, Identifiable, WorkflowState } from '@tencent/ff-redux'; import { Record, Validation } from '../../common/models'; diff --git a/web/installer/src/modules/installer/models/index.ts b/web/installer/src/modules/installer/models/index.ts index fbb0bd82e..6d46475bb 100644 --- a/web/installer/src/modules/installer/models/index.ts +++ b/web/installer/src/modules/installer/models/index.ts @@ -1 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ export { RootState, EditState, Machine } from './RootState'; diff --git a/web/installer/src/modules/installer/reducers/RootReducer.ts b/web/installer/src/modules/installer/reducers/RootReducer.ts index 2e1f567a5..323ab6d73 100644 --- a/web/installer/src/modules/installer/reducers/RootReducer.ts +++ b/web/installer/src/modules/installer/reducers/RootReducer.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { combineReducers } from 'redux'; import { generateFetcherReducer, generateWorkflowReducer, reduceToPayload, ReduxAction, uuid } from '@tencent/ff-redux'; diff --git a/web/installer/src/modules/installer/reducers/initState.ts b/web/installer/src/modules/installer/reducers/initState.ts index 72ea3b98a..a000fc562 100644 --- a/web/installer/src/modules/installer/reducers/initState.ts +++ b/web/installer/src/modules/installer/reducers/initState.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { uuid } from '@tencent/ff-redux'; import { initValidation } from '../../common/models'; diff --git a/web/installer/src/modules/installer/stores/RootStore.ts b/web/installer/src/modules/installer/stores/RootStore.ts index 528dcd48c..83ff139b0 100644 --- a/web/installer/src/modules/installer/stores/RootStore.ts +++ b/web/installer/src/modules/installer/stores/RootStore.ts @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import { createStore } from '@tencent/ff-redux'; import { generateResetableReducer } from '../../../../helpers'; diff --git a/web/installer/webpack/webpack.config.js b/web/installer/webpack/webpack.config.js index 0c8e91dfa..f1ab3d36a 100644 --- a/web/installer/webpack/webpack.config.js +++ b/web/installer/webpack/webpack.config.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ 'use stricy'; module.exports = process.env.NODE_ENV === 'procudtion' ? require('./webpack.prod.js') : require('./webpack.dev.js'); diff --git a/web/installer/webpack/webpack.dev.js b/web/installer/webpack/webpack.dev.js index c91cc47ab..cee820ce3 100644 --- a/web/installer/webpack/webpack.dev.js +++ b/web/installer/webpack/webpack.dev.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); diff --git a/web/installer/webpack/webpack.prod.js b/web/installer/webpack/webpack.prod.js index 4bf3c3978..06178ac19 100644 --- a/web/installer/webpack/webpack.prod.js +++ b/web/installer/webpack/webpack.prod.js @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making TKEStack + * available. + * + * Copyright (C) 2012-2021 Tencent. All Rights Reserved. + * + * 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 + * + * https://opensource.org/licenses/Apache-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 OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ const path = require('path'); const webpack = require('webpack'); const HappyPack = require('happypack');