Closed jdewinne closed 3 years ago
@jdewinne there are merge conflicts. Could you please resolve them and squash the commits ?
@viveksyngh I've resolved the merge conflicts. I haven't squashed the commits yet, as I would like your input on the following:
vendor
folder needed? Can't we run go mod vendor
within the Dockerfile?:pray:
I have answered 1st question in the comments.
To Answer 2nd question. Idea is to have migrate all OpenFaaS project to go modules with vendor folder. We will may try to remove vendor/ folder in future but not at the moment.
https://trello.com/c/duCUKQPe/161-migration-to-go-modules-for-all-projects
You can have look at this MR for migrating this to go modules. https://github.com/openfaas/faas-idler/pull/43
It may be a good idea to separate multiple namespace and go modules migrations in separate PRs
Thanks. I think @alexellis already migrated it to go modules. I was just wondering if the vendor folder is actually needed, as it looks generated. For the 1st question regarding authentication: I don't see the comment regarding that. Can you post again?
I think this is the right way to with the SDK. What part do you find challenging ?
Yes please run go mod tidy
and go mod vendor
to update that directory.
This PR also needs to be rebased please, in its current state it can't be merged.
@alexellis @viveksyngh Did the rebase and squashed the commits.
We need a rebase, to move back to Go 1.15 and for @viveksyngh to review again.
One more thing @jdewinne - please edit the PR description and use the PR template - https://raw.githubusercontent.com/openfaas/cron-connector/master/.github/PULL_REQUEST_TEMPLATE.md
Not sure if it was available when you created the PR.
@jdewinne thank you for this PR. If you find it useful, it may help to change this line: https://github.com/openfaas/cron-connector/blob/3a5e9c415c2f046690ef360266c8a214b1124fb5/types/scheduler.go#L38
To this:
log.Print(fmt.Sprintf("Executed function: %s (ns=%s)", c.Name, c.Namespace))
Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide.
Tip: if you only have one commit so far then run: git commit --amend --signoff
and then git push --force
.
Did the rebase and squash again. @viveksyngh can you review?
@viveksyngh @alexellis Made some of the requested changes.
Description
Adding namespace support to run cron function in different k8s namespaces.
Motivation and Context
design/approved
labelHow Has This Been Tested?
See main_test.go. Also tested manually using jdewinne/cron-connector
Types of changes
Checklist:
git commit -s
Signed-off-by: Joris De Winne joris.dewinne@gmail.com