diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5a1723d753..5f5f674464 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 0a8168e32e..1500b41f7b 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 e303655166..e23dbe9211 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 a035ba82f0..1648f3bbec 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 3d3c2cbd77..3c75dc7cec 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 62194b9eb6..739c4345ad 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 d6d0bc7e26..bb047ee238 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 98865fbce7..eb612675f4 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 33bccf7b43..97a88eea33 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 73f3d9637b..5d0c123224 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 e3e3f8eb3f..da08cc5a3d 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 ac81ea6369..0002b325b9 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 9918831647..361000844c 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 7cce9d6853..e50a5536c4 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 2e74372e0d..074fe6935a 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 e15b4fda3b..9af30fe648 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 0000000000..e14132a48c --- /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 ddc8260e79..394e91c994 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 65352f964c..c7a68df52b 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 0c94805279..468474f80a 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 31930cf589..cd116baf2c 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 5f3a6827fc..82c5c66d43 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 3852cd05db..6f1d0a0ed4 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 ef3c8e3afe..fcc0f4d2e8 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 bfdb66e9f2..474b2b35ca 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 7118c19581..6c439a8c7d 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 cb1bfe7a72..d048bb597a 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 e774bc3cc6..37ed4485a1 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 e9adc248c9..e9c9b0465c 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 325ee8dc9a..79207aea52 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 6f1b955e60..ae59486d03 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 dd5ff2e085..cb57b5b813 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 fda4b14c8a..23df35c3ca 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 079fedcdb5..f7b2c662f2 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 494a4e2640..7d0de8e9ec 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 35a142ac62..7621f1b7f5 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 75011b8546..da8bf493f6 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 d26bfe68a3..22c51663dd 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 f35f22e5fb..090be8b24b 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 4088586581..682388faf9 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 8fa29cfbdf..a4f902807d 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 3d112bfe9a..9396497c8d 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 88d5cf4e7b..0ae2c968bc 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