Skip to content
Open
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
2 changes: 2 additions & 0 deletions charts/plane-ce/templates/workloads/admin.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-admin
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
containers:
- name: {{ .Release.Name }}-admin
Expand Down
2 changes: 2 additions & 0 deletions charts/plane-ce/templates/workloads/api.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-api
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
containers:
- name: {{ .Release.Name }}-api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-beat-worker
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
containers:
- name: {{ .Release.Name }}-beat-worker
Expand Down
2 changes: 2 additions & 0 deletions charts/plane-ce/templates/workloads/live.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-live
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
containers:
- name: {{ .Release.Name }}-live
Expand Down
4 changes: 3 additions & 1 deletion charts/plane-ce/templates/workloads/migrator.job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: batch/v1
kind: Job
metadata:
namespace: {{ .Release.Namespace }}
name: {{ .Release.Name }}-api-migrate-{{ .Release.Revision }}
name: {{ .Release.Name }}-api-migrate-{{ if $.Values.gitops.enabled }}{{ .Values.planeVersion | replace "." "-" | replace "+" "-" | lower }}{{ else }}{{ .Release.Revision }}{{ end }}
{{- template "plane.labelsAndAnnotations" .Values.api }}
spec:
backoffLimit: 3
Expand All @@ -12,7 +12,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-api-migrate
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
containers:
- name: {{ .Release.Name }}-api-migrate
Expand Down
2 changes: 1 addition & 1 deletion charts/plane-ce/templates/workloads/minio.stateful.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ apiVersion: batch/v1
kind: Job
metadata:
namespace: {{ .Release.Namespace }}
name: {{ .Release.Name }}-minio-bucket-{{ .Release.Revision }}
name: {{ .Release.Name }}-minio-bucket-{{ if $.Values.gitops.enabled }}{{ .Values.planeVersion | replace "." "-" | replace "+" "-" | lower }}{{ else }}{{ .Release.Revision }}{{ end }}
{{- template "plane.labelsAndAnnotations" .Values.minio }}
spec:
backoffLimit: 6
Expand Down
2 changes: 2 additions & 0 deletions charts/plane-ce/templates/workloads/space.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-space
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
containers:
- name: {{ .Release.Name }}-space
Expand Down
2 changes: 2 additions & 0 deletions charts/plane-ce/templates/workloads/web.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-web
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
containers:
- name: {{ .Release.Name }}-web
Expand Down
2 changes: 2 additions & 0 deletions charts/plane-ce/templates/workloads/worker.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-worker
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
containers:
- name: {{ .Release.Name }}-worker
Expand Down
8 changes: 8 additions & 0 deletions charts/plane-ce/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
planeVersion: v1.2.0

# GitOps mode: render deterministically for declarative tools (Argo CD / Flux). When true,
# the per-render `timestamp` rollout annotation is omitted and migration Job names are keyed
# to `planeVersion` instead of `.Release.Revision`, so repeated renders of an unchanged
# release are byte-identical (no perpetual drift, no immutable-Job patch errors). Default
# false preserves the existing imperative `helm upgrade` behavior exactly.
gitops:
enabled: false

dockerRegistry:
enabled: false
host: "index.docker.io/v1/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-admin
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.admin }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-api
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.api }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-automation-consumer
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.automation_consumer }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-beat-worker
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.beatworker }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-email-app
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.email_service }}
containers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-iframely
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.iframely }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-live
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.live }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: batch/v1
kind: Job
metadata:
namespace: {{ .Release.Namespace }}
name: {{ .Release.Name }}-api-migrate-{{ now | date "20060102-150405" }}
name: {{ .Release.Name }}-api-migrate-{{ if $.Values.gitops.enabled }}{{ .Values.planeVersion | replace "." "-" | replace "+" "-" | lower }}{{ else }}{{ now | date "20060102-150405" }}{{ end }}
{{- include "plane.labelsAndAnnotations" .Values.services.api }}
spec:
backoffLimit: 3
Expand All @@ -12,7 +12,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-api-migrate
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.api }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ apiVersion: batch/v1
kind: Job
metadata:
namespace: {{ .Release.Namespace }}
name: {{ .Release.Name }}-minio-bucket-{{ now | date "20060102-150405" }}
name: {{ .Release.Name }}-minio-bucket-{{ if $.Values.gitops.enabled }}{{ .Values.planeVersion | replace "." "-" | replace "+" "-" | lower }}{{ else }}{{ now | date "20060102-150405" }}{{ end }}
{{- include "plane.labelsAndAnnotations" .Values.services.minio }}
spec:
backoffLimit: 6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-monitor
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.monitor }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-outbox-poller
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.outbox_poller }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-pi-api
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.pi }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-pi-beat
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.pi_beat_worker }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ apiVersion: batch/v1
kind: Job
metadata:
namespace: {{ .Release.Namespace }}
name: {{ .Release.Name }}-pi-api-migrate-{{ now | date "20060102-150405" }}
name: {{ .Release.Name }}-pi-api-migrate-{{ if $.Values.gitops.enabled }}{{ .Values.planeVersion | replace "." "-" | replace "+" "-" | lower }}{{ else }}{{ now | date "20060102-150405" }}{{ end }}
spec:
backoffLimit: 3
template:
metadata:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-pi-api-migrate
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.pi }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-pi-worker
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.pi_worker }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-runner
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.runner }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-silo
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.silo }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-space
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.space }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-web
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.web }}
{{- include "plane.podSecurityContext" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ spec:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-worker
annotations:
{{- if not $.Values.gitops.enabled }}
timestamp: {{ now | quote }}
{{- end }}
spec:
{{- include "plane.podScheduling" .Values.services.worker }}
{{- include "plane.podSecurityContext" . }}
Expand Down
8 changes: 8 additions & 0 deletions charts/plane-enterprise/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
planeVersion: v2.6.2

# GitOps mode: render deterministically for declarative tools (Argo CD / Flux). When true,
# the per-render `timestamp` rollout annotation is omitted and migration Job names are keyed
# to `planeVersion` instead of a wall-clock timestamp, so repeated renders of an unchanged
# release are byte-identical (no perpetual drift, no immutable-Job patch errors). Default
# false preserves the existing imperative `helm upgrade` behavior exactly.
gitops:
enabled: false

dockerRegistry:
enabled: false
registry: 'index.docker.io/v1/'
Expand Down