mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-19 05:08:26 +02:00
Merge branch 'master' into default-db-roles
This commit is contained in:
@@ -93,7 +93,7 @@ deps:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
hack/verify-codegen.sh
|
hack/verify-codegen.sh
|
||||||
@go test ./pkg/...
|
GO111MODULE=on go test ./...
|
||||||
|
|
||||||
e2e: docker # build operator image to be tested
|
e2e: docker # build operator image to be tested
|
||||||
cd e2e; make tools test clean
|
cd e2e; make tools test clean
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ pipeline:
|
|||||||
- desc: 'Run unit tests'
|
- desc: 'Run unit tests'
|
||||||
cmd: |
|
cmd: |
|
||||||
export PATH=$PATH:$HOME/go/bin
|
export PATH=$PATH:$HOME/go/bin
|
||||||
go test ./pkg/...
|
go test ./...
|
||||||
- desc: 'Run e2e tests'
|
- desc: 'Run e2e tests'
|
||||||
cmd: |
|
cmd: |
|
||||||
make e2e
|
make e2e
|
||||||
|
|||||||
+1
-1
@@ -63,7 +63,7 @@ kubectl apply -k github.com/zalando/postgres-operator/manifests
|
|||||||
```
|
```
|
||||||
|
|
||||||
For convenience, we have automated starting the operator with minikube using the
|
For convenience, we have automated starting the operator with minikube using the
|
||||||
`run_operator_locally` script. It applies the [`acid-minimal-cluster`](../manifests/minimal-postgres-manifest).
|
`run_operator_locally` script. It applies the [`acid-minimal-cluster`](../manifests/minimal-postgres-manifest.yaml).
|
||||||
manifest.
|
manifest.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -10,12 +10,12 @@ configuration.
|
|||||||
maps. String values containing ':' should be enclosed in quotes. The
|
maps. String values containing ':' should be enclosed in quotes. The
|
||||||
configuration is flat, parameter group names below are not reflected in the
|
configuration is flat, parameter group names below are not reflected in the
|
||||||
configuration structure. There is an
|
configuration structure. There is an
|
||||||
[example](../manifests/configmap.yaml)
|
[example](../../manifests/configmap.yaml)
|
||||||
|
|
||||||
* CRD-based configuration. The configuration is stored in a custom YAML
|
* CRD-based configuration. The configuration is stored in a custom YAML
|
||||||
manifest. The manifest is an instance of the custom resource definition (CRD)
|
manifest. The manifest is an instance of the custom resource definition (CRD)
|
||||||
called `OperatorConfiguration`. The operator registers this CRD during the
|
called `OperatorConfiguration`. The operator registers this CRD during the
|
||||||
start and uses it for configuration if the [operator deployment manifest](../manifests/postgres-operator.yaml#L36)
|
start and uses it for configuration if the [operator deployment manifest](../../manifests/postgres-operator.yaml#L36)
|
||||||
sets the `POSTGRES_OPERATOR_CONFIGURATION_OBJECT` env variable to a non-empty
|
sets the `POSTGRES_OPERATOR_CONFIGURATION_OBJECT` env variable to a non-empty
|
||||||
value. The variable should point to the `postgresql-operator-configuration`
|
value. The variable should point to the `postgresql-operator-configuration`
|
||||||
object in the operator's namespace.
|
object in the operator's namespace.
|
||||||
@@ -24,7 +24,7 @@ configuration.
|
|||||||
simply represented in the usual YAML way. There are no default values built-in
|
simply represented in the usual YAML way. There are no default values built-in
|
||||||
in the operator, each parameter that is not supplied in the configuration
|
in the operator, each parameter that is not supplied in the configuration
|
||||||
receives an empty value. In order to create your own configuration just copy
|
receives an empty value. In order to create your own configuration just copy
|
||||||
the [default one](../manifests/postgresql-operator-default-configuration.yaml)
|
the [default one](../../manifests/postgresql-operator-default-configuration.yaml)
|
||||||
and change it.
|
and change it.
|
||||||
|
|
||||||
To test the CRD-based configuration locally, use the following
|
To test the CRD-based configuration locally, use the following
|
||||||
@@ -58,11 +58,11 @@ parameters, those parameters have no effect and are replaced by the
|
|||||||
`CRD_READY_WAIT_INTERVAL` and `CRD_READY_WAIT_TIMEOUT` environment variables.
|
`CRD_READY_WAIT_INTERVAL` and `CRD_READY_WAIT_TIMEOUT` environment variables.
|
||||||
They will be deprecated and removed in the future.
|
They will be deprecated and removed in the future.
|
||||||
|
|
||||||
For the configmap configuration, the [default parameter values](../pkg/util/config/config.go#L14)
|
For the configmap configuration, the [default parameter values](../../pkg/util/config/config.go#L14)
|
||||||
mentioned here are likely to be overwritten in your local operator installation
|
mentioned here are likely to be overwritten in your local operator installation
|
||||||
via your local version of the operator configmap. In the case you use the
|
via your local version of the operator configmap. In the case you use the
|
||||||
operator CRD, all the CRD defaults are provided in the
|
operator CRD, all the CRD defaults are provided in the
|
||||||
[operator's default configuration manifest](../manifests/postgresql-operator-default-configuration.yaml)
|
[operator's default configuration manifest](../../manifests/postgresql-operator-default-configuration.yaml)
|
||||||
|
|
||||||
Variable names are underscore-separated words.
|
Variable names are underscore-separated words.
|
||||||
|
|
||||||
@@ -122,7 +122,7 @@ Those are top-level keys, containing both leaf keys and groups.
|
|||||||
containers with high memory limits due to the lack of memory on Kubernetes
|
containers with high memory limits due to the lack of memory on Kubernetes
|
||||||
cluster nodes. This affects all containers created by the operator (Postgres,
|
cluster nodes. This affects all containers created by the operator (Postgres,
|
||||||
Scalyr sidecar, and other sidecars); to set resources for the operator's own
|
Scalyr sidecar, and other sidecars); to set resources for the operator's own
|
||||||
container, change the [operator deployment manually](../manifests/postgres-operator.yaml#L20).
|
container, change the [operator deployment manually](../../manifests/postgres-operator.yaml#L20).
|
||||||
The default is `false`.
|
The default is `false`.
|
||||||
|
|
||||||
## Postgres users
|
## Postgres users
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ type KubernetesMetaConfiguration struct {
|
|||||||
PodServiceAccountDefinition string `json:"pod_service_account_definition,omitempty"`
|
PodServiceAccountDefinition string `json:"pod_service_account_definition,omitempty"`
|
||||||
PodServiceAccountRoleBindingDefinition string `json:"pod_service_account_role_binding_definition,omitempty"`
|
PodServiceAccountRoleBindingDefinition string `json:"pod_service_account_role_binding_definition,omitempty"`
|
||||||
PodTerminateGracePeriod Duration `json:"pod_terminate_grace_period,omitempty"`
|
PodTerminateGracePeriod Duration `json:"pod_terminate_grace_period,omitempty"`
|
||||||
SpiloPrivileged bool `json:"spilo_privileged,omitemty"`
|
SpiloPrivileged bool `json:"spilo_privileged,omitempty"`
|
||||||
SpiloFSGroup *int64 `json:"spilo_fsgroup,omitempty"`
|
SpiloFSGroup *int64 `json:"spilo_fsgroup,omitempty"`
|
||||||
WatchedNamespace string `json:"watched_namespace,omitempty"`
|
WatchedNamespace string `json:"watched_namespace,omitempty"`
|
||||||
PDBNameFormat config.StringTemplate `json:"pdb_name_format,omitempty"`
|
PDBNameFormat config.StringTemplate `json:"pdb_name_format,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user