Skip to content

Commit 9beafe2

Browse files
authored
Merge pull request #143 from couchbase-partners/K8S-3954-remove-default-migration-field
Remove the migration field from the cluster spec if the unmanagedClusterHost is not present
2 parents 221f5db + a012c7e commit 9beafe2

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

charts/couchbase-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: couchbase-operator
33
description: A Helm chart to deploy the Couchbase Autonomous Operator for easily deploying, managing, and maintaining Couchbase Clusters. Couchbase Server is a NoSQL document database with a distributed architecture for performance, scalability, and availability. It enables developers to build applications easier and faster by leveraging the power of SQL with the flexibility of JSON.
4-
version: 2.80.2
4+
version: 2.80.3
55
appVersion: 2.8.0
66
type: application
77
keywords:

charts/couchbase-operator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
A Helm chart to deploy the Couchbase Autonomous Operator for easily deploying, managing, and maintaining Couchbase Clusters. Couchbase Server is a NoSQL document database with a distributed architecture for performance, scalability, and availability. It enables developers to build applications easier and faster by leveraging the power of SQL with the flexibility of JSON.
55

6-
![Version: 2.80.2](https://img.shields.io/badge/Version-2.80.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.0](https://img.shields.io/badge/AppVersion-2.8.0-informational?style=flat-square)
6+
![Version: 2.80.3](https://img.shields.io/badge/Version-2.80.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.0](https://img.shields.io/badge/AppVersion-2.8.0-informational?style=flat-square)
77

88
Deploying the Operator and Couchbase Server
99
===========================================

charts/couchbase-operator/templates/_helpers.tpl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ Apply generated TLS if enabled
216216
{{- $_ := unset $networking "cloudNativeGateway" -}}
217217
{{- end -}}
218218

219+
{{/* Check if migration mode is enabled */}}
220+
{{- if not (include "couchbase-cluster.migration.enabled" .) -}}
221+
{{- $_ := unset $spec "migration" -}}
222+
{{- end -}}
223+
219224
{{/*
220225
Transform servers from map to list
221226
*/}}
@@ -582,3 +587,13 @@ Determine if cloud native gateway is enabled for cluster
582587
{{- else -}}
583588
{{- end -}}
584589
{{- end -}}
590+
591+
{{/*
592+
Determine if the cluster should enter migration mode
593+
*/}}
594+
{{- define "couchbase-cluster.migration.enabled" -}}
595+
{{- if .Values.cluster.migration.unmanagedClusterHost -}}
596+
{{- true -}}
597+
{{- else -}}
598+
{{- end -}}
599+
{{- end -}}

0 commit comments

Comments
 (0)