Documentation ¶
Overview ¶
Package features sets the feature gates that source-controller supports, and their default states.
Index ¶
Constants ¶
View Source
const ( // OptimizedGitClones decreases resource utilization for GitRepository // reconciliations. // // When enabled, avoids full clone operations by first checking whether // the last revision is still the same at the target repository, // and if that is so, skips the reconciliation. OptimizedGitClones = "OptimizedGitClones" // CacheSecretsAndConfigMaps controls whether secrets and configmaps should be cached. // // When enabled, it will cache both object types, resulting in increased memory usage // and cluster-wide RBAC permissions (list and watch). CacheSecretsAndConfigMaps = "CacheSecretsAndConfigMaps" )
Variables ¶
This section is empty.
Functions ¶
func Disable ¶
func Disable(feature string)
Disable disables the specified feature. If the feature is not present, it's a no-op.
func Enabled ¶
Enabled verifies whether the feature is enabled or not.
This is only a wrapper around the Enabled func in pkg/runtime/features, so callers won't need to import both packages for checking whether a feature is enabled.
func FeatureGates ¶
FeatureGates contains a list of all supported feature gates and their default values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.