diff --git a/Makefile b/Makefile index 2e33b0a1870c9056dcdc66f332d8485ece261526..13111b9e2a9e7b689eff1c9db834e9aba45e8218 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,18 @@ +# Copyright 2017 The kubecfg 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. + VERSION = dev-$(shell date +%FT%T%z) GO = go diff --git a/cmd/delete.go b/cmd/delete.go index 4cf497a988624eab70ad26e9a1a04a4cd1d4e295..1839c0f7469406783e2ea4a7586f71ca7e0dbb84 100644 --- a/cmd/delete.go +++ b/cmd/delete.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/diff.go b/cmd/diff.go index 61128acadb804bb2d1db2972917c46e83625f6aa..9d0372366a73ad1fef9eac90bcdf7d7b1d298b06 100644 --- a/cmd/diff.go +++ b/cmd/diff.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/root.go b/cmd/root.go index 073805f0ac48292161519ed5a954db23fed1b89d..86d128cc57da374e9e96c79b7b0d47d7f51ef6bb 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/show.go b/cmd/show.go index b99fb1069ec1f6caf3c36a172fd48ce1fdc50eda..6e98a35e67135b2489afc8e200e6aca3155a8c70 100644 --- a/cmd/show.go +++ b/cmd/show.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/show_test.go b/cmd/show_test.go index aa6582236782ffe7c3f1754e8519ffa2ceb834f8..c404abe810b3429858133b04a343fdc4ef25ffc4 100644 --- a/cmd/show_test.go +++ b/cmd/show_test.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/update.go b/cmd/update.go index a2ade46c24963eea14fde0706842ea8ab1c8b137..8cec153f3ec49b49be8e2cafdac084faf7172d2f 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/version.go b/cmd/version.go index cd700e2edb85f3802a49a472d6eb816b353fd473..fff4800f3eb3f6fd672b1f6889c32c38c9aa5841 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/cmd/version_test.go b/cmd/version_test.go index 10ce2ed599cdd04ddfe922c6b8fa1e9fa031fe7e..68f620867811fc03abedcb37e34952ab72d8d264 100644 --- a/cmd/version_test.go +++ b/cmd/version_test.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 cmd import ( diff --git a/examples/example.libsonnet b/examples/example.libsonnet index 2a02f3bcf29cbdc3a1580d04cbe5ec5c39bdff02..d0d2537e8176250c3207321542919f6d41e68dce 100644 --- a/examples/example.libsonnet +++ b/examples/example.libsonnet @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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. + // This library is intended to support kubecfg examples, and should // not necessarily be considered recommended jsonnet structure. diff --git a/examples/guestbook.jsonnet b/examples/guestbook.jsonnet index 94d7dad2eb84d497bee5377b066a1831312eff41..eef3f277478208d4c574be7b85104baad4f7226e 100644 --- a/examples/guestbook.jsonnet +++ b/examples/guestbook.jsonnet @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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. + // Simple self-contained example to demonstrate kubecfg. // This should not necessarily be considered a model jsonnet example // to build upon. diff --git a/lib/kubecfg.libsonnet b/lib/kubecfg.libsonnet index 4744f53b8e525124026be5a7992182a28e2c9100..43448e4517689d5b5a16476b44d09e464bc41987 100644 --- a/lib/kubecfg.libsonnet +++ b/lib/kubecfg.libsonnet @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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. + { // parseJson(data): parses the `data` string as a json document, and // returns the resulting jsonnet object. diff --git a/lib/kubecfg_test.jsonnet b/lib/kubecfg_test.jsonnet index 27e661788282936632dba597cad72bdbbe9bc370..fafd8afeaf38a2d016843f2b8fbbe2eb1e352ed4 100644 --- a/lib/kubecfg_test.jsonnet +++ b/lib/kubecfg_test.jsonnet @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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. + // Run me with `../kubecfg show kubecfg_test.jsonnet` local kubecfg = import "kubecfg.libsonnet"; diff --git a/main.go b/main.go index 4a4fb81c0bfa357434827d55e4ea2758e8232b0a..89300ed8865e6ea42621e9681c2cab2d7497803f 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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/utils/acquire.go b/utils/acquire.go index ed45d65f5fb45eee1da71b5d8538e4e879b530d5..4a871f159a6d336a5af256c8b38ae88669ab2031 100644 --- a/utils/acquire.go +++ b/utils/acquire.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/client.go b/utils/client.go index e718f13f2552ef161707d06e383124c8bff411a2..589e19dd673771486eee24e0fdd9364c97daa2da 100644 --- a/utils/client.go +++ b/utils/client.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/nativefuncs.go b/utils/nativefuncs.go index 3a1129d21c5f39701aae52c5037eaa9f74d8b7e9..5d381abb1ade54e6b5b3bcb9114fb083333a84e9 100644 --- a/utils/nativefuncs.go +++ b/utils/nativefuncs.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/nativefuncs_test.go b/utils/nativefuncs_test.go index c807b4d097e15be61e0c77668660deb9956540aa..8e6d7a97439d704129c0bf354b5ebcf6c37bac03 100644 --- a/utils/nativefuncs_test.go +++ b/utils/nativefuncs_test.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/registry.go b/utils/registry.go index 23a163c05635f27756142126814e39bc4f58b74f..e1017f53990f47b11c3b3bd2be6f97268102dd1f 100644 --- a/utils/registry.go +++ b/utils/registry.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/registry_test.go b/utils/registry_test.go index 183853de45854f083116b8b84201871a5664e6e6..93302b7389940b80c9bc25e28c42bd64b32ed232 100644 --- a/utils/registry_test.go +++ b/utils/registry_test.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/resolver.go b/utils/resolver.go index 935318514000590e341c8b39fb028504b48ea9e6..2823792aacd5e1fc823ba07bde8b3a28a3ea3f09 100644 --- a/utils/resolver.go +++ b/utils/resolver.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/resolver_test.go b/utils/resolver_test.go index cde621d6063defb5e336989112684ed5c504cfc6..1835211547758871631d74afdd4cda2345da47df 100644 --- a/utils/resolver_test.go +++ b/utils/resolver_test.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/sort.go b/utils/sort.go index 2fd88276afb44a9de8773ad1dcf0677500288407..a60d36ec382d1a49ad45ccb277890ea267440273 100644 --- a/utils/sort.go +++ b/utils/sort.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import ( diff --git a/utils/sort_test.go b/utils/sort_test.go index 0a8df52de984d0ab8f22de5d1684856681df9174..68ee7c3f534c0b7b3cb8a00cf1e3c22876c6ab01 100644 --- a/utils/sort_test.go +++ b/utils/sort_test.go @@ -1,3 +1,18 @@ +// Copyright 2017 The kubecfg 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 utils import (