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

Refactor: Create agent/ package for backend agnostic logic #338

Merged
merged 10 commits into from
Sep 23, 2021

Conversation

cognifloyd
Copy link
Contributor

@cognifloyd cognifloyd commented Sep 22, 2021

I'm reviewing what it takes to add a new backend (eg for kubernetes).

This is a little bit of the refactoring based on what I saw in the kube branch, but without any reference to kubernetes.
Unlike the kube branch, I called the package agent/ instead of runner/. That fits the pattern of keeping server related stuff under server/, cli related stuff under cli/, and now agent-related stuff under agent/.

For reference, see these commits:
7f4a0c8 Factor into Runner
f7fe9ed Using Runner in server

@copart-jafloyd copart-jafloyd force-pushed the agent-package branch 2 times, most recently from 3f5fcce to 1468b81 Compare September 22, 2021 19:10
@anbraten anbraten added the refactor delete or replace old code label Sep 22, 2021
@anbraten anbraten added this to the 0.15.0 milestone Sep 22, 2021
Based in part on changes by laszlocph (kube branch):
7f4a0c8 Factor into Runner
f7fe9ed Using Runner in server
Based in part on changes by laszlocph (kube branch):
7f4a0c8 Factor into Runner
f7fe9ed Using Runner in server
Based in part on changes by laszlocph (kube branch):
7f4a0c8 Factor into Runner
f7fe9ed Using Runner in server
Based in part on changes by laszlocph (kube branch):
7f4a0c8 Factor into Runner
f7fe9ed Using Runner in server
agent/stats.go Outdated Show resolved Hide resolved
@anbraten anbraten enabled auto-merge (squash) September 23, 2021 14:31
agent/runner.go Outdated Show resolved Hide resolved
@anbraten anbraten merged commit bfb9af1 into woodpecker-ci:master Sep 23, 2021
@cognifloyd cognifloyd deleted the agent-package branch September 23, 2021 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor delete or replace old code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants