代码拉取完成,页面将自动刷新
package constant
import (
"fmt"
)
const (
AppName = "rancher-logging"
TesterAppName = "rancher-logging-tester"
AppInitVersion = "0.0.1"
systemCatalogName = "system-library"
templateName = "rancher-logging"
)
const (
LoggingNamespace = "cattle-logging"
)
//daemonset, pod, container name
const (
FluentdName = "fluentd"
FluentdHelperName = "fluentd-helper"
LogAggregatorName = "log-aggregator"
FluentdTesterName = "fluentd-test"
FluentdTesterContainerName = "dry-run"
)
//config
const (
LoggingSecretName = "fluentd"
LoggingSSLSecretName = "fluentd-ssl"
LoggingSecretClusterConfigKey = "cluster.conf"
LoggingSecretProjectConfigKey = "project.conf"
)
//target
const (
Elasticsearch = "elasticsearch"
Splunk = "splunk"
Kafka = "kafka"
Syslog = "syslog"
FluentForwarder = "fluentforwarder"
CustomTarget = "customtarget"
)
const (
GoogleKubernetesEngine = "googleKubernetesEngine"
)
//ssl
const (
DefaultCertDir = "/fluentd/etc/config/ssl"
CaFileName = "ca.pem"
ClientCertName = "client-cert.pem"
ClientKeyName = "client-key.pem"
)
const (
ClusterLevel = "cluster"
ProjectLevel = "project"
)
var (
FluentdTesterSelector = map[string]string{"app": "fluentd-tester"}
FluentdSelector = map[string]string{"app": "fluentd"}
LogAggregatorSelector = map[string]string{"app": "log-aggregator"}
)
func SecretDataKeyCa(level, name string) string {
return fmt.Sprintf("%s_%s_%s", level, name, CaFileName)
}
func SecretDataKeyCert(level, name string) string {
return fmt.Sprintf("%s_%s_%s", level, name, ClientCertName)
}
func SecretDataKeyCertKey(level, name string) string {
return fmt.Sprintf("%s_%s_%s", level, name, ClientKeyName)
}
func RancherLoggingTemplateID() string {
return fmt.Sprintf("%s-%s", systemCatalogName, templateName)
}
func RancherLoggingCatalogID(version string) string {
return fmt.Sprintf("catalog://?catalog=%s&template=%s&version=%s", systemCatalogName, templateName, version)
}
func RancherLoggingConfigSecretName() string {
return fmt.Sprintf("%s-%s", AppName, LoggingSecretName)
}
func RancherLoggingSSLSecretName() string {
return fmt.Sprintf("%s-%s", AppName, LoggingSSLSecretName)
}
func GetNamespacePattern(namespace string) string {
return fmt.Sprintf("^%s$", namespace)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。