Documentation ¶
Index ¶
- func GetSGControlPlaneAllowAll(remoteGroupIDSelf, secWorkerGroupID string) []infrav1.SecurityGroupRule
- func GetSGControlPlaneFlannel() []infrav1.SecurityGroupRule
- func GetSGControlPlaneForCOREDNS(remoteGroupIDSelf, secWorkerGroupID string) []infrav1.SecurityGroupRule
- func GetSGControlPlaneForCadvisor(remoteGroupIDSelf, secWorkerGroupID string) []infrav1.SecurityGroupRule
- func GetSGControlPlaneForPrometheus(remoteGroupIDSelf, secWorkerGroupID string) []infrav1.SecurityGroupRule
- func GetSGControlPlaneGeneral(remoteGroupIDSelf, secWorkerGroupID string) []infrav1.SecurityGroupRule
- func GetSGControlPlaneHTTP() []infrav1.SecurityGroupRule
- func GetSGControlPlaneHTTPS() []infrav1.SecurityGroupRule
- func GetSGControlPlaneHTTPSNGINX() []infrav1.SecurityGroupRule
- func GetSGControlPlaneICMP(remoteGroupIDSelf string) []infrav1.SecurityGroupRule
- func GetSGControlPlaneNodePort() []infrav1.SecurityGroupRule
- func GetSGControlPlaneOrWorkIngress() []infrav1.SecurityGroupRule
- func GetSGControlPlaneOrWorkVRRP() []infrav1.SecurityGroupRule
- func GetSGControlPlaneSSH(secBastionGroupID string) []infrav1.SecurityGroupRule
- func GetSGWorkForCOREDNS(remoteGroupIDSelf, secControlPlaneGroupID string) []infrav1.SecurityGroupRule
- func GetSGWorkForCadvisor(remoteGroupIDSelf, secControlPlaneGroupID string) []infrav1.SecurityGroupRule
- func GetSGWorkForPrometheus(remoteGroupIDSelf, secControlPlaneGroupID string) []infrav1.SecurityGroupRule
- func GetSGWorkerAllowAll(remoteGroupIDSelf, secControlPlaneGroupID string) []infrav1.SecurityGroupRule
- func GetSGWorkerFlannel() []infrav1.SecurityGroupRule
- func GetSGWorkerGeneral(remoteGroupIDSelf, secControlPlaneGroupID string) []infrav1.SecurityGroupRule
- func GetSGWorkerICMP(remoteGroupIDSelf string) []infrav1.SecurityGroupRule
- func GetSGWorkerNodePort() []infrav1.SecurityGroupRule
- func GetSGWorkerSSH(secBastionGroupID string) []infrav1.SecurityGroupRule
- type Service
- func (s *Service) AssociateFloatingIP(eventObject runtime.Object, fp *floatingips.FloatingIP, portID string) error
- func (s *Service) CollectPortSecurityGroups(eventObject runtime.Object, portSecurityGroups *[]string, ...) (*[]string, error)
- func (s *Service) DeleteBastionSecurityGroup(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
- func (s *Service) DeleteFloatingIP(eventObject runtime.Object, ip string) error
- func (s *Service) DeleteNetwork(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
- func (s *Service) DeletePort(eventObject runtime.Object, portID string) error
- func (s *Service) DeletePorts(openStackCluster *infrav1.OpenStackCluster) error
- func (s *Service) DeleteRouter(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
- func (s *Service) DeleteSecurityGroups(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
- func (s *Service) DeleteTrunk(eventObject runtime.Object, portID string) error
- func (s *Service) DisassociateFloatingIP(eventObject runtime.Object, ip string) error
- func (s *Service) GarbageCollectErrorInstancesPort(eventObject runtime.Object, instanceName string) error
- func (s *Service) GetFloatingIP(ip string) (*floatingips.FloatingIP, error)
- func (s *Service) GetFloatingIPByPortID(portID string) (*floatingips.FloatingIP, error)
- func (s *Service) GetNetworkIDsByFilter(opts networks.ListOptsBuilder) ([]string, error)
- func (s *Service) GetNetworksByFilter(opts networks.ListOptsBuilder) ([]networks.Network, error)
- func (s *Service) GetOrCreateFloatingIP(eventObject runtime.Object, openStackCluster *infrav1.OpenStackCluster, ...) (*floatingips.FloatingIP, error)
- func (s *Service) GetOrCreatePort(eventObject runtime.Object, clusterName string, portName string, ...) (*ports.Port, error)
- func (s *Service) GetPortFromInstanceIP(instanceID string, ip string) ([]ports.Port, error)
- func (s *Service) GetSecurityGroups(securityGroupParams []infrav1.SecurityGroupParam) ([]string, error)
- func (s *Service) GetSubnetsByFilter(opts subnets.ListOptsBuilder) ([]subnets.Subnet, error)
- func (s *Service) GetTrunkSupport() (bool, error)
- func (s *Service) ReconcileExternalNetwork(openStackCluster *infrav1.OpenStackCluster) error
- func (s *Service) ReconcileNetwork(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
- func (s *Service) ReconcileRouter(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
- func (s *Service) ReconcileSecurityGroups(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
- func (s *Service) ReconcileSubnet(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSGControlPlaneAllowAll ¶
func GetSGControlPlaneAllowAll(remoteGroupIDSelf, secWorkerGroupID string) []infrav1.SecurityGroupRule
Permit all ingress from the cluster security groups.
func GetSGControlPlaneFlannel ¶ added in v0.6.8
func GetSGControlPlaneFlannel() []infrav1.SecurityGroupRule
Permit traffic for flannel.
func GetSGControlPlaneForCOREDNS ¶ added in v0.6.8
func GetSGControlPlaneForCOREDNS(remoteGroupIDSelf, secWorkerGroupID string) []infrav1.SecurityGroupRule
Permit traffic for coredns
func GetSGControlPlaneForCadvisor ¶ added in v0.6.8
func GetSGControlPlaneForCadvisor(remoteGroupIDSelf, secWorkerGroupID string) []infrav1.SecurityGroupRule
Permit traffic for cadvisor
func GetSGControlPlaneForPrometheus ¶ added in v0.6.8
func GetSGControlPlaneForPrometheus(remoteGroupIDSelf, secWorkerGroupID string) []infrav1.SecurityGroupRule
Permit traffic for prometheus
func GetSGControlPlaneGeneral ¶
func GetSGControlPlaneGeneral(remoteGroupIDSelf, secWorkerGroupID string) []infrav1.SecurityGroupRule
func GetSGControlPlaneHTTP ¶ added in v0.6.8
func GetSGControlPlaneHTTP() []infrav1.SecurityGroupRule
Allow all traffic, including from outside the cluster, to access the API from 8080
func GetSGControlPlaneHTTPS ¶
func GetSGControlPlaneHTTPS() []infrav1.SecurityGroupRule
Allow all traffic, including from outside the cluster, to access the API.
func GetSGControlPlaneHTTPSNGINX ¶ added in v0.6.8
func GetSGControlPlaneHTTPSNGINX() []infrav1.SecurityGroupRule
Allow all traffic, including from outside the cluster, to access the API from nginx
func GetSGControlPlaneICMP ¶ added in v0.6.8
func GetSGControlPlaneICMP(remoteGroupIDSelf string) []infrav1.SecurityGroupRule
Allow icmp traffic from control plane.
func GetSGControlPlaneNodePort ¶ added in v0.6.8
func GetSGControlPlaneNodePort() []infrav1.SecurityGroupRule
Allow all traffic, including from outside the cluster, to access node port services.
func GetSGControlPlaneOrWorkIngress ¶ added in v0.6.8
func GetSGControlPlaneOrWorkIngress() []infrav1.SecurityGroupRule
Allow all traffic, including from outside the cluster, to access the ingress API
func GetSGControlPlaneOrWorkVRRP ¶ added in v0.6.8
func GetSGControlPlaneOrWorkVRRP() []infrav1.SecurityGroupRule
Permit traffic for keepalived
func GetSGControlPlaneSSH ¶
func GetSGControlPlaneSSH(secBastionGroupID string) []infrav1.SecurityGroupRule
Permit traffic for ssh control plane.
func GetSGWorkForCOREDNS ¶ added in v0.6.8
func GetSGWorkForCOREDNS(remoteGroupIDSelf, secControlPlaneGroupID string) []infrav1.SecurityGroupRule
func GetSGWorkForCadvisor ¶ added in v0.6.8
func GetSGWorkForCadvisor(remoteGroupIDSelf, secControlPlaneGroupID string) []infrav1.SecurityGroupRule
func GetSGWorkForPrometheus ¶ added in v0.6.8
func GetSGWorkForPrometheus(remoteGroupIDSelf, secControlPlaneGroupID string) []infrav1.SecurityGroupRule
func GetSGWorkerAllowAll ¶
func GetSGWorkerAllowAll(remoteGroupIDSelf, secControlPlaneGroupID string) []infrav1.SecurityGroupRule
Permit all ingress from the cluster security groups.
func GetSGWorkerFlannel ¶ added in v0.6.8
func GetSGWorkerFlannel() []infrav1.SecurityGroupRule
func GetSGWorkerGeneral ¶
func GetSGWorkerGeneral(remoteGroupIDSelf, secControlPlaneGroupID string) []infrav1.SecurityGroupRule
func GetSGWorkerICMP ¶ added in v0.6.8
func GetSGWorkerICMP(remoteGroupIDSelf string) []infrav1.SecurityGroupRule
Allow icmp traffic from worker.
func GetSGWorkerNodePort ¶
func GetSGWorkerNodePort() []infrav1.SecurityGroupRule
Allow all traffic, including from outside the cluster, to access node port services.
func GetSGWorkerSSH ¶
func GetSGWorkerSSH(secBastionGroupID string) []infrav1.SecurityGroupRule
Permit traffic for ssh worker.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service interfaces with the OpenStack Networking API. It will create a network related infrastructure for the cluster, like network, subnet, router, security groups.
func NewService ¶
NewService returns an instance of the networking service.
func NewTestService ¶
NewTestService returns a Service with no initialisation. It should only be used by tests.
func (*Service) AssociateFloatingIP ¶
func (s *Service) AssociateFloatingIP(eventObject runtime.Object, fp *floatingips.FloatingIP, portID string) error
func (*Service) CollectPortSecurityGroups ¶
func (s *Service) CollectPortSecurityGroups(eventObject runtime.Object, portSecurityGroups *[]string, portSecurityGroupFilters []infrav1.SecurityGroupParam) (*[]string, error)
CollectPortSecurityGroups collects distinct securityGroups from port.SecurityGroups and port.SecurityGroupFilter fields.
func (*Service) DeleteBastionSecurityGroup ¶
func (s *Service) DeleteBastionSecurityGroup(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
func (*Service) DeleteFloatingIP ¶
func (*Service) DeleteNetwork ¶
func (s *Service) DeleteNetwork(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
func (*Service) DeletePort ¶
func (*Service) DeletePorts ¶
func (s *Service) DeletePorts(openStackCluster *infrav1.OpenStackCluster) error
func (*Service) DeleteRouter ¶
func (s *Service) DeleteRouter(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
func (*Service) DeleteSecurityGroups ¶
func (s *Service) DeleteSecurityGroups(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
func (*Service) DeleteTrunk ¶
func (*Service) DisassociateFloatingIP ¶
func (*Service) GarbageCollectErrorInstancesPort ¶
func (*Service) GetFloatingIP ¶
func (s *Service) GetFloatingIP(ip string) (*floatingips.FloatingIP, error)
func (*Service) GetFloatingIPByPortID ¶
func (s *Service) GetFloatingIPByPortID(portID string) (*floatingips.FloatingIP, error)
func (*Service) GetNetworkIDsByFilter ¶
func (s *Service) GetNetworkIDsByFilter(opts networks.ListOptsBuilder) ([]string, error)
GetNetworkIDsByFilter retrieves network ids by querying openstack with filters.
func (*Service) GetNetworksByFilter ¶
GetNetworksByFilter retrieves networks by querying openstack with filters.
func (*Service) GetOrCreateFloatingIP ¶
func (s *Service) GetOrCreateFloatingIP(eventObject runtime.Object, openStackCluster *infrav1.OpenStackCluster, clusterName, ip string) (*floatingips.FloatingIP, error)
func (*Service) GetOrCreatePort ¶
func (*Service) GetPortFromInstanceIP ¶
GetPortFromInstanceIP returns at most one port attached to the instance with given ID and with the IP address provided.
func (*Service) GetSecurityGroups ¶
func (s *Service) GetSecurityGroups(securityGroupParams []infrav1.SecurityGroupParam) ([]string, error)
func (*Service) GetSubnetsByFilter ¶
GetSubnetsByFilter gets the id of a subnet by querying openstack with filters.
func (*Service) GetTrunkSupport ¶
func (*Service) ReconcileExternalNetwork ¶
func (s *Service) ReconcileExternalNetwork(openStackCluster *infrav1.OpenStackCluster) error
func (*Service) ReconcileNetwork ¶
func (s *Service) ReconcileNetwork(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
func (*Service) ReconcileRouter ¶
func (s *Service) ReconcileRouter(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
func (*Service) ReconcileSecurityGroups ¶
func (s *Service) ReconcileSecurityGroups(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
ReconcileSecurityGroups reconcile the security groups.
func (*Service) ReconcileSubnet ¶
func (s *Service) ReconcileSubnet(openStackCluster *infrav1.OpenStackCluster, clusterName string) error