Skip to content
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

Merged
merged 6 commits into from
Feb 26, 2020
Merged

K8s cleanup #817

merged 6 commits into from
Feb 26, 2020

Conversation

ddgenome
Copy link
Contributor

Various refactorings and consolidations.

@ddgenome ddgenome added the changelog:changed Add this issue or pull request to changed changelog section label Feb 26, 2020
Copy link
Member

@cdupuis cdupuis left a 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:

@ddgenome
Copy link
Contributor Author

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.

@ddgenome
Copy link
Contributor Author

That code is not hit when running tests locally, i.e., not in Kubernetes.

@ddgenome
Copy link
Contributor Author

Regarding you review comments:

  • I removed KubernetesJobDeletingGoalCompletionListener as it is less reliable and provided no additional benefit over the interval-based cleanup
  • I kept the k8s container goal implementation as a single file because of the "lots of files are slow to load under gVisor" issue, but I can break the circularity

@ddgenome
Copy link
Contributor Author

Actually, I'm not sure how to break the circular dependency. The implementations of the Container and KubernetesFulfillmentGoalScheduler classes use each other. I can create intermediate files to move the imports and implementations, but that does not break the circularity, it just adds a file between them. Any ideas @cdupuis ?

@ddgenome ddgenome force-pushed the k8s-cleanup branch 2 times, most recently from 21d06e8 to 2eb516b Compare February 26, 2020 19:20
David Dooling added 5 commits February 26, 2020 14:02
Move Kubernetes container goal implementation to k8s pack.  Remove
reference to KubernetesJobDeletingGoalCompletionListenerFactory.  Add
tests for container goal methods to check failing runtime require
statements.
@ddgenome
Copy link
Contributor Author

I've cleaned things up. I left the circular dependency for now. Thoughts @cdupuis ?

@ddgenome ddgenome added auto-merge-method:merge Auto-merge with merge commit auto-merge:on-approve Auto-merge on review approvals labels Feb 26, 2020
@atomist atomist bot merged commit f8886aa into master Feb 26, 2020
@atomist
Copy link
Contributor

atomist bot commented Feb 26, 2020

Pull request auto merged by Atomist.

  • 1 approved review by @cdupuis
  • 2 successful checks

[atomist:generated] [auto-merge:on-approve]

@atomist atomist bot deleted the k8s-cleanup branch February 26, 2020 21:04
atomist bot pushed a commit that referenced this pull request Feb 26, 2020
[atomist:generated]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge:on-approve Auto-merge on review approvals auto-merge-method:merge Auto-merge with merge commit changelog:changed Add this issue or pull request to changed changelog section
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants