diff --git a/helm-repo/index.yaml b/helm-repo/index.yaml index 9bed2c1..37d5992 100644 --- a/helm-repo/index.yaml +++ b/helm-repo/index.yaml @@ -2,9 +2,9 @@ apiVersion: v1 entries: phase: - apiVersion: v2 - created: "2025-09-27T18:45:20.618693+05:30" + created: "2025-11-15T15:37:02.493652+05:30" description: A Helm chart for deploying the Phase Secrets Manager - digest: cdd437fc2cce88e078da782dd69b18eb2ddc22fe380df1ca72c767f550cecd6d + digest: 962f1d473b222c05fc8ade650b0f54bb2dddff8da335564f02bdf503ed2dee58 home: https://github.com/phasehq/kubernetes-secrets-operator icon: https://phase.dev/apple-touch-icon.png keywords: @@ -18,50 +18,12 @@ entries: - https://github.com/phasehq/console type: application urls: - - https://helm.phase.dev/phase-0.4.2.tgz - version: 0.4.2 - - apiVersion: v2 - created: "2025-09-27T18:45:20.618273+05:30" - description: A Helm chart for deploying the Phase Secrets Manager - digest: 45321c29e26c00c8c052cc5cfeeca7b383caa0958fa97415ed81e3d2817c011b - home: https://github.com/phasehq/kubernetes-secrets-operator - icon: https://phase.dev/apple-touch-icon.png - keywords: - - phase - - deployment - maintainers: - - email: nimish@phase.dev - name: Nimish - name: phase - sources: - - https://github.com/phasehq/console - type: application - urls: - - https://helm.phase.dev/phase-0.4.1.tgz - version: 0.4.1 - - apiVersion: v2 - created: "2025-09-24T20:12:36.640449+05:30" - description: A Helm chart for deploying the Phase Secrets Manager - digest: e7c0c633fe75fef2c20c4499e740cf6c940e0437c0b30101e09930f58d54a8a9 - home: https://github.com/phasehq/kubernetes-secrets-operator - icon: https://phase.dev/apple-touch-icon.png - keywords: - - phase - - deployment - maintainers: - - email: nimish@phase.dev - name: Nimish - name: phase - sources: - - https://github.com/phasehq/console - type: application - urls: - - phase-0.4.0.tgz - version: 0.4.0 + - phase-0.5.0.tgz + version: 0.5.0 phase-kubernetes-operator: - apiVersion: v2 appVersion: 1.3.0 - created: "2025-09-27T18:45:20.619088+05:30" + created: "2025-11-15T15:37:02.494035+05:30" description: A Helm chart for deploying the Phase Kubernetes Operator digest: ac562ccaea71b4ae9bdefeeef9b3660f092b998d673ca96f7f557d05aff93895 home: https://github.com/phasehq/kubernetes-secrets-operator @@ -79,6 +41,6 @@ entries: - https://github.com/phasehq/kubernetes-secrets-operator type: application urls: - - https://helm.phase.dev/phase-kubernetes-operator-1.3.0.tgz + - phase-kubernetes-operator-1.3.0.tgz version: 1.3.0 -generated: "2025-09-27T18:45:20.617165+05:30" +generated: "2025-11-15T15:37:02.492839+05:30" diff --git a/helm-repo/phase-0.4.2.tgz b/helm-repo/phase-0.4.2.tgz deleted file mode 100644 index 2e3a6d9..0000000 Binary files a/helm-repo/phase-0.4.2.tgz and /dev/null differ diff --git a/helm-repo/phase-0.5.0.tgz b/helm-repo/phase-0.5.0.tgz new file mode 100644 index 0000000..69f157d Binary files /dev/null and b/helm-repo/phase-0.5.0.tgz differ diff --git a/phase-console/Chart.yaml b/phase-console/Chart.yaml index 6010569..939a48b 100644 --- a/phase-console/Chart.yaml +++ b/phase-console/Chart.yaml @@ -3,7 +3,7 @@ name: phase icon: https://phase.dev/apple-touch-icon.png description: A Helm chart for deploying the Phase Secrets Manager type: application -version: 0.4.2 +version: 0.5.0 keywords: - phase - deployment diff --git a/phase-console/templates/configmap.yaml b/phase-console/templates/configmap.yaml index 0000756..f78b78d 100644 --- a/phase-console/templates/configmap.yaml +++ b/phase-console/templates/configmap.yaml @@ -4,7 +4,7 @@ metadata: name: {{ include "phase.fullname" . }}-config labels: {{- include "phase.labels" . | nindent 4 }} - {{- if or .Values.global.external.enabled .Values.database.external .Values.redis.external }} + {{- if .Values.database.external }} annotations: "helm.sh/hook": "pre-install,pre-upgrade" "helm.sh/hook-weight": "0" diff --git a/phase-console/templates/deployment-postgres.yaml b/phase-console/templates/deployment-postgres.yaml index 1cc45b0..d1bbee2 100644 --- a/phase-console/templates/deployment-postgres.yaml +++ b/phase-console/templates/deployment-postgres.yaml @@ -1,4 +1,4 @@ -{{- if or (not .Values.global.external) (not .Values.database.external) }} +{{- if not .Values.database.external }} apiVersion: apps/v1 kind: Deployment metadata: @@ -81,7 +81,7 @@ spec: {{- end }} --- -{{- if and (not .Values.global.external.enabled) .Values.database.persistence.enabled }} +{{- if and (not .Values.database.external) .Values.database.persistence.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: diff --git a/phase-console/templates/deployment-redis.yaml b/phase-console/templates/deployment-redis.yaml index 28840ab..aaddf16 100644 --- a/phase-console/templates/deployment-redis.yaml +++ b/phase-console/templates/deployment-redis.yaml @@ -1,4 +1,4 @@ -{{- if or (not .Values.global.external) (not .Values.redis.external) }} +{{- if not .Values.redis.external }} apiVersion: apps/v1 kind: Deployment metadata: diff --git a/phase-console/templates/job-migrations.yaml b/phase-console/templates/job-migrations.yaml index b099f33..b3f2aee 100644 --- a/phase-console/templates/job-migrations.yaml +++ b/phase-console/templates/job-migrations.yaml @@ -6,8 +6,13 @@ metadata: {{- include "phase.labels" . | nindent 4 }} job-name: {{ include "phase.fullname" . }}-migrations annotations: - # Migrations are run after all other resources (including PostgreSQL and Redis) are created and ready - {{- if or .Values.global.external.enabled .Values.database.external .Values.redis.external }} + # Migrations hook behavior: + # - If `database.external = true`, the database is managed outside this chart and is + # expected to exist already, so we run migrations as a *pre-install* hook and fail fast + # before rolling out the rest of the stack. + # - If `database.external = false`, this chart creates the Postgres Deployment/PVC and + # must wait for them to be ready, so we run migrations as a *post-install* hook. + {{- if .Values.database.external }} "helm.sh/hook": "pre-install,pre-upgrade" {{- else }} "helm.sh/hook": "post-install,post-upgrade" diff --git a/phase-console/values.yaml b/phase-console/values.yaml index d1fc34d..7f9a4a4 100644 --- a/phase-console/values.yaml +++ b/phase-console/values.yaml @@ -9,7 +9,21 @@ global: backend: repository: phasehq/backend external: - enabled: false # Set to true to use external managed services + enabled: false # DEPRECATED: no longer used by the chart; use `database.external` and `redis.external` instead. + # Examples: + # External service patterns (internal vs external Postgres/Redis): + # - Both Postgres & Redis inside the cluster: + # database.external = false + # redis.external = false + # - Both Postgres & Redis outside the cluster: + # database.external = true + # redis.external = true + # - External Postgres only (Redis inside cluster): + # database.external = true + # redis.external = false + # - External Redis only (Postgres inside cluster): + # database.external = false + # redis.external = true sso: providers: "google,github,gitlab"