mirror of
https://github.com/rancher/types.git
synced 2025-08-31 21:00:16 +00:00
go generate changes
This commit is contained in:
committed by
Alena Prokharchyk
parent
75bc3cf3f8
commit
4a33ba02d2
@@ -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"`
|
||||
}
|
||||
|
12
client/management/v3/zz_generated_audit_log.go
Normal file
12
client/management/v3/zz_generated_audit_log.go
Normal 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"`
|
||||
}
|
20
client/management/v3/zz_generated_audit_log_config.go
Normal file
20
client/management/v3/zz_generated_audit_log_config.go
Normal 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"`
|
||||
}
|
12
client/management/v3/zz_generated_event_rate_limit.go
Normal file
12
client/management/v3/zz_generated_event_rate_limit.go
Normal 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"`
|
||||
}
|
@@ -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"`
|
||||
|
Reference in New Issue
Block a user