1
0
mirror of https://github.com/rancher/types.git synced 2025-06-24 12:41:33 +00:00

go generate changes

This commit is contained in:
Murali Paluru 2019-10-30 12:07:16 -07:00 committed by Alena Prokharchyk
parent 75bc3cf3f8
commit 4a33ba02d2
6 changed files with 145 additions and 12 deletions

View File

@ -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])
}

View File

@ -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"`
}

View File

@ -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"`
}

View File

@ -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"`
}

View File

@ -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"`
}

View File

@ -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"`