## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
## Checklist:
Commits:
- [x] I've read the [CONTRIBUTION](https://github.com/openfaas/faas/blob/master/CONTRIBUTING.md) guide
- [x] My commit message has a body and describe how this was tested and why it is required.
- [x] I have signed-off my commits with `git commit -s` for the Developer Certificate of Origin (DCO)
Code:
- [x] My code follows the code style of this project.
- [ ] I have added tests to cover my changes.
Docs:
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
Description
faasd
implementation was no allowing to deploy functions into namespace with labelopenfaas=1
. Instead code was written to validateopenfaas=true
.Motivation and Context
How Has This Been Tested?
make local
openfaas=1
. Script is usinggo-sdk
which includes labelopenfaas=1
for any new namespace created.import ( "context" "fmt" "log" "net/http" "net/url" "os" "time"
)
func main() { username := os.Getenv("OPENFAAS_USERNAME") password := os.Getenv("OPENFAAS_PASSWORD")
}
Namespace test-sdk-ns created! GetNamespace: {"test-sdk-ns" map[] map["openfaas":"1" "purpose":"test"]} Updated Namespace: {"test-sdk-ns" map[] map["demo":"false" "openfaas":"1" "purpose":"test"]} Namespaces: ["openfaas-fn" "test-sdk-ns"] Deploy Completed! Sleep.... Sleep Finish Function: {env-store-test ghcr.io/openfaas/alpine:latest test-sdk-ns env map[] [] [] 0xc000014228 0xc000014230 false 0 1 1 2023-11-28 20:50:06.077724974 +0000 UTC }