From 4a33ba02d2b74ad2d0c4202ef55023f77e3799fa Mon Sep 17 00:00:00 2001 From: Murali Paluru Date: Wed, 30 Oct 2019 12:07:16 -0700 Subject: [PATCH] go generate changes --- .../v3/zz_generated_deepcopy.go | 105 ++++++++++++++++-- .../v3/zz_generated_service_reference.go | 2 + .../management/v3/zz_generated_audit_log.go | 12 ++ .../v3/zz_generated_audit_log_config.go | 20 ++++ .../v3/zz_generated_event_rate_limit.go | 12 ++ .../v3/zz_generated_kube_apiservice.go | 6 + 6 files changed, 145 insertions(+), 12 deletions(-) create mode 100644 client/management/v3/zz_generated_audit_log.go create mode 100644 client/management/v3/zz_generated_audit_log_config.go create mode 100644 client/management/v3/zz_generated_event_rate_limit.go diff --git a/apis/management.cattle.io/v3/zz_generated_deepcopy.go b/apis/management.cattle.io/v3/zz_generated_deepcopy.go index f61cec0e..92b20c3d 100644 --- a/apis/management.cattle.io/v3/zz_generated_deepcopy.go +++ b/apis/management.cattle.io/v3/zz_generated_deepcopy.go @@ -2,11 +2,14 @@ package v3 import ( projectcattleiov3 "github.com/rancher/types/apis/project.cattle.io/v3" - v1 "k8s.io/api/core/v1" + corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" runtime "k8s.io/apimachinery/pkg/runtime" version "k8s.io/apimachinery/pkg/version" + apiserverv1alpha1 "k8s.io/apiserver/pkg/apis/apiserver/v1alpha1" + v1 "k8s.io/apiserver/pkg/apis/audit/v1" config "k8s.io/apiserver/pkg/apis/config" + v1alpha1 "k8s.io/kubernetes/plugin/pkg/admission/eventratelimit/apis/eventratelimit/v1alpha1" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -204,6 +207,48 @@ func (in *Answer) DeepCopy() *Answer { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AuditLog) DeepCopyInto(out *AuditLog) { + *out = *in + if in.Configuration != nil { + in, out := &in.Configuration, &out.Configuration + *out = new(AuditLogConfig) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditLog. +func (in *AuditLog) DeepCopy() *AuditLog { + if in == nil { + return nil + } + out := new(AuditLog) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AuditLogConfig) DeepCopyInto(out *AuditLogConfig) { + *out = *in + if in.Policy != nil { + in, out := &in.Policy, &out.Policy + *out = new(v1.Policy) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditLogConfig. +func (in *AuditLogConfig) DeepCopy() *AuditLogConfig { + if in == nil { + return nil + } + out := new(AuditLogConfig) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuthConfig) DeepCopyInto(out *AuthConfig) { *out = *in @@ -1339,7 +1384,7 @@ func (in *ClusterComponentStatus) DeepCopyInto(out *ClusterComponentStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions - *out = make([]v1.ComponentCondition, len(*in)) + *out = make([]corev1.ComponentCondition, len(*in)) copy(*out, *in) } return @@ -2008,14 +2053,14 @@ func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { } if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity - *out = make(v1.ResourceList, len(*in)) + *out = make(corev1.ResourceList, len(*in)) for key, val := range *in { (*out)[key] = val.DeepCopy() } } if in.Allocatable != nil { in, out := &in.Allocatable, &out.Allocatable - *out = make(v1.ResourceList, len(*in)) + *out = make(corev1.ResourceList, len(*in)) for key, val := range *in { (*out)[key] = val.DeepCopy() } @@ -2028,14 +2073,14 @@ func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { } if in.Requested != nil { in, out := &in.Requested, &out.Requested - *out = make(v1.ResourceList, len(*in)) + *out = make(corev1.ResourceList, len(*in)) for key, val := range *in { (*out)[key] = val.DeepCopy() } } if in.Limits != nil { in, out := &in.Limits, &out.Limits - *out = make(v1.ResourceList, len(*in)) + *out = make(corev1.ResourceList, len(*in)) for key, val := range *in { (*out)[key] = val.DeepCopy() } @@ -2962,6 +3007,27 @@ func (in *EtcdBackupStatus) DeepCopy() *EtcdBackupStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EventRateLimit) DeepCopyInto(out *EventRateLimit) { + *out = *in + if in.Configuration != nil { + in, out := &in.Configuration, &out.Configuration + *out = new(v1alpha1.Configuration) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventRateLimit. +func (in *EventRateLimit) DeepCopy() *EventRateLimit { + if in == nil { + return nil + } + out := new(EventRateLimit) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *EventRule) DeepCopyInto(out *EventRule) { *out = *in @@ -4180,6 +4246,21 @@ func (in *KubeAPIService) DeepCopyInto(out *KubeAPIService) { *out = new(SecretsEncryptionConfig) (*in).DeepCopyInto(*out) } + if in.AuditLog != nil { + in, out := &in.AuditLog, &out.AuditLog + *out = new(AuditLog) + (*in).DeepCopyInto(*out) + } + if in.AdmissionConfiguration != nil { + in, out := &in.AdmissionConfiguration, &out.AdmissionConfiguration + *out = new(apiserverv1alpha1.AdmissionConfiguration) + (*in).DeepCopyInto(*out) + } + if in.EventRateLimit != nil { + in, out := &in.EventRateLimit, &out.EventRateLimit + *out = new(EventRateLimit) + (*in).DeepCopyInto(*out) + } return } @@ -5594,7 +5675,7 @@ func (in *NodePoolSpec) DeepCopyInto(out *NodePoolSpec) { } if in.NodeTaints != nil { in, out := &in.NodeTaints, &out.NodeTaints - *out = make([]v1.Taint, len(*in)) + *out = make([]corev1.Taint, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5667,7 +5748,7 @@ func (in *NodeSpec) DeepCopyInto(out *NodeSpec) { in.InternalNodeSpec.DeepCopyInto(&out.InternalNodeSpec) if in.DesiredNodeTaints != nil { in, out := &in.DesiredNodeTaints, &out.DesiredNodeTaints - *out = make([]v1.Taint, len(*in)) + *out = make([]corev1.Taint, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5707,14 +5788,14 @@ func (in *NodeStatus) DeepCopyInto(out *NodeStatus) { in.InternalNodeStatus.DeepCopyInto(&out.InternalNodeStatus) if in.Requested != nil { in, out := &in.Requested, &out.Requested - *out = make(v1.ResourceList, len(*in)) + *out = make(corev1.ResourceList, len(*in)) for key, val := range *in { (*out)[key] = val.DeepCopy() } } if in.Limits != nil { in, out := &in.Limits, &out.Limits - *out = make(v1.ResourceList, len(*in)) + *out = make(corev1.ResourceList, len(*in)) for key, val := range *in { (*out)[key] = val.DeepCopy() } @@ -5745,7 +5826,7 @@ func (in *NodeStatus) DeepCopyInto(out *NodeStatus) { } if in.NodeTaints != nil { in, out := &in.NodeTaints, &out.NodeTaints - *out = make([]v1.Taint, len(*in)) + *out = make([]corev1.Taint, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5851,7 +5932,7 @@ func (in *NodeTemplateSpec) DeepCopyInto(out *NodeTemplateSpec) { *out = *in if in.NodeTaints != nil { in, out := &in.NodeTaints, &out.NodeTaints - *out = make([]v1.Taint, len(*in)) + *out = make([]corev1.Taint, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } diff --git a/client/cluster/v3/zz_generated_service_reference.go b/client/cluster/v3/zz_generated_service_reference.go index 9795642e..1350c93f 100644 --- a/client/cluster/v3/zz_generated_service_reference.go +++ b/client/cluster/v3/zz_generated_service_reference.go @@ -4,9 +4,11 @@ const ( ServiceReferenceType = "serviceReference" ServiceReferenceFieldName = "name" ServiceReferenceFieldNamespace = "namespace" + ServiceReferenceFieldPort = "port" ) type ServiceReference struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"` + Port *int64 `json:"port,omitempty" yaml:"port,omitempty"` } diff --git a/client/management/v3/zz_generated_audit_log.go b/client/management/v3/zz_generated_audit_log.go new file mode 100644 index 00000000..7d605ca8 --- /dev/null +++ b/client/management/v3/zz_generated_audit_log.go @@ -0,0 +1,12 @@ +package client + +const ( + AuditLogType = "auditLog" + AuditLogFieldConfiguration = "configuration" + AuditLogFieldEnabled = "enabled" +) + +type AuditLog struct { + Configuration *AuditLogConfig `json:"configuration,omitempty" yaml:"configuration,omitempty"` + Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"` +} diff --git a/client/management/v3/zz_generated_audit_log_config.go b/client/management/v3/zz_generated_audit_log_config.go new file mode 100644 index 00000000..d1d82897 --- /dev/null +++ b/client/management/v3/zz_generated_audit_log_config.go @@ -0,0 +1,20 @@ +package client + +const ( + AuditLogConfigType = "auditLogConfig" + AuditLogConfigFieldFormat = "format" + AuditLogConfigFieldMaxAge = "maxAge" + AuditLogConfigFieldMaxBackup = "maxBackup" + AuditLogConfigFieldMaxSize = "maxSize" + AuditLogConfigFieldPath = "path" + AuditLogConfigFieldPolicy = "policy" +) + +type AuditLogConfig struct { + Format string `json:"format,omitempty" yaml:"format,omitempty"` + MaxAge int64 `json:"maxAge,omitempty" yaml:"maxAge,omitempty"` + MaxBackup int64 `json:"maxBackup,omitempty" yaml:"maxBackup,omitempty"` + MaxSize int64 `json:"maxSize,omitempty" yaml:"maxSize,omitempty"` + Path string `json:"path,omitempty" yaml:"path,omitempty"` + Policy map[string]interface{} `json:"policy,omitempty" yaml:"policy,omitempty"` +} diff --git a/client/management/v3/zz_generated_event_rate_limit.go b/client/management/v3/zz_generated_event_rate_limit.go new file mode 100644 index 00000000..6ba3b86d --- /dev/null +++ b/client/management/v3/zz_generated_event_rate_limit.go @@ -0,0 +1,12 @@ +package client + +const ( + EventRateLimitType = "eventRateLimit" + EventRateLimitFieldConfiguration = "configuration" + EventRateLimitFieldEnabled = "enabled" +) + +type EventRateLimit struct { + Configuration map[string]interface{} `json:"configuration,omitempty" yaml:"configuration,omitempty"` + Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"` +} diff --git a/client/management/v3/zz_generated_kube_apiservice.go b/client/management/v3/zz_generated_kube_apiservice.go index 8f251fae..903f1870 100644 --- a/client/management/v3/zz_generated_kube_apiservice.go +++ b/client/management/v3/zz_generated_kube_apiservice.go @@ -2,7 +2,10 @@ package client const ( KubeAPIServiceType = "kubeAPIService" + KubeAPIServiceFieldAdmissionConfiguration = "admissionConfiguration" KubeAPIServiceFieldAlwaysPullImages = "alwaysPullImages" + KubeAPIServiceFieldAuditLog = "auditLog" + KubeAPIServiceFieldEventRateLimit = "eventRateLimit" KubeAPIServiceFieldExtraArgs = "extraArgs" KubeAPIServiceFieldExtraBinds = "extraBinds" KubeAPIServiceFieldExtraEnv = "extraEnv" @@ -14,7 +17,10 @@ const ( ) type KubeAPIService struct { + AdmissionConfiguration map[string]interface{} `json:"admissionConfiguration,omitempty" yaml:"admissionConfiguration,omitempty"` AlwaysPullImages bool `json:"alwaysPullImages,omitempty" yaml:"alwaysPullImages,omitempty"` + AuditLog *AuditLog `json:"auditLog,omitempty" yaml:"auditLog,omitempty"` + EventRateLimit *EventRateLimit `json:"eventRateLimit,omitempty" yaml:"eventRateLimit,omitempty"` ExtraArgs map[string]string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"` ExtraBinds []string `json:"extraBinds,omitempty" yaml:"extraBinds,omitempty"` ExtraEnv []string `json:"extraEnv,omitempty" yaml:"extraEnv,omitempty"`