Compare commits

..

No commits in common. "master" and "0.7.14" have entirely different histories.

5 changed files with 46 additions and 70 deletions

View File

@ -17,7 +17,7 @@ steps:
- name: helm lint - name: helm lint
commands: commands:
- helm lint - helm lint
image: git.cryptic.systems/volker.raschek/helm:3.16.1 image: git.cryptic.systems/volker.raschek/helm:3.13.3
resources: resources:
limits: limits:
cpu: 150 cpu: 150
@ -26,7 +26,7 @@ steps:
- name: markdown lint - name: markdown lint
commands: commands:
- markdownlint *.md - markdownlint *.md
image: git.cryptic.systems/volker.raschek/markdownlint:0.41.0 image: git.cryptic.systems/volker.raschek/markdownlint:0.38.0
resources: resources:
limits: limits:
cpu: 150 cpu: 150
@ -35,7 +35,7 @@ steps:
- name: helm template - name: helm template
commands: commands:
- helm template . - helm template .
image: git.cryptic.systems/volker.raschek/helm:3.16.1 image: git.cryptic.systems/volker.raschek/helm:3.13.3
resources: resources:
limits: limits:
cpu: 150 cpu: 150
@ -85,7 +85,6 @@ steps:
- name: release-helm-chart - name: release-helm-chart
commands: commands:
- 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 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 drone - helm cm-push ${DRONE_REPO_NAME%-charts}-${DRONE_TAG}.tgz drone
@ -94,7 +93,7 @@ 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: git.cryptic.systems/volker.raschek/helm:3.16.1 image: git.cryptic.systems/volker.raschek/helm:3.13.3
resources: resources:
limits: limits:
cpu: 150 cpu: 150

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.8.2" version: "0.7.1"
appVersion: "2.24.0" appVersion: "2.22.0"
icon: https://readme.drone.io/logo.svg icon: https://readme.drone.io/logo.svg
keywords: keywords:

View File

@ -1,5 +1,7 @@
{ {
"$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": [

View File

@ -5,11 +5,6 @@ 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 }}
@ -22,21 +17,20 @@ 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:
{{- toYaml . | nindent 12 }} httpGet:
{{- end }} scheme: HTTP
path: /healthz
port: http
ports: ports:
- name: http - name: http
containerPort: 80 containerPort: 80
@ -44,15 +38,14 @@ spec:
- name: https - name: https
containerPort: 443 containerPort: 443
protocol: TCP protocol: TCP
{{- with .Values.readinessProbe }}
readinessProbe: readinessProbe:
{{- toYaml . | nindent 12 }} httpGet:
{{- end }} 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" }}
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 }}
@ -65,8 +58,8 @@ spec:
{{- toYaml . | nindent 10 }} {{- toYaml . | nindent 10 }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- with .Values.initContainers }} {{- with .Values.affinity }}
initContainers: affinity:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}

View File

@ -19,11 +19,13 @@ podPriorityClassName: ""
podSecurityContext: {} podSecurityContext: {}
# fsGroup: 2000 # fsGroup: 2000
# Increasing the amount of replicas has no effect, when `DRONE_DATABASE_DRIVER` securityContext: {}
# is set to sqlite3. # capabilities:
replicas: 1 # drop:
# - ALL
affinity: {} # readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
config: {} config: {}
# DRONE_BITBUCKET_CLIENT_ID # DRONE_BITBUCKET_CLIENT_ID
@ -518,6 +520,22 @@ 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"
@ -535,22 +553,6 @@ ingress:
hosts: hosts:
- "your-hostname" - "your-hostname"
initContainers: []
livenessProbe:
httpGet:
scheme: HTTP
path: /healthz
port: http
nodeSelector: {}
readinessProbe:
httpGet:
scheme: HTTP
path: /healthz
port: http
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
@ -563,32 +565,12 @@ resources: {}
# cpu: 100m # cpu: 100m
# memory: 128Mi # memory: 128Mi
securityContext: {} nodeSelector: {}
# 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: