From 46767400bfe8624d53aa8960f78cca97310d9f33 Mon Sep 17 00:00:00 2001 From: Ce Gao Date: Sat, 3 Feb 2018 02:54:10 +0800 Subject: [PATCH] *: Add copyright owner in go files (#364) * *: Add copyright owner in go files Close https://github.com/tensorflow/k8s/issues/266 Signed-off-by: Ce Gao --- cmd/tf_operator/app/options/options.go | 28 +++++++++---------- cmd/tf_operator/app/server.go | 28 +++++++++---------- cmd/tf_operator/main.go | 14 ++++++++++ pkg/apis/tensorflow/helper/helpers.go | 14 ++++++++++ pkg/apis/tensorflow/helper/helpers_test.go | 14 ++++++++++ pkg/apis/tensorflow/v1alpha1/defaults.go | 14 ++++++++++ pkg/apis/tensorflow/v1alpha1/defaults_test.go | 14 ++++++++++ pkg/apis/tensorflow/v1alpha1/doc.go | 28 +++++++++---------- pkg/apis/tensorflow/v1alpha1/register.go | 14 ++++++++++ pkg/apis/tensorflow/v1alpha1/types.go | 14 ++++++++++ pkg/apis/tensorflow/validation/validation.go | 14 ++++++++++ .../tensorflow/validation/validation_test.go | 14 ++++++++++ pkg/controller/controller.go | 14 ++++++++++ pkg/trainer/labels.go | 14 ++++++++++ pkg/trainer/replicas.go | 14 ++++++++++ pkg/trainer/replicas_test.go | 14 ++++++++++ pkg/trainer/tensorboard.go | 14 ++++++++++ pkg/trainer/tensorboard_test.go | 14 ++++++++++ pkg/trainer/training.go | 16 ++++++++++- pkg/trainer/training_test.go | 14 ++++++++++ pkg/util/k8sutil/k8sutil.go | 14 ++++++++++ pkg/util/retryutil/retry_util.go | 14 ++++++++++ pkg/util/util.go | 14 ++++++++++ 23 files changed, 320 insertions(+), 46 deletions(-) diff --git a/cmd/tf_operator/app/options/options.go b/cmd/tf_operator/app/options/options.go index 9280e8ce52..78b1efbec4 100644 --- a/cmd/tf_operator/app/options/options.go +++ b/cmd/tf_operator/app/options/options.go @@ -1,18 +1,16 @@ -/* -Copyright 2017 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package options diff --git a/cmd/tf_operator/app/server.go b/cmd/tf_operator/app/server.go index 0178295312..763914dd4c 100644 --- a/cmd/tf_operator/app/server.go +++ b/cmd/tf_operator/app/server.go @@ -1,18 +1,16 @@ -/* -Copyright 2017 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package app diff --git a/cmd/tf_operator/main.go b/cmd/tf_operator/main.go index 1d553e1b44..84a66de061 100644 --- a/cmd/tf_operator/main.go +++ b/cmd/tf_operator/main.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/pkg/apis/tensorflow/helper/helpers.go b/pkg/apis/tensorflow/helper/helpers.go index 3d96d37e5c..d5c575e3ac 100644 --- a/pkg/apis/tensorflow/helper/helpers.go +++ b/pkg/apis/tensorflow/helper/helpers.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package helper import ( diff --git a/pkg/apis/tensorflow/helper/helpers_test.go b/pkg/apis/tensorflow/helper/helpers_test.go index 54c5639c9c..a697f7b8c4 100644 --- a/pkg/apis/tensorflow/helper/helpers_test.go +++ b/pkg/apis/tensorflow/helper/helpers_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package helper import ( diff --git a/pkg/apis/tensorflow/v1alpha1/defaults.go b/pkg/apis/tensorflow/v1alpha1/defaults.go index 39eda13a9e..d87976993f 100644 --- a/pkg/apis/tensorflow/v1alpha1/defaults.go +++ b/pkg/apis/tensorflow/v1alpha1/defaults.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package v1alpha1 import ( diff --git a/pkg/apis/tensorflow/v1alpha1/defaults_test.go b/pkg/apis/tensorflow/v1alpha1/defaults_test.go index fbc39fb5d4..07bf8c5b36 100644 --- a/pkg/apis/tensorflow/v1alpha1/defaults_test.go +++ b/pkg/apis/tensorflow/v1alpha1/defaults_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package v1alpha1 import ( diff --git a/pkg/apis/tensorflow/v1alpha1/doc.go b/pkg/apis/tensorflow/v1alpha1/doc.go index a6c8b84ef3..92db83ef13 100644 --- a/pkg/apis/tensorflow/v1alpha1/doc.go +++ b/pkg/apis/tensorflow/v1alpha1/doc.go @@ -1,18 +1,16 @@ -/* -Copyright 2017 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. // +k8s:deepcopy-gen=package,register // +k8s:defaulter-gen=TypeMeta diff --git a/pkg/apis/tensorflow/v1alpha1/register.go b/pkg/apis/tensorflow/v1alpha1/register.go index c93db37da8..1fe6fad84c 100644 --- a/pkg/apis/tensorflow/v1alpha1/register.go +++ b/pkg/apis/tensorflow/v1alpha1/register.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package v1alpha1 import ( diff --git a/pkg/apis/tensorflow/v1alpha1/types.go b/pkg/apis/tensorflow/v1alpha1/types.go index 35d5ab138d..dce90bf906 100644 --- a/pkg/apis/tensorflow/v1alpha1/types.go +++ b/pkg/apis/tensorflow/v1alpha1/types.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package v1alpha1 import ( diff --git a/pkg/apis/tensorflow/validation/validation.go b/pkg/apis/tensorflow/validation/validation.go index 2914793a87..32ac8ea58b 100644 --- a/pkg/apis/tensorflow/validation/validation.go +++ b/pkg/apis/tensorflow/validation/validation.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package validation import ( diff --git a/pkg/apis/tensorflow/validation/validation_test.go b/pkg/apis/tensorflow/validation/validation_test.go index b0f4c8e222..faa3f8232d 100644 --- a/pkg/apis/tensorflow/validation/validation_test.go +++ b/pkg/apis/tensorflow/validation/validation_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package validation import ( diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index 5d1835da40..d684f5dcce 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Package controller provides a Kubernetes controller for a TensorFlow job resource. package controller diff --git a/pkg/trainer/labels.go b/pkg/trainer/labels.go index 6fd3af0db0..1e1a698f32 100644 --- a/pkg/trainer/labels.go +++ b/pkg/trainer/labels.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package trainer import ( diff --git a/pkg/trainer/replicas.go b/pkg/trainer/replicas.go index 1bcdbe0d23..56c58e1c60 100644 --- a/pkg/trainer/replicas.go +++ b/pkg/trainer/replicas.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package trainer import ( diff --git a/pkg/trainer/replicas_test.go b/pkg/trainer/replicas_test.go index 199f736192..771514a54e 100644 --- a/pkg/trainer/replicas_test.go +++ b/pkg/trainer/replicas_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package trainer import ( diff --git a/pkg/trainer/tensorboard.go b/pkg/trainer/tensorboard.go index 9b8baa89f0..8f840f19c6 100644 --- a/pkg/trainer/tensorboard.go +++ b/pkg/trainer/tensorboard.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package trainer import ( diff --git a/pkg/trainer/tensorboard_test.go b/pkg/trainer/tensorboard_test.go index 65d1fe7978..12489a5e54 100644 --- a/pkg/trainer/tensorboard_test.go +++ b/pkg/trainer/tensorboard_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package trainer import ( diff --git a/pkg/trainer/training.go b/pkg/trainer/training.go index 30d7815eed..e99c401d81 100644 --- a/pkg/trainer/training.go +++ b/pkg/trainer/training.go @@ -1,4 +1,18 @@ -// training is a package for managing TensorFlow training jobs. +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Package trainer is to manage TensorFlow training jobs. package trainer import ( diff --git a/pkg/trainer/training_test.go b/pkg/trainer/training_test.go index 06a4e03022..c71ee35439 100644 --- a/pkg/trainer/training_test.go +++ b/pkg/trainer/training_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package trainer import ( diff --git a/pkg/util/k8sutil/k8sutil.go b/pkg/util/k8sutil/k8sutil.go index 1e2f9825d4..8776f5521d 100644 --- a/pkg/util/k8sutil/k8sutil.go +++ b/pkg/util/k8sutil/k8sutil.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package k8sutil import ( diff --git a/pkg/util/retryutil/retry_util.go b/pkg/util/retryutil/retry_util.go index 93f42f28b3..6be7ea47f3 100644 --- a/pkg/util/retryutil/retry_util.go +++ b/pkg/util/retryutil/retry_util.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package retryutil import ( diff --git a/pkg/util/util.go b/pkg/util/util.go index 892533dcd6..97977c6a48 100644 --- a/pkg/util/util.go +++ b/pkg/util/util.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Kubeflow Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Package util provides various helper routines. package util