Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultOperatorNamespace = "node-observability-operator" DefaultAgentImage = "quay.io/node-observability-operator/node-observability-agent:latest" DefaultMetricsAddr = ":8080" DefaultEnableWebhook = true DefaultHealthProbeAddr = ":8081" DefaultEnableLeaderElection = false // #nosec G101: Potential hardcoded credentials; path to token, not the content itself DefaultTokenFile = "/var/run/secrets/kubernetes.io/serviceaccount/token" DefaultCACertFile = "/var/run/secrets/openshift.io/certs/service-ca.crt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// OperatorNamespace is the namespace that the operator is deployed in.
OperatorNamespace string
// The node observability agent container image to use.
AgentImage string
// MetricsBindAddress is the TCP address that the operator should bind to for
// serving prometheus metrics. It can be set to "0" to disable the metrics serving.
MetricsBindAddress string
// HealthProbeBindAddress is the TCP address that the operator should bind to for
// serving health probes (readiness and liveness).
HealthProbeBindAddress string
// The path of the service account token.
TokenFile string
// The path of the CA cert of the Agents' signing key pair.
CaCertFile string
// EnableWebhook is the flag indicating if the webhook server should be started.
EnableWebhook bool
// EnableLeaderElection enables the controller runtime's leader election.
EnableLeaderElection bool
}
Config is configuration of the operator.
Click to show internal directories.
Click to hide internal directories.