Skip to content

Commit

Permalink
chore(refacto): use utils package
Browse files Browse the repository at this point in the history
  • Loading branch information
metal3d committed Nov 25, 2024
1 parent 827b5bc commit 046410a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions generator/labels/labelStructs/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package labelStructs

import (
"fmt"
"katenary/utils"

"gopkg.in/yaml.v3"
)
Expand All @@ -22,14 +23,11 @@ type Ingress struct {

// IngressFrom creates a new Ingress from a compose service.
func IngressFrom(data string) (*Ingress, error) {
strPtr := func(s string) *string {
return &s
}
mapping := Ingress{
Hostname: "",
Path: strPtr("/"),
Path: utils.StrPtr("/"),
Enabled: false,
Class: strPtr("-"),
Class: utils.StrPtr("-"),
Port: nil,
TLS: &TLS{Enabled: true},
}
Expand Down

0 comments on commit 046410a

Please sign in to comment.