mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
enable adjusting agent replicas and ensure deployments are updated when shared secret changes (#3294)
This commit is contained in:
committed by
k8s-ci-robot
parent
d91d44948f
commit
6c21f2374c
@@ -1,7 +1,7 @@
|
||||
name: drone
|
||||
home: https://drone.io/
|
||||
icon: http://docs.drone.io/logo.svg
|
||||
version: 0.2.1
|
||||
version: 0.3.0
|
||||
appVersion: 0.8.2
|
||||
description: Drone is a Continuous Delivery system built on container technology
|
||||
keywords:
|
||||
|
||||
@@ -54,6 +54,7 @@ The following tables lists the configurable parameters of the drone charts and t
|
||||
| `server.env` | Drone **server** environment variables | `(default values)` |
|
||||
| `server.resources` | Drone **server** pod resource requests & limits | `{}` |
|
||||
| `agent.env` | Drone **agent** environment variables | `(default values)` |
|
||||
| `agent.replicas` | Drone **agent** replicas | `1` |
|
||||
| `agent.resources` | Drone **agent** pod resource requests & limits | `{}` |
|
||||
| `dind.driver` | **DinD** storage driver | `overlay2` |
|
||||
| `dind.resources` | **DinD** pod resource requests & limits | `{}` |
|
||||
@@ -62,4 +63,4 @@ The following tables lists the configurable parameters of the drone charts and t
|
||||
| `persistence.storageClass` | Storage class of backing PVC | `nil` |
|
||||
| `persistence.accessMode` | Use volume as ReadOnly or ReadWrite | `ReadWriteOnce` |
|
||||
| `persistence.size` | Size of data volume | `1Gi` |
|
||||
| `sharedSecret` | Drone server and agent shared secret | `(random value)` |
|
||||
| `sharedSecret` | Drone server and agent shared secret (Note: The Default random value changes on every `helm upgrade` causing a rolling update of server and agents) | `(random value)` |
|
||||
|
||||
@@ -9,9 +9,11 @@ metadata:
|
||||
heritage: "{{ .Release.Service }}"
|
||||
component: agent
|
||||
spec:
|
||||
replicas: 1
|
||||
replicas: {{ .Values.agent.replicas }}
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
||||
labels:
|
||||
app: {{ template "drone.name" . }}
|
||||
release: "{{ .Release.Name }}"
|
||||
|
||||
@@ -13,6 +13,8 @@ spec:
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
||||
labels:
|
||||
app: {{ template "drone.name" . }}
|
||||
release: "{{ .Release.Name }}"
|
||||
|
||||
@@ -105,6 +105,9 @@ agent:
|
||||
env:
|
||||
DRONE_DEBUG: "false"
|
||||
|
||||
## Number of drone agent replicas
|
||||
replicas: 1
|
||||
|
||||
## CPU and memory limits for drone agent
|
||||
##
|
||||
resources: {}
|
||||
|
||||
Reference in New Issue
Block a user