Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultMutableFeatureGate is a mutable version of DefaultFeatureGate. // Only top-level commands/options setup should make use of this. DefaultMutableFeatureGate featuregate.MutableFeatureGate = featuregate.NewFeatureGate() // DefaultFeatureGate is a shared global FeatureGate. // Top-level commands/options setup that needs to modify this feature gate should use DefaultMutableFeatureGate. DefaultFeatureGate featuregate.FeatureGate = DefaultMutableFeatureGate )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LabelKeys []string `json:"labelKeys,omitempty"` AnnotationKeys []string `json:"annotationKeys,omitempty"` SubNamespaceLabelKeys []string `json:"subNamespaceLabelKeys,omitempty"` SubNamespaceAnnotationKeys []string `json:"subNamespaceAnnotationKeys,omitempty"` Watches []metav1.GroupVersionKind `json:"watches,omitempty"` PropagateLabelKeyExcludes []string `json:"propagateLabelKeyExcludes,omitempty"` PropagateAnnotationKeyExcludes []string `json:"propagateAnnotationKeyExcludes,omitempty"` NamingPolicies []NamingPolicy `json:"namingPolicies,omitempty"` NamingPolicyRegexps []NamingPolicyRegexp }
Config represents the configuration file of Accurate.
func (*Config) Validate ¶
func (c *Config) Validate(mapper meta.RESTMapper) error
Validate validates the configurations.
func (*Config) ValidateRBAC ¶ added in v1.4.0
func (c *Config) ValidateRBAC(ctx context.Context, client client.Client, mapper meta.RESTMapper) error
ValidateRBAC validates that the manager has RBAC permissions to support configuration
type NamingPolicy ¶ added in v0.3.0
NamingPolicy represents naming policies for Namespaces created from SubNamespaces.
type NamingPolicyRegexp ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.