Documentation ¶
Index ¶
- Constants
- type Builder
- func (b *Builder) Build(ctx context.Context) (manager.Manager, error)
- func (b *Builder) WithAPISecret(apiSecret client.ObjectKey) *Builder
- func (b *Builder) WithAtlasDomain(domain string) *Builder
- func (b *Builder) WithAtlasProvider(provider atlas.Provider) *Builder
- func (b *Builder) WithConfig(config *rest.Config) *Builder
- func (b *Builder) WithDeletionProtection(deletionProtection bool) *Builder
- func (b *Builder) WithFeatureFlags(featureFlags *featureflags.FeatureFlags) *Builder
- func (b *Builder) WithIndependentSyncPeriod(period time.Duration) *Builder
- func (b *Builder) WithLeaderElection(enable bool) *Builder
- func (b *Builder) WithLogger(logger *zap.Logger) *Builder
- func (b *Builder) WithMetricAddress(address string) *Builder
- func (b *Builder) WithNamespaces(namespaces ...string) *Builder
- func (b *Builder) WithPredicates(predicates []predicate.Predicate) *Builder
- func (b *Builder) WithProbeAddress(address string) *Builder
- func (b *Builder) WithSkipNameValidation(skip bool) *Builder
- func (b *Builder) WithSyncPeriod(period time.Duration) *Builder
- type ManagerProvider
- type ManagerProviderFunc
Constants ¶
View Source
const ( DefaultAtlasDomain = "https://cloud.mongodb.com/" DefaultSyncPeriod = 3 * time.Hour DefaultIndependentSyncPeriod = 15 * time.Minute DefaultLeaderElectionID = "06d035fb.mongodb.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder(provider ManagerProvider, scheme *runtime.Scheme, minimumIndependentSyncPeriod time.Duration) *Builder
NewBuilder return a new Builder to construct operator controllers
func (*Builder) WithAPISecret ¶
func (*Builder) WithAtlasDomain ¶
func (*Builder) WithAtlasProvider ¶
func (*Builder) WithDeletionProtection ¶
func (*Builder) WithFeatureFlags ¶
func (b *Builder) WithFeatureFlags(featureFlags *featureflags.FeatureFlags) *Builder
func (*Builder) WithIndependentSyncPeriod ¶ added in v2.5.0
func (*Builder) WithLeaderElection ¶
func (*Builder) WithMetricAddress ¶
func (*Builder) WithNamespaces ¶
func (*Builder) WithPredicates ¶
func (*Builder) WithProbeAddress ¶
func (*Builder) WithSkipNameValidation ¶ added in v2.5.0
WithSkipNameValidation skips name validation in controller-runtime to prevent duplicate controller names.
Note: use this in tests only, setting this to true in a production setup will cause faulty behavior.
type ManagerProvider ¶
Click to show internal directories.
Click to hide internal directories.