endpoint

package
v0.0.0-...-23d2596 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExposeEndpoints

func ExposeEndpoints(
	ctx context.Context,
	h *helper.Helper,
	serviceName string,
	endpointSelector map[string]string,
	endpoints map[Endpoint]Data,
	timeout time.Duration,
) (map[string]string, ctrl.Result, error)

ExposeEndpoints - creates services, routes and returns a map of created openstack endpoint

Types

type Data

type Data struct {
	// Used in k8s service definition
	Port int32
	// An optional path suffix to append to route hostname when forming Keystone endpoint URLs
	Path string
	// details for metallb service generation
	MetalLB *MetalLBData
}

Data - information for generation of K8S services and Keystone endpoint URLs

type Endpoint

type Endpoint string

Endpoint - typedef to enumerate Endpoint verbs

const (
	// EndpointAdmin - admin endpoint
	EndpointAdmin Endpoint = "admin"
	// EndpointInternal - internal endpoint
	EndpointInternal Endpoint = "internal"
	// EndpointPublic - public endpoint
	EndpointPublic Endpoint = "public"
)

type MetalLBData

type MetalLBData struct {
	// Name of the metallb IpAddressPool
	IPAddressPool string
	// use shared IP for the service
	SharedIP bool
	// sharing key which gets set as the annotation on the LoadBalancer service.
	// Services which share the same VIP must have the same SharedIPKey. Gets default to the IPAddressPool if
	// SharedIP is true, but no SharedIPKey set.
	SharedIPKey string
	// if set request these IPs via MetalLBLoadBalancerIPs, using a list for dual stack (ipv4/ipv6)
	LoadBalancerIPs []string
}

MetalLBData - information specific to creating the MetalLB service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL