1
0
mirror of https://github.com/rancher/types.git synced 2025-08-27 08:18:24 +00:00

Merge pull request #739 from aiwantaozi/work2

add client key and certificate for logging fluentd
This commit is contained in:
Craig Jellick 2019-07-11 13:30:25 -07:00 committed by GitHub
commit 7aaf17edf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -151,6 +151,10 @@ type SyslogConfig struct {
type FluentForwarderConfig struct {
EnableTLS bool `json:"enableTls,omitempty" norman:"default=false"`
Certificate string `json:"certificate,omitempty"`
ClientCert string `json:"clientCert,omitempty"`
ClientKey string `json:"clientKey,omitempty"`
ClientKeyPass string `json:"clientKeyPass,omitempty"`
SSLVerify bool `json:"sslVerify,omitempty"`
Compress bool `json:"compress,omitempty" norman:"default=true"`
FluentServers []FluentServer `json:"fluentServers,omitempty" norman:"required"`
}

View File

@ -3,14 +3,22 @@ package client
const (
FluentForwarderConfigType = "fluentForwarderConfig"
FluentForwarderConfigFieldCertificate = "certificate"
FluentForwarderConfigFieldClientCert = "clientCert"
FluentForwarderConfigFieldClientKey = "clientKey"
FluentForwarderConfigFieldClientKeyPass = "clientKeyPass"
FluentForwarderConfigFieldCompress = "compress"
FluentForwarderConfigFieldEnableTLS = "enableTls"
FluentForwarderConfigFieldFluentServers = "fluentServers"
FluentForwarderConfigFieldSSLVerify = "sslVerify"
)
type FluentForwarderConfig 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"`
ClientKeyPass string `json:"clientKeyPass,omitempty" yaml:"clientKeyPass,omitempty"`
Compress bool `json:"compress,omitempty" yaml:"compress,omitempty"`
EnableTLS bool `json:"enableTls,omitempty" yaml:"enableTls,omitempty"`
FluentServers []FluentServer `json:"fluentServers,omitempty" yaml:"fluentServers,omitempty"`
SSLVerify bool `json:"sslVerify,omitempty" yaml:"sslVerify,omitempty"`
}