From 9aa398a7c5beb7554a4877274c6c6d0120ef5d7c Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Fri, 20 Apr 2018 00:59:46 -0700 Subject: [PATCH] chore(hapi): add missing license headers --- pkg/hapi/chart/chart.go | 15 +++++++++++++++ pkg/hapi/chart/file.go | 15 +++++++++++++++ pkg/hapi/chart/metadata.go | 15 +++++++++++++++ pkg/hapi/release/hook.go | 15 +++++++++++++++ pkg/hapi/release/info.go | 15 +++++++++++++++ pkg/hapi/release/release.go | 15 +++++++++++++++ pkg/hapi/release/status.go | 15 +++++++++++++++ pkg/hapi/release/test_run.go | 15 +++++++++++++++ pkg/hapi/release/test_suite.go | 15 +++++++++++++++ pkg/hapi/tiller.go | 15 +++++++++++++++ scripts/validate-go.sh | 1 - scripts/validate-license.sh | 1 - 12 files changed, 150 insertions(+), 2 deletions(-) diff --git a/pkg/hapi/chart/chart.go b/pkg/hapi/chart/chart.go index cb87ac467..a74df58e6 100644 --- a/pkg/hapi/chart/chart.go +++ b/pkg/hapi/chart/chart.go @@ -1,3 +1,18 @@ +/* +Copyright 2018 The Kubernetes Authors All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package chart // Chart is a helm package that contains metadata, a default config, zero or more diff --git a/pkg/hapi/chart/file.go b/pkg/hapi/chart/file.go index 1f80f00f6..90edd59f1 100644 --- a/pkg/hapi/chart/file.go +++ b/pkg/hapi/chart/file.go @@ -1,3 +1,18 @@ +/* +Copyright 2018 The Kubernetes Authors All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package chart // File represents a file as a name/value pair. diff --git a/pkg/hapi/chart/metadata.go b/pkg/hapi/chart/metadata.go index 30ffbf886..bd55f94d3 100644 --- a/pkg/hapi/chart/metadata.go +++ b/pkg/hapi/chart/metadata.go @@ -1,3 +1,18 @@ +/* +Copyright 2018 The Kubernetes Authors All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package chart // Maintainer describes a Chart maintainer. diff --git a/pkg/hapi/release/hook.go b/pkg/hapi/release/hook.go index 98a673e20..64f045960 100644 --- a/pkg/hapi/release/hook.go +++ b/pkg/hapi/release/hook.go @@ -1,3 +1,18 @@ +/* +Copyright 2018 The Kubernetes Authors All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package release import "time" diff --git a/pkg/hapi/release/info.go b/pkg/hapi/release/info.go index 8eaa6579c..9af601fb9 100644 --- a/pkg/hapi/release/info.go +++ b/pkg/hapi/release/info.go @@ -1,3 +1,18 @@ +/* +Copyright 2018 The Kubernetes Authors All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package release import "time" diff --git a/pkg/hapi/release/release.go b/pkg/hapi/release/release.go index 2b10235fd..f8b739468 100644 --- a/pkg/hapi/release/release.go +++ b/pkg/hapi/release/release.go @@ -1,3 +1,18 @@ +/* +Copyright 2018 The Kubernetes Authors All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package release import "k8s.io/helm/pkg/hapi/chart" diff --git a/pkg/hapi/release/status.go b/pkg/hapi/release/status.go index 1eebbb774..91c856eb9 100644 --- a/pkg/hapi/release/status.go +++ b/pkg/hapi/release/status.go @@ -1,3 +1,18 @@ +/* +Copyright 2018 The Kubernetes Authors All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package release type StatusCode int diff --git a/pkg/hapi/release/test_run.go b/pkg/hapi/release/test_run.go index b6098a8e9..556bf9113 100644 --- a/pkg/hapi/release/test_run.go +++ b/pkg/hapi/release/test_run.go @@ -1,3 +1,18 @@ +/* +Copyright 2018 The Kubernetes Authors All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package release import "time" diff --git a/pkg/hapi/release/test_suite.go b/pkg/hapi/release/test_suite.go index 1567f560b..26d99be26 100644 --- a/pkg/hapi/release/test_suite.go +++ b/pkg/hapi/release/test_suite.go @@ -1,3 +1,18 @@ +/* +Copyright 2018 The Kubernetes Authors All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package release import "time" diff --git a/pkg/hapi/tiller.go b/pkg/hapi/tiller.go index 0b66975b3..56ca66ed7 100644 --- a/pkg/hapi/tiller.go +++ b/pkg/hapi/tiller.go @@ -1,3 +1,18 @@ +/* +Copyright 2018 The Kubernetes Authors All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package hapi import ( diff --git a/scripts/validate-go.sh b/scripts/validate-go.sh index 2ecf5dfb3..ba593e2b7 100755 --- a/scripts/validate-go.sh +++ b/scripts/validate-go.sh @@ -45,7 +45,6 @@ gometalinter.v1 \ --disable-all \ --enable golint \ --vendor \ - --skip proto \ --deadline 60s \ ./... || : diff --git a/scripts/validate-license.sh b/scripts/validate-license.sh index fe7ec481b..2718fec8c 100755 --- a/scripts/validate-license.sh +++ b/scripts/validate-license.sh @@ -20,7 +20,6 @@ find_files() { find . -not \( \ \( \ -wholename './vendor' \ - -o -wholename './pkg/proto' \ -o -wholename '*testdata*' \ \) -prune \ \) \