This repository was archived by the owner on Oct 28, 2024. It is now read-only.
File tree 17 files changed +101
-11
lines changed
17 files changed +101
-11
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ linters:
12
12
- gocritic
13
13
- gocyclo
14
14
- gofmt
15
+ - goheader
15
16
- goimports
16
17
- goprintffuncname
17
18
- gosec
@@ -56,6 +57,29 @@ linters-settings:
56
57
# Controller Runtime
57
58
- pkg : sigs.k8s.io/controller-runtime
58
59
alias : ctrl
60
+ goheader :
61
+ values :
62
+ const :
63
+ AUTHOR : The Kubernetes Authors
64
+ regexp :
65
+ LICENSE_YEAR : 20\d\d
66
+ SCHEME : http(s)?
67
+ # The template use for checking.
68
+ # Default: ""
69
+ template : |-
70
+ Copyright {{ LICENSE_YEAR }} {{ AUTHOR }}.
71
+
72
+ Licensed under the Apache License, Version 2.0 (the "License");
73
+ you may not use this file except in compliance with the License.
74
+ You may obtain a copy of the License at
75
+
76
+ {{ SCHEME }}://www.apache.org/licenses/LICENSE-2.0
77
+
78
+ Unless required by applicable law or agreed to in writing, software
79
+ distributed under the License is distributed on an "AS IS" BASIS,
80
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
81
+ See the License for the specific language governing permissions and
82
+ limitations under the License.
59
83
60
84
issues :
61
85
max-same-issues : 0
@@ -120,7 +144,7 @@ issues:
120
144
text : " appendAssign: append result not assigned to the same slice"
121
145
122
146
run :
123
- timeout : 10m
147
+ timeout : 20m
124
148
skip-files :
125
149
- " zz_generated.*\\ .go$"
126
150
- " .*conversion.*\\ .go$"
Original file line number Diff line number Diff line change
1
+ /*
2
+ Copyright 2022 The Kubernetes Authors.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ https://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
1
17
package controllers
2
18
3
19
import (
Original file line number Diff line number Diff line change
1
+ /*
2
+ Copyright 2022 The Kubernetes Authors.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ https://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
1
17
package net
2
18
3
19
import (
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2021 The Kubernetes Authors.
3
- Licensed under the Apache License, Version 2.0 (the "License");
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
6
7
7
- http://www.apache.org/licenses/LICENSE-2.0
8
+ http://www.apache.org/licenses/LICENSE-2.0
8
9
9
10
Unless required by applicable law or agreed to in writing, software
10
11
distributed under the License is distributed on an "AS IS" BASIS,
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2021 The Kubernetes Authors.
3
- Licensed under the Apache License, Version 2.0 (the "License");
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
6
- http://www.apache.org/licenses/LICENSE-2.0
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
7
10
Unless required by applicable law or agreed to in writing, software
8
11
distributed under the License is distributed on an "AS IS" BASIS,
9
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2021 The Kubernetes Authors.
3
+
3
4
Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
7
+
6
8
http://www.apache.org/licenses/LICENSE-2.0
9
+
7
10
Unless required by applicable law or agreed to in writing, software
8
11
distributed under the License is distributed on an "AS IS" BASIS,
9
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2019 The Kubernetes Authors.
3
- Licensed under the Apache License, Version 2.0 (the "License");
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
6
7
7
- http ://www.apache.org/licenses/LICENSE-2.0
8
+ https ://www.apache.org/licenses/LICENSE-2.0
8
9
9
10
Unless required by applicable law or agreed to in writing, software
10
11
distributed under the License is distributed on an "AS IS" BASIS,
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2019 The Kubernetes Authors.
3
- Licensed under the Apache License, Version 2.0 (the "License");
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
6
7
7
- http://www.apache.org/licenses/LICENSE-2.0
8
+ http://www.apache.org/licenses/LICENSE-2.0
8
9
9
10
Unless required by applicable law or agreed to in writing, software
10
11
distributed under the License is distributed on an "AS IS" BASIS,
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2020 The Kubernetes Authors.
3
+
3
4
Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
7
+
6
8
http://www.apache.org/licenses/LICENSE-2.0
9
+
7
10
Unless required by applicable law or agreed to in writing, software
8
11
distributed under the License is distributed on an "AS IS" BASIS,
9
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2022 The Kubernetes Authors.
3
+
3
4
Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
7
+
6
8
http://www.apache.org/licenses/LICENSE-2.0
9
+
7
10
Unless required by applicable law or agreed to in writing, software
8
11
distributed under the License is distributed on an "AS IS" BASIS,
9
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2020 The Kubernetes Authors.
3
+
3
4
Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
7
+
6
8
http://www.apache.org/licenses/LICENSE-2.0
9
+
7
10
Unless required by applicable law or agreed to in writing, software
8
11
distributed under the License is distributed on an "AS IS" BASIS,
9
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2019 The Kubernetes Authors.
3
- Licensed under the Apache License, Version 2.0 (the "License");
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
6
7
7
- http://www.apache.org/licenses/LICENSE-2.0
8
+ http://www.apache.org/licenses/LICENSE-2.0
8
9
9
10
Unless required by applicable law or agreed to in writing, software
10
11
distributed under the License is distributed on an "AS IS" BASIS,
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2020 The Kubernetes Authors.
3
+
3
4
Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
7
+
6
8
http://www.apache.org/licenses/LICENSE-2.0
9
+
7
10
Unless required by applicable law or agreed to in writing, software
8
11
distributed under the License is distributed on an "AS IS" BASIS,
9
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2020 The Kubernetes Authors.
3
+
3
4
Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
7
+
6
8
http://www.apache.org/licenses/LICENSE-2.0
9
+
7
10
Unless required by applicable law or agreed to in writing, software
8
11
distributed under the License is distributed on an "AS IS" BASIS,
9
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2020 The Kubernetes Authors.
3
+
3
4
Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
7
+
6
8
http://www.apache.org/licenses/LICENSE-2.0
9
+
7
10
Unless required by applicable law or agreed to in writing, software
8
11
distributed under the License is distributed on an "AS IS" BASIS,
9
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2020 The Kubernetes Authors.
3
+
3
4
Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
7
+
6
8
http://www.apache.org/licenses/LICENSE-2.0
9
+
7
10
Unless required by applicable law or agreed to in writing, software
8
11
distributed under the License is distributed on an "AS IS" BASIS,
9
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Original file line number Diff line number Diff line change 1
1
/*
2
2
Copyright 2020 The Kubernetes Authors.
3
+
3
4
Licensed under the Apache License, Version 2.0 (the "License");
4
5
you may not use this file except in compliance with the License.
5
6
You may obtain a copy of the License at
7
+
6
8
http://www.apache.org/licenses/LICENSE-2.0
9
+
7
10
Unless required by applicable law or agreed to in writing, software
8
11
distributed under the License is distributed on an "AS IS" BASIS,
9
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
You can’t perform that action at this time.
0 commit comments