Documentation ¶
Index ¶
- Variables
- func AddAPIServerWatch(c controller.Controller) error
- func AddMonitoringWatch(c controller.Controller) error
- func AddNetworkWatch(c controller.Controller) error
- func ContextLoggerForResource(log logr.Logger, obj runtime.Object) logr.Logger
- func GetMonitoringConfig(ctx context.Context, cli client.Client) (*operatorv1.MonitoringConfiguration, error)
- func GetNetworkingPullSecrets(i *operatorv1.Installation, c client.Client) ([]*corev1.Secret, error)
- func IgnoreObject(obj runtime.Object) bool
- func IsAPIServerReady(client client.Client, l logr.Logger) bool
- func ValidateCertPair(client client.Client, certPairSecretName, keyName, certName, ns string) (*corev1.Secret, error)
- func ValidateMonitoringConfig(m *operatorv1.MonitoringConfiguration) error
- type ComponentHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultInstanceKey = client.ObjectKey{Name: "default"}
View Source
var DefaultTSEEInstanceKey = client.ObjectKey{Name: "tigera-secure"}
Functions ¶
func AddAPIServerWatch ¶
func AddAPIServerWatch(c controller.Controller) error
func AddMonitoringWatch ¶
func AddMonitoringWatch(c controller.Controller) error
func AddNetworkWatch ¶
func AddNetworkWatch(c controller.Controller) error
func ContextLoggerForResource ¶
ContextLoggerForResource provides a logger instance with context set for the provided object.
func GetMonitoringConfig ¶
func GetMonitoringConfig(ctx context.Context, cli client.Client) (*operatorv1.MonitoringConfiguration, error)
GetMonitoringConfig returns the default installation instance with defaults populated.
func GetNetworkingPullSecrets ¶
func GetNetworkingPullSecrets(i *operatorv1.Installation, c client.Client) ([]*corev1.Secret, error)
func IgnoreObject ¶
IgnoreObject returns true if the object has been marked as ignored by the user, and returns false otherwise.
func ValidateCertPair ¶
func ValidateCertPair(client client.Client, certPairSecretName, keyName, certName, ns string) (*corev1.Secret, error)
validateCertPair checks if the given secret exists and if so that it contains key and cert fields. If a secret exists then it is returned. If there is an error accessing the secret (except NotFound) or the cert does not have both a key and cert field then an appropriate error is returned. If no secret exists then nil, nil is returned to represent that no cert is valid.
func ValidateMonitoringConfig ¶
func ValidateMonitoringConfig(m *operatorv1.MonitoringConfiguration) error
Types ¶
type ComponentHandler ¶
Click to show internal directories.
Click to hide internal directories.