fix compilation errors
This commit is contained in:
		
							parent
							
								
									cfcae65f4c
								
							
						
					
					
						commit
						940b3c9e2b
					
				|  | @ -319,7 +319,7 @@ func (c *Cluster) generatePodTemplate( | |||
| 	cloneDescription *spec.CloneDescription, | ||||
| 	dockerImage *string, | ||||
| 	sidecars *[]spec.Sidecar, | ||||
| 	customPodEnvVars map[string]string | ||||
| 	customPodEnvVars map[string]string, | ||||
| ) (*v1.PodTemplateSpec, error) { | ||||
| 	spiloConfiguration := c.generateSpiloJSONConfiguration(pgParameters, patroniParameters) | ||||
| 
 | ||||
|  | @ -658,7 +658,7 @@ func (c *Cluster) generateStatefulSet(spec *spec.PostgresSpec) (*v1beta1.Statefu | |||
| 			customPodEnvVars = cm.Data | ||||
| 		} | ||||
| 	} | ||||
| 	podTemplate, err := c.generatePodTemplate(c.Postgresql.GetUID(), resourceRequirements, resourceRequirementsScalyrSidecar, &spec.Tolerations, &spec.PostgresqlParam, &spec.Patroni, &spec.Clone, &spec.DockerImage, &spec.Sidecars customPodEnvVars) | ||||
| 	podTemplate, err := c.generatePodTemplate(c.Postgresql.GetUID(), resourceRequirements, resourceRequirementsScalyrSidecar, &spec.Tolerations, &spec.PostgresqlParam, &spec.Patroni, &spec.Clone, &spec.DockerImage, &spec.Sidecars, customPodEnvVars) | ||||
| 	if err != nil { | ||||
| 		return nil, fmt.Errorf("could not generate pod template: %v", err) | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue