Skip to content

Commit

Permalink
fix: xlabels when labels are an IP
Browse files Browse the repository at this point in the history
  • Loading branch information
trois-six committed Apr 29, 2021
1 parent 220b4bc commit 599fd54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/diagram/objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (d *Diagram) GenerateServices(namespace string, services *corev1.ServiceLis
d.internet,
d.services[svc.Name],
func(o *diagram.EdgeOptions) {
o.Attributes["xlabel"] = lb.IP
o.Attributes["xlabel"] = "\"" + lb.IP + "\""
o.Attributes["labelfloat"] = strconv.FormatBool(true)
o.Font.Size = 6
},
Expand Down Expand Up @@ -300,7 +300,7 @@ func (d *Diagram) GenerateIngresses(namespace string, o *networkingv1.IngressLis
d.internet,
d.ingresses[ing.Name],
func(o *diagram.EdgeOptions) {
o.Attributes["xlabel"] = lb.IP
o.Attributes["xlabel"] = "\"" + lb.IP + "\""
o.Attributes["labelfloat"] = strconv.FormatBool(true)
o.Font.Size = 6
},
Expand Down

0 comments on commit 599fd54

Please sign in to comment.