postgres-operator icon indicating copy to clipboard operation
postgres-operator copied to clipboard

`enable_team_id_clustername_prefix` triggers validation error on postgres-operator 1.8.2

Open jehutyy opened this issue 3 years ago • 0 comments

Please, answer some short questions which should help us to understand your problem / question better?

  • Which image of the operator are you using? registry.opensource.zalan.do/acid/postgres-operator:v1.8.2
  • Where do you run it - cloud or metal? Kubernetes or OpenShift? baremetal rke k8S
  • Are you running Postgres Operator in production? yes
  • Type of issue? Bug report

It seems that enable_team_id_clustername_prefix, which should be set to false by default, is absent from helm values.yaml, and triggers a validation error when explicitly set.

helm repo list
postgres-operator          	https://opensource.zalando.com/postgres-operator/charts/postgres-operator
postgres-operator-ui       	https://opensource.zalando.com/postgres-operator/charts/postgres-operator-ui

Logs from helm cli

PATH:
  /usr/local/bin/helm

ARGS:
  0: helm (4 bytes)
  1: diff (4 bytes)
  2: upgrade (7 bytes)
  3: --reset-values (14 bytes)
  4: --allow-unreleased (18 bytes)
  5: postgres-operator (17 bytes)
  6: postgres-operator-charts/postgres-operator (42 bytes)
  7: --version (9 bytes)
  8: 1.8.2 (5 bytes)
  9: --namespace (11 bytes)
  10: postgres-operator (17 bytes)
  11: --values (8 bytes)
  12: /var/folders/25/2002303d02l0dnrmbbznqqdw0000gn/T/helmfile1289912349/postgres-operator-postgres-operator-values-584fbcf49 (120 bytes)
  13: --detailed-exitcode (19 bytes)
  14: --color (7 bytes)

ERROR:
  exit status 1

EXIT STATUS
  1

STDERR:
  Error: Failed to render chart: exit status 1: Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(OperatorConfiguration.configuration): unknown field "enable_team_id_clustername_prefix" in do.zalan.acid.v1.OperatorConfiguration.configuration
  Error: plugin "diff" exited with error

COMBINED OUTPUT:
  ********************
  	Release was not present in Helm.  Diff will show entire contents as new.
  ********************
  Error: Failed to render chart: exit status 1: Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(OperatorConfiguration.configuration): unknown field "enable_team_id_clustername_prefix" in do.zalan.acid.v1.OperatorConfiguration.configuration
  Error: plugin "diff" exited with error

jehutyy avatar Oct 10 '22 10:10 jehutyy