diff --git a/docs/reference/cluster_manifest.md b/docs/reference/cluster_manifest.md index 62e572e7b..4e0be3b68 100644 --- a/docs/reference/cluster_manifest.md +++ b/docs/reference/cluster_manifest.md @@ -108,7 +108,7 @@ These parameters are grouped directly under the `spec` key in the manifest. for details on tolerations and possible values of those keys. When set, this value overrides the `pod_toleration` setting from the operator. Optional. -* **podPriorityClassName** +* **pod_priority_class_name** a name of the [priority class](https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass) that should be assigned to the cluster pods. When not specified, the value diff --git a/docs/user.md b/docs/user.md index 283d6c2e4..4f8162121 100644 --- a/docs/user.md +++ b/docs/user.md @@ -351,7 +351,7 @@ metadata: name: acid-minimal-cluster spec: ... - initContainers: + init_containers: - name: "container-name" image: "company/image:tag" env: @@ -359,7 +359,7 @@ spec: value: "any-k8s-env-things" ``` -`initContainers` accepts full `v1.Container` definition. +`init_containers` accepts full `v1.Container` definition. ## Increase volume size diff --git a/manifests/complete-postgres-manifest.yaml b/manifests/complete-postgres-manifest.yaml index daf64bc3b..b0f585c38 100644 --- a/manifests/complete-postgres-manifest.yaml +++ b/manifests/complete-postgres-manifest.yaml @@ -4,7 +4,8 @@ kind: postgresql metadata: name: acid-test-cluster spec: - initContainers: + dockerImage: registry.opensource.zalan.do/acid/spilo-11:1.5-p8 + init_containers: - name: date image: busybox command: [ "/bin/date" ] diff --git a/manifests/minimal-postgres-manifest.yaml b/manifests/minimal-postgres-manifest.yaml index e952df374..eea717474 100644 --- a/manifests/minimal-postgres-manifest.yaml +++ b/manifests/minimal-postgres-manifest.yaml @@ -2,7 +2,7 @@ apiVersion: "acid.zalan.do/v1" kind: postgresql metadata: name: acid-minimal-cluster - namespace: default + namespace: default spec: teamId: "ACID" volume: diff --git a/pkg/apis/acid.zalan.do/v1/postgresql_type.go b/pkg/apis/acid.zalan.do/v1/postgresql_type.go index 2238b4f2a..e971716bc 100644 --- a/pkg/apis/acid.zalan.do/v1/postgresql_type.go +++ b/pkg/apis/acid.zalan.do/v1/postgresql_type.go @@ -53,8 +53,8 @@ type PostgresSpec struct { Databases map[string]string `json:"databases,omitempty"` Tolerations []v1.Toleration `json:"tolerations,omitempty"` Sidecars []Sidecar `json:"sidecars,omitempty"` - InitContainers []v1.Container `json:"initContainers,omitempty"` - PodPriorityClassName string `json:"podPriorityClassName,omitempty"` + InitContainers []v1.Container `json:"init_containers,omitempty"` + PodPriorityClassName string `json:"pod_priority_class_name,omitempty"` ShmVolume *bool `json:"enableShmVolume,omitempty"` EnableLogicalBackup bool `json:"enableLogicalBackup,omitempty"` LogicalBackupSchedule string `json:"logicalBackupSchedule,omitempty"`