Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions apis/management.cattle.io/v3/logging_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type LoggingTargets struct {
SyslogConfig *SyslogConfig `json:"syslogConfig,omitempty"`
FluentForwarderConfig *FluentForwarderConfig `json:"fluentForwarderConfig,omitempty"`
CustomTargetConfig *CustomTargetConfig `json:"customTargetConfig,omitempty"`
GraylogConfig *GraylogConfig `json:"graylogConfig,omitempty"`
}

type ClusterLoggingSpec struct {
Expand Down Expand Up @@ -177,6 +178,16 @@ type CustomTargetConfig struct {
ClientKey string `json:"clientKey,omitempty"`
}

type GraylogConfig struct {
Endpoint string `json:"endpoint,omitempty" norman:"required"`
Protocol string `json:"protocol,omitempty" norman:"default=udp,type=enum,options=udp|tcp"`
EnableTLS bool `json:"enableTls,omitempty" norman:"default=false"`
Certificate string `json:"certificate,omitempty"`
ClientCert string `json:"clientCert,omitempty"`
ClientKey string `json:"clientKey,omitempty"`
SSLVerify bool `json:"sslVerify,omitempty"`
}

type ClusterTestInput struct {
ClusterName string `json:"clusterId" norman:"required,type=reference[cluster]"`
LoggingTargets
Expand Down
21 changes: 21 additions & 0 deletions apis/management.cattle.io/v3/zz_generated_deepcopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4168,6 +4168,22 @@ func (in *GoogleOauthConfigTestOutput) DeepCopy() *GoogleOauthConfigTestOutput {
return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *GraylogConfig) DeepCopyInto(out *GraylogConfig) {
*out = *in
return
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GraylogConfig.
func (in *GraylogConfig) DeepCopy() *GraylogConfig {
if in == nil {
return nil
}
out := new(GraylogConfig)
in.DeepCopyInto(out)
return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Group) DeepCopyInto(out *Group) {
*out = *in
Expand Down Expand Up @@ -5080,6 +5096,11 @@ func (in *LoggingTargets) DeepCopyInto(out *LoggingTargets) {
*out = new(CustomTargetConfig)
**out = **in
}
if in.GraylogConfig != nil {
in, out := &in.GraylogConfig, &out.GraylogConfig
*out = new(GraylogConfig)
**out = **in
}
return
}

Expand Down
2 changes: 2 additions & 0 deletions client/management/v3/zz_generated_cluster_logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const (
ClusterLoggingFieldEnableJSONParsing = "enableJSONParsing"
ClusterLoggingFieldFailedSpec = "failedSpec"
ClusterLoggingFieldFluentForwarderConfig = "fluentForwarderConfig"
ClusterLoggingFieldGraylogConfig = "graylogConfig"
ClusterLoggingFieldIncludeSystemComponent = "includeSystemComponent"
ClusterLoggingFieldKafkaConfig = "kafkaConfig"
ClusterLoggingFieldLabels = "labels"
Expand Down Expand Up @@ -47,6 +48,7 @@ type ClusterLogging struct {
EnableJSONParsing bool `json:"enableJSONParsing,omitempty" yaml:"enableJSONParsing,omitempty"`
FailedSpec *ClusterLoggingSpec `json:"failedSpec,omitempty" yaml:"failedSpec,omitempty"`
FluentForwarderConfig *FluentForwarderConfig `json:"fluentForwarderConfig,omitempty" yaml:"fluentForwarderConfig,omitempty"`
GraylogConfig *GraylogConfig `json:"graylogConfig,omitempty" yaml:"graylogConfig,omitempty"`
IncludeSystemComponent *bool `json:"includeSystemComponent,omitempty" yaml:"includeSystemComponent,omitempty"`
KafkaConfig *KafkaConfig `json:"kafkaConfig,omitempty" yaml:"kafkaConfig,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions client/management/v3/zz_generated_cluster_logging_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const (
ClusterLoggingSpecFieldElasticsearchConfig = "elasticsearchConfig"
ClusterLoggingSpecFieldEnableJSONParsing = "enableJSONParsing"
ClusterLoggingSpecFieldFluentForwarderConfig = "fluentForwarderConfig"
ClusterLoggingSpecFieldGraylogConfig = "graylogConfig"
ClusterLoggingSpecFieldIncludeSystemComponent = "includeSystemComponent"
ClusterLoggingSpecFieldKafkaConfig = "kafkaConfig"
ClusterLoggingSpecFieldOutputFlushInterval = "outputFlushInterval"
Expand All @@ -23,6 +24,7 @@ type ClusterLoggingSpec struct {
ElasticsearchConfig *ElasticsearchConfig `json:"elasticsearchConfig,omitempty" yaml:"elasticsearchConfig,omitempty"`
EnableJSONParsing bool `json:"enableJSONParsing,omitempty" yaml:"enableJSONParsing,omitempty"`
FluentForwarderConfig *FluentForwarderConfig `json:"fluentForwarderConfig,omitempty" yaml:"fluentForwarderConfig,omitempty"`
GraylogConfig *GraylogConfig `json:"graylogConfig,omitempty" yaml:"graylogConfig,omitempty"`
IncludeSystemComponent *bool `json:"includeSystemComponent,omitempty" yaml:"includeSystemComponent,omitempty"`
KafkaConfig *KafkaConfig `json:"kafkaConfig,omitempty" yaml:"kafkaConfig,omitempty"`
OutputFlushInterval int64 `json:"outputFlushInterval,omitempty" yaml:"outputFlushInterval,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions client/management/v3/zz_generated_cluster_test_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const (
ClusterTestInputFieldCustomTargetConfig = "customTargetConfig"
ClusterTestInputFieldElasticsearchConfig = "elasticsearchConfig"
ClusterTestInputFieldFluentForwarderConfig = "fluentForwarderConfig"
ClusterTestInputFieldGraylogConfig = "graylogConfig"
ClusterTestInputFieldKafkaConfig = "kafkaConfig"
ClusterTestInputFieldOutputTags = "outputTags"
ClusterTestInputFieldSplunkConfig = "splunkConfig"
Expand All @@ -17,6 +18,7 @@ type ClusterTestInput struct {
CustomTargetConfig *CustomTargetConfig `json:"customTargetConfig,omitempty" yaml:"customTargetConfig,omitempty"`
ElasticsearchConfig *ElasticsearchConfig `json:"elasticsearchConfig,omitempty" yaml:"elasticsearchConfig,omitempty"`
FluentForwarderConfig *FluentForwarderConfig `json:"fluentForwarderConfig,omitempty" yaml:"fluentForwarderConfig,omitempty"`
GraylogConfig *GraylogConfig `json:"graylogConfig,omitempty" yaml:"graylogConfig,omitempty"`
KafkaConfig *KafkaConfig `json:"kafkaConfig,omitempty" yaml:"kafkaConfig,omitempty"`
OutputTags map[string]string `json:"outputTags,omitempty" yaml:"outputTags,omitempty"`
SplunkConfig *SplunkConfig `json:"splunkConfig,omitempty" yaml:"splunkConfig,omitempty"`
Expand Down
22 changes: 22 additions & 0 deletions client/management/v3/zz_generated_graylog_config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package client

const (
GraylogConfigType = "graylogConfig"
GraylogConfigFieldCertificate = "certificate"
GraylogConfigFieldClientCert = "clientCert"
GraylogConfigFieldClientKey = "clientKey"
GraylogConfigFieldEnableTLS = "enableTls"
GraylogConfigFieldEndpoint = "endpoint"
GraylogConfigFieldProtocol = "protocol"
GraylogConfigFieldSSLVerify = "sslVerify"
)

type GraylogConfig struct {
Certificate string `json:"certificate,omitempty" yaml:"certificate,omitempty"`
ClientCert string `json:"clientCert,omitempty" yaml:"clientCert,omitempty"`
ClientKey string `json:"clientKey,omitempty" yaml:"clientKey,omitempty"`
EnableTLS bool `json:"enableTls,omitempty" yaml:"enableTls,omitempty"`
Endpoint string `json:"endpoint,omitempty" yaml:"endpoint,omitempty"`
Protocol string `json:"protocol,omitempty" yaml:"protocol,omitempty"`
SSLVerify bool `json:"sslVerify,omitempty" yaml:"sslVerify,omitempty"`
}
2 changes: 2 additions & 0 deletions client/management/v3/zz_generated_project_logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const (
ProjectLoggingFieldElasticsearchConfig = "elasticsearchConfig"
ProjectLoggingFieldEnableJSONParsing = "enableJSONParsing"
ProjectLoggingFieldFluentForwarderConfig = "fluentForwarderConfig"
ProjectLoggingFieldGraylogConfig = "graylogConfig"
ProjectLoggingFieldKafkaConfig = "kafkaConfig"
ProjectLoggingFieldLabels = "labels"
ProjectLoggingFieldName = "name"
Expand Down Expand Up @@ -40,6 +41,7 @@ type ProjectLogging struct {
ElasticsearchConfig *ElasticsearchConfig `json:"elasticsearchConfig,omitempty" yaml:"elasticsearchConfig,omitempty"`
EnableJSONParsing bool `json:"enableJSONParsing,omitempty" yaml:"enableJSONParsing,omitempty"`
FluentForwarderConfig *FluentForwarderConfig `json:"fluentForwarderConfig,omitempty" yaml:"fluentForwarderConfig,omitempty"`
GraylogConfig *GraylogConfig `json:"graylogConfig,omitempty" yaml:"graylogConfig,omitempty"`
KafkaConfig *KafkaConfig `json:"kafkaConfig,omitempty" yaml:"kafkaConfig,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions client/management/v3/zz_generated_project_logging_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const (
ProjectLoggingSpecFieldElasticsearchConfig = "elasticsearchConfig"
ProjectLoggingSpecFieldEnableJSONParsing = "enableJSONParsing"
ProjectLoggingSpecFieldFluentForwarderConfig = "fluentForwarderConfig"
ProjectLoggingSpecFieldGraylogConfig = "graylogConfig"
ProjectLoggingSpecFieldKafkaConfig = "kafkaConfig"
ProjectLoggingSpecFieldOutputFlushInterval = "outputFlushInterval"
ProjectLoggingSpecFieldOutputTags = "outputTags"
Expand All @@ -21,6 +22,7 @@ type ProjectLoggingSpec struct {
ElasticsearchConfig *ElasticsearchConfig `json:"elasticsearchConfig,omitempty" yaml:"elasticsearchConfig,omitempty"`
EnableJSONParsing bool `json:"enableJSONParsing,omitempty" yaml:"enableJSONParsing,omitempty"`
FluentForwarderConfig *FluentForwarderConfig `json:"fluentForwarderConfig,omitempty" yaml:"fluentForwarderConfig,omitempty"`
GraylogConfig *GraylogConfig `json:"graylogConfig,omitempty" yaml:"graylogConfig,omitempty"`
KafkaConfig *KafkaConfig `json:"kafkaConfig,omitempty" yaml:"kafkaConfig,omitempty"`
OutputFlushInterval int64 `json:"outputFlushInterval,omitempty" yaml:"outputFlushInterval,omitempty"`
OutputTags map[string]string `json:"outputTags,omitempty" yaml:"outputTags,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions client/management/v3/zz_generated_project_test_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const (
ProjectTestInputFieldCustomTargetConfig = "customTargetConfig"
ProjectTestInputFieldElasticsearchConfig = "elasticsearchConfig"
ProjectTestInputFieldFluentForwarderConfig = "fluentForwarderConfig"
ProjectTestInputFieldGraylogConfig = "graylogConfig"
ProjectTestInputFieldKafkaConfig = "kafkaConfig"
ProjectTestInputFieldOutputTags = "outputTags"
ProjectTestInputFieldProjectName = "projectId"
Expand All @@ -16,6 +17,7 @@ type ProjectTestInput struct {
CustomTargetConfig *CustomTargetConfig `json:"customTargetConfig,omitempty" yaml:"customTargetConfig,omitempty"`
ElasticsearchConfig *ElasticsearchConfig `json:"elasticsearchConfig,omitempty" yaml:"elasticsearchConfig,omitempty"`
FluentForwarderConfig *FluentForwarderConfig `json:"fluentForwarderConfig,omitempty" yaml:"fluentForwarderConfig,omitempty"`
GraylogConfig *GraylogConfig `json:"graylogConfig,omitempty" yaml:"graylogConfig,omitempty"`
KafkaConfig *KafkaConfig `json:"kafkaConfig,omitempty" yaml:"kafkaConfig,omitempty"`
OutputTags map[string]string `json:"outputTags,omitempty" yaml:"outputTags,omitempty"`
ProjectName string `json:"projectId,omitempty" yaml:"projectId,omitempty"`
Expand Down