Documentation ¶
Index ¶
- Constants
- Variables
- func AddToManager(ctx context.Context, mgr manager.Manager) error
- func AddToManagerWithOptions(ctx context.Context, mgr manager.Manager, opts *AddOptions) error
- func NewActuator(mgr manager.Manager, cfg config.Config) extension.Actuator
- func ValidateExtensionSpec(spec *extensionspec.ExtensionSpec) error
- type AddOptions
- type ExtensionState
Constants ¶
View Source
const ( // ResourceNameSeed is name of the managedResource object ResourceNameSeed = "acl-seed" // ChartNameSeed name of the helm chart ChartNameSeed = "seed" // HashAnnotationName name of annotation for triggering the envoyfilter webhook // DEPRECATED: Remove after annotation has been removed from all EnvoyFilters HashAnnotationName = "acl-ext-rule-hash" // ImageName is used for the image vector override. // This is currently not implemented correctly. // TODO implement ImageName = "image-name" )
View Source
const (
// Type is the type of Extension resource.
Type = "acl"
)
Variables ¶
View Source
var ( ErrSpecAction = errors.New("action must either be 'ALLOW' or 'DENY'") ErrSpecRule = errors.New("rule must be present") ErrSpecType = errors.New("type must either be 'direct_remote_ip', 'remote_ip' or 'source_ip'") ErrSpecCIDR = errors.New("CIDRs must not be empty") ErrNoAdvertisedAddresses = errors.New("advertised addresses are not available, likely because cluster creation has not yet completed") )
Error variables for controller pkg
View Source
var ( // DefaultAddOptions are the default AddOptions for AddToManager. DefaultAddOptions = AddOptions{} )
Functions ¶
func AddToManager ¶
AddToManager adds a controller with the default Options to the given Controller Manager.
func AddToManagerWithOptions ¶
AddToManagerWithOptions adds a controller with the given Options to the given manager. The opts.Reconciler is being set with a newly instantiated actuator.
func NewActuator ¶
NewActuator returns an actuator responsible for Extension resources.
func ValidateExtensionSpec ¶
func ValidateExtensionSpec(spec *extensionspec.ExtensionSpec) error
ValidateExtensionSpec checks if the ExtensionSpec exists, and if its action, type and CIDRs are valid.
Types ¶
type AddOptions ¶
type AddOptions struct { // ControllerOptions contains options for the controller. ControllerOptions controller.Options // ExtensionConfig contains configuration for the extension service ExtensionConfig controllerconfig.Config // IgnoreOperationAnnotation specifies whether to ignore the operation annotation or not. IgnoreOperationAnnotation bool }
AddOptions are options to apply when adding the shoot service controller to the manager.
type ExtensionState ¶ added in v1.0.0
type ExtensionState struct {
IstioNamespace *string `json:"istioNamespace"`
}
ExtensionState contains the State of the Extension
Click to show internal directories.
Click to hide internal directories.