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

Native Kubernetes Support #23

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
3cd664f
Kubernetes client-go deps, establishing connection and a way to test
laszlocph Apr 10, 2019
8530770
Bacic pipeline works: pods, volumes - used drone-kubernetes-runtime, …
laszlocph Apr 10, 2019
7691b2b
Services work - half baked ports field
laszlocph Apr 12, 2019
bc7d8c9
Kubernetes backend integrated to the server
laszlocph Apr 13, 2019
7f4a0c8
Factor into Runner
laszlocph Apr 13, 2019
f7fe9ed
Using Runner in server
laszlocph Apr 13, 2019
015c03b
RWX volume provided by storageclass
laszlocph Apr 14, 2019
7747e62
Fixing tests
laszlocph Apr 23, 2019
1b25f33
OAuth lib behavior changed, not sure what this case means. Needs to b…
laszlocph Apr 23, 2019
5d1afa2
Fixing tests
laszlocph Apr 23, 2019
39201b9
Services are added as HostAliases to avoid naming collision
laszlocph Apr 24, 2019
8509c1c
Added default resource quotas
laszlocph Apr 26, 2019
e290c76
Simplified code, only svc for services
laszlocph Apr 26, 2019
4237ce6
Build tags to separate integration tests
laszlocph Apr 26, 2019
43603ed
Integration tests
laszlocph Apr 27, 2019
ce38140
Supporting ports yaml field in service definition - needed for Kubern…
laszlocph Apr 27, 2019
78283cc
Kubernetes service name is the step name and not the alias. To avoid …
laszlocph Apr 27, 2019
3554bcc
K3s for integration testing
laszlocph Apr 27, 2019
6ec7240
Yamls for the 'example-nfs' storage class
laszlocph Apr 27, 2019
a7da8ef
Outdated
laszlocph Apr 29, 2019
f59633f
Merge branch 'master' into kube
laszlocph May 27, 2019
afb7dfd
beta1
laszlocph May 27, 2019
e684622
Svc name must consist of lower case alphanumeric characters
laszlocph May 28, 2019
6555c19
Port required to run on K8s
laszlocph May 28, 2019
f2e41fe
Fixed host aliases
laszlocph May 28, 2019
cc4101e
Resource limits
laszlocph May 29, 2019
b263e59
Local test setup
laszlocph May 29, 2019
f4c7be0
Manifest to run it on k8s, with k8s engine
laszlocph May 29, 2019
b4f04e9
env file
laszlocph Jul 1, 2019
ba8bf40
Merge remote-tracking branch 'origin/master' into kube
laszlocph Jul 1, 2019
37d8f79
Fixing volumes
laszlocph Jul 1, 2019
e2307c9
Reenable tests
laszlocph Jul 1, 2019
cfd150c
Drone tag
laszlocph Jul 2, 2019
4675be0
Privileged containers for docker builds
laszlocph Jul 2, 2019
452d1a2
Fixing eventual consistency of logs UI
laszlocph Jul 3, 2019
a577289
Integration tests
laszlocph Jul 4, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 10 additions & 8 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ workspace:

pipeline:
test:
image: golang:1.12.4
image: golang:1.12
commands:
- go get -u golang.org/x/tools/cmd/cover
- go get -u golang.org/x/net/context
Expand All @@ -18,26 +18,28 @@ pipeline:
- go test -cover $(go list ./... | grep -v /vendor/)

test_postgres:
image: golang:1.12.4
image: golang:1.12
environment:
- DATABASE_DRIVER=postgres
- DATABASE_CONFIG=host=postgres user=postgres dbname=postgres sslmode=disable
commands:
- go test github.com/laszlocph/drone-oss-08/store/datastore

test_mysql:
image: golang:1.12.4
image: golang:1.12
environment:
- DATABASE_DRIVER=mysql
- DATABASE_CONFIG=root@tcp(mysql:3306)/test?parseTime=true
commands:
- go test github.com/laszlocph/drone-oss-08/store/datastore

build:
image: golang:1.12.4
image: golang:1.12
commands: sh .drone.sh
when:
event: [ push, tag ]
# resources:
# cpu_limit: "12"

publish_server_alpine:
image: plugins/docker
Expand Down Expand Up @@ -113,7 +115,7 @@ pipeline:
repo: laszlocloud/drone-oss-08-server
dockerfile: Dockerfile.alpine
secrets: [ docker_username, docker_password ]
tag: [ 0.8.100-alpine ]
tag: "${DRONE_TAG}-alpine"
when:
event: tag

Expand All @@ -122,15 +124,15 @@ pipeline:
repo: laszlocloud/drone-oss-08-agent
dockerfile: Dockerfile.agent.alpine
secrets: [ docker_username, docker_password ]
tag: [ 0.8.100-alpine ]
tag: "${DRONE_TAG}-alpine"
when:
event: tag

release_server:
image: plugins/docker
repo: laszlocloud/drone-oss-08-server
secrets: [ docker_username, docker_password ]
tag: [ 0.8.100 ]
tag: ${DRONE_TAG}
when:
event: tag

Expand All @@ -139,7 +141,7 @@ pipeline:
repo: laszlocloud/drone-oss-08-agent
dockerfile: Dockerfile.agent
secrets: [ docker_username, docker_password ]
tag: [ 0.8.100 ]
tag: ${DRONE_TAG}
when:
event: tag

Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ drone/drone
*.txt
*.out
/.env
cmd/drone-server/.env
extras/
release/
cli/release/

kubeconfig.yaml

server/swagger/files/*.json
server/swagger/swagger_gen.go
.idea/
.vscode/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ you shouldn't necessarily. Paying for Drone 1.0 is a fine choice.
Check the issues and releases of this project if you are evaluating this project.
Also you can check the devlog to get the nuances: https://laszlo.cloud/drone-oss-08-devlog-1

The project is currently used by one user, with 50+ repos and 500+ builds a week.
The project is currently used by one user, with 50+ repos and 500+ builds a week.
Loading