You've already forked drone-charts
Compare commits
79 Commits
Author | SHA1 | Date | |
---|---|---|---|
c52be5d3f2 | |||
f8e6fec6ef
|
|||
359e764d3d
|
|||
6f5edc6fe7
|
|||
fe3d4d6fce
|
|||
0113277d85
|
|||
f9f221157b
|
|||
288a23c9fe
|
|||
8b9c92b6c7
|
|||
3316c53142
|
|||
4302d21881
|
|||
2f252a30d0
|
|||
27b291646f
|
|||
e1b7f97791
|
|||
d105c38ca7
|
|||
71ff345a95
|
|||
a6d13cdef1
|
|||
07b70c7325
|
|||
5db5e4c4aa
|
|||
32bf0d41e7
|
|||
110f92f55f
|
|||
ea6ec4a875
|
|||
4a6f32da86
|
|||
b2e4debec0
|
|||
ffbe7db0f9
|
|||
217eab774b
|
|||
55fc508141
|
|||
5ffaf6f664 | |||
570868f771 | |||
881a60e985 | |||
b15af09698 | |||
e8471d1840 | |||
791b203796 | |||
2cbb6947ed | |||
1de3c715e6 | |||
e598193777 | |||
a49fd13ac2 | |||
5fe2609314 | |||
6ebdca3970 | |||
ede225288c | |||
dcacf99978 | |||
28b1302f2a | |||
523ae650b1 | |||
d4092ab2d9 | |||
438bbd841d | |||
d744b25896 | |||
5c59f7f008 | |||
1df541babe | |||
256c89189c | |||
fb973cb65c | |||
308106d55a | |||
3295554206 | |||
fcf454a9b0 | |||
01b837a504 | |||
7975755f0d | |||
b00f2abe99 | |||
fe73b1f56f
|
|||
eab9cb0937 | |||
53fdf15c0c | |||
0bde0ba71e | |||
5a1096469a | |||
a4883494dd | |||
336db54d7d | |||
0a5f0b5072 | |||
ab3cf7b670
|
|||
d63429a719 | |||
ac14080899 | |||
08a707dec1 | |||
43b844efd5
|
|||
96f609652c
|
|||
8614ca8e89
|
|||
2026906827 | |||
608605320e | |||
12db483afe | |||
0370c865c4 | |||
548e37f758 | |||
aae4092f7b
|
|||
c93bc34fc7
|
|||
ac72d688ea
|
27
.drone.yml
27
.drone.yml
@ -3,15 +3,21 @@ 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.4.0
|
||||||
|
|
||||||
- name: helm lint
|
- name: helm lint
|
||||||
commands:
|
commands:
|
||||||
- helm lint
|
- helm lint
|
||||||
image: docker.io/volkerraschek/helm:3.9.4
|
image: git.cryptic.systems/volker.raschek/helm:3.16.4
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 150
|
cpu: 150
|
||||||
@ -20,7 +26,7 @@ steps:
|
|||||||
- name: markdown lint
|
- name: markdown lint
|
||||||
commands:
|
commands:
|
||||||
- markdownlint *.md
|
- markdownlint *.md
|
||||||
image: docker.io/volkerraschek/markdownlint:0.32.2
|
image: git.cryptic.systems/volker.raschek/markdownlint:0.43.0
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 150
|
cpu: 150
|
||||||
@ -29,7 +35,7 @@ steps:
|
|||||||
- name: helm template
|
- name: helm template
|
||||||
commands:
|
commands:
|
||||||
- helm template .
|
- helm template .
|
||||||
image: docker.io/volkerraschek/helm:3.9.4
|
image: git.cryptic.systems/volker.raschek/helm:3.16.4
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 150
|
cpu: 150
|
||||||
@ -47,7 +53,7 @@ steps:
|
|||||||
from_secret: smtp_username
|
from_secret: smtp_username
|
||||||
SMTP_PASSWORD:
|
SMTP_PASSWORD:
|
||||||
from_secret: smtp_password
|
from_secret: smtp_password
|
||||||
image: docker.io/volkerraschek/drone-email:0.1.1
|
image: git.cryptic.systems/volker.raschek/drone-email:0.1.5
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 150
|
cpu: 150
|
||||||
@ -67,21 +73,28 @@ 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.4.0
|
||||||
|
|
||||||
- name: release-helm-chart
|
- name: release-helm-chart
|
||||||
commands:
|
commands:
|
||||||
- helm repo add volker.raschek https://charts.cryptic.systems/volker.raschek
|
- grep -o 'version:"${DRONE_TAG}"' Chart.yaml || echo "Version ${DRONE_TAG} not found in Chart.yaml"
|
||||||
|
- 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.9.4
|
image: git.cryptic.systems/volker.raschek/helm:3.16.4
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 150
|
cpu: 150
|
||||||
|
11
Chart.yaml
11
Chart.yaml
@ -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.7.1"
|
version: "0.8.2"
|
||||||
appVersion: "2.12.1"
|
appVersion: "2.25.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
|
||||||
|
32
README.md
32
README.md
@ -1,26 +1,39 @@
|
|||||||
# drone-charts
|
# drone-charts
|
||||||
|
|
||||||
[](https://drone.cryptic.systems/volker.raschek/drone-charts)
|
[](https://drone.cryptic.systems/volker.raschek/drone-charts)
|
||||||
[](https://artifacthub.io/packages/search?repo=volker-raschek)
|
[](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) |
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"automergeStrategy": "merge-commit",
|
|
||||||
"automergeType": "pr",
|
|
||||||
"assignees": [ "volker.raschek" ],
|
"assignees": [ "volker.raschek" ],
|
||||||
"labels": [ "renovate" ],
|
"labels": [ "renovate" ],
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
|
@ -5,6 +5,11 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "drone.labels" . | nindent 4 }}
|
{{- include "drone.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- if .Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3" }}
|
||||||
|
replicas: 1
|
||||||
|
{{- else }}
|
||||||
|
replicas: {{ .Values.replicas | default 1 }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "drone.selectorLabels" . | nindent 6 }}
|
{{- include "drone.selectorLabels" . | nindent 6 }}
|
||||||
@ -17,20 +22,21 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "drone.selectorLabels" . | nindent 8 }}
|
{{- include "drone.selectorLabels" . | nindent 8 }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- with .Values.affinity }}
|
||||||
|
affinity:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ include "drone.fullname" . }}
|
name: {{ include "drone.fullname" . }}
|
||||||
securityContext:
|
|
||||||
{{- 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 }}
|
||||||
|
{{- with .Values.livenessProbe }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
{{- toYaml . | nindent 12 }}
|
||||||
scheme: HTTP
|
{{- end }}
|
||||||
path: /healthz
|
|
||||||
port: http
|
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 80
|
containerPort: 80
|
||||||
@ -38,14 +44,15 @@ spec:
|
|||||||
- name: https
|
- name: https
|
||||||
containerPort: 443
|
containerPort: 443
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- with .Values.readinessProbe }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
{{- toYaml . | nindent 12 }}
|
||||||
scheme: HTTP
|
{{- end }}
|
||||||
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" }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
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 }}
|
||||||
@ -58,8 +65,8 @@ spec:
|
|||||||
{{- toYaml . | nindent 10 }}
|
{{- toYaml . | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.affinity }}
|
{{- with .Values.initContainers }}
|
||||||
affinity:
|
initContainers:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.imagePullSecrets }}
|
{{- with .Values.imagePullSecrets }}
|
||||||
|
80
values.yaml
80
values.yaml
@ -16,21 +16,16 @@ podAnnotations: {}
|
|||||||
|
|
||||||
podPriorityClassName: ""
|
podPriorityClassName: ""
|
||||||
|
|
||||||
podSecurityContext:
|
podSecurityContext: {}
|
||||||
{}
|
|
||||||
# fsGroup: 2000
|
# fsGroup: 2000
|
||||||
|
|
||||||
securityContext:
|
# Increasing the amount of replicas has no effect, when `DRONE_DATABASE_DRIVER`
|
||||||
{}
|
# is set to sqlite3.
|
||||||
# capabilities:
|
replicas: 1
|
||||||
# drop:
|
|
||||||
# - ALL
|
|
||||||
# readOnlyRootFilesystem: true
|
|
||||||
# runAsNonRoot: true
|
|
||||||
# runAsUser: 1000
|
|
||||||
|
|
||||||
config:
|
affinity: {}
|
||||||
{}
|
|
||||||
|
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.
|
||||||
@ -523,22 +518,6 @@ 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:
|
|
||||||
annotations: {}
|
|
||||||
# externalIPs: []
|
|
||||||
# externalTrafficPolicy: "Cluster"
|
|
||||||
# loadBalancerClass: ""
|
|
||||||
# loadBalancerIP: ""
|
|
||||||
# loadBalancerSourceRanges: []
|
|
||||||
# internalTrafficPolicy: "Cluster"
|
|
||||||
name: http
|
|
||||||
targetPort: 80
|
|
||||||
type: ClusterIP
|
|
||||||
port: 80
|
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
className: "nginx"
|
className: "nginx"
|
||||||
@ -556,8 +535,23 @@ ingress:
|
|||||||
hosts:
|
hosts:
|
||||||
- "your-hostname"
|
- "your-hostname"
|
||||||
|
|
||||||
resources:
|
initContainers: []
|
||||||
{}
|
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
scheme: HTTP
|
||||||
|
path: /healthz
|
||||||
|
port: http
|
||||||
|
|
||||||
|
nodeSelector: {}
|
||||||
|
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
scheme: HTTP
|
||||||
|
path: /healthz
|
||||||
|
port: http
|
||||||
|
|
||||||
|
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
|
||||||
@ -569,12 +563,32 @@ resources:
|
|||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
# memory: 128Mi
|
# memory: 128Mi
|
||||||
|
|
||||||
nodeSelector: {}
|
securityContext: {}
|
||||||
|
# capabilities:
|
||||||
|
# drop:
|
||||||
|
# - ALL
|
||||||
|
# readOnlyRootFilesystem: true
|
||||||
|
# runAsNonRoot: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
|
service:
|
||||||
|
annotations: {}
|
||||||
|
# externalIPs: []
|
||||||
|
# externalTrafficPolicy: "Cluster"
|
||||||
|
# loadBalancerClass: ""
|
||||||
|
# loadBalancerIP: ""
|
||||||
|
# loadBalancerSourceRanges: []
|
||||||
|
# internalTrafficPolicy: "Cluster"
|
||||||
|
name: http
|
||||||
|
targetPort: 80
|
||||||
|
type: ClusterIP
|
||||||
|
port: 80
|
||||||
|
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
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:
|
||||||
|
Reference in New Issue
Block a user