Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/plumber/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: plumber
description: Helm chart for Plumber
type: application
version: "1.1.2"
appVersion: "1.1.2"
version: "1.2.0"
appVersion: "1.2.0"
home: https://github.com/getplumber/platform/
maintainers:
- name: devpro
Expand Down
28 changes: 26 additions & 2 deletions charts/plumber/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ spec:
{{- end }}
spec:
automountServiceAccountToken: {{ .automountServiceAccountToken }}
{{- with $.Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}

containers:
- name: {{ .name }}
image: {{ .image }}:{{ .tag }}
imagePullPolicy: Always
image: {{ if $.Values.imageRegistry }}{{ $.Values.imageRegistry }}/{{ .imageName }}{{ else }}{{ .image }}{{ end }}:{{ .tag }}
imagePullPolicy: {{ .imagePullPolicy | default "Always" }}
{{- if .command }}
command: {{ .command }}
{{- end }}
Expand Down Expand Up @@ -104,6 +108,8 @@ spec:
value: "https://{{ default $.Values.front.name $.Values.front.host }}"
- name: JOBS_CORS_ORIGIN
value: "https://{{ default $.Values.front.name $.Values.front.host }}"
- name: JOBS_REDIS_MODE
value: "{{ default "standalone" $.Values.redis.mode }}"
- name: JOBS_REDIS_HOST
value: "{{ default (printf "%s-%s" $.Release.Name "redis-master") $.Values.redis.custom.host }}"
- name: JOBS_REDIS_PORT
Expand All @@ -114,6 +120,24 @@ spec:
value: "{{ $.Values.redis.custom.user }}"
- name: JOBS_REDIS_SET_NAMESPACES_TTL
value: "30s"

{{- if eq (default "standalone" $.Values.redis.mode) "sentinel" }}
- name: JOBS_REDIS_SENTINEL_MASTER_NAME
value: "{{ $.Values.redis.sentinel.masterName }}"
- name: JOBS_REDIS_SENTINEL_NODES
value: "{{ join "," $.Values.redis.sentinel.nodes }}"
{{- if and (not (empty (default "" $.Values.redis.sentinel.existingSecret))) $.Values.redis.sentinel.existingSecretPasswordKey }}
- name: JOBS_REDIS_SENTINEL_PASSWORD
valueFrom:
secretKeyRef:
name: "{{ $.Values.redis.sentinel.existingSecret }}"
key: "{{ $.Values.redis.sentinel.existingSecretPasswordKey }}"
{{- else if not (empty (default "" $.Values.redis.sentinel.password)) }}
- name: JOBS_REDIS_SENTINEL_PASSWORD
value: "{{ $.Values.redis.sentinel.password }}"
{{- end }}
{{- end }}

- name: GITLEAKS_PATH
value: "/opt/gitleaks"

Expand Down
42 changes: 41 additions & 1 deletion charts/plumber/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,24 @@
# -- Additional labels applied to all resources.
additionalLabels: {}

# -- Global image registry override. When set, images are pulled as <imageRegistry>/<imageName>:<tag>.
# Leave empty to use the full path from each component's `image` field (default behavior).
imageRegistry: ""

# -- Global image pull secrets for pulling from private registries.
imagePullSecrets:

Check failure on line 12 in charts/plumber/values.yaml

View workflow job for this annotation

GitHub Actions / Code analysis

12:18 [trailing-spaces] trailing spaces
- name: my-registry-secret

front:
enabled: true
type: frontend
name: plumber-front
# -- Full image path (used when imageRegistry is empty).
image: docker.io/getplumber/frontend
# -- Image name without registry prefix (used when imageRegistry is set).
imageName: getplumber/frontenasdd
# -- Image pull policy for the container.
imagePullPolicy: ifNotPresent
tag: v2.34.4
replicaCount: 1
revisionHistoryLimit: 5
Expand Down Expand Up @@ -67,7 +80,12 @@
enabled: true
type: backend
name: plumber-backend
# -- Full image path (used when imageRegistry is empty).
image: docker.io/getplumber/backend
# -- Image name without registry prefix (used when imageRegistry is set).
imageName: getplumber/backendasdasdasdasdasdasdasdasdasd
# -- Image pull policy for the container.
imagePullPolicy: Never
tag: v2.37.1
replicaCount: 1
revisionHistoryLimit: 5
Expand Down Expand Up @@ -149,7 +167,12 @@
enabled: true
type: backend
name: plumber-worker
image: docker.io/getplumber/backend
# -- Full image path (used when imageRegistry is empty).
image: docker.io/getplumber/backendasdasd
# -- Image name without registry prefix (used when imageRegistry is set).
imageName: getplumber/backendasdasd
# -- Image pull policy for the container.
imagePullPolicy: ifNotPresent
tag: v2.37.1
replicaCount: 5
revisionHistoryLimit: 5
Expand Down Expand Up @@ -239,13 +262,30 @@

# External Redis
redis:
# -- Redis deployment mode: "standalone" for single-node, "sentinel" for Redis Sentinel HA.
# Existing single-node deployments are unaffected (default is "standalone").
mode: "standalone"

custom:
host: ""
user: "default"
port: 6379
cert: ""
databaseIndex: 0

# Redis Sentinel configuration (only used when mode is "sentinel").
sentinel:
masterName: "mymaster"
nodes: []
# - "sentinel1:26379"
# - "sentinel2:26379"
# - "sentinel3:26379"
# -- Password for Sentinel authentication (optional).
password: ""
# -- Or Use an existing secret for Sentinel password
existingSecret: ""
existingSecretPasswordKey: "sentinel-password"

# Not using secret for auth (comment if you use secret)
auth:
password: secretpassword
Expand Down
Loading