13 Commits
0.5.0 ... 0.7.1

Author SHA1 Message Date
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
6 changed files with 120 additions and 63 deletions

View File

@ -11,7 +11,7 @@ steps:
- name: helm lint - name: helm lint
commands: commands:
- helm lint - helm lint
image: docker.io/volkerraschek/helm:3.8.0 image: docker.io/volkerraschek/helm:3.8.2
resources: resources:
limits: limits:
cpu: 50 cpu: 50
@ -71,61 +71,10 @@ steps:
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.0 image: docker.io/volkerraschek/helm:3.8.2
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,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.5.0" version: "0.7.1"
appVersion: "2.11.1" appVersion: "2.12.0"
icon: https://readme.drone.io/logo.svg icon: https://readme.drone.io/logo.svg
keywords: keywords:

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:
@ -49,6 +70,9 @@ spec:
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- if .Values.podPriorityClassName }}
priorityClassName: {{ .Values.podPriorityClassName }}
{{- end }}
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ include "drone.fullname" . }} serviceAccountName: {{ include "drone.fullname" . }}
@ -63,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,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

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

View File

@ -16,6 +16,8 @@ fullnameOverride: ""
podAnnotations: {} podAnnotations: {}
podPriorityClassName: ""
podSecurityContext: {} podSecurityContext: {}
# fsGroup: 2000 # fsGroup: 2000
@ -520,7 +522,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
@ -562,10 +576,42 @@ 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:
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