Documentation ¶
Index ¶
- Constants
- func SynchronizeOwnedSecret(ctx *Context, secret corev1.Secret, namespace string) error
- func SynchronizeSecret(ctx *Context, secret corev1.Secret) error
- type AnnotationError
- type ClientError
- type Context
- type Controller
- type NamespaceReconciler
- type NoAnnotationError
- type OwnedSecretReconcilier
- type RegistryError
- type SecretReconciler
Constants ¶
View Source
const ( // syncing type annotations NamespaceAllAnnotationKey = "secret.sync.klst.pw/all-namespaces" NamespaceSelectorAnnotationKey = "secret.sync.klst.pw/namespace-selector" // origin annotations (based on the idea of github.com/appscode/kubed) OriginNameLabelsKey = "secret.sync.klst.pw/origin.name" OriginNamespaceLabelsKey = "secret.sync.klst.pw/origin.namespace" )
Variables ¶
This section is empty.
Functions ¶
func SynchronizeOwnedSecret ¶
SynchronizeOwnedSecret duplicates the given secret in the given namespace.
Types ¶
type AnnotationError ¶
type AnnotationError struct {
// contains filtered or unexported fields
}
type ClientError ¶
type ClientError struct {
// contains filtered or unexported fields
}
type Context ¶
type Context struct { gocontext.Context IgnoredNamespaces []string ProtectedLabels []string ProtectedAnnotations []string // contains filtered or unexported fields }
Context contains all required information used by the controller to synchronize secrets, like kubernetes client or controller configuration.
func NewContext ¶
NewContext creates a new context instance.
type Controller ¶
type Controller struct { Context // contains filtered or unexported fields }
func NewController ¶
func NewController(metricsBindAddress, healthProbeBindAddress string, ctx Context) *Controller
func (*Controller) Run ¶
func (c *Controller) Run(stop <-chan struct{})
type NamespaceReconciler ¶
type NamespaceReconciler struct{ *Context }
type NoAnnotationError ¶
type NoAnnotationError struct {
// contains filtered or unexported fields
}
type OwnedSecretReconcilier ¶
type OwnedSecretReconcilier struct{ *Context }
type RegistryError ¶
type RegistryError struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.