change defaults for enable_pgversion_env_var and storage_resize_mode
This commit is contained in:
		
							parent
							
								
									e043dfa61f
								
							
						
					
					
						commit
						5545a02934
					
				| 
						 | 
					@ -22,7 +22,7 @@ configGeneral:
 | 
				
			||||||
  # update only the statefulsets without immediately doing the rolling update
 | 
					  # update only the statefulsets without immediately doing the rolling update
 | 
				
			||||||
  enable_lazy_spilo_upgrade: false
 | 
					  enable_lazy_spilo_upgrade: false
 | 
				
			||||||
  # set the PGVERSION env var instead of providing the version via postgresql.bin_dir in SPILO_CONFIGURATION
 | 
					  # set the PGVERSION env var instead of providing the version via postgresql.bin_dir in SPILO_CONFIGURATION
 | 
				
			||||||
  enable_pgversion_env_var: false
 | 
					  enable_pgversion_env_var: true
 | 
				
			||||||
  # start any new database pod without limitations on shm memory
 | 
					  # start any new database pod without limitations on shm memory
 | 
				
			||||||
  enable_shm_volume: true
 | 
					  enable_shm_volume: true
 | 
				
			||||||
  # enables backwards compatible path between Spilo 12 and Spilo 13 images
 | 
					  # enables backwards compatible path between Spilo 12 and Spilo 13 images
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,7 +25,7 @@ configGeneral:
 | 
				
			||||||
  # update only the statefulsets without immediately doing the rolling update
 | 
					  # update only the statefulsets without immediately doing the rolling update
 | 
				
			||||||
  enable_lazy_spilo_upgrade: "false"
 | 
					  enable_lazy_spilo_upgrade: "false"
 | 
				
			||||||
  # set the PGVERSION env var instead of providing the version via postgresql.bin_dir in SPILO_CONFIGURATION
 | 
					  # set the PGVERSION env var instead of providing the version via postgresql.bin_dir in SPILO_CONFIGURATION
 | 
				
			||||||
  enable_pgversion_env_var: "false"
 | 
					  enable_pgversion_env_var: "true"
 | 
				
			||||||
  # start any new database pod without limitations on shm memory
 | 
					  # start any new database pod without limitations on shm memory
 | 
				
			||||||
  enable_shm_volume: "true"
 | 
					  enable_shm_volume: "true"
 | 
				
			||||||
  # enables backwards compatible path between Spilo 12 and Spilo 13 images
 | 
					  # enables backwards compatible path between Spilo 12 and Spilo 13 images
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -286,7 +286,7 @@ manifest files:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Postgres manifest parameters are defined in the [api package](../pkg/apis/acid.zalan.do/v1/postgresql_type.go).
 | 
					Postgres manifest parameters are defined in the [api package](../pkg/apis/acid.zalan.do/v1/postgresql_type.go).
 | 
				
			||||||
The operator behavior has to be implemented at least in [k8sres.go](../pkg/cluster/k8sres.go).
 | 
					The operator behavior has to be implemented at least in [k8sres.go](../pkg/cluster/k8sres.go).
 | 
				
			||||||
Validation of CRD parameters is controlled in [crd.go](../pkg/apis/acid.zalan.do/v1/crds.go).
 | 
					Validation of CRD parameters is controlled in [crd.go](../pkg/apis/acid.zalan.do/v1/crd.go).
 | 
				
			||||||
Please, reflect your changes in tests, for example in:
 | 
					Please, reflect your changes in tests, for example in:
 | 
				
			||||||
* [config_test.go](../pkg/util/config/config_test.go)
 | 
					* [config_test.go](../pkg/util/config/config_test.go)
 | 
				
			||||||
* [k8sres_test.go](../pkg/cluster/k8sres_test.go)
 | 
					* [k8sres_test.go](../pkg/cluster/k8sres_test.go)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -80,7 +80,7 @@ Those are top-level keys, containing both leaf keys and groups.
 | 
				
			||||||
  The default is `false`.
 | 
					  The default is `false`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* **enable_pgversion_env_var**
 | 
					* **enable_pgversion_env_var**
 | 
				
			||||||
  With newer versions of Spilo, it is preferable to use `PGVERSION` pod environment variable instead of the setting `postgresql.bin_dir` in the `SPILO_CONFIGURATION` env variable. When this option is true, the operator sets `PGVERSION` and omits `postgresql.bin_dir` from  `SPILO_CONFIGURATION`. When false, the `postgresql.bin_dir` is set. This setting takes precedence over `PGVERSION`; see PR 222 in Spilo. The default is `false`.
 | 
					  With newer versions of Spilo, it is preferable to use `PGVERSION` pod environment variable instead of the setting `postgresql.bin_dir` in the `SPILO_CONFIGURATION` env variable. When this option is true, the operator sets `PGVERSION` and omits `postgresql.bin_dir` from  `SPILO_CONFIGURATION`. When false, the `postgresql.bin_dir` is set. This setting takes precedence over `PGVERSION`; see PR 222 in Spilo. The default is `true`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* **enable_spilo_wal_path_compat**
 | 
					* **enable_spilo_wal_path_compat**
 | 
				
			||||||
  enables backwards compatible path between Spilo 12 and Spilo 13 images. The default is `false`.
 | 
					  enables backwards compatible path between Spilo 12 and Spilo 13 images. The default is `false`.
 | 
				
			||||||
| 
						 | 
					@ -375,7 +375,7 @@ configuration they are grouped under the `kubernetes` key.
 | 
				
			||||||
* **storage_resize_mode**
 | 
					* **storage_resize_mode**
 | 
				
			||||||
  defines how operator handels the difference between requested volume size and
 | 
					  defines how operator handels the difference between requested volume size and
 | 
				
			||||||
  actual size. Available options are: ebs - tries to resize EBS volume, pvc -
 | 
					  actual size. Available options are: ebs - tries to resize EBS volume, pvc -
 | 
				
			||||||
  changes PVC definition, off - disables resize of the volumes. Default is "ebs".
 | 
					  changes PVC definition, off - disables resize of the volumes. Default is "pvc".
 | 
				
			||||||
  When using OpenShift please use one of the other available options.
 | 
					  When using OpenShift please use one of the other available options.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Kubernetes resource requests
 | 
					## Kubernetes resource requests
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -41,14 +41,14 @@ data:
 | 
				
			||||||
  # enable_init_containers: "true"
 | 
					  # enable_init_containers: "true"
 | 
				
			||||||
  # enable_lazy_spilo_upgrade: "false"
 | 
					  # enable_lazy_spilo_upgrade: "false"
 | 
				
			||||||
  enable_master_load_balancer: "false"
 | 
					  enable_master_load_balancer: "false"
 | 
				
			||||||
  # enable_pgversion_env_var: "true"
 | 
					  enable_pgversion_env_var: "true"
 | 
				
			||||||
  # enable_pod_antiaffinity: "false"
 | 
					  # enable_pod_antiaffinity: "false"
 | 
				
			||||||
  # enable_pod_disruption_budget: "true"
 | 
					  # enable_pod_disruption_budget: "true"
 | 
				
			||||||
  # enable_postgres_team_crd: "false"
 | 
					  # enable_postgres_team_crd: "false"
 | 
				
			||||||
  # enable_postgres_team_crd_superusers: "false"
 | 
					  # enable_postgres_team_crd_superusers: "false"
 | 
				
			||||||
  enable_replica_load_balancer: "false"
 | 
					  enable_replica_load_balancer: "false"
 | 
				
			||||||
  # enable_shm_volume: "true"
 | 
					  # enable_shm_volume: "true"
 | 
				
			||||||
  # enable_pgversion_env_var: "false"
 | 
					  enable_pgversion_env_var: "true"
 | 
				
			||||||
  # enable_sidecars: "true"
 | 
					  # enable_sidecars: "true"
 | 
				
			||||||
  enable_spilo_wal_path_compat: "true"
 | 
					  enable_spilo_wal_path_compat: "true"
 | 
				
			||||||
  # enable_team_superuser: "false"
 | 
					  # enable_team_superuser: "false"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,7 +6,7 @@ configuration:
 | 
				
			||||||
  docker_image: registry.opensource.zalan.do/acid/spilo-12:1.6-p3
 | 
					  docker_image: registry.opensource.zalan.do/acid/spilo-12:1.6-p3
 | 
				
			||||||
  # enable_crd_validation: true
 | 
					  # enable_crd_validation: true
 | 
				
			||||||
  # enable_lazy_spilo_upgrade: false
 | 
					  # enable_lazy_spilo_upgrade: false
 | 
				
			||||||
  # enable_pgversion_env_var: false
 | 
					  enable_pgversion_env_var: true
 | 
				
			||||||
  # enable_shm_volume: true
 | 
					  # enable_shm_volume: true
 | 
				
			||||||
  enable_spilo_wal_path_compat: false
 | 
					  enable_spilo_wal_path_compat: false
 | 
				
			||||||
  etcd_host: ""
 | 
					  etcd_host: ""
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -70,7 +70,7 @@ func (c *Controller) importConfigurationFromCRD(fromCRD *acidv1.OperatorConfigur
 | 
				
			||||||
	result.WatchedNamespace = fromCRD.Kubernetes.WatchedNamespace
 | 
						result.WatchedNamespace = fromCRD.Kubernetes.WatchedNamespace
 | 
				
			||||||
	result.PDBNameFormat = fromCRD.Kubernetes.PDBNameFormat
 | 
						result.PDBNameFormat = fromCRD.Kubernetes.PDBNameFormat
 | 
				
			||||||
	result.EnablePodDisruptionBudget = util.CoalesceBool(fromCRD.Kubernetes.EnablePodDisruptionBudget, util.True())
 | 
						result.EnablePodDisruptionBudget = util.CoalesceBool(fromCRD.Kubernetes.EnablePodDisruptionBudget, util.True())
 | 
				
			||||||
	result.StorageResizeMode = util.Coalesce(fromCRD.Kubernetes.StorageResizeMode, "ebs")
 | 
						result.StorageResizeMode = util.Coalesce(fromCRD.Kubernetes.StorageResizeMode, "pvc")
 | 
				
			||||||
	result.EnableInitContainers = util.CoalesceBool(fromCRD.Kubernetes.EnableInitContainers, util.True())
 | 
						result.EnableInitContainers = util.CoalesceBool(fromCRD.Kubernetes.EnableInitContainers, util.True())
 | 
				
			||||||
	result.EnableSidecars = util.CoalesceBool(fromCRD.Kubernetes.EnableSidecars, util.True())
 | 
						result.EnableSidecars = util.CoalesceBool(fromCRD.Kubernetes.EnableSidecars, util.True())
 | 
				
			||||||
	result.SecretNameTemplate = fromCRD.Kubernetes.SecretNameTemplate
 | 
						result.SecretNameTemplate = fromCRD.Kubernetes.SecretNameTemplate
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -182,7 +182,7 @@ type Config struct {
 | 
				
			||||||
	CustomPodAnnotations                   map[string]string `name:"custom_pod_annotations"`
 | 
						CustomPodAnnotations                   map[string]string `name:"custom_pod_annotations"`
 | 
				
			||||||
	EnablePodAntiAffinity                  bool              `name:"enable_pod_antiaffinity" default:"false"`
 | 
						EnablePodAntiAffinity                  bool              `name:"enable_pod_antiaffinity" default:"false"`
 | 
				
			||||||
	PodAntiAffinityTopologyKey             string            `name:"pod_antiaffinity_topology_key" default:"kubernetes.io/hostname"`
 | 
						PodAntiAffinityTopologyKey             string            `name:"pod_antiaffinity_topology_key" default:"kubernetes.io/hostname"`
 | 
				
			||||||
	StorageResizeMode                      string            `name:"storage_resize_mode" default:"ebs"`
 | 
						StorageResizeMode                      string            `name:"storage_resize_mode" default:"pvc"`
 | 
				
			||||||
	EnableLoadBalancer                     *bool             `name:"enable_load_balancer"` // deprecated and kept for backward compatibility
 | 
						EnableLoadBalancer                     *bool             `name:"enable_load_balancer"` // deprecated and kept for backward compatibility
 | 
				
			||||||
	ExternalTrafficPolicy                  string            `name:"external_traffic_policy" default:"Cluster"`
 | 
						ExternalTrafficPolicy                  string            `name:"external_traffic_policy" default:"Cluster"`
 | 
				
			||||||
	MasterDNSNameFormat                    StringTemplate    `name:"master_dns_name_format" default:"{cluster}.{team}.{hostedzone}"`
 | 
						MasterDNSNameFormat                    StringTemplate    `name:"master_dns_name_format" default:"{cluster}.{team}.{hostedzone}"`
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue