Go fmt run.

This commit is contained in:
Oleksii Kliukin
2017-06-12 10:24:23 +02:00
committed by Oleksii Kliukin
parent 51d73fb172
commit 17826ee434
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -281,7 +281,6 @@ func (c *Cluster) updateService(role PostgresRole, newService *v1.Service) error
return nil
}
func (c *Cluster) deleteService(role PostgresRole) error {
c.logger.Debugf("Deleting service %s", role)
if c.Service[role] == nil {
+2 -2
View File
@@ -63,10 +63,10 @@ func specPatch(spec interface{}) ([]byte, error) {
}{spec})
}
func metadataAnnotationsPatch(annotations map[string]string) (string) {
func metadataAnnotationsPatch(annotations map[string]string) string {
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))
}
annotationsString := strings.Join(annotationsList, ",")