merge with master and update image in e2e test
This commit is contained in:
		
						commit
						13022fd6ca
					
				|  | @ -307,7 +307,7 @@ spec: | |||
|                   type: integer | ||||
|                 ring_log_lines: | ||||
|                   type: integer | ||||
|             scalyr: | ||||
|             scalyr:  # deprecated | ||||
|               type: object | ||||
|               properties: | ||||
|                 scalyr_api_key: | ||||
|  |  | |||
|  | @ -32,8 +32,6 @@ configuration: | |||
| {{ toYaml .Values.configTeamsApi | indent 4 }} | ||||
|   logging_rest_api: | ||||
| {{ toYaml .Values.configLoggingRestApi | indent 4 }} | ||||
|   scalyr: | ||||
| {{ toYaml .Values.configScalyr | indent 4 }} | ||||
|   connection_pooler: | ||||
| {{ toYaml .Values.configConnectionPooler | indent 4 }} | ||||
| {{- end }} | ||||
|  |  | |||
|  | @ -28,7 +28,7 @@ configGeneral: | |||
|   # Select if setup uses endpoints (default), or configmaps to manage leader (DCS=k8s) | ||||
|   # kubernetes_use_configmaps: false | ||||
|   # Spilo docker image | ||||
|   docker_image: registry.opensource.zalan.do/acid/spilo-12:1.6-p2 | ||||
|   docker_image: registry.opensource.zalan.do/acid/spilo-cdp-12:1.6-p115 | ||||
|   # max number of instances in Postgres cluster. -1 = no limit | ||||
|   min_instances: -1 | ||||
|   # min number of instances in Postgres cluster. -1 = no limit | ||||
|  | @ -254,23 +254,6 @@ configTeamsApi: | |||
|   # URL of the Teams API service | ||||
|   # teams_api_url: http://fake-teams-api.default.svc.cluster.local | ||||
| 
 | ||||
| # Scalyr is a log management tool that Zalando uses as a sidecar | ||||
| configScalyr: | ||||
|   # API key for the Scalyr sidecar | ||||
|   # scalyr_api_key: "" | ||||
| 
 | ||||
|   # Docker image for the Scalyr sidecar | ||||
|   # scalyr_image: "" | ||||
| 
 | ||||
|   # CPU limit value for the Scalyr sidecar | ||||
|   scalyr_cpu_limit: "1" | ||||
|   # CPU rquest value for the Scalyr sidecar | ||||
|   scalyr_cpu_request: 100m | ||||
|   # Memory limit value for the Scalyr sidecar | ||||
|   scalyr_memory_limit: 500Mi | ||||
|   # Memory request value for the Scalyr sidecar | ||||
|   scalyr_memory_request: 50Mi | ||||
| 
 | ||||
| configConnectionPooler: | ||||
|   # db schema to install lookup function into | ||||
|   connection_pooler_schema: "pooler" | ||||
|  |  | |||
|  | @ -28,7 +28,7 @@ configGeneral: | |||
|   # Select if setup uses endpoints (default), or configmaps to manage leader (DCS=k8s) | ||||
|   # kubernetes_use_configmaps: "false" | ||||
|   # Spilo docker image | ||||
|   docker_image: registry.opensource.zalan.do/acid/spilo-12:1.6-p2 | ||||
|   docker_image: registry.opensource.zalan.do/acid/spilo-cdp-12:1.6-p115 | ||||
|   # max number of instances in Postgres cluster. -1 = no limit | ||||
|   min_instances: "-1" | ||||
|   # min number of instances in Postgres cluster. -1 = no limit | ||||
|  |  | |||
|  | @ -520,9 +520,8 @@ A secret can be pre-provisioned in different ways: | |||
| 
 | ||||
| ## Sidecars for Postgres clusters | ||||
| 
 | ||||
| A list of sidecars is added to each cluster created by the | ||||
| operator. The default is empty list. | ||||
| 
 | ||||
| A list of sidecars is added to each cluster created by the operator. The default | ||||
| is empty. | ||||
| 
 | ||||
| ```yaml | ||||
| kind: OperatorConfiguration | ||||
|  | @ -538,7 +537,8 @@ configuration: | |||
|   - ... | ||||
| ``` | ||||
| 
 | ||||
| In addition to any environment variables you specify, the following environment variables are always passed to sidecars: | ||||
| In addition to any environment variables you specify, the following environment | ||||
| variables are always passed to sidecars: | ||||
| 
 | ||||
|   - `POD_NAME` - field reference to `metadata.name` | ||||
|   - `POD_NAMESPACE` - field reference to `metadata.namespace` | ||||
|  |  | |||
|  | @ -45,7 +45,7 @@ The following environment variables are accepted by the operator: | |||
|   all namespaces. Empty value defaults to the operator namespace. Overrides the | ||||
|   `watched_namespace` operator parameter. | ||||
| 
 | ||||
| * **SCALYR_API_KEY** | ||||
| * **SCALYR_API_KEY** (*deprecated*) | ||||
|   the value of the Scalyr API key to supply to the pods. Overrides the | ||||
|   `scalyr_api_key` operator parameter. | ||||
| 
 | ||||
|  |  | |||
|  | @ -97,17 +97,18 @@ Those are top-level keys, containing both leaf keys and groups. | |||
|   repository](https://github.com/zalando/spilo). | ||||
| 
 | ||||
| * **sidecar_docker_images** | ||||
|   *deprecated*: use **sidecars** instead. A map of sidecar names to Docker images to  | ||||
|   run with Spilo. In case of the name conflict with the definition in the cluster  | ||||
|   manifest the cluster-specific one is preferred. | ||||
|   *deprecated*: use **sidecars** instead. A map of sidecar names to Docker | ||||
|   images to run with Spilo. In case of the name conflict with the definition in | ||||
|   the cluster manifest the cluster-specific one is preferred. | ||||
| 
 | ||||
| * **sidecars** | ||||
|   a list of sidecars to run with Spilo, for any cluster (i.e. globally defined sidecars).  | ||||
|   Each item in the list is of type  | ||||
|   a list of sidecars to run with Spilo, for any cluster (i.e. globally defined | ||||
|   sidecars). Each item in the list is of type | ||||
|   [Container](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). | ||||
|   Globally defined sidecars can be overwritten by specifying a sidecar in the custom resource with  | ||||
|   the same name. Note: This field is not part of the schema validation. If the container specification  | ||||
|   is invalid, then the operator fails to create the statefulset. | ||||
|   Globally defined sidecars can be overwritten by specifying a sidecar in the | ||||
|   Postgres manifest with the same name. | ||||
|   Note: This field is not part of the schema validation. If the container | ||||
|   specification is invalid, then the operator fails to create the statefulset. | ||||
| 
 | ||||
| * **enable_shm_volume** | ||||
|   Instruct operator to start any new database pod without limitations on shm | ||||
|  | @ -224,7 +225,8 @@ configuration they are grouped under the `kubernetes` key. | |||
| 
 | ||||
| * **enable_sidecars** | ||||
|   global option to allow for creating sidecar containers in the cluster manifest | ||||
|   to run alongside Spilo on the same pod. Globally defined sidecars are always enabled. Default is true. | ||||
|   to run alongside Spilo on the same pod. Globally defined sidecars are always | ||||
|   enabled. Default is true. | ||||
| 
 | ||||
| * **secret_name_template** | ||||
|   a template for the name of the database user secrets generated by the | ||||
|  | @ -589,11 +591,12 @@ configuration they are grouped under the `logging_rest_api` key. | |||
| * **cluster_history_entries** | ||||
|   number of entries in the cluster history ring buffer. The default is `1000`. | ||||
| 
 | ||||
| ## Scalyr options | ||||
| ## Scalyr options (*deprecated*) | ||||
| 
 | ||||
| Those parameters define the resource requests/limits and properties of the | ||||
| scalyr sidecar. In the CRD-based configuration they are grouped under the | ||||
| `scalyr` key. | ||||
| `scalyr` key. Note, that this section is deprecated. Instead, define Scalyr as | ||||
| a global sidecar under the `sidecars` key in the configuration. | ||||
| 
 | ||||
| * **scalyr_api_key** | ||||
|   API key for the Scalyr sidecar. The default is empty. | ||||
|  |  | |||
|  | @ -210,7 +210,7 @@ class EndToEndTestCase(unittest.TestCase): | |||
|         k8s = self.k8s | ||||
| 
 | ||||
|         # update docker image in config and enable the lazy upgrade | ||||
|         conf_image = "registry.opensource.zalan.do/acid/spilo-cdp-12:1.6-p115" | ||||
|         conf_image = "registry.opensource.zalan.do/acid/spilo-cdp-12:1.6-p114" | ||||
|         patch_lazy_spilo_upgrade = { | ||||
|             "data": { | ||||
|                 "docker_image": conf_image, | ||||
|  |  | |||
|  | @ -7,7 +7,7 @@ metadata: | |||
| #  annotations: | ||||
| #    "acid.zalan.do/controller": "second-operator" | ||||
| spec: | ||||
|   dockerImage: registry.opensource.zalan.do/acid/spilo-12:1.6-p2 | ||||
|   dockerImage: registry.opensource.zalan.do/acid/spilo-cdp-12:1.6-p115 | ||||
|   teamId: "acid" | ||||
|   numberOfInstances: 2 | ||||
|   users:  # Application/Robot users | ||||
|  |  | |||
|  | @ -15,7 +15,7 @@ data: | |||
|   # connection_pooler_default_cpu_request: "500m" | ||||
|   # connection_pooler_default_memory_limit: 100Mi | ||||
|   # connection_pooler_default_memory_request: 100Mi | ||||
|   connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-6" | ||||
|   connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-7" | ||||
|   # connection_pooler_max_db_connections: 60 | ||||
|   # connection_pooler_mode: "transaction" | ||||
|   # connection_pooler_number_of_instances: 2 | ||||
|  | @ -29,7 +29,7 @@ data: | |||
|   # default_cpu_request: 100m | ||||
|   # default_memory_limit: 500Mi | ||||
|   # default_memory_request: 100Mi | ||||
|   docker_image: registry.opensource.zalan.do/acid/spilo-12:1.6-p2 | ||||
|   docker_image: registry.opensource.zalan.do/acid/spilo-cdp-12:1.6-p115 | ||||
|   # enable_admin_role_for_users: "true" | ||||
|   # enable_crd_validation: "true" | ||||
|   # enable_database_access: "true" | ||||
|  |  | |||
|  | @ -283,7 +283,7 @@ spec: | |||
|                   type: integer | ||||
|                 ring_log_lines: | ||||
|                   type: integer | ||||
|             scalyr: | ||||
|             scalyr:  # deprecated | ||||
|               type: object | ||||
|               properties: | ||||
|                 scalyr_api_key: | ||||
|  |  | |||
|  | @ -3,12 +3,12 @@ kind: OperatorConfiguration | |||
| metadata: | ||||
|   name: postgresql-operator-default-configuration | ||||
| configuration: | ||||
|   docker_image: registry.opensource.zalan.do/acid/spilo-cdp-12:1.6-p115 | ||||
|   # enable_crd_validation: true | ||||
|   # enable_lazy_spilo_upgrade: false | ||||
|   # enable_shm_volume: true | ||||
|   etcd_host: "" | ||||
|   # kubernetes_use_configmaps: false | ||||
|   docker_image: registry.opensource.zalan.do/acid/spilo-12:1.6-p2 | ||||
|   max_instances: -1 | ||||
|   min_instances: -1 | ||||
|   resync_period: 30m | ||||
|  | @ -118,20 +118,12 @@ configuration: | |||
|     api_port: 8080 | ||||
|     cluster_history_entries: 1000 | ||||
|     ring_log_lines: 100 | ||||
|   scalyr: | ||||
|     # scalyr_api_key: "" | ||||
|     scalyr_cpu_limit: "1" | ||||
|     scalyr_cpu_request: 100m | ||||
|     # scalyr_image: "" | ||||
|     scalyr_memory_limit: 500Mi | ||||
|     scalyr_memory_request: 50Mi | ||||
|     # scalyr_server_url: "" | ||||
|   connection_pooler: | ||||
|     connection_pooler_default_cpu_limit: "1" | ||||
|     connection_pooler_default_cpu_request: "500m" | ||||
|     connection_pooler_default_memory_limit: 100Mi | ||||
|     connection_pooler_default_memory_request: 100Mi | ||||
|     connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-6" | ||||
|     connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-7" | ||||
|     # connection_pooler_max_db_connections: 60 | ||||
|     connection_pooler_mode: "transaction" | ||||
|     connection_pooler_number_of_instances: 2 | ||||
|  |  | |||
|  | @ -111,7 +111,7 @@ type Config struct { | |||
| 	WatchedNamespace        string `name:"watched_namespace"` // special values: "*" means 'watch all namespaces', the empty string "" means 'watch a namespace where operator is deployed to'
 | ||||
| 	KubernetesUseConfigMaps bool   `name:"kubernetes_use_configmaps" default:"false"` | ||||
| 	EtcdHost                string `name:"etcd_host" default:""` // special values: the empty string "" means Patroni will use K8s as a DCS
 | ||||
| 	DockerImage             string `name:"docker_image" default:"registry.opensource.zalan.do/acid/spilo-12:1.6-p2"` | ||||
| 	DockerImage             string `name:"docker_image" default:"registry.opensource.zalan.do/acid/spilo-cdp-12:1.6-p115"` | ||||
| 	// deprecated in favour of SidecarContainers
 | ||||
| 	SidecarImages         map[string]string `name:"sidecar_docker_images"` | ||||
| 	SidecarContainers     []v1.Container    `name:"sidecars"` | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue