Documentation ¶
Index ¶
- Constants
- func CreateOSBContext(serviceInstance *v1alpha1.ServiceInstance, namespace *corev1.Namespace) map[string]interface{}
- func DeploymentName(serviceInstance *v1alpha1.ServiceInstance) string
- func GetPersistentVolumeClaimName(serviceInstanceName string) string
- func GetPersistentVolumeName(serviceInstanceName string, namespace string) string
- func MakeDeployment(serviceInstance *v1alpha1.ServiceInstance, cfg *config.Config) (*appsv1.Deployment, error)
- func MakeOSBDeprovisionRequest(serviceInstance *v1alpha1.ServiceInstance) *osbclient.DeprovisionRequest
- func MakeOSBLastOperationRequest(serviceInstance *v1alpha1.ServiceInstance, operationKey *string) *osbclient.LastOperationRequest
- func MakeOSBProvisionRequest(serviceInstance *v1alpha1.ServiceInstance, namespace *corev1.Namespace, ...) (*osbclient.ProvisionRequest, error)
- func MakePersistentVolume(serviceInstance *v1alpha1.ServiceInstance, ...) (*corev1.PersistentVolume, error)
- func MakePersistentVolumeClaim(serviceInstance *v1alpha1.ServiceInstance) (*corev1.PersistentVolumeClaim, error)
- func MakeService(serviceInstance *v1alpha1.ServiceInstance) *corev1.Service
- func PodLabels(serviceInstance *v1alpha1.ServiceInstance) map[string]string
- func ServiceName(serviceInstance *v1alpha1.ServiceInstance) string
- func ServiceNameForRouteServiceName(serviceInstanceName string) string
Constants ¶
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 ¶
GetPeristentVolumeClaimName returns the desired name for the PersistentVolumeClaim of the service instance.
func GetPersistentVolumeName ¶
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 ¶
ServiceNameForRouteServiceName returns the canonical service name for the Service that directs requests to the route service.
Types ¶
This section is empty.