From 53c4cb23a30074a6cb2f8b34486f7a68015b855c Mon Sep 17 00:00:00 2001 From: Fabian von Feilitzsch Date: Fri, 28 Jun 2019 16:39:15 -0400 Subject: [PATCH] Add boilerplate --- dynamic/__init__.py | 16 ++++++++++++++++ dynamic/client.py | 16 ++++++++++++++++ dynamic/discovery.py | 16 ++++++++++++++++ dynamic/exceptions.py | 16 ++++++++++++++++ dynamic/resource.py | 16 ++++++++++++++++ dynamic/test_client.py | 20 +++++++++++--------- 6 files changed, 91 insertions(+), 9 deletions(-) diff --git a/dynamic/__init__.py b/dynamic/__init__.py index b5df54825..91ba0501d 100644 --- a/dynamic/__init__.py +++ b/dynamic/__init__.py @@ -1 +1,17 @@ +#!/usr/bin/env python + +# Copyright 2019 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. + from .client import * # NOQA diff --git a/dynamic/client.py b/dynamic/client.py index ba05d36b2..02bb984b3 100644 --- a/dynamic/client.py +++ b/dynamic/client.py @@ -1,3 +1,19 @@ +#!/usr/bin/env python + +# Copyright 2019 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. + import six import json diff --git a/dynamic/discovery.py b/dynamic/discovery.py index d00113223..a646a96a3 100644 --- a/dynamic/discovery.py +++ b/dynamic/discovery.py @@ -1,3 +1,19 @@ +#!/usr/bin/env python + +# Copyright 2019 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. + import os import six import json diff --git a/dynamic/exceptions.py b/dynamic/exceptions.py index 63e798757..d940d4299 100644 --- a/dynamic/exceptions.py +++ b/dynamic/exceptions.py @@ -1,3 +1,19 @@ +#!/usr/bin/env python + +# Copyright 2019 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. + import json import sys import traceback diff --git a/dynamic/resource.py b/dynamic/resource.py index 17c14c4d9..3e2897cd2 100644 --- a/dynamic/resource.py +++ b/dynamic/resource.py @@ -1,3 +1,19 @@ +#!/usr/bin/env python + +# Copyright 2019 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. + import copy import yaml from functools import partial diff --git a/dynamic/test_client.py b/dynamic/test_client.py index ba92332da..d6d65c6d8 100644 --- a/dynamic/test_client.py +++ b/dynamic/test_client.py @@ -1,16 +1,18 @@ -# -*- coding: utf-8 -*- +#!/usr/bin/env python -# 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 +# Copyright 2019 The Kubernetes Authors. # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# 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 time import unittest