resources

package
v2.11.13 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RouteServiceProxyUserPort     = int32(8080)
	RouteServiceProxyUserPortName = "http" // user port name must start with the protocol (http)
)

Variables

This section is empty.

Functions

func CreateOSBContext

func CreateOSBContext(
	serviceInstance *v1alpha1.ServiceInstance,
	namespace *corev1.Namespace,
) map[string]interface{}

CreateOSBContext creates a context object for OSB requests.

https://github.com/openservicebrokerapi/servicebroker/blob/master/profile.md#context-object

func DeploymentName

func DeploymentName(serviceInstance *v1alpha1.ServiceInstance) string

DeploymentName gets the name of a Deployment given the route service instance.

func GetPersistentVolumeClaimName

func GetPersistentVolumeClaimName(serviceInstanceName string) string

GetPeristentVolumeClaimName returns the desired name for the PersistentVolumeClaim of the service instance.

func GetPersistentVolumeName

func GetPersistentVolumeName(serviceInstanceName string, namespace string) string

GetPeristentVolumeName returns the desired name for the PersistentVolume of the service instance.

func MakeDeployment

func MakeDeployment(serviceInstance *v1alpha1.ServiceInstance, cfg *config.Config) (*appsv1.Deployment, error)

MakeDeployment creates a K8s Deployment for a route service proxy.

func MakeOSBDeprovisionRequest

func MakeOSBDeprovisionRequest(serviceInstance *v1alpha1.ServiceInstance) *osbclient.DeprovisionRequest

MakeOSBDeprovisionRequest creates a DeprovisionRequest for OSB backed services.

func MakeOSBLastOperationRequest

func MakeOSBLastOperationRequest(serviceInstance *v1alpha1.ServiceInstance, operationKey *string) *osbclient.LastOperationRequest

MakeOSBLastOperationRequest creates a LastOperationRequest for OSB backed services, used to poll long running operations.

func MakeOSBProvisionRequest

func MakeOSBProvisionRequest(
	serviceInstance *v1alpha1.ServiceInstance,
	namespace *corev1.Namespace,
	paramsSecret *corev1.Secret,
) (*osbclient.ProvisionRequest, error)

MakeOSBProvisionRequest creates a request to provision an OSB resource.

func MakePersistentVolume

func MakePersistentVolume(
	serviceInstance *v1alpha1.ServiceInstance,
	params *v1alpha1.VolumeInstanceParams,
	persistentvolumeclaim *corev1.PersistentVolumeClaim,
) (*corev1.PersistentVolume, error)

MakePersistentVolume constructs a k8s volume for the volume service.

func MakePersistentVolumeClaim

func MakePersistentVolumeClaim(
	serviceInstance *v1alpha1.ServiceInstance,
) (*corev1.PersistentVolumeClaim, error)

MakePersistentVolumeClaim constructs a k8s volume claim for the volume service.

func MakeService

func MakeService(serviceInstance *v1alpha1.ServiceInstance) *corev1.Service

MakeService constructs a K8s service for the route service proxy. The Service is backed by the pod selector matching pods created by the deployment.

func PodLabels

func PodLabels(serviceInstance *v1alpha1.ServiceInstance) map[string]string

PodLabels returns the labels for selecting pods of the route service proxy deployment.

func ServiceName

func ServiceName(serviceInstance *v1alpha1.ServiceInstance) string

ServiceName is the name of the K8s Service for the route service proxy

func ServiceNameForRouteServiceName

func ServiceNameForRouteServiceName(serviceInstanceName string) string

ServiceNameForRouteServiceName returns the canonical service name for the Service that directs requests to the route service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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