-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Certify multi-namespace support #61
Comments
I will work on it. |
Cool, 👍 @nitishkumar71 i think the first step is to create a PR that adds a config object and parsing from env variables, something like type Config struct {
Namespaces []string
}
func FronEnv() Config {
// read CERTIFIER_NAMESPACES variable, parse as csv string
} Once we have that, we can start using it in the test cases, starting with the deploy test. I think it is simplest to just take it all in small steps, one test as a time essentially. |
@nitishkumar71 just want to follow up on how this is going. The expected change should be extending this section of the existing code Lines 21 to 40 in 2d4a282
We don't need to use the new value in the tests yet, we want to go through each test 1 by 1, but we can can a log line to pretty pring the Config here Line 72 in 2d4a282 |
@LucasRoesler Sorry for delay. I have included logic to get namespaces name from env variables. Which test do you think would be better to first stage for it? |
No worries, i will take a look at your PR tomorrow. I wrote up this issue as a suggested first endpoint we should verify #63 |
@nitishkumar71 Now that we have the verification for ListNamespaces, i think we need to look at the function lifecycle. I think there are two ways we can approach this
|
Ideally, Option 3 and 4 look good to me.
Possibly We can try to find some other application, who needs to perform similar tests and look at their approach. |
Ok, Let's try option 3 then with the |
@nitishkumar71 now that we have a pattern to work with based on the Deploy tests, this leaves the Do you want to do one of those and I can take one of the others? |
@LucasRoesler Yes, I can. Do let me know which one should I take? |
@nitishkumar71 you can to take Secrets (#67) or invoke (#69) I will take logs (#68) |
The certifier currently does not know about multi-namespace support in faas-netes. Additionally, we would like to eventually bring namespace support to faasd. We should update the certifier to validate that multi-namespace support works as expected. It is likely to find bugs for us and help verify when faasd is done with its own version of namespace support.
I think the ideal flow for this is to add a new config or env variable that is a list of namespaces, for exmaple
when this value is set, the tests (where it makes sense) would run multiple times, one per namespace in the list.
When the value is empty, the certifier should default to its current behavior.
The text was updated successfully, but these errors were encountered: