Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Type = component.MustNewType(typeStr)
Functions ¶
func MakeClient ¶
MakeClient can take configuration if needed for other types of auth
func MakeOpenShiftQuotaClient ¶
func MakeOpenShiftQuotaClient(apiConf APIConfig) (quotaclientset.Interface, error)
MakeOpenShiftQuotaClient can take configuration if needed for other types of auth and return an OpenShift quota API client
func NewFactory ¶
NewFactory creates a factory for rawk8sevents receiver.
Types ¶
type APIConfig ¶
type APIConfig struct { // How to authenticate to the K8s API server. This can be one of `none` // (for no auth), `serviceAccount` (to use the standard service account // token provided to the agent pod), or `kubeConfig` to use credentials // from `~/.kube/config`. AuthType AuthType `mapstructure:"auth_type"` }
APIConfig contains options relevant to connecting to the K8s API
type AuthType ¶
type AuthType string
AuthType describes the type of authentication to use for the K8s API
const ( // AuthTypeNone means no auth is required AuthTypeNone AuthType = "none" // AuthTypeServiceAccount means to use the built-in service account that // K8s automatically provisions for each pod. AuthTypeServiceAccount AuthType = "serviceAccount" // AuthTypeKubeConfig uses local credentials like those used by kubectl. AuthTypeKubeConfig AuthType = "kubeConfig" // AuthTypeTLS indicates that client TLS auth is desired AuthTypeTLS AuthType = "tls" )
TODO: Add option for TLS once https://go.opentelemetry.io/collector/issues/933 is addressed.
type Config ¶
type Config struct { APIConfig `mapstructure:",squash"` // List of ‘namespaces’ to collect events from. // Empty list means all namespaces Namespaces []string `mapstructure:"namespaces"` // Maximum age of event relative to receiver start time // Events older than StartTime - MaxEventAge will not be collected MaxEventAge time.Duration `mapstructure:"max_event_age"` // ConsumeRetryDelay is the retry delay for recoverable pipeline errors // one frequent source of these kinds of errors is the memory_limiter processor ConsumeRetryDelay time.Duration `mapstructure:"consume_retry_delay"` // ConsumeMaxRetries is the maximum number of retries for recoverable pipeline errors ConsumeMaxRetries uint64 `mapstructure:"consume_max_retries"` }
Config defines configuration for the receiver.
type ListerWatcherFactory ¶
type ListerWatcherFactory func(c cache.Getter, resource string, namespace string, fieldSelector fields.Selector) cache.ListerWatcher
Function type for creating ListerWatcher objects. Used for injecting mocks into k8s informers.
Click to show internal directories.
Click to hide internal directories.