Fix misuse in struct kobject.ServiceConfig.Port (#1423)

This commit is contained in:
ichx
2021-08-29 21:37:22 +08:00
committed by GitHub
parent 0671410009
commit 2f081075a8
9 changed files with 80 additions and 92 deletions
+2 -2
View File
@@ -26,7 +26,6 @@ import (
"github.com/pkg/errors"
"github.com/spf13/cast"
v1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/intstr"
)
@@ -91,6 +90,7 @@ func (opt *ConvertOptions) IsPodController() bool {
type ServiceConfigGroup []ServiceConfig
// ServiceConfig holds the basic struct of a container
// which should not introduce any kubernetes specific struct
type ServiceConfig struct {
Name string
ContainerName string
@@ -186,7 +186,7 @@ type Ports struct {
HostPort int32
ContainerPort int32
HostIP string
Protocol corev1.Protocol
Protocol string // Upper string
}
// Volumes holds the volume struct of container