fix compilation errors

This commit is contained in:
Matt Ward 2018-06-01 21:06:12 +00:00
parent cfcae65f4c
commit 940b3c9e2b
1 changed files with 8 additions and 8 deletions

View File

@ -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)
}