78 Commits

Author SHA1 Message Date
fdb778896c [Close #11] fix: remove obsolete replicaCount
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-10 19:46:27 +02:00
cb6a5021c8 Merge pull request #10 from pi3ch/master
All checks were successful
continuous-integration/drone/push Build is passing
support for ephemeral storage
2022-09-10 19:41:53 +02:00
d26bfdea13 support for ephemeral storage 2022-09-10 10:16:50 +10:00
6547aee98e chore(deps): update dependency docker.io/volkerraschek/helm to v3.9.4
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-08-30 18:51:42 +02:00
b774b08dec chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.32.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-08-21 16:54:15 +02:00
207c9d702b Merge pull request 'chore(deps): update dependency drone to v2.12.1' (#21) from renovate/drone-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #21
2022-07-26 15:53:24 +00:00
df7bb19b58 chore(deps): update dependency drone to v2.12.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-07-26 17:51:30 +02:00
bf13179edf fix(ci): use docker.io/volkerraschek/drone-email:0.1.1
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-26 17:49:53 +02:00
efcab94223 chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.32.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-07-25 13:12:54 +02:00
e26ba6e113 chore(deps): update dependency docker.io/volkerraschek/helm to v3.9.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-07-23 10:41:06 +02:00
5a3deb5f55 chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.32.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-07-18 11:13:12 +02:00
d549a4b637 chore(deps): update dependency docker.io/volkerraschek/helm to v3.9.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-07-14 18:31:06 +02:00
dc03395b66 fix(ci): helm template
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-26 18:15:49 +02:00
bc9a4ea4a4 chore(deps): update dependency docker.io/volkerraschek/helm to v3.9.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-05-24 08:53:42 +02:00
8be7f9c4da fix(ci): resource limits
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-21 11:26:26 +02:00
4a0ec52f12 fix: bump chart version
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-16 20:44:56 +02:00
d968cce280 fix: decouple service from drone config 2022-05-16 20:38:45 +02:00
925c713364 fix: bump chart version
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-16 19:13:46 +02:00
b888ad6205 Merge pull request 'chore(deps): update dependency drone to v2.12.0' (#19) from renovate/drone-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #19
2022-05-16 17:10:45 +00:00
4ada0bafc6 chore(deps): update dependency drone to v2.12.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-05-16 12:10:50 +02:00
1d2c04ede7 chore(deps): update dependency docker.io/volkerraschek/helm to v3.8.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-05-11 10:31:06 +02:00
5cadbd31a2 fix: add liveness and readiness probe
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-21 23:13:14 +02:00
c7346ec71a feat: add loadBlancer options to the service 2022-04-21 22:58:41 +02:00
04e6d2214c feat: support extraVolumes and extraVolumeMounts 2022-04-21 22:37:56 +02:00
6f36f2b794 fix(drone): remove sync via drone - use instead gitea push feature
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-19 22:27:51 +02:00
fc2dd72561 fix: add annotations for service and serviceAccount
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-19 11:51:34 +02:00
c336536512 feat: support pod priorityClassName
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-18 10:44:31 +02:00
0b482a45d0 chore(deps): update dependency docker.io/volkerraschek/helm to v3.8.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-04-14 21:48:54 +02:00
e2a9de91f3 fix: bump chart version
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-16 18:23:39 +01:00
181a35028e Merge pull request 'chore(deps): update dependency drone to v2.11.1' (#16) from renovate/drone-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #16
2022-03-16 17:20:41 +00:00
e5833cef56 chore(deps): update dependency drone to v2.11.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-03-15 17:00:59 +01:00
8e489572f2 Merge pull request 'chore(deps): update drone docker tag to v2.10.0' (#15) from renovate/drone-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #15
2022-03-03 18:25:58 +00:00
b572e084e0 chore(deps): update drone docker tag to v2.10.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-03-03 15:00:54 +00:00
0869a34339 chore(deps): update docker.io/volkerraschek/markdownlint docker tag to v0.31.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-02-09 19:30:18 +00:00
e1275fffe0 fix(ci): use helm cm-push command to deploy chart
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-03 22:22:03 +01:00
90e2676365 fix(ci): helm cm push
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-03 18:59:03 +01:00
28eab737ec fix(ci): add package rules
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-30 16:45:44 +01:00
25b6a868ad Merge pull request 'chore(deps): update docker.io/volkerraschek/helm docker tag to v3.8.0' (#13) from renovate/docker.io-volkerraschek-helm-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #13
2022-01-29 23:06:28 +00:00
b8787ea957 chore(deps): update docker.io/volkerraschek/helm docker tag to v3.8.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-01-29 23:01:18 +00:00
e1469c9d30 fix(ci): use volkerraschek/helm to deploy and lint chart
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-29 23:26:36 +01:00
f00116fcec fix: bump chart version
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-27 22:15:43 +01:00
0efae25b7b Merge pull request 'chore(deps): update docker.io/drone/drone docker tag to v2.9.1' (#12) from renovate/docker.io-drone-drone-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #12
2022-01-27 21:12:53 +00:00
f89c06cdd7 Merge pull request 'chore(deps): update docker.io/alpine/helm docker tag to v3.8.0' (#11) from renovate/docker.io-alpine-helm-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #11
2022-01-27 13:43:31 +00:00
b1037536ef chore(deps): update docker.io/drone/drone docker tag to v2.9.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-01-27 12:00:48 +00:00
f0e8282c2d chore(deps): update docker.io/alpine/helm docker tag to v3.8.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-01-27 10:00:49 +00:00
eed7f8ede2 Merge pull request 'chore(deps): update docker.io/drone/drone docker tag to v2.9.0' (#10) from renovate/docker.io-drone-drone-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #10
2022-01-26 21:55:34 +00:00
cf0e5da873 chore(deps): update docker.io/drone/drone docker tag to v2.9.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-01-26 17:00:47 +00:00
52d3f3b3f8 fix(ci): deploy helm chart
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-25 22:14:52 +01:00
9a0f5d8dd8 fix: bump to app version 2.8.0 and chart version 0.3.0
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-20 23:40:06 +01:00
a8403b0f92 fix: bump to app version 2.7.3 and chart version 0.2.4
All checks were successful
continuous-integration/drone/push Build is passing
2021-12-31 12:17:50 +01:00
2ac5857a2a fix: bump to app version 2.7.2 and chart version 0.2.3 2021-12-31 12:17:31 +01:00
f5c6ad416f fix: bump to app version 2.7.1 and chart version 0.2.2
All checks were successful
continuous-integration/drone/push Build is passing
2021-12-18 13:44:05 +01:00
f8bea339d4 fix: bump to app version 2.7.0 and chart version 0.2.1
All checks were successful
continuous-integration/drone/push Build is passing
2021-12-15 17:32:31 +01:00
8cd2c8140d fix: bump to app version 2.6.0 and chart version 0.2.0
All checks were successful
continuous-integration/drone/push Build is passing
2021-12-15 17:31:30 +01:00
2e81e657bc fix: add DRONE_GITEE parameters
All checks were successful
continuous-integration/drone/push Build is passing
2021-12-15 17:30:18 +01:00
5a277ba8e4 fix: add DRONE_USER_FILTER 2021-12-15 17:26:09 +01:00
b1c607646b fix: add DRONE_GITEA_SKIP_VERIFY 2021-12-15 17:23:29 +01:00
ee37c39660 [Close #4] fix: typo of persistentVolume description
All checks were successful
continuous-integration/drone/push Build is passing
2021-11-26 16:57:37 +01:00
12c9923ecf fix: bump to chart version 0.1.6
All checks were successful
continuous-integration/drone/push Build is passing
2021-11-20 13:53:11 +01:00
f3eddbf4bc Merge pull request 'chore(deps): update docker.io/drone/drone docker tag to v2.5.0' (#4) from renovate/docker.io-drone-drone-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #4
2021-11-20 12:47:27 +00:00
41ed8e6465 Merge branch 'master' into renovate/docker.io-drone-drone-2.x
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-11-20 12:41:53 +00:00
4181e61c80 Merge pull request 'chore(deps): update docker.io/volkerraschek/markdownlint docker tag to v0.30.0' (#5) from renovate/docker.io-volkerraschek-markdownlint-0.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #5
2021-11-20 12:40:05 +00:00
2473397043 chore(deps): update docker.io/volkerraschek/markdownlint docker tag to v0.30.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-11-20 12:02:31 +00:00
ada2dee582 chore(deps): update docker.io/drone/drone docker tag to v2.5.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-11-17 16:00:51 +00:00
4aae7bb66d Merge pull request 'chore(deps): update docker.io/volkerraschek/markdownlint docker tag to v0.29.0' (#3) from renovate/docker.io-volkerraschek-markdownlint-0.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #3
2021-10-28 20:51:21 +00:00
eb0dde5f1f chore(deps): update docker.io/volkerraschek/markdownlint docker tag to v0.29.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-10-28 22:31:31 +02:00
163a19b303 fix(renovate): init
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-28 22:28:52 +02:00
8e47993568 fix(ci): only sync master branch
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-12 18:31:13 +02:00
16ed02a856 fix: add .editorconfig 2021-10-12 18:30:46 +02:00
055854a237 fix: ignore to package *.tgz archives
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-26 17:03:06 +02:00
5b56416a16 fix: ignore further files for git and helm
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-26 17:00:39 +02:00
78ee710b8e fix: use drone.fullname for pvc in deployment
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-26 16:48:26 +02:00
dbe08ba918 fix: use drone.fullname for pvc
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-26 16:44:27 +02:00
f3ef73206b feat: add service account 2021-09-26 16:43:43 +02:00
6bb524d463 fix: bump to chart version 1.5.0 and app version 2.5.0
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-26 16:35:27 +02:00
7fa46b4dcb fix: add config.DRONE_GITHUB_CLIENT_ID
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-26 16:32:43 +02:00
ca9fe0b88d fix: use volkerraschek/markdownlint
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-19 11:32:34 +02:00
90deddb865 fix: use volkerraschek/markdownlint 2021-09-19 11:27:20 +02:00
12 changed files with 340 additions and 95 deletions

View File

@ -11,36 +11,47 @@ steps:
- name: helm lint - name: helm lint
commands: commands:
- helm lint - helm lint
image: quay.io/helmpack/chart-testing:latest image: docker.io/volkerraschek/helm:3.9.4
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 50M memory: 150M
- name: markdown lint - name: markdown lint
commands: commands:
- markdownlint *.md - markdownlint *.md
image: docker.io/tmknom/markdownlint:0.23.1 image: docker.io/volkerraschek/markdownlint:0.32.2
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 50M memory: 150M
- name: helm template
commands:
- helm template .
image: docker.io/volkerraschek/helm:3.9.4
resources:
limits:
cpu: 150
memory: 150M
- name: email-notification - name: email-notification
environment: environment:
PLUGIN_HOST: SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host from_secret: smtp_host
PLUGIN_USERNAME: SMTP_USERNAME:
from_secret: smtp_username from_secret: smtp_username
PLUGIN_PASSWORD: SMTP_PASSWORD:
from_secret: smtp_password from_secret: smtp_password
PLUGIN_FROM: image: docker.io/volkerraschek/drone-email:0.1.1
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 25M memory: 150M
when: when:
status: status:
- changed - changed
@ -54,48 +65,30 @@ trigger:
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: sync name: release
platform: platform:
os: linux os: linux
arch: amd64
steps: steps:
- name: github - name: release-helm-chart
image: docker.io/appleboy/drone-git-push:latest commands:
resources: - helm repo add volker.raschek https://charts.cryptic.systems/volker.raschek
limits: - helm package --version ${DRONE_TAG} .
cpu: 50 - helm cm-push ${DRONE_REPO_NAME%-charts}-${DRONE_TAG}.tgz volker.raschek
memory: 25M
settings:
branch: master
remote: ssh://git@github.com/volker-raschek/drone-charts.git
force: true
ssh_key:
from_secret: ssh_key
- name: email-notification
environment: environment:
PLUGIN_HOST: HELM_REPO_PASSWORD:
from_secret: smtp_host from_secret: helm_repo_password
PLUGIN_USERNAME: HELM_REPO_USERNAME:
from_secret: smtp_username from_secret: helm_repo_username
PLUGIN_PASSWORD: image: docker.io/volkerraschek/helm:3.9.4
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 25M memory: 150M
when:
status:
- changed
- failure
trigger: trigger:
event: event:
- push - tag
repo: repo:
- volker.raschek/drone-charts - volker.raschek/drone-charts

12
.editorconfig Normal file
View File

@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false

5
.gitignore vendored
View File

@ -1,2 +1,3 @@
runner *.tgz
*.tgz values2.yml
values2.yaml

View File

@ -1,6 +1,32 @@
runner # Patterns to ignore when building packages.
.drone.yml # This supports shell glob matching, relative path matching, and
.git # negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore .gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# drone
.drone.yml
# markdownlint
.markdownlint.yaml .markdownlint.yaml
# customized values
values2.yml
values2.yaml
# helm packages
*.tgz *.tgz

View File

@ -2,8 +2,8 @@ apiVersion: v2
name: drone name: drone
description: Drone Helm chart for Kubernetes description: Drone Helm chart for Kubernetes
type: application type: application
version: 0.1.4 version: "0.7.1"
appVersion: 2.3.1 appVersion: "2.12.1"
icon: https://readme.drone.io/logo.svg icon: https://readme.drone.io/logo.svg
keywords: keywords:
@ -12,8 +12,9 @@ keywords:
- drone-runner - drone-runner
- ci - ci
- cd - cd
sources: sources:
- https://git.cryptic.systems/volker.raschek/drone-charts - https://github.com/volker-raschek/drone-charts
- https://github.com/drone/drone - https://github.com/drone/drone
- https://hub.docker.com/r/drone/drone - https://hub.docker.com/r/drone/drone

View File

@ -41,6 +41,7 @@ be the options passed via the `--set` flag of the `helm install` command.
| `config.DRONE_CRON_INTERVAL` | [Documentation](https://docs.drone.io/server/reference/drone-cron-interval) | | `config.DRONE_CRON_INTERVAL` | [Documentation](https://docs.drone.io/server/reference/drone-cron-interval) |
| `config.DRONE_DATABASE_DATASOURCE` | [Documentation](https://docs.drone.io/server/reference/drone-database-datasource) | | `config.DRONE_DATABASE_DATASOURCE` | [Documentation](https://docs.drone.io/server/reference/drone-database-datasource) |
| `config.DRONE_DATABASE_DRIVER` | [Documentation](https://docs.drone.io/server/reference/drone-database-driver) | | `config.DRONE_DATABASE_DRIVER` | [Documentation](https://docs.drone.io/server/reference/drone-database-driver) |
| `config.DRONE_DATABASE_MAX_CONNECTIONS` | [Documentation](https://docs.drone.io/server/reference/drone_database-max-connections) |
| `config.DRONE_DATABASE_SECRET` | [Documentation](https://docs.drone.io/server/reference/drone-database-secret) | | `config.DRONE_DATABASE_SECRET` | [Documentation](https://docs.drone.io/server/reference/drone-database-secret) |
| `config.DRONE_GIT_ALWAYS_AUTH` | [Documentation](https://docs.drone.io/server/reference/drone-git-always-auth) | | `config.DRONE_GIT_ALWAYS_AUTH` | [Documentation](https://docs.drone.io/server/reference/drone-git-always-auth) |
| `config.DRONE_GIT_PASSWORD` | [Documentation](https://docs.drone.io/server/reference/drone-git-password) | | `config.DRONE_GIT_PASSWORD` | [Documentation](https://docs.drone.io/server/reference/drone-git-password) |
@ -48,6 +49,11 @@ be the options passed via the `--set` flag of the `helm install` command.
| `config.DRONE_GITEA_CLIENT_ID` | [Documentation](https://docs.drone.io/server/reference/drone-gitea-client-id) | | `config.DRONE_GITEA_CLIENT_ID` | [Documentation](https://docs.drone.io/server/reference/drone-gitea-client-id) |
| `config.DRONE_GITEA_CLIENT_SECRET` | [Documentation](https://docs.drone.io/server/reference/drone-gitea-client-secret) | | `config.DRONE_GITEA_CLIENT_SECRET` | [Documentation](https://docs.drone.io/server/reference/drone-gitea-client-secret) |
| `config.DRONE_GITEA_SERVER` | [Documentation](https://docs.drone.io/server/reference/drone-gitea-server) | | `config.DRONE_GITEA_SERVER` | [Documentation](https://docs.drone.io/server/reference/drone-gitea-server) |
| `config.DRONE_GITEA_SKIP_VERIFY` | [Documentation](https://docs.drone.io/server/reference/drone-gitea-skip-verify) |
| `config.DRONE_GITEE_REDIRECT_URL` | [Documentation](https://docs.drone.io/server/reference/drone-gitee-redirect-url) |
| `config.DRONE_GITEE_SCOPE` | [Documentation](https://docs.drone.io/server/reference/drone-gitee-scope) |
| `config.DRONE_GITEE_SKIP_VERIFY` | [Documentation](https://docs.drone.io/server/reference/drone-gitee-skip-verify) |
| `config.DRONE_GITHUB_CLIENT_ID` | [Documentation](https://docs.drone.io/server/reference/drone-github-client-id) |
| `config.DRONE_GITHUB_CLIENT_SECRET` | [Documentation](https://docs.drone.io/server/reference/drone-github-client-secret) | | `config.DRONE_GITHUB_CLIENT_SECRET` | [Documentation](https://docs.drone.io/server/reference/drone-github-client-secret) |
| `config.DRONE_GITHUB_SCOPE` | [Documentation](https://docs.drone.io/server/reference/drone-github-scope) | | `config.DRONE_GITHUB_SCOPE` | [Documentation](https://docs.drone.io/server/reference/drone-github-scope) |
| `config.DRONE_GITHUB_SERVER` | [Documentation](https://docs.drone.io/server/reference/drone-github-server) | | `config.DRONE_GITHUB_SERVER` | [Documentation](https://docs.drone.io/server/reference/drone-github-server) |
@ -77,6 +83,7 @@ be the options passed via the `--set` flag of the `helm install` command.
| `config.DRONE_SERVER_PROXY_HOST` | [Documentation](https://docs.drone.io/server/reference/drone-server-proxy-host) | | `config.DRONE_SERVER_PROXY_HOST` | [Documentation](https://docs.drone.io/server/reference/drone-server-proxy-host) |
| `config.DRONE_SERVER_PROXY_PROTO` | [Documentation](https://docs.drone.io/server/reference/drone-server-proxy-proto) | | `config.DRONE_SERVER_PROXY_PROTO` | [Documentation](https://docs.drone.io/server/reference/drone-server-proxy-proto) |
| `config.DRONE_STARLARK_ENABLED` | [Documentation](https://docs.drone.io/server/reference/drone-starlark-enabled) | | `config.DRONE_STARLARK_ENABLED` | [Documentation](https://docs.drone.io/server/reference/drone-starlark-enabled) |
| `config.DRONE_STARLARK_STEP_LIMIT` | [Documentation](https://docs.drone.io/server/reference/drone-starlark-step-limit) |
| `config.DRONE_STASH_CONSUMER_KEY` | [Documentation](https://docs.drone.io/server/reference/drone-stash-consumer-key) | | `config.DRONE_STASH_CONSUMER_KEY` | [Documentation](https://docs.drone.io/server/reference/drone-stash-consumer-key) |
| `config.DRONE_STASH_PRIVATE_KEY` | [Documentation](https://docs.drone.io/server/reference/drone-stash-private-key) | | `config.DRONE_STASH_PRIVATE_KEY` | [Documentation](https://docs.drone.io/server/reference/drone-stash-private-key) |
| `config.DRONE_STASH_SERVER` | [Documentation](https://docs.drone.io/server/reference/drone-stash-server) | | `config.DRONE_STASH_SERVER` | [Documentation](https://docs.drone.io/server/reference/drone-stash-server) |
@ -87,6 +94,7 @@ be the options passed via the `--set` flag of the `helm install` command.
| `config.DRONE_TLS_CERT` | [Documentation](https://docs.drone.io/server/reference/drone-tls-cert) | | `config.DRONE_TLS_CERT` | [Documentation](https://docs.drone.io/server/reference/drone-tls-cert) |
| `config.DRONE_TLS_KEY` | [Documentation](https://docs.drone.io/server/reference/drone-tls-key) | | `config.DRONE_TLS_KEY` | [Documentation](https://docs.drone.io/server/reference/drone-tls-key) |
| `config.DRONE_USER_CREATE` | [Documentation](https://docs.drone.io/server/reference/drone-user-create) | | `config.DRONE_USER_CREATE` | [Documentation](https://docs.drone.io/server/reference/drone-user-create) |
| `config.DRONE_USER_FILTER` | [Documentation](https://docs.drone.io/server/reference/drone-user-filter) |
| `config.DRONE_VALIDATE_PLUGIN_ENDPOINT` | [Documentation](https://docs.drone.io/server/reference/drone-validate-plugin-endpoint) | | `config.DRONE_VALIDATE_PLUGIN_ENDPOINT` | [Documentation](https://docs.drone.io/server/reference/drone-validate-plugin-endpoint) |
| `config.DRONE_VALIDATE_PLUGIN_SECRET` | [Documentation](https://docs.drone.io/server/reference/drone-validate-plugin-secret) | | `config.DRONE_VALIDATE_PLUGIN_SECRET` | [Documentation](https://docs.drone.io/server/reference/drone-validate-plugin-secret) |
| `config.DRONE_VALIDATE_PLUGIN_SKIP_VERIFY` | [Documentation](https://docs.drone.io/server/reference/drone-validate-plugin-skip-verify) | | `config.DRONE_VALIDATE_PLUGIN_SKIP_VERIFY` | [Documentation](https://docs.drone.io/server/reference/drone-validate-plugin-skip-verify) |

37
renovate.json Normal file
View File

@ -0,0 +1,37 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"automergeStrategy": "merge-commit",
"automergeType": "pr",
"assignees": [ "volker.raschek" ],
"labels": [ "renovate" ],
"packageRules": [
{
"addLabels": [ "renovate/drone", "renovate/automerge" ],
"automerge": true,
"matchManagers": "droneci",
"matchUpdateTypes": [ "minor", "patch"]
},
{
"addLabels": [ "renovate/drone", "renovate/automerge" ],
"automerge": false,
"matchPackageNames": [ "drone" ],
"matchManagers": [ "regex" ]
}
],
"rebaseLabel": "renovate/rebase",
"rebaseWhen": "behind-base-branch",
"regexManagers": [
{
"description": "Update container image reference",
"fileMatch": [
"^Chart\\.yaml$"
],
"matchStrings": [
"appVersion: \"(?<currentValue>.*?)\"\\s+"
],
"datasourceTemplate": "docker",
"depNameTemplate": "drone",
"lookupNameTemplate": "docker.io/drone/drone"
}
]
}

View File

@ -17,12 +17,6 @@ spec:
labels: labels:
{{- include "drone.selectorLabels" . | nindent 8 }} {{- include "drone.selectorLabels" . | nindent 8 }}
spec: spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
envFrom: envFrom:
@ -32,17 +26,60 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
livenessProbe:
httpGet:
scheme: HTTP
path: /healthz
port: http
ports: ports:
- name: http - name: http
containerPort: 80 containerPort: 80
protocol: TCP protocol: TCP
- name: https
containerPort: 443
protocol: TCP
readinessProbe:
httpGet:
scheme: HTTP
path: /healthz
port: http
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3" }} {{- if .Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3" }}
volumeMounts: volumeMounts:
- name: data - name: data
mountPath: {{ default "/data/database.sqlite" .Values.config.DRONE_DATABASE_DATASOURCE | dir }} mountPath: {{ default "/data/database.sqlite" .Values.config.DRONE_DATABASE_DATASOURCE | dir }}
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 10 }}
{{- end }} {{- end }}
{{- else }}
{{- with .Values.extraVolumeMounts }}
volumeMounts:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.podPriorityClassName }}
priorityClassName: {{ .Values.podPriorityClassName }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ include "drone.fullname" . }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if and (.Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3") .Values.persistence.existingClaim }} {{- if and (.Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3") .Values.persistence.existingClaim }}
volumes: volumes:
- name: data - name: data
@ -50,21 +87,20 @@ spec:
{{- with .Values.persistence.existingClaim }} {{- with .Values.persistence.existingClaim }}
claimName: {{ tpl . $ }} claimName: {{ tpl . $ }}
{{- end }} {{- end }}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- else if and (.Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3") (not .Values.persistence.existingClaim) }} {{- else if and (.Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3") (not .Values.persistence.existingClaim) }}
volumes: volumes:
- name: data - name: data
persistentVolumeClaim: persistentVolumeClaim:
claimName: drone claimName: {{ include "drone.fullname" . }}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 6 }}
{{- end }} {{- end }}
{{- with .Values.nodeSelector }} {{- else }}
nodeSelector: {{- with .Values.extraVolumes }}
volumes:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }} {{- end }}

View File

@ -1,8 +1,9 @@
{{- if .Values.persistence.enabled -}}
{{ if and (.Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3") (not .Values.persistence.existingClaim) }} {{ if and (.Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3") (not .Values.persistence.existingClaim) }}
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: drone name: {{ include "drone.fullname" . }}
spec: spec:
accessModes: accessModes:
{{- range .Values.persistence.accessModes }} {{- range .Values.persistence.accessModes }}
@ -14,4 +15,5 @@ spec:
{{- if .Values.persistence.storageClass }} {{- if .Values.persistence.storageClass }}
storageClassName: {{ .Values.persistence.storageClass | quote }} storageClassName: {{ .Values.persistence.storageClass | quote }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end -}}

View File

@ -1,15 +1,36 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ include "drone.fullname" . }} {{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels: labels:
{{- include "drone.labels" . | nindent 4 }} {{- include "drone.labels" . | nindent 4 }}
name: {{ include "drone.fullname" . }}
spec: spec:
{{- with .Values.service.externalIPs }}
externalIPs:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
{{- if and .Values.service.loadBalancerClass (eq .Values.service.type "LoadBalancer") }}
loadBalancerClass: {{ .Values.service.loadBalancerClass }}
{{- end }}
{{- if and .Values.service.loadBalancerIP (eq .Values.service.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
{{- with .Values.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- toYaml . | nindent 2 }}
{{- end }}
type: {{ .Values.service.type }} type: {{ .Values.service.type }}
ports: ports:
- port: {{ .Values.service.port }} - port: {{ .Values.service.port }}
targetPort: http targetPort: {{ .Values.service.targetPort }}
protocol: TCP protocol: TCP
name: http name: {{ .Values.service.name }}
selector: selector:
{{- include "drone.selectorLabels" . | nindent 4 }} {{- include "drone.selectorLabels" . | nindent 4 }}

View File

@ -0,0 +1,10 @@
apiVersion: v1
kind: ServiceAccount
metadata:
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "drone.labels" . | nindent 4 }}
name: {{ include "drone.fullname" . }}

View File

@ -2,8 +2,6 @@
# This is a YAML-formatted file. # This is a YAML-formatted file.
# Declare variables to be passed into your templates. # Declare variables to be passed into your templates.
replicaCount: 1
image: image:
repository: docker.io/drone/drone repository: docker.io/drone/drone
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
@ -16,10 +14,14 @@ fullnameOverride: ""
podAnnotations: {} podAnnotations: {}
podSecurityContext: {} podPriorityClassName: ""
podSecurityContext:
{}
# fsGroup: 2000 # fsGroup: 2000
securityContext: {} securityContext:
{}
# capabilities: # capabilities:
# drop: # drop:
# - ALL # - ALL
@ -27,7 +29,8 @@ securityContext: {}
# runAsNonRoot: true # runAsNonRoot: true
# runAsUser: 1000 # runAsUser: 1000
config: {} config:
{}
# DRONE_BITBUCKET_CLIENT_ID # DRONE_BITBUCKET_CLIENT_ID
# String value. Configures the Bitbucket OAuth client id. This is used to # String value. Configures the Bitbucket OAuth client id. This is used to
# authorize access to Bitbucket on behalf of a Drone user. # authorize access to Bitbucket on behalf of a Drone user.
@ -134,6 +137,13 @@ config: {}
# https://docs.drone.io/server/reference/drone-database-driver/ # https://docs.drone.io/server/reference/drone-database-driver/
# DRONE_DATABASE_DRIVER: "" # DRONE_DATABASE_DRIVER: ""
# DRONE_DATABASE_MAX_CONNECTIONS
# Optional numeric value. Set the maximum number of open DB connections from
# Drone. It is set to 0 by default and must be configured before the system is
# first used.
# https://docs.drone.io/server/reference/drone-database-max-connections/
# DRONE_DATABASE_MAX_CONNECTIONS: ""
# DRONE_DATABASE_SECRET # DRONE_DATABASE_SECRET
# Optional string value. Configures the secret key used to encrypt secrets in # Optional string value. Configures the secret key used to encrypt secrets in
# the database. Encryption is disabled by default and must be configured # the database. Encryption is disabled by default and must be configured
@ -177,6 +187,34 @@ config: {}
# https://docs.drone.io/server/reference/drone-gitea-server/ # https://docs.drone.io/server/reference/drone-gitea-server/
# DRONE_GITEA_SERVER: "" # DRONE_GITEA_SERVER: ""
# DRONE_GITEA_SKIP_VERIFY
# Boolean value disables tls verification when establishing a connection to
# the remote Gitea server.
# https://docs.drone.io/server/reference/drone-gitea-skip-verify/
# DRONE_GITEA_SKIP_VERIFY: ""
# DRONE_GITEE_REDIRECT_URL
# String value configures the Gitee OAuth authorize redirect url.
# https://docs.drone.io/server/reference/drone-gitee-redirect-url/
# DRONE_GITEE_REDIRECT_URL: ""
# DRONE_GITEE_SCOPE
# String value provides a comma-separated list of OAuth scopes.
# https://docs.drone.io/server/reference/drone-gitee-scope/
# DRONE_GITEE_SCOPE: ""
# DRONE_GITEE_SKIP_VERIFY
# Boolean value disables TLS verification when establishing a connection to
# the remote Gitee server.
# https://docs.drone.io/server/reference/drone-gitee-skip-verify/
# DRONE_GITEE_SKIP_VERIFY: ""
# DRONE_GITHUB_CLIENT_ID
# String value configures the GitHub OAuth client id. This is used to
# authorize access to GitHub on behalf of a Drone user.
# https://docs.drone.io/server/reference/drone-github-client-id/
# DRONE_GITHUB_CLIENT_ID: ""
# DRONE_GITHUB_CLIENT_SECRET # DRONE_GITHUB_CLIENT_SECRET
# String value configures the GitHub oauth client secret. This is used to # String value configures the GitHub oauth client secret. This is used to
# authorize access to GitHub on behalf of a Drone user. # authorize access to GitHub on behalf of a Drone user.
@ -364,6 +402,13 @@ config: {}
# https://docs.drone.io/server/reference/drone-starlark-enabled/ # https://docs.drone.io/server/reference/drone-starlark-enabled/
# DRONE_STARLARK_ENABLED: "" # DRONE_STARLARK_ENABLED: ""
# DRONE_STARLARK_STEP_LIMIT
# Integer value. Sets the maximum number of steps that a starlark
# configuration can generate. The default is 50000. This feature requires
# Drone server version 2.2.1 or higher.
# https://docs.drone.io/server/reference/drone-starlark-step-limit/
# DRONE_STARLARK_STEP_LIMIT: ""
# DRONE_STASH_CONSUMER_KEY # DRONE_STASH_CONSUMER_KEY
# String value configures your Bitbucket Server consumer key. # String value configures your Bitbucket Server consumer key.
# https://docs.drone.io/server/reference/drone-stash-consumer-key/ # https://docs.drone.io/server/reference/drone-stash-consumer-key/
@ -429,6 +474,13 @@ config: {}
# https://docs.drone.io/server/reference/drone-user-create/ # https://docs.drone.io/server/reference/drone-user-create/
# DRONE_USER_CREATE: "" # DRONE_USER_CREATE: ""
# DRONE_USER_FILTER
# Optional comma-separated list of accounts. Registration is limited to users
# in this list, or users that are members of organizations included in this
# list.
# https://docs.drone.io/server/reference/drone-user-filter/
# DRONE_USER_FILTER: ""
# DRONE_VALIDATE_PLUGIN_ENDPOINT # DRONE_VALIDATE_PLUGIN_ENDPOINT
# String value configures the endpoint for the validation plugin, used to # String value configures the endpoint for the validation plugin, used to
# enforce custom linting rules for your pipeline configuration. # enforce custom linting rules for your pipeline configuration.
@ -471,7 +523,19 @@ config: {}
# https://docs.drone.io/server/reference/drone-webhook-skip-verify/ # https://docs.drone.io/server/reference/drone-webhook-skip-verify/
# DRONE_WEBHOOK_SKIP_VERIFY: "" # DRONE_WEBHOOK_SKIP_VERIFY: ""
serviceAccount:
annotations: {}
service: service:
annotations: {}
# externalIPs: []
# externalTrafficPolicy: "Cluster"
# loadBalancerClass: ""
# loadBalancerIP: ""
# loadBalancerSourceRanges: []
# internalTrafficPolicy: "Cluster"
name: http
targetPort: 80
type: ClusterIP type: ClusterIP
port: 80 port: 80
@ -483,16 +547,17 @@ ingress:
# cert-manager.io/issuer: # cert-manager.io/issuer:
# kubernetes.io/tls-acme: "true" # kubernetes.io/tls-acme: "true"
hosts: hosts:
- host: "your-hostname" - host: "your-hostname"
paths: paths:
- path: / - path: /
pathType: ImplementationSpecific pathType: ImplementationSpecific
tls: tls:
- secretName: "your-tls-secret" - secretName: "your-tls-secret"
hosts: hosts:
- "your-hostname" - "your-hostname"
resources: {} resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little # choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following # resources, such as Minikube. If you do want to specify resources, uncomment the following
@ -510,13 +575,46 @@ tolerations: []
affinity: {} affinity: {}
# persistence is only required when config.DATABASE_DRIVER is not sqlite3 or # persistence is only required when config.DATABASE_DRIVER is sqlite3 or
# undefined. # undefined.
persistence: persistence:
enabled: true
annotation: {}
# existingClaim: # existingClaim:
size: 5Gi size: 5Gi
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
labels: {} labels: {}
annotation: {} # storageClass:
# storageClass:
# extra volumes for the pod
extraVolumes: {}
# The following example mount the same secret, which contains tls certificates
# under different names. Each volume mount contains only selected items of the
# secret. This make it easier to place the items on different locations inside the
# container filesystem via extraVolumeMounts.
# - name: custom-ca-anchor
# secret:
# secretName: drone-custom-tls-certificates
# items:
# - key: ca.crt
# path: ca.crt
# mode: 0444
# - name: custom-tls-certificates
# secret:
# secretName: drone-custom-tls-certificates
# items:
# - key: tls.key
# path: tls.key
# mode: 0400
# - key: tls.crt
# path: tls.crt
# mode: 0444
extraVolumeMounts: {}
# The following example follows the example of extraVolumes and mounts the
# volumes to the corresponding paths in the container filesystem.
# - name: custom-ca-anchor
# mountPath: /usr/local/share/ca-certificates
# - name: custom-tls-certificates
# mountPath: /etc/drone/tls