Go fmt run.
This commit is contained in:
parent
51d73fb172
commit
17826ee434
|
|
@ -281,7 +281,6 @@ func (c *Cluster) updateService(role PostgresRole, newService *v1.Service) error
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (c *Cluster) deleteService(role PostgresRole) error {
|
func (c *Cluster) deleteService(role PostgresRole) error {
|
||||||
c.logger.Debugf("Deleting service %s", role)
|
c.logger.Debugf("Deleting service %s", role)
|
||||||
if c.Service[role] == nil {
|
if c.Service[role] == nil {
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,10 @@ func specPatch(spec interface{}) ([]byte, error) {
|
||||||
}{spec})
|
}{spec})
|
||||||
}
|
}
|
||||||
|
|
||||||
func metadataAnnotationsPatch(annotations map[string]string) (string) {
|
func metadataAnnotationsPatch(annotations map[string]string) string {
|
||||||
annotationsList := make([]string, 0, len(annotations))
|
annotationsList := make([]string, 0, len(annotations))
|
||||||
|
|
||||||
for name, value := range(annotations) {
|
for name, value := range annotations {
|
||||||
annotationsList = append(annotationsList, fmt.Sprintf(`"%s":"%s"`, name, value))
|
annotationsList = append(annotationsList, fmt.Sprintf(`"%s":"%s"`, name, value))
|
||||||
}
|
}
|
||||||
annotationsString := strings.Join(annotationsList, ",")
|
annotationsString := strings.Join(annotationsList, ",")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue