73 Commits

Author SHA1 Message Date
e8471d1840 Merge pull request #12 from pi3ch/patch-1
All checks were successful
continuous-integration/drone/push Build is passing
Bumped drone to 2.21.0
2023-12-29 13:10:36 +01:00
791b203796 Bumped drone to 2.21.0 2023-12-29 18:01:18 +11:00
2cbb6947ed chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.13.3
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-12-14 14:05:15 +00:00
1de3c715e6 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.38.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-12-09 14:34:55 +00:00
e598193777 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.13.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-11-09 17:06:26 +00:00
a49fd13ac2 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.13.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-10-20 16:02:51 +02:00
5fe2609314 Merge pull request 'chore(deps): update git.cryptic.systems/volker.raschek/drone-email docker tag to v0.1.5' (#52) from renovate/git.cryptic.systems-volker.raschek-drone-email-0.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #52
2023-10-15 13:12:20 +00:00
6ebdca3970 Merge pull request 'chore(deps): update git.cryptic.systems/volker.raschek/git docker tag to v1.3.1' (#53) from renovate/git.cryptic.systems-volker.raschek-git-1.x into master
Some checks reported errors
continuous-integration/drone/push Build was killed
Reviewed-on: #53
2023-10-15 13:12:03 +00:00
ede225288c Merge pull request 'chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.13.0' (#54) from renovate/git.cryptic.systems-volker.raschek-helm-3.x into master
Some checks reported errors
continuous-integration/drone/push Build was killed
Reviewed-on: #54
2023-10-15 13:11:45 +00:00
dcacf99978 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.13.0
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
2023-10-03 11:08:08 +02:00
28b1302f2a chore(deps): update git.cryptic.systems/volker.raschek/git docker tag to v1.3.1
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
2023-10-03 10:28:21 +02:00
523ae650b1 chore(deps): update git.cryptic.systems/volker.raschek/drone-email docker tag to v0.1.5
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
2023-10-03 10:28:10 +02:00
d4092ab2d9 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.37.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-09-22 19:34:28 +02:00
438bbd841d Merge pull request 'chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.36.0' (#50) from renovate/git.cryptic.systems-volker.raschek-markdownlint-0.x into master
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-07 18:46:50 +00:00
d744b25896 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.36.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-09-07 20:31:53 +02:00
5c59f7f008 chore(deps): update dependency drone to v2.20.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-08-21 15:11:43 +02:00
1df541babe Merge pull request 'chore(deps): update dependency drone to v2.19.0' (#48) from renovate/drone-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #48
2023-08-21 06:40:31 +00:00
256c89189c chore(deps): update dependency drone to v2.19.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-08-18 15:37:07 +02:00
fb973cb65c chore(deps): update dependency git.cryptic.systems/volker.raschek/helm to v3.12.3
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-08-18 15:17:45 +02:00
308106d55a chore(deps): update dependency git.cryptic.systems/volker.raschek/helm to v3.12.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-07-15 13:31:40 +02:00
3295554206 Merge pull request 'chore(deps): update dependency drone to v2.18.0' (#45) from renovate/drone-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #45
2023-07-08 17:02:29 +00:00
fcf454a9b0 chore(deps): update dependency drone to v2.18.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-07-06 18:51:06 +02:00
01b837a504 chore(deps): update dependency git.cryptic.systems/volker.raschek/markdownlint to v0.35.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-06-18 15:08:28 +02:00
7975755f0d chore(deps): update dependency git.cryptic.systems/volker.raschek/drone-email to v0.1.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-06-18 14:52:57 +02:00
b00f2abe99 chore(deps): update dependency git.cryptic.systems/volker.raschek/helm to v3.12.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-06-18 14:41:56 +02:00
fe73b1f56f fix: migrate to git.cryptic.systems
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-06-17 15:04:01 +02:00
eab9cb0937 chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.34.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-06-09 10:02:02 +02:00
53fdf15c0c chore(deps): update dependency docker.io/volkerraschek/helm to v3.12.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-05-29 11:11:38 +02:00
0bde0ba71e Merge pull request 'chore(deps): update dependency drone to v2.17.0' (#39) from renovate/drone-2.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #39
2023-05-21 10:29:19 +00:00
5a1096469a chore(deps): update dependency drone to v2.17.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-04-25 13:31:57 +02:00
a4883494dd chore(deps): update dependency docker.io/volkerraschek/helm to v3.11.3
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-04-12 22:31:49 +02:00
336db54d7d chore(deps): update dependency docker.io/volkerraschek/helm to v3.11.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-03-09 09:11:56 +01:00
0a5f0b5072 chore(deps): update dependency docker.io/volkerraschek/helm to v3.11.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-02-10 11:11:48 +01:00
ab3cf7b670 doc(README): describe config.DRONE_STARLARK_SIZE_LIMIT
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-05 10:06:01 +01:00
d63429a719 chore(deps): update dependency drone to v2.16.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-01-19 19:21:54 +01:00
ac14080899 chore(deps): update dependency docker.io/volkerraschek/helm to v3.11.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-01-19 19:12:08 +01:00
08a707dec1 chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.33.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-01-07 19:54:14 +01:00
43b844efd5 fix(README): add note about changed chart repo
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-13 21:34:11 +01:00
96f609652c fix(README): add note about changed chart repo
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-13 21:18:36 +01:00
8614ca8e89 fix: change repository
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-13 21:07:08 +01:00
2026906827 chore(deps): update dependency docker.io/volkerraschek/helm to v3.10.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-11-22 18:21:47 +01:00
608605320e chore(deps): update dependency drone to v2.15.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-28 11:41:14 +02:00
12db483afe chore(deps): update dependency docker.io/volkerraschek/helm to v3.10.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-16 13:11:32 +02:00
0370c865c4 chore(deps): update dependency drone to v2.13.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-09-21 22:02:26 +02:00
548e37f758 chore(deps): update dependency docker.io/volkerraschek/helm to v3.10.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-09-21 21:51:49 +02:00
aae4092f7b fix: keywords
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-10 20:27:31 +02:00
c93bc34fc7 doc(README): customization
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-10 20:24:44 +02:00
ac72d688ea style: correct indention
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-10 20:04:37 +02:00
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
7 changed files with 181 additions and 101 deletions

View File

@ -3,44 +3,61 @@ kind: pipeline
type: kubernetes type: kubernetes
name: linter name: linter
clone:
disable: true
platform: platform:
os: linux os: linux
arch: amd64 arch: amd64
steps: steps:
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.3.1
- name: helm lint - name: helm lint
commands: commands:
- helm lint - helm lint
image: docker.io/volkerraschek/helm:3.8.1 image: git.cryptic.systems/volker.raschek/helm:3.13.3
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/volkerraschek/markdownlint:0.31.1 image: git.cryptic.systems/volker.raschek/markdownlint:0.38.0
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 50M memory: 150M
- name: helm template
commands:
- helm template .
image: git.cryptic.systems/volker.raschek/helm:3.13.3
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: git.cryptic.systems/volker.raschek/drone-email:0.1.5
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
@ -52,80 +69,38 @@ trigger:
- tag - tag
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: release name: release
clone:
disable: true
platform: platform:
os: linux os: linux
steps: steps:
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.3.1
- name: release-helm-chart - name: release-helm-chart
commands: commands:
- helm repo add volker.raschek https://charts.cryptic.systems/volker.raschek - helm repo add drone https://charts.cryptic.systems/drone
- helm package --version ${DRONE_TAG} . - helm package --version ${DRONE_TAG} .
- helm cm-push ${DRONE_REPO_NAME%-charts}-${DRONE_TAG}.tgz volker.raschek - helm cm-push ${DRONE_REPO_NAME%-charts}-${DRONE_TAG}.tgz drone
environment: environment:
HELM_REPO_PASSWORD: HELM_REPO_PASSWORD:
from_secret: helm_repo_password from_secret: helm_repo_password
HELM_REPO_USERNAME: HELM_REPO_USERNAME:
from_secret: helm_repo_username from_secret: helm_repo_username
image: docker.io/volkerraschek/helm:3.8.1 image: git.cryptic.systems/volker.raschek/helm:3.13.3
resources:
limits:
cpu: 150
memory: 150M
trigger: trigger:
event: event:
- tag - tag
repo: repo:
- volker.raschek/drone-charts - volker.raschek/drone-charts
---
kind: pipeline
type: kubernetes
name: sync
platform:
os: linux
arch: amd64
steps:
- name: github
image: docker.io/appleboy/drone-git-push:latest
resources:
limits:
cpu: 50
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:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
resources:
limits:
cpu: 50
memory: 25M
when:
status:
- changed
- failure
trigger:
branch:
- master
event:
- push
repo:
- volker.raschek/drone-charts

View File

@ -2,16 +2,17 @@ apiVersion: v2
name: drone name: drone
description: Drone Helm chart for Kubernetes description: Drone Helm chart for Kubernetes
type: application type: application
version: "0.5.0" version: "0.7.1"
appVersion: "2.11.1" appVersion: "2.21.0"
icon: https://readme.drone.io/logo.svg icon: https://readme.drone.io/logo.svg
keywords: keywords:
- git - continuous-delivery
- continuous-deployment
- continuous-integration
- drone - drone
- drone-runner - drone-runner
- ci - git
- cd
sources: sources:
- https://github.com/volker-raschek/drone-charts - https://github.com/volker-raschek/drone-charts

View File

@ -1,26 +1,39 @@
# drone-charts # drone-charts
[![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/drone-charts/status.svg)](https://drone.cryptic.systems/volker.raschek/drone-charts) [![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/drone-charts/status.svg)](https://drone.cryptic.systems/volker.raschek/drone-charts)
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/volker-raschek)](https://artifacthub.io/packages/search?repo=volker-raschek) [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/drone-ce)](https://artifacthub.io/packages/search?repo=drone-ce)
This is an inofficial helm chart for [drone](https://github.com/drone/drone) and This is an inofficial helm chart for [drone](https://github.com/drone/drone) and
should replace the official unmainted helm chart was created because the official helmet chart was not maintained for a long
[repository](https://github.com/drone/charts). The official does not support time - [Issue](https://github.com/drone/charts/issues/46).
version `v2` of drone.
This helm chart can be found on [artifacthub.io](https://artifacthub.io/) and This helm chart is maintained by contributors and myself. It is listed on
can be installed via helm. [artifacthub.io](https://artifacthub.io/) and can be installed via helm:
> The repository has been changed and causes error messages when interacting
> with the old repository definition. Please remove the chart repo
> `volker.raschek` and replace it with `drone`.
```bash ```bash
helm repo add volker.raschek https://charts.cryptic.systems/volker.raschek helm repo add drone https://charts.cryptic.systems/drone
helm install drone volker.raschek/drone helm install drone drone/drone
``` ```
## Customization ## Customization
All [configuration options](https://docs.drone.io/server/reference/) can be All [configuration options](https://docs.drone.io/server/reference/) can be
defined in the `values.yml` file below the `config` section. Alternatively can defined in the `values.yml` file below the `config` section. Alternatively can
be the options passed via the `--set` flag of the `helm install` command. be the options passed via the `--set` flag of the `helm install` command. For
example:
```bash
helm install drone drone/drone \
--set config.DRONE_RPC_SECRET-${DRONE_RPC_SECRET} \
--set config.DRONE_GITHUB_CLIENT_ID=${DRONE_GITHUB_CLIENT_ID} \
--set config.DRONE_GITHUB_CLIENT_SECRET=${DRONE_GITHUB_CLIENT_SECRET}
```
### List of config options
| value | reference | | value | reference |
| ------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | ------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
@ -83,6 +96,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_SIZE_LIMIT` | [Documentation](https://github.com/harness/drone/pull/3291) |
| `config.DRONE_STARLARK_STEP_LIMIT` | [Documentation](https://docs.drone.io/server/reference/drone-starlark-step-limit) | | `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) |

View File

@ -26,16 +26,37 @@ 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 }}
{{- else }}
{{- with .Values.extraVolumeMounts }}
volumeMounts:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- end }} {{- end }}
{{- with .Values.affinity }} {{- with .Values.affinity }}
affinity: affinity:
@ -66,9 +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: {{ include "drone.fullname" . }} claimName: {{ include "drone.fullname" . }}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- else }}
{{- with .Values.extraVolumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }} {{- end }}

View File

@ -1,3 +1,4 @@
{{- 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
@ -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

@ -9,11 +9,28 @@ metadata:
{{- include "drone.labels" . | nindent 4 }} {{- include "drone.labels" . | nindent 4 }}
name: {{ include "drone.fullname" . }} 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

@ -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
@ -527,6 +525,14 @@ serviceAccount:
service: service:
annotations: {} annotations: {}
# externalIPs: []
# externalTrafficPolicy: "Cluster"
# loadBalancerClass: ""
# loadBalancerIP: ""
# loadBalancerSourceRanges: []
# internalTrafficPolicy: "Cluster"
name: http
targetPort: 80
type: ClusterIP type: ClusterIP
port: 80 port: 80
@ -538,14 +544,14 @@ 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
@ -568,10 +574,43 @@ affinity: {}
# persistence is only required when config.DATABASE_DRIVER is 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