Closed bmcustodio closed 4 years ago
Hi @bmcstdio
The operator does not support namespaces at this time, because @stefanprodan hasn't worked on the feature yet.
Can you log an issue in the connector-sdk, if it crashes when the namespaces endpoint is not populated? This work was carried out by @viveksyngh who I'm sure can assist you there.
In the meantime, how do you feel about submitting a PR to add the /system/namespaces
endpoint to the operator, but as a stub that only returns the default?
Alex
cc @LucasRoesler @jonatasbaldin FYI
In the meantime, how do you feel about submitting a PR to add the /system/namespaces endpoint to the operator, but as a stub that only returns the default?
That would probably not play nicely with https://github.com/openfaas-incubator/openfaas-operator/blob/master/main.go#L91-L94, right? If that is indeed the case, some refactoring, albeit small, might be necessary.
That would probably not play nicely with x
I'm missing the reason why.
I've added a unit test to the code in the connector-sdk, it should resolve the problem, can you try 0.5.3?
In any case, it should resolve the fatal error, I'll leave it with @viveksyngh from here who owns that code.
This issue has been raised to track the feature for the operator https://github.com/openfaas-incubator/openfaas-operator/issues/92
Expected Behaviour
/system/namespaces
is implemented.Current Behaviour
/system/namespaces
is not implemented (returns404 page not found
).Possible Solution
Steps to Reproduce (for bugs)
/system/namespaces
.Context
This prevents the latest release of https://github.com/openfaas-incubator/connector-sdk from working at all, as it cannot list namespaces:
https://github.com/openfaas-incubator/connector-sdk/blob/master/types/function_list_builder.go#L33-L36
This causes applications consuming the SDK to crash:
https://github.com/openfaas-incubator/connector-sdk/blob/master/types/controller.go#L156-L159
Your Environment
Docker version
docker version
(e.g. Docker 17.0.05 ): N/AWhat version and distriubtion of Kubernetes are you using?
kubectl version
MacOS 10.14.6
N/A
https://github.com/aws/amazon-vpc-cni-k8s