Documentation
¶
Index ¶
- Variables
- func AddToManager(_ context.Context, mgr manager.Manager) error
- func AddToManagerWithOptions(mgr manager.Manager, opts AddOptions) error
- func EgressAllowSSHToWorker(opts Options, secGroupID string, remoteGroupID string) rules.CreateOpts
- func GetIPs(s servers.Server, opts Options) (string, string, error)
- func IngressAllowSSH(opts Options, etherType rules.RuleEtherType, ...) rules.CreateOpts
- func IngressReady(ingress *corev1.LoadBalancerIngress) bool
- func Retry(maxRetries int, delay time.Duration, log logr.Logger, fn func() error) error
- type AddOptions
- type BaseOptions
- type IngressPermission
- 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 Options.
func AddToManagerWithOptions ¶
func AddToManagerWithOptions(mgr manager.Manager, opts AddOptions) error
AddToManagerWithOptions adds a controller with the given Options to the given manager. The opts.Reconciler is being set with a newly instantiated actuator.
func EgressAllowSSHToWorker ¶
func EgressAllowSSHToWorker(opts Options, secGroupID string, remoteGroupID string) rules.CreateOpts
EgressAllowSSHToWorker egress allow ssh to worker
func GetIPs ¶
GetIPs returns the first found private and public IPs for the given server and options.
func IngressAllowSSH ¶
func IngressAllowSSH(opts Options, etherType rules.RuleEtherType, secGroupID, cidr, remoteGroupID string) rules.CreateOpts
IngressAllowSSH ingress allow ssh
func IngressReady ¶
func IngressReady(ingress *corev1.LoadBalancerIngress) bool
IngressReady returns true if either an IP or a hostname or both are set.
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.
// Deprecated: Configuring the bastion will be done via CloudProfile in future
BastionConfig controllerconfig.BastionConfig
// ExtensionClass defines the extension class this extension is responsible for.
ExtensionClass extensionsv1alpha1.ExtensionClass
}
AddOptions are Options to apply when adding the Openstack bastion controller to the manager.
type BaseOptions ¶ added in v1.49.0
type BaseOptions struct {
BastionInstanceName string
SecurityGroup string
SecretReference corev1.SecretReference
Logr logr.Logger
}
BaseOptions contain the information needed for deleting a Bastion on Azure.
func NewBaseOpts ¶ added in v1.49.0
func NewBaseOpts(bastion *extensionsv1alpha1.Bastion, cluster *controller.Cluster, log logr.Logger) (BaseOptions, error)
NewBaseOpts determines base opts that are required for creating and deleting a Bastion.
type IngressPermission ¶
type IngressPermission struct {
// EtherType describes the rules.RuleEtherType of the CIDR.
EtherType rules.RuleEtherType
// CIDR holds the IPv4 or IPv6 range, depending on EtherType.
CIDR string
}
IngressPermission hold the IPv4 and IPv6 ranges that should be allowed to access the bastion.
type Options ¶
type Options struct {
Region string
ShootName string
ImageID string
MachineType string
UserData []byte
// needed for creation and deletion
BaseOptions
}
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 VPC ID, subnet ID etc.
func NewOpts ¶ added in v1.49.0
func NewOpts(bastion *extensionsv1alpha1.Bastion, cluster *controller.Cluster, log logr.Logger) (Options, error)
NewOpts determines the information that is required to reconcile a Bastion.