From ce5a189234f8886882adfbb8a9349b55ad9db48f Mon Sep 17 00:00:00 2001 From: Charles Butler Date: Tue, 8 Mar 2016 21:42:45 -0500 Subject: [PATCH] Fix file headers for License bot --- cluster/juju/identify-leaders.py | 16 +++++++++++++++- .../layers/kubernetes/actions/guestbook-example | 15 +++++++++++++++ cluster/juju/layers/kubernetes/reactive/k8s.py | 16 ++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) diff --git a/cluster/juju/identify-leaders.py b/cluster/juju/identify-leaders.py index 01bdec24ff8..6d6244b751a 100755 --- a/cluster/juju/identify-leaders.py +++ b/cluster/juju/identify-leaders.py @@ -1,4 +1,18 @@ -#!/usr/bin/python +#!/usr/bin/env python + +# Copyright 2016 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. from subprocess import check_output import yaml diff --git a/cluster/juju/layers/kubernetes/actions/guestbook-example b/cluster/juju/layers/kubernetes/actions/guestbook-example index 49db127e7d1..3c543cb1158 100755 --- a/cluster/juju/layers/kubernetes/actions/guestbook-example +++ b/cluster/juju/layers/kubernetes/actions/guestbook-example @@ -1,5 +1,20 @@ #!/bin/bash +# Copyright 2016 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. + + # Launch the Guestbook example in Kubernetes. This will use the pod and service # definitions from `files/guestbook-example/*.yaml` to launch a leader/follower # redis cluster, with a web-front end to collect user data and store in redis. diff --git a/cluster/juju/layers/kubernetes/reactive/k8s.py b/cluster/juju/layers/kubernetes/reactive/k8s.py index 17c94e6c63b..cad4b00ae8e 100644 --- a/cluster/juju/layers/kubernetes/reactive/k8s.py +++ b/cluster/juju/layers/kubernetes/reactive/k8s.py @@ -1,3 +1,19 @@ +#!/usr/bin/env python + +# Copyright 2015 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. + import os from shlex import split