Documentation ¶
Overview ¶
Package configuration implements the reflection logic for configmaps and secrets.
Index ¶
- Constants
- func NewConfigMapReflector(workers uint) manager.Reflector
- func NewNamespacedConfigMapReflector(opts *options.NamespacedOpts) manager.NamespacedReflector
- func NewNamespacedSecretReflector(enableSAReflection bool) func(*options.NamespacedOpts) manager.NamespacedReflector
- func NewSecretReflector(enableSAReflection bool, workers uint) manager.Reflector
- func RemoteConfigMapNamespacedKeyer(namespace string) func(metadata metav1.Object) types.NamespacedName
- type NamespacedConfigMapReflector
- type NamespacedSecretReflector
Constants ¶
const (
// ConfigMapReflectorName is the name associated with the ConfigMap reflector.
ConfigMapReflectorName = "ConfigMap"
)
const (
// SecretReflectorName is the name associated with the Secret reflector.
SecretReflectorName = "Secret"
)
Variables ¶
This section is empty.
Functions ¶
func NewConfigMapReflector ¶
NewConfigMapReflector builds a ConfigMapReflector.
func NewNamespacedConfigMapReflector ¶
func NewNamespacedConfigMapReflector(opts *options.NamespacedOpts) manager.NamespacedReflector
NewNamespacedConfigMapReflector returns a function generating NamespacedConfigMapReflector instances.
func NewNamespacedSecretReflector ¶
func NewNamespacedSecretReflector(enableSAReflection bool) func(*options.NamespacedOpts) manager.NamespacedReflector
NewNamespacedSecretReflector returns a function generating NamespacedSecretReflector instances.
func NewSecretReflector ¶
NewSecretReflector builds a SecretReflector.
func RemoteConfigMapNamespacedKeyer ¶ added in v0.5.0
func RemoteConfigMapNamespacedKeyer(namespace string) func(metadata metav1.Object) types.NamespacedName
RemoteConfigMapNamespacedKeyer returns a keyer associated with the given namespace, which accounts for the root CA configmap name remapping.
Types ¶
type NamespacedConfigMapReflector ¶
type NamespacedConfigMapReflector struct { generic.NamespacedReflector // contains filtered or unexported fields }
NamespacedConfigMapReflector manages the ConfigMap reflection.
func (*NamespacedConfigMapReflector) Handle ¶
func (ncr *NamespacedConfigMapReflector) Handle(ctx context.Context, name string) error
Handle is responsible for reconciling the given object and ensuring it is correctly reflected.
func (*NamespacedConfigMapReflector) RemoteRef ¶ added in v0.5.0
func (ncr *NamespacedConfigMapReflector) RemoteRef(name string) klog.ObjectRef
RemoteRef returns the ObjectRef associated with the remote namespace.
type NamespacedSecretReflector ¶
type NamespacedSecretReflector struct { generic.NamespacedReflector // contains filtered or unexported fields }
NamespacedSecretReflector manages the Secret reflection.