mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 15:39:10 +02:00
Go fmt run.
This commit is contained in:
committed by
Oleksii Kliukin
parent
51d73fb172
commit
17826ee434
@@ -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
@@ -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, ",")
|
||||
|
||||
Reference in New Issue
Block a user