Skip to content

Conversation

georgebarbarosie
Copy link
Contributor

This fixes the following error:

error: error validating "test-manifest.yaml": error validating data: ValidationError(postgresql.spec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0]): missing required field "preference, weight" in do.zalan.acid.v1.postgresql.spec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution; if you choose to ignore these errors, turn validation off with --validate=false

where test-manifest.yaml is:

apiVersion: "acid.zalan.do/v1"
kind: postgresql
metadata:
  name: test-manifest-cluster
  namespace: default
spec:
  teamId: "test"
  volume:
    size: 10Gi
  numberOfInstances: 1
  users:
    test: []
  databases:
    test: test
  nodeAffinity:
    preferredDuringSchedulingIgnoredDuringExecution:
    - weight: 1
      preference:
        matchExpressions:
        - key: kubernetes.io/hostname
          operator: In
          values: [ helios ]
  postgresql:
    version: "12"

@FxKu
Copy link
Member

FxKu commented Feb 17, 2021

👍

@FxKu FxKu added this to the 1.6.1 milestone Feb 17, 2021
@sdudoladov
Copy link
Member

👍

@sdudoladov sdudoladov merged commit cee4bf8 into zalando:master Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants