Documentation
¶
Index ¶
- Variables
- func AddToManager(_ context.Context, mgr manager.Manager) error
- func AddToManagerWithOptions(mgr manager.Manager, opts AddOptions) error
- func IngressReady(ingress *corev1.LoadBalancerIngress) bool
- func NewActuator(mgr manager.Manager, bastionConfig *controllerconfig.BastionConfig) bastion.Actuator
- func NewConfigValidator(client client.Client, logger logr.Logger) bastion.ConfigValidator
- type AddOptions
- type Options
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultAddOptions are the default AddOptions for AddToManager. DefaultAddOptions = AddOptions{} )
Functions ¶
func AddToManager ¶
AddToManager adds a controller with the default AddOptions.
func AddToManagerWithOptions ¶
func AddToManagerWithOptions(mgr manager.Manager, opts AddOptions) error
AddToManagerWithOptions adds a controller with the given AddOptions to the given manager. The opts.Reconciler is being set with a newly instantiated actuator.
func IngressReady ¶
func IngressReady(ingress *corev1.LoadBalancerIngress) bool
IngressReady returns true if either an IP or a hostname or both are set.
func NewActuator ¶
func NewActuator(mgr manager.Manager, bastionConfig *controllerconfig.BastionConfig) bastion.Actuator
NewActuator creates a new bastion.Actuator.
func NewConfigValidator ¶
NewConfigValidator creates a new ConfigValidator.
Types ¶
type AddOptions ¶
type AddOptions struct { // Controller are the controller.Options. Controller controller.Options // IgnoreOperationAnnotation specifies whether to ignore the operation annotation or not. IgnoreOperationAnnotation bool // BastionConfig contains config for the Bastion config. BastionConfig controllerconfig.BastionConfig // ExtensionClass defines the extension class this extension is responsible for. ExtensionClass extensionsv1alpha1.ExtensionClass }
AddOptions are options to apply when adding the ironcore bastion controller to the manager.
type Options ¶
Options contains provider-related information required for setting up a bastion instance. This struct combines precomputed values like the bastion instance name with the IDs of pre-existing cloud provider resources, like the nic name, subnet name etc.
func DetermineOptions ¶
func DetermineOptions(bastion *extensionsv1alpha1.Bastion, cluster *controller.Cluster) (*Options, error)
DetermineOptions determines the required information that are required to reconcile a Bastion on ironcore. This function does not create any IaaS resources.