diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5a1723d75..5f5f67446 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,6 +4,10 @@ This project follows the contributing guide for [OpenFaaS](https://github.com/op The project-level contributing guide contains instructions specifically relating to faas-netes. +## Third party contributions + +All third-party contributions are licensed under the MIT license, all OpenFaaS Ltd contributions are licensed under the [OpenFaaS CE EULA](https://github.com/openfaas/faas/blob/master/EULA.md). + ## Update the version ### Helm diff --git a/LICENSE b/LICENSE index 0a8168e32..1500b41f7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,8 +1,18 @@ +All contributions from Alex Ellis & OpenFaaS Ltd are licensed under the +OpenFaaS Community Edition (CE) EULA between the years 2017,2019-2024. + +Contributions from third-parties are licensed under the MIT license. + +A license is required for commercial use of OpenFaaS CE: +https://github.com/openfaas/faas/blob/master/EULA.md + +A separate commercial license covering all contributions can be purchased +from OpenFaaS Ltd, with details available at: https://openfaas.com/pricing + MIT License -Copyright (c) 2024 OpenFaaS Ltd -Copyright (c) 2024 OpenFaaS Author(s) -Copyright (c) 2024 Alex Ellis +Copyright (c) 2016-2018 Alex Ellis +Copyright (c) 2018 OpenFaaS Author(s) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -11,13 +21,14 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/README.md b/README.md index e30365516..e23dbe921 100644 --- a/README.md +++ b/README.md @@ -141,4 +141,5 @@ Check the contributor guide in `CONTRIBUTING.md` for more details on the workflo ## License -This project is licensed under the MIT License. +See the [LICENSE](./LICENSE) file for details. + diff --git a/main.go b/main.go index a035ba82f..1648f3bbe 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,8 @@ +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + // Copyright (c) Alex Ellis 2017. All rights reserved. // Copyright (c) OpenFaaS Author(s) 2020. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. package main @@ -9,6 +11,7 @@ import ( "flag" "fmt" "log" + "net/http" "time" clientset "github.com/openfaas/faas-netes/pkg/client/clientset/versioned" @@ -56,12 +59,13 @@ func main() { flag.Parse() - mode := "controller" - sha, release := version.GetReleaseInfo() - fmt.Printf("faas-netes - Community Edition (CE)\n"+ - "Warning: Commercial use limited to 60 days.\n"+ - "\nVersion: %s Commit: %s Mode: %s\n", release, sha, mode) + fmt.Printf(`faas-netes - Community Edition (CE) +Warning: Commercial use limited to 60 days. +Learn more: https://github.com/openfaas/faas/blob/master/EULA.md + +Version: %s Commit: %s +`, release, sha) if err := config.ConnectivityCheck(); err != nil { log.Fatalf("Error checking connectivity, OpenFaaS CE cannot be run in an offline environment: %s", err.Error()) @@ -194,8 +198,20 @@ func runController(setup serverSetup) { functionList := k8s.NewFunctionList(config.DefaultFunctionNamespace, deployLister) printFunctionExecutionTime := true + + proxyHandler := proxy.NewHandlerFunc(config.FaaSConfig, functionLookup, printFunctionExecutionTime) + + if err := handlers.Check(functionList); err != nil { + msg := fmt.Sprintf("Function invocations disabled due to error: %s.", err.Error()) + log.Print(msg) + + proxyHandler = func(w http.ResponseWriter, r *http.Request) { + http.Error(w, msg, http.StatusMethodNotAllowed) + } + } + bootstrapHandlers := providertypes.FaaSHandlers{ - FunctionProxy: proxy.NewHandlerFunc(config.FaaSConfig, functionLookup, printFunctionExecutionTime), + FunctionProxy: proxyHandler, DeleteFunction: handlers.MakeDeleteHandler(config.DefaultFunctionNamespace, kubeClient), DeployFunction: handlers.MakeDeployHandler(config.DefaultFunctionNamespace, factory, functionList), FunctionLister: handlers.MakeFunctionReader(config.DefaultFunctionNamespace, deployLister), diff --git a/pkg/config/read_config.go b/pkg/config/read_config.go index 3d3c2cbd7..3c75dc7ce 100644 --- a/pkg/config/read_config.go +++ b/pkg/config/read_config.go @@ -1,6 +1,8 @@ +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + // Copyright (c) Alex Ellis 2017. All rights reserved. // Copyright (c) OpenFaaS Author(s) 2020. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. package config import ( diff --git a/pkg/config/read_config_test.go b/pkg/config/read_config_test.go index 62194b9eb..739c4345a 100644 --- a/pkg/config/read_config_test.go +++ b/pkg/config/read_config_test.go @@ -1,6 +1,8 @@ +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + // Copyright (c) Alex Ellis 2017. All rights reserved. // Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. package config diff --git a/pkg/handlers/delete.go b/pkg/handlers/delete.go index d6d0bc7e2..bb047ee23 100644 --- a/pkg/handlers/delete.go +++ b/pkg/handlers/delete.go @@ -1,6 +1,8 @@ -// Copyright (c) Alex Ellis 2017. All rights reserved. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + +// Copyright (c) Alex Ellis 2017. All rights reserved\. // Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. package handlers diff --git a/pkg/handlers/deploy.go b/pkg/handlers/deploy.go index 98865fbce..eb612675f 100644 --- a/pkg/handlers/deploy.go +++ b/pkg/handlers/deploy.go @@ -1,6 +1,8 @@ +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + // Copyright (c) Alex Ellis 2017. All rights reserved. // Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. package handlers @@ -377,8 +379,6 @@ func getMinReplicaCount(labels map[string]string) *int32 { if err == nil && minReplicas > 0 { return int32p(int32(minReplicas)) } - - log.Println(err) } return nil diff --git a/pkg/handlers/deploy_test.go b/pkg/handlers/deploy_test.go index 33bccf7b4..97a88eea3 100644 --- a/pkg/handlers/deploy_test.go +++ b/pkg/handlers/deploy_test.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package handlers diff --git a/pkg/handlers/errors.go b/pkg/handlers/errors.go index 73f3d9637..5d0c12322 100644 --- a/pkg/handlers/errors.go +++ b/pkg/handlers/errors.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package handlers diff --git a/pkg/handlers/errors_test.go b/pkg/handlers/errors_test.go index e3e3f8eb3..da08cc5a3 100644 --- a/pkg/handlers/errors_test.go +++ b/pkg/handlers/errors_test.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package handlers diff --git a/pkg/handlers/handlers_test.go b/pkg/handlers/handlers_test.go index ac81ea636..0002b325b 100644 --- a/pkg/handlers/handlers_test.go +++ b/pkg/handlers/handlers_test.go @@ -1,6 +1,8 @@ -// Copyright (c) Alex Ellis 2017. All rights reserved. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + +// Copyright (c) Alex Ellis 2017. All rights reserved\. // Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. package handlers diff --git a/pkg/handlers/health.go b/pkg/handlers/health.go index 991883164..361000844 100644 --- a/pkg/handlers/health.go +++ b/pkg/handlers/health.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package handlers diff --git a/pkg/handlers/info.go b/pkg/handlers/info.go index 7cce9d685..e50a5536c 100644 --- a/pkg/handlers/info.go +++ b/pkg/handlers/info.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package handlers diff --git a/pkg/handlers/info_test.go b/pkg/handlers/info_test.go index 2e74372e0..074fe6935 100644 --- a/pkg/handlers/info_test.go +++ b/pkg/handlers/info_test.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package handlers diff --git a/pkg/handlers/informers.go b/pkg/handlers/informers.go index e15b4fda3..9af30fe64 100644 --- a/pkg/handlers/informers.go +++ b/pkg/handlers/informers.go @@ -1,3 +1,6 @@ +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + package handlers import ( diff --git a/pkg/handlers/license.go b/pkg/handlers/license.go new file mode 100644 index 000000000..e14132a48 --- /dev/null +++ b/pkg/handlers/license.go @@ -0,0 +1,25 @@ +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + +package handlers + +import ( + "fmt" + + "github.com/openfaas/faas-netes/pkg/k8s" +) + +// Check checks the OpenFaaS installation against the OpenFaaS CE EULA +// which this code is licensed under. +func Check(functionList *k8s.FunctionList) error { + total, err := functionList.Count() + if err != nil { + return err + } + + if total > MaxFunctions { + return fmt.Errorf("the OpenFaaS CE EULA only permits: %d functions, visit https://openfaas.com/pricing to upgrade to OpenFaaS Standard", MaxFunctions) + } + + return nil +} diff --git a/pkg/handlers/namespaces.go b/pkg/handlers/namespaces.go index ddc8260e7..394e91c99 100644 --- a/pkg/handlers/namespaces.go +++ b/pkg/handlers/namespaces.go @@ -1,6 +1,8 @@ -// Copyright (c) Alex Ellis 2017. All rights reserved. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + +// Copyright (c) Alex Ellis 2017. All rights reserved\. // Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. package handlers diff --git a/pkg/handlers/namespaces_test.go b/pkg/handlers/namespaces_test.go index 65352f964..c7a68df52 100644 --- a/pkg/handlers/namespaces_test.go +++ b/pkg/handlers/namespaces_test.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package handlers diff --git a/pkg/handlers/reader.go b/pkg/handlers/reader.go index 0c9480527..468474f80 100644 --- a/pkg/handlers/reader.go +++ b/pkg/handlers/reader.go @@ -1,6 +1,8 @@ -// Copyright (c) Alex Ellis 2017. All rights reserved. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + +// Copyright (c) Alex Ellis 2017. All rights reserved\. // Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. package handlers diff --git a/pkg/handlers/replica_reader.go b/pkg/handlers/replica_reader.go index 31930cf58..cd116baf2 100644 --- a/pkg/handlers/replica_reader.go +++ b/pkg/handlers/replica_reader.go @@ -1,6 +1,8 @@ +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + // Copyright (c) Alex Ellis 2017. All rights reserved. // Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. package handlers @@ -25,7 +27,7 @@ const MaxReplicas = 5 // MaxFunctions licensed for OpenFaaS CE is 15 // a license for OpenFaaS Standard is required to increase this limit. -const MaxFunctions = 15 +const MaxFunctions = 10 // MakeReplicaReader reads the amount of replicas for a deployment func MakeReplicaReader(defaultNamespace string, lister v1.DeploymentLister) http.HandlerFunc { diff --git a/pkg/handlers/replica_updater.go b/pkg/handlers/replica_updater.go index 5f3a6827f..82c5c66d4 100644 --- a/pkg/handlers/replica_updater.go +++ b/pkg/handlers/replica_updater.go @@ -1,6 +1,8 @@ -// Copyright (c) Alex Ellis 2017. All rights reserved. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + +// Copyright (c) Alex Ellis 2017. All rights reserved\. // Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. package handlers diff --git a/pkg/handlers/secrets.go b/pkg/handlers/secrets.go index 3852cd05d..6f1d0a0ed 100644 --- a/pkg/handlers/secrets.go +++ b/pkg/handlers/secrets.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package handlers diff --git a/pkg/handlers/secrets_test.go b/pkg/handlers/secrets_test.go index ef3c8e3af..fcc0f4d2e 100644 --- a/pkg/handlers/secrets_test.go +++ b/pkg/handlers/secrets_test.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package handlers diff --git a/pkg/handlers/update.go b/pkg/handlers/update.go index bfdb66e9f..474b2b35c 100644 --- a/pkg/handlers/update.go +++ b/pkg/handlers/update.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package handlers diff --git a/pkg/handlers/validate.go b/pkg/handlers/validate.go index 7118c1958..6c439a8c7 100644 --- a/pkg/handlers/validate.go +++ b/pkg/handlers/validate.go @@ -1,6 +1,8 @@ -// Copyright (c) Alex Ellis 2017. All rights reserved. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + +// Copyright (c) Alex Ellis 2017. All rights reserved\. // Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. package handlers diff --git a/pkg/handlers/validate_test.go b/pkg/handlers/validate_test.go index cb1bfe7a7..d048bb597 100644 --- a/pkg/handlers/validate_test.go +++ b/pkg/handlers/validate_test.go @@ -1,3 +1,6 @@ +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + package handlers import ( diff --git a/pkg/k8s/config.go b/pkg/k8s/config.go index e774bc3cc..37ed4485a 100644 --- a/pkg/k8s/config.go +++ b/pkg/k8s/config.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Authors -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/pkg/k8s/errors.go b/pkg/k8s/errors.go index e9adc248c..e9c9b0465 100644 --- a/pkg/k8s/errors.go +++ b/pkg/k8s/errors.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Authors -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/pkg/k8s/factory.go b/pkg/k8s/factory.go index 325ee8dc9..79207aea5 100644 --- a/pkg/k8s/factory.go +++ b/pkg/k8s/factory.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Authors -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/pkg/k8s/factory_test.go b/pkg/k8s/factory_test.go index 6f1b955e6..ae59486d0 100644 --- a/pkg/k8s/factory_test.go +++ b/pkg/k8s/factory_test.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Authors -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/pkg/k8s/function_status.go b/pkg/k8s/function_status.go index dd5ff2e08..cb57b5b81 100644 --- a/pkg/k8s/function_status.go +++ b/pkg/k8s/function_status.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Authors -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/pkg/k8s/function_status_test.go b/pkg/k8s/function_status_test.go index fda4b14c8..23df35c3c 100644 --- a/pkg/k8s/function_status_test.go +++ b/pkg/k8s/function_status_test.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Authors -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/pkg/k8s/log.go b/pkg/k8s/log.go index 079fedcdb..f7b2c662f 100644 --- a/pkg/k8s/log.go +++ b/pkg/k8s/log.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/pkg/k8s/probes.go b/pkg/k8s/probes.go index 494a4e264..7d0de8e9e 100644 --- a/pkg/k8s/probes.go +++ b/pkg/k8s/probes.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Authors -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/pkg/k8s/probes_test.go b/pkg/k8s/probes_test.go index 35a142ac6..7621f1b7f 100644 --- a/pkg/k8s/probes_test.go +++ b/pkg/k8s/probes_test.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Authors -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/pkg/k8s/proxy.go b/pkg/k8s/proxy.go index 75011b854..da8bf493f 100644 --- a/pkg/k8s/proxy.go +++ b/pkg/k8s/proxy.go @@ -1,6 +1,8 @@ -// Copyright (c) Alex Ellis 2017. All rights reserved. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) + +// Copyright (c) Alex Ellis 2017. All rights reserved\. // Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. package k8s diff --git a/pkg/k8s/secrets.go b/pkg/k8s/secrets.go index d26bfe68a..22c51663d 100644 --- a/pkg/k8s/secrets.go +++ b/pkg/k8s/secrets.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Authors -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/pkg/k8s/secrets_factory_test.go b/pkg/k8s/secrets_factory_test.go index f35f22e5f..090be8b24 100644 --- a/pkg/k8s/secrets_factory_test.go +++ b/pkg/k8s/secrets_factory_test.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/pkg/k8s/securityContext.go b/pkg/k8s/securityContext.go index 408858658..682388faf 100644 --- a/pkg/k8s/securityContext.go +++ b/pkg/k8s/securityContext.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Authors -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/pkg/k8s/securityContext_test.go b/pkg/k8s/securityContext_test.go index 8fa29cfbd..a4f902807 100644 --- a/pkg/k8s/securityContext_test.go +++ b/pkg/k8s/securityContext_test.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Authors -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/pkg/k8s/utils.go b/pkg/k8s/utils.go index 3d112bfe9..9396497c8 100644 --- a/pkg/k8s/utils.go +++ b/pkg/k8s/utils.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Authors -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package k8s diff --git a/version/version.go b/version/version.go index 88d5cf4e7..0ae2c968b 100644 --- a/version/version.go +++ b/version/version.go @@ -1,5 +1,5 @@ -// Copyright 2020 OpenFaaS Author(s) -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// License: OpenFaaS Community Edition (CE) EULA +// Copyright (c) 2017,2019-2024 OpenFaaS Author(s) package version