1
0
mirror of https://github.com/rancher/types.git synced 2025-06-27 14:06:49 +00:00

Generate code for extra binds

This commit is contained in:
David Lewis 2018-03-20 21:14:51 -07:00
parent f181b046a5
commit 8f42711f5c
7 changed files with 27 additions and 10 deletions

View File

@ -1150,6 +1150,11 @@ func (in *BaseService) DeepCopyInto(out *BaseService) {
(*out)[key] = val
}
}
if in.ExtraBinds != nil {
in, out := &in.ExtraBinds, &out.ExtraBinds
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}

View File

@ -6,6 +6,7 @@ const (
ETCDServiceFieldCert = "cert"
ETCDServiceFieldExternalURLs = "externalUrls"
ETCDServiceFieldExtraArgs = "extraArgs"
ETCDServiceFieldExtraBinds = "extraBinds"
ETCDServiceFieldImage = "image"
ETCDServiceFieldKey = "key"
ETCDServiceFieldPath = "path"
@ -16,6 +17,7 @@ type ETCDService struct {
Cert string `json:"cert,omitempty" yaml:"cert,omitempty"`
ExternalURLs []string `json:"externalUrls,omitempty" yaml:"externalUrls,omitempty"`
ExtraArgs map[string]string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
ExtraBinds []string `json:"extraBinds,omitempty" yaml:"extraBinds,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
Key string `json:"key,omitempty" yaml:"key,omitempty"`
Path string `json:"path,omitempty" yaml:"path,omitempty"`

View File

@ -3,6 +3,7 @@ package client
const (
KubeAPIServiceType = "kubeAPIService"
KubeAPIServiceFieldExtraArgs = "extraArgs"
KubeAPIServiceFieldExtraBinds = "extraBinds"
KubeAPIServiceFieldImage = "image"
KubeAPIServiceFieldPodSecurityPolicy = "podSecurityPolicy"
KubeAPIServiceFieldServiceClusterIPRange = "serviceClusterIpRange"
@ -10,6 +11,7 @@ const (
type KubeAPIService struct {
ExtraArgs map[string]string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
ExtraBinds []string `json:"extraBinds,omitempty" yaml:"extraBinds,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
PodSecurityPolicy bool `json:"podSecurityPolicy,omitempty" yaml:"podSecurityPolicy,omitempty"`
ServiceClusterIPRange string `json:"serviceClusterIpRange,omitempty" yaml:"serviceClusterIpRange,omitempty"`

View File

@ -4,6 +4,7 @@ const (
KubeControllerServiceType = "kubeControllerService"
KubeControllerServiceFieldClusterCIDR = "clusterCidr"
KubeControllerServiceFieldExtraArgs = "extraArgs"
KubeControllerServiceFieldExtraBinds = "extraBinds"
KubeControllerServiceFieldImage = "image"
KubeControllerServiceFieldServiceClusterIPRange = "serviceClusterIpRange"
)
@ -11,6 +12,7 @@ const (
type KubeControllerService struct {
ClusterCIDR string `json:"clusterCidr,omitempty" yaml:"clusterCidr,omitempty"`
ExtraArgs map[string]string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
ExtraBinds []string `json:"extraBinds,omitempty" yaml:"extraBinds,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
ServiceClusterIPRange string `json:"serviceClusterIpRange,omitempty" yaml:"serviceClusterIpRange,omitempty"`
}

View File

@ -5,6 +5,7 @@ const (
KubeletServiceFieldClusterDNSServer = "clusterDnsServer"
KubeletServiceFieldClusterDomain = "clusterDomain"
KubeletServiceFieldExtraArgs = "extraArgs"
KubeletServiceFieldExtraBinds = "extraBinds"
KubeletServiceFieldFailSwapOn = "failSwapOn"
KubeletServiceFieldImage = "image"
KubeletServiceFieldInfraContainerImage = "infraContainerImage"
@ -14,6 +15,7 @@ type KubeletService struct {
ClusterDNSServer string `json:"clusterDnsServer,omitempty" yaml:"clusterDnsServer,omitempty"`
ClusterDomain string `json:"clusterDomain,omitempty" yaml:"clusterDomain,omitempty"`
ExtraArgs map[string]string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
ExtraBinds []string `json:"extraBinds,omitempty" yaml:"extraBinds,omitempty"`
FailSwapOn bool `json:"failSwapOn,omitempty" yaml:"failSwapOn,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
InfraContainerImage string `json:"infraContainerImage,omitempty" yaml:"infraContainerImage,omitempty"`

View File

@ -1,12 +1,14 @@
package client
const (
KubeproxyServiceType = "kubeproxyService"
KubeproxyServiceFieldExtraArgs = "extraArgs"
KubeproxyServiceFieldImage = "image"
KubeproxyServiceType = "kubeproxyService"
KubeproxyServiceFieldExtraArgs = "extraArgs"
KubeproxyServiceFieldExtraBinds = "extraBinds"
KubeproxyServiceFieldImage = "image"
)
type KubeproxyService struct {
ExtraArgs map[string]string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
ExtraArgs map[string]string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
ExtraBinds []string `json:"extraBinds,omitempty" yaml:"extraBinds,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
}

View File

@ -1,12 +1,14 @@
package client
const (
SchedulerServiceType = "schedulerService"
SchedulerServiceFieldExtraArgs = "extraArgs"
SchedulerServiceFieldImage = "image"
SchedulerServiceType = "schedulerService"
SchedulerServiceFieldExtraArgs = "extraArgs"
SchedulerServiceFieldExtraBinds = "extraBinds"
SchedulerServiceFieldImage = "image"
)
type SchedulerService struct {
ExtraArgs map[string]string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
ExtraArgs map[string]string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
ExtraBinds []string `json:"extraBinds,omitempty" yaml:"extraBinds,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
}