1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-11 12:03:47 +00:00

Vendor update

This commit is contained in:
galal-hussein
2018-03-28 21:46:42 +02:00
parent 3694d16212
commit e11ac20c0d
8 changed files with 125 additions and 15 deletions

View File

@@ -81,13 +81,12 @@ type TargetPod struct {
}
type TargetEvent struct {
Type string `json:"type,omitempty" norman:"required,options=Normal|Warning,default=Warning"`
EventType string `json:"eventType,omitempty" norman:"required,options=Normal|Warning,default=Warning"`
ResourceKind string `json:"resourceKind,omitempty" norman:"required,options=Pod|Node|Deployment|Statefulset|Daemonset"`
}
type TargetWorkload struct {
WorkloadID string `json:"workloadId,omitempty"`
Type string `json:"type,omitempty" norman:"required,options=deployment|statefulset|daemonset,default=deployment"`
Selector map[string]string `json:"selector,omitempty"`
AvailablePercentage int `json:"availablePercentage,omitempty" norman:"required,min=1,max=100,default=70"`
}
@@ -157,3 +156,8 @@ type WebhookConfig struct {
type NotifierStatus struct {
}
type AlertSystemImages struct {
AlertManager string `json:"alertManager,omitempty"`
AlertManagerHelper string `json:"alertManagerHelper,omitempty"`
}

View File

@@ -20,6 +20,31 @@ var (
"v1.9.5-rancher1-1": v19SystemImages,
}
// ToolsSystemImages default images for alert, pipeline, logging
ToolsSystemImages = struct {
AlertSystemImages AlertSystemImages
PipelineSystemImages PipelineSystemImages
LoggingSystemImages LoggingSystemImages
}{
AlertSystemImages: AlertSystemImages{
AlertManager: "prom/alertmanager:v0.11.0",
AlertManagerHelper: "rancher/alertmanager-helper:v0.0.2",
},
PipelineSystemImages: PipelineSystemImages{
Jenkins: "jenkins/jenkins:lts",
JenkinsJnlp: "jenkins/jnlp-slave:3.10-1-alpine",
AlpineGit: "alpine/git",
PluginsDocker: "plugins/docker",
},
LoggingSystemImages: LoggingSystemImages{
Fluentd: "rancher/fluentd:v0.1.4",
FluentdHelper: "rancher/fluentd-helper:v0.1.1",
Elaticsearch: "rancher/docker-elasticsearch-kubernetes:5.6.2",
Kibana: "kibana:5.6.4",
Busybox: "busybox",
},
}
// v18 system images defaults
v18SystemImages = RKESystemImages{
Etcd: "rancher/coreos-etcd:v3.0.17",
@@ -27,7 +52,7 @@ var (
Alpine: "alpine:latest",
NginxProxy: "rancher/rke-nginx-proxy:v0.1.1",
CertDownloader: "rancher/rke-cert-deployer:v0.1.1",
KubernetesServicesSidecar: "rancher/rke-service-sidekick:v0.1.0",
KubernetesServicesSidecar: "rancher/rke-service-sidekick:v0.1.1",
KubeDNS: "rancher/k8s-dns-kube-dns-amd64:1.14.5",
DNSmasq: "rancher/k8s-dns-dnsmasq-nanny-amd64:1.14.5",
KubeDNSSidecar: "rancher/k8s-dns-sidecar-amd64:1.14.5",
@@ -54,7 +79,7 @@ var (
Alpine: "alpine:latest",
NginxProxy: "rancher/rke-nginx-proxy:v0.1.1",
CertDownloader: "rancher/rke-cert-deployer:v0.1.1",
KubernetesServicesSidecar: "rancher/rke-service-sidekick:v0.1.0",
KubernetesServicesSidecar: "rancher/rke-service-sidekick:v0.1.1",
KubeDNS: "rancher/k8s-dns-kube-dns-amd64:1.14.7",
DNSmasq: "rancher/k8s-dns-dnsmasq-nanny-amd64:1.14.7",
KubeDNSSidecar: "rancher/k8s-dns-sidecar-amd64:1.14.7",

View File

@@ -119,3 +119,11 @@ type SyslogConfig struct {
Program string `json:"program,omitempty"`
Protocol string `json:"protocol,omitempty" norman:"default=udp,type=enum,options=udp|tcp"`
}
type LoggingSystemImages struct {
Fluentd string `json:"fluentd,omitempty"`
FluentdHelper string `json:"fluentdHelper,omitempty"`
Elaticsearch string `json:"elaticsearch,omitempty"`
Kibana string `json:"kibana,omitempty"`
Busybox string `json:"busybox,omitempty"`
}

View File

@@ -220,14 +220,15 @@ type Condition struct {
}
type NodeDriverSpec struct {
DisplayName string `json:"displayName"`
Description string `json:"description"`
URL string `json:"url" norman:"required"`
ExternalID string `json:"externalId"`
Builtin bool `json:"builtin"`
Active bool `json:"active"`
Checksum string `json:"checksum"`
UIURL string `json:"uiUrl"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
URL string `json:"url" norman:"required"`
ExternalID string `json:"externalId"`
Builtin bool `json:"builtin"`
Active bool `json:"active"`
Checksum string `json:"checksum"`
UIURL string `json:"uiUrl"`
WhitelistDomains []string `json:"whitelistDomains,omitempty"`
}
type PublicEndpoint struct {

View File

@@ -235,3 +235,10 @@ type AuthUserInput struct {
RedirectURL string `json:"redirectUrl,omitempty" norman:"type=string"`
Code string `json:"code,omitempty" norman:"type=string,required"`
}
type PipelineSystemImages struct {
Jenkins string `json:"jenkins,omitempty"`
JenkinsJnlp string `json:"jenkinsJnlp,omitempty"`
AlpineGit string `json:"alpineGit,omitempty"`
PluginsDocker string `json:"pluginsDocker,omitempty"`
}

View File

@@ -39,6 +39,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
in.(*AlertStatus).DeepCopyInto(out.(*AlertStatus))
return nil
}, InType: reflect.TypeOf(&AlertStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AlertSystemImages).DeepCopyInto(out.(*AlertSystemImages))
return nil
}, InType: reflect.TypeOf(&AlertSystemImages{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AuthAppInput).DeepCopyInto(out.(*AuthAppInput))
return nil
@@ -391,6 +395,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
in.(*LoggingStatus).DeepCopyInto(out.(*LoggingStatus))
return nil
}, InType: reflect.TypeOf(&LoggingStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*LoggingSystemImages).DeepCopyInto(out.(*LoggingSystemImages))
return nil
}, InType: reflect.TypeOf(&LoggingSystemImages{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*NetworkConfig).DeepCopyInto(out.(*NetworkConfig))
return nil
@@ -539,6 +547,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
in.(*PipelineStatus).DeepCopyInto(out.(*PipelineStatus))
return nil
}, InType: reflect.TypeOf(&PipelineStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PipelineSystemImages).DeepCopyInto(out.(*PipelineSystemImages))
return nil
}, InType: reflect.TypeOf(&PipelineSystemImages{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodSecurityPolicyTemplate).DeepCopyInto(out.(*PodSecurityPolicyTemplate))
return nil
@@ -977,6 +989,22 @@ func (in *AlertStatus) DeepCopy() *AlertStatus {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AlertSystemImages) DeepCopyInto(out *AlertSystemImages) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertSystemImages.
func (in *AlertSystemImages) DeepCopy() *AlertSystemImages {
if in == nil {
return nil
}
out := new(AlertSystemImages)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AuthAppInput) DeepCopyInto(out *AuthAppInput) {
*out = *in
@@ -3299,6 +3327,22 @@ func (in *LoggingStatus) DeepCopy() *LoggingStatus {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *LoggingSystemImages) DeepCopyInto(out *LoggingSystemImages) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoggingSystemImages.
func (in *LoggingSystemImages) DeepCopy() *LoggingSystemImages {
if in == nil {
return nil
}
out := new(LoggingSystemImages)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NetworkConfig) DeepCopyInto(out *NetworkConfig) {
*out = *in
@@ -3420,7 +3464,7 @@ func (in *NodeDriver) DeepCopyInto(out *NodeDriver) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
out.Spec = in.Spec
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
}
@@ -3481,6 +3525,11 @@ func (in *NodeDriverList) DeepCopyObject() runtime.Object {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NodeDriverSpec) DeepCopyInto(out *NodeDriverSpec) {
*out = *in
if in.WhitelistDomains != nil {
in, out := &in.WhitelistDomains, &out.WhitelistDomains
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}
@@ -4399,6 +4448,22 @@ func (in *PipelineStatus) DeepCopy() *PipelineStatus {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PipelineSystemImages) DeepCopyInto(out *PipelineSystemImages) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineSystemImages.
func (in *PipelineSystemImages) DeepCopy() *PipelineSystemImages {
if in == nil {
return nil
}
out := new(PipelineSystemImages)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PodSecurityPolicyTemplate) DeepCopyInto(out *PodSecurityPolicyTemplate) {
*out = *in

View File

@@ -5,4 +5,4 @@ k8s.io/kubernetes v1.8.3
bitbucket.org/ww/goautoneg a547fc61f48d567d5b4ec6f8aee5573d8efce11d https://github.com/rancher/goautoneg.git
golang.org/x/sync fd80eb99c8f653c847d294a001bdf2a3a6f768f5
github.com/rancher/norman a978cad0e8751968fec4371f9ab6df6d446a389b
github.com/rancher/norman 41c044bb256b54652f7fae51fde7c45cb6c4ccb9