-
Notifications
You must be signed in to change notification settings - Fork 20
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
K8s cleanup #817
K8s cleanup #817
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the cleanup in this branch!
Issues that are actually not part of this PR but are broken nonetheless need to get addressed:
- https://github.com/atomist/sdm/blob/k8s-cleanup/lib/core/goal/container/container.ts#L277: the
KubernetesJobDeletingGoalCompletionListener
went missing so this require is broken. I'm also not sure why it was deleted as it was responsible for cleaning up completed k8s goal jobs after goal completion - https://github.com/atomist/sdm/blob/k8s-cleanup/lib/core/goal/container/container.ts#L33-L36: there seems to be circular dependency between container.ts and KubernetesFulfillmentGoalScheduler.ts which is worth breaking.
Thanks for fixing those requires. What is strange is that the build was successful locally. Those requires are a pain when moving stuff around though. |
That code is not hit when running tests locally, i.e., not in Kubernetes. |
Regarding you review comments:
|
Actually, I'm not sure how to break the circular dependency. The implementations of the |
21d06e8
to
2eb516b
Compare
See this https://www.typescriptlang.org/docs/handbook/functions.html#this (pun intended).
Move Kubernetes container goal implementation to k8s pack. Remove reference to KubernetesJobDeletingGoalCompletionListenerFactory. Add tests for container goal methods to check failing runtime require statements.
2eb516b
to
0038674
Compare
I've cleaned things up. I left the circular dependency for now. Thoughts @cdupuis ? |
Pull request auto merged by Atomist.
[atomist:generated] [auto-merge:on-approve] |
Various refactorings and consolidations.