Skip to content

Commit 456ffa9

Browse files
add more describe of code which introduce by three party open sourc project (#695)
* add more describe of code which introduce by three party open source project Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com> * fix lint Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com> --------- Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
1 parent 4ca5119 commit 456ffa9

File tree

10 files changed

+102
-7
lines changed

10 files changed

+102
-7
lines changed

NOTICE

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,91 @@
1+
OPEN SOURCE SOFTWARE NOTICE
2+
3+
Please note we provide an open source software notice for the third party open source software along with this software and/or this software component (in the following just “this SOFTWARE”). The open source software licenses are granted by the respective right holders.
4+
5+
Warranty Disclaimer
6+
THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
7+
8+
Copyright Notice and License Texts
9+
---------------
10+
File: cmd/cluster-operator/aws/aws.go
11+
cmd/cluster-operator/options/aws.go
12+
cmd/cluster-operator/options/options.go
13+
cmd/cluster-operator/scheme/aws.go
14+
Refer to: kubernetes-sigs/cluster-api-provider-aws
15+
Copyright 2018 The Kubernetes Authors.
16+
17+
Licensed under the Apache License, Version 2.0 (the "License");
18+
you may not use this file except in compliance with the License.
19+
You may obtain a copy of the License at
20+
21+
http://www.apache.org/licenses/LICENSE-2.0
22+
23+
Unless required by applicable law or agreed to in writing, software
24+
distributed under the License is distributed on an "AS IS" BASIS,
25+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26+
See the License for the specific language governing permissions and
27+
limitations under the License.
28+
License: Apache-2.0 license
29+
---------------
30+
File: cmd/cluster-operator/capi/capi.go
31+
cmd/cluster-operator/scheme/capi.go
32+
Refer to: kubernetes-sigs/cluster-api
33+
Copyright 2018 The Kubernetes Authors.
34+
35+
Licensed under the Apache License, Version 2.0 (the "License");
36+
you may not use this file except in compliance with the License.
37+
You may obtain a copy of the License at
38+
39+
http://www.apache.org/licenses/LICENSE-2.0
40+
41+
Unless required by applicable law or agreed to in writing, software
42+
distributed under the License is distributed on an "AS IS" BASIS,
43+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
44+
See the License for the specific language governing permissions and
45+
limitations under the License.
46+
License: Apache-2.0 license
47+
---------------
48+
File: pkg/apis/apps/v1alpha1/helm_release.go
49+
Refer to: fluxcd/helm-controller
50+
Copyright 2018 The Kubernetes Authors.
51+
52+
Licensed under the Apache License, Version 2.0 (the "License");
53+
you may not use this file except in compliance with the License.
54+
You may obtain a copy of the License at
55+
56+
http://www.apache.org/licenses/LICENSE-2.0
57+
58+
Unless required by applicable law or agreed to in writing, software
59+
distributed under the License is distributed on an "AS IS" BASIS,
60+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
61+
See the License for the specific language governing permissions and
62+
limitations under the License.
63+
License: Apache-2.0 license
64+
---------------
65+
File: pkg/apis/apps/v1alpha1/kustomization.go
66+
Refer to: fluxcd/kustomize-controller
67+
Copyright 2018 The Kubernetes Authors.
68+
69+
Licensed under the Apache License, Version 2.0 (the "License");
70+
you may not use this file except in compliance with the License.
71+
You may obtain a copy of the License at
72+
73+
http://www.apache.org/licenses/LICENSE-2.0
74+
75+
Unless required by applicable law or agreed to in writing, software
76+
distributed under the License is distributed on an "AS IS" BASIS,
77+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
78+
See the License for the specific language governing permissions and
79+
limitations under the License.
80+
License: Apache-2.0 license
81+
---------------
82+
File pkg/util/untar.go
83+
Refer to: golang/build
84+
Copyright 2017 The Go Authors. All rights reserved.
85+
Use of this source code is governed by a BSD-style
86+
license that can be found in the LICENSE file.
87+
License: BSD 3-Clause "New" or "Revised" License
88+
189
%% Kurator NOTICE
290
===========================================
391
Copyright Kurator Authors.

docs/content/en/references/backups_v1alpha1_types.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ <h3 id="backup.kurator.dev/v1alpha1.BackupPolicy">BackupPolicy
211211
(<em>Appears on:</em>
212212
<a href="#backup.kurator.dev/v1alpha1.BackupSpec">BackupSpec</a>)
213213
</p>
214-
<p>Note: partly copied from <a href="https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/backup_types.go">https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/backup_types.go</a>
214+
<p>Note: This code partly copied from <a href="https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/backup_types.go">https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/backup_types.go</a>
215+
Refer to: vmware-tanzu/velero
215216
BackupPolicy defines the specification for a backup policy.</p>
216217
<div class="md-typeset__scrollwrap">
217218
<div class="md-typeset__table td-content">
@@ -861,7 +862,8 @@ <h3 id="backup.kurator.dev/v1alpha1.ResourceFilter">ResourceFilter
861862
<a href="#backup.kurator.dev/v1alpha1.MigratePolicy">MigratePolicy</a>,
862863
<a href="#backup.kurator.dev/v1alpha1.RestorePolicy">RestorePolicy</a>)
863864
</p>
864-
<p>Note: partly copied from <a href="https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/backup_types.go">https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/backup_types.go</a></p>
865+
<p>Note: partly copied from <a href="https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/backup_types.go">https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/backup_types.go</a>
866+
Refer to: vmware-tanzu/velero</p>
865867
<div class="md-typeset__scrollwrap">
866868
<div class="md-typeset__table td-content">
867869
<table>
@@ -1207,6 +1209,7 @@ <h3 id="backup.kurator.dev/v1alpha1.RestorePolicy">RestorePolicy
12071209
<a href="#backup.kurator.dev/v1alpha1.RestoreSpec">RestoreSpec</a>)
12081210
</p>
12091211
<p>Note: partly copied from <a href="https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/restore_types.go">https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/restore_types.go</a>
1212+
Refer to: vmware-tanzu/velero
12101213
RestorePolicy defines the specification for a Velero restore.</p>
12111214
<div class="md-typeset__scrollwrap">
12121215
<div class="md-typeset__table td-content">

pkg/apis/apps/v1alpha1/helm_release.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright Kurator Authors.
2+
Copyright 2020 The Flux authors
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

pkg/apis/apps/v1alpha1/kustomization.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright Kurator Authors.
2+
Copyright 2023 The Flux authors
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

pkg/apis/backups/v1alpha1/backup_type.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ type BackupSpec struct {
6464
Policy *BackupPolicy `json:"policy,omitempty"`
6565
}
6666

67-
// Note: partly copied from https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/backup_types.go
67+
// Note: This code partly copied from https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/backup_types.go
68+
// Refer to: vmware-tanzu/velero
6869
// BackupPolicy defines the specification for a backup policy.
6970
type BackupPolicy struct {
7071
// ResourceFilter specifies which resources should be included in the backup.

pkg/apis/backups/v1alpha1/common_type.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type Destination struct {
3535
}
3636

3737
// Note: partly copied from https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/backup_types.go
38+
// Refer to: vmware-tanzu/velero
3839
type ResourceFilter struct {
3940
// IncludedNamespaces is a list of namespace names to include objects from.
4041
// If empty, all namespaces are included.

pkg/apis/backups/v1alpha1/restore_type.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ type RestoreSpec struct {
5353
}
5454

5555
// Note: partly copied from https://github.com/vmware-tanzu/velero/blob/v1.11.1/pkg/apis/velero/v1/restore_types.go
56+
// Refer to: vmware-tanzu/velero
5657
// RestorePolicy defines the specification for a Velero restore.
5758
type RestorePolicy struct {
5859
// ResourceFilter is the filter for the resources to be restored.

pkg/client/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ func (c *Client) UpdateResource(obj interface{}) error {
143143
return err
144144
}
145145

146-
// Copied from karmada, because we do not want to build the controller-runtime client.
146+
// Note: partly copied from https://github.com/karmada-io/karmada/blob/592fa3224d48e5b5f60f9202bd5547df53ef4588/pkg/util/membercluster_client.go
147+
// Refer to: karmada-io/karmada
147148
func (c *Client) memberClusterConfig(clusterName string) (*rest.Config, error) {
148149
cluster, err := c.karmada.ClusterV1alpha1().Clusters().Get(context.TODO(), clusterName, metav1.GetOptions{})
149150
if err != nil {

pkg/infra/openid/cert.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ type KeyResponse struct {
4040
}
4141

4242
// copied from https://github.com/aws/amazon-eks-pod-identity-webhook/blob/master/hack/self-hosted/main.go
43+
// Refer to aws/amazon-eks-pod-identity-webhook
4344
func NewCert() (*Cert, error) {
4445
privateKey, err := rsa.GenerateKey(rand.Reader, 2048)
4546
if err != nil {

pkg/util/untar.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
)
1818

1919
// Copied from golang.org/x/build/internal/untar/untar.go as it can not be imported
20-
2120
// Untar reads the gzip-compressed tar file from r and writes it into dir.
2221
func Untar(r io.Reader, dir string) error {
2322
return untar(r, dir)

0 commit comments

Comments
 (0)