Feat cronjob #23

Merged
metal3d merged 28 commits from feat-cronjob into master 2022-06-10 14:15:18 +00:00
Showing only changes of commit ac2382735c - Show all commits

View File

@@ -1,5 +1,7 @@
package helm package helm
import "strconv"
// Service is a Kubernetes service. // Service is a Kubernetes service.
type Service struct { type Service struct {
*K8sBase `yaml:",inline"` *K8sBase `yaml:",inline"`
@@ -24,6 +26,7 @@ type ServicePort struct {
Protocol string `yaml:"protocol"` Protocol string `yaml:"protocol"`
Port int `yaml:"port"` Port int `yaml:"port"`
TargetPort int `yaml:"targetPort"` TargetPort int `yaml:"targetPort"`
Name string `yaml:"name"`
} }
// NewServicePort creates a new initialized service port. // NewServicePort creates a new initialized service port.
@@ -32,6 +35,7 @@ func NewServicePort(port, target int) *ServicePort {
Protocol: "TCP", Protocol: "TCP",
Port: port, Port: port,
TargetPort: port, TargetPort: port,
Name: "port-" + strconv.Itoa(port),
} }
} }