percona / percona-helm-charts

Collection of Helm charts for Percona Kubernetes Operators.
https://www.percona.com/software/percona-kubernetes-operators
Other
110 stars 151 forks source link

K8SPSMDB-1042 - psmdb - release 1.16.0 and convert replsets from array to map #295

Closed tplavcic closed 1 month ago

tplavcic commented 4 months ago

BREAKING CHANGE: This will break how the options for replica set are specified so it will be merged with 1.16.0release.

Change 1: Update psmdb-operator and psmdb-db charts for 1.16.0 release Change 2: Convert array to map for replsets

Replica set array is converted to a map so it is more convenient for users to specify options, no need for quotes in command line and also the order in the array might change uncontrollably which makes it hard to use in automation tools which is not the case with a map.

Helm documentation on the best practices: https://helm.sh/docs/chart_best_practices/values/#:~:text=For%20this%20reason%2C%20it%27s%20often%20better%20to%20structure%20your%20values%20file%20using%20maps.

The name for a key which is used to hold the replica values (eg. rs0 which is fixed for the first one) is not important and the .name key will be used as a replica name, but if you omit the .name then the key name will be used as a name.

eg. if you specify:

replsets:
  rs0:
    name: testreplica
    size: 3
  rs1:
    size: 3

the end result will be:

  replsets:
  - name: testreplica
    size: 3
  - name: rs1
    size: 3