Documentation ¶
Index ¶
- Constants
- Variables
- func AddToManager(mgr manager.Manager) error
- func AddToManagerWithOptions(mgr manager.Manager, opts AddOptions) error
- func DiskResourceName(baseName string) string
- func IngressReady(ingress *corev1.LoadBalancerIngress) bool
- func NSGEgressAllowOnlyResourceName(baseName string) string
- func NSGEgressDenyAllResourceName(baseName string) string
- func NSGIngressAllowSSHResourceNameIPv4(baseName string) string
- func NSGIngressAllowSSHResourceNameIPv6(baseName string) string
- func NSGName(baseName string) string
- func NicResourceName(baseName string) string
- type AddOptions
- type Options
Constants ¶
const (
// SSHPort is the default SSH port.
SSHPort = "22"
)
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 DiskResourceName ¶
DiskResourceName is Disk resource name
func IngressReady ¶
func IngressReady(ingress *corev1.LoadBalancerIngress) bool
IngressReady returns true if either an IP or a hostname or both are set.
func NSGEgressAllowOnlyResourceName ¶
NSGEgressAllowOnlyResourceName is network security group egress allow only rule name
func NSGEgressDenyAllResourceName ¶
NSGEgressDenyAllResourceName is network security group egress deny all rule name
func NSGIngressAllowSSHResourceNameIPv4 ¶
NSGIngressAllowSSHResourceNameIPv4 is network security group ingress allow ssh resource name
func NSGIngressAllowSSHResourceNameIPv6 ¶
NSGIngressAllowSSHResourceNameIPv6 is network security group ingress allow ssh resource name
func NicResourceName ¶
NicResourceName is Nic resource name
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 }
AddOptions are Options to apply when adding the Azure bastion controller to the manager.
type Options ¶
type Options struct { BastionInstanceName string BastionPublicIPName string PrivateIPAddressV4 string PrivateIPAddressV6 string ResourceGroupName string SecurityGroupName string Location string NicName string NicID string DiskName string Subnetwork string VirtualNetwork string SecretReference corev1.SecretReference WorkersCIDR string CIDRs []string Tags map[string]*string }
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 information that are required to reconcile a Bastion on Azure. This function does not create any IaaS resources.