Some fixes on "same-pod" and volumes + add some tests #82

Merged
metal3d merged 20 commits from develop into master 2024-11-25 22:17:56 +00:00
Showing only changes of commit 046410a5ec - Show all commits

View File

@@ -2,6 +2,7 @@ package labelStructs
import (
"fmt"
"katenary/utils"
"gopkg.in/yaml.v3"
)
@@ -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},
}