Documentation
¶
Index ¶
- Variables
- func AutoMountConfigMapVolumeName(volumeName string) string
- func AutoMountPVCVolumeName(pvcName string) string
- func AutoMountProjectedVolumeName(mountPath string) string
- func AutoMountSecretVolumeName(volumeName string) string
- func DeploymentName(workspaceId string) string
- func DevWorkspaceRoutingName(workspaceId string) string
- func EndpointHostname(routingSuffix, workspaceId, endpointName string, endpointPort int) string
- func EndpointName(endpointName string) string
- func EndpointPath(endpointName string) string
- func GetWorkspacePodAffinity(config *controllerv1alpha1.WorkspaceConfig) *corev1.Affinity
- func GetWorkspacePodAffinityWithNodeAffinity(config *controllerv1alpha1.WorkspaceConfig, nodeAffinity *corev1.NodeAffinity) *corev1.Affinity
- func MetadataConfigMapName(workspaceId string) string
- func NetworkPolicyName(workspaceId string) string
- func OldWorkspaceRoleName() stringdeprecated
- func OldWorkspaceRolebindingName() stringdeprecated
- func PVCCleanupJobName(workspaceId string) string
- func PerWorkspacePVCName(workspaceId string) string
- func PortName(endpoint dw.Endpoint) string
- func RegistryImageBuilderRoleName() string
- func RegistryImagePullerRoleName() string
- func RegistryImagePullerRolebindingName(namespace string) string
- func RouteName(workspaceId, endpointName string) string
- func ServiceAccountLabels(workspace *DevWorkspaceWithConfig) map[string]string
- func ServiceAccountName(workspace *DevWorkspaceWithConfig) string
- func ServiceAccountTokenProjectionName(mountPath string) string
- func ServiceName(workspaceId string) string
- func ServingCertVolumeName(serviceName string) string
- func WorkspaceHostname(routingSuffix, workspaceId string) string
- func WorkspaceRoleName() string
- func WorkspaceRolebindingName() string
- func WorkspaceSCCRoleName(sccName string) string
- func WorkspaceSCCRolebindingName(sccName string) string
- type DevWorkspaceWithConfig
Constants ¶
This section is empty.
Variables ¶
var NonAlphaNumRegexp = regexp.MustCompile(`[^a-z0-9]+`)
Functions ¶
func AutoMountConfigMapVolumeName ¶ added in v0.8.0
func AutoMountPVCVolumeName ¶ added in v0.9.0
func AutoMountProjectedVolumeName ¶ added in v0.20.0
func AutoMountSecretVolumeName ¶ added in v0.8.0
func DeploymentName ¶
func DevWorkspaceRoutingName ¶ added in v0.10.0
func EndpointHostname ¶
func EndpointName ¶
func EndpointPath ¶
func GetWorkspacePodAffinity ¶ added in v1.1.0
func GetWorkspacePodAffinity(config *controllerv1alpha1.WorkspaceConfig) *corev1.Affinity
GetWorkspacePodAffinity returns the pod affinity to apply to pods created for a DevWorkspace, combining the podAffinity and podAntiAffinity rules configured on the workspace configuration. Returns nil if neither is configured, so that no affinity is set on the pod. The returned affinity never sets nodeAffinity: node affinity is computed by the operator (e.g. to target the node a PVC is attached to) and must not be overridden by configuration.
func GetWorkspacePodAffinityWithNodeAffinity ¶ added in v1.1.0
func GetWorkspacePodAffinityWithNodeAffinity(config *controllerv1alpha1.WorkspaceConfig, nodeAffinity *corev1.NodeAffinity) *corev1.Affinity
GetWorkspacePodAffinityWithNodeAffinity returns the pod affinity to apply to pods created for a DevWorkspace, combining the podAffinity and podAntiAffinity rules configured on the workspace configuration with the operator-computed nodeAffinity (e.g. to target the node a PVC is attached to)
func MetadataConfigMapName ¶ added in v0.2.0
func NetworkPolicyName ¶ added in v1.0.0
func OldWorkspaceRoleName
deprecated
added in
v0.18.0
func OldWorkspaceRoleName() string
OldWorkspaceRoleName returns the name used for the workspace serviceaccount role
Deprecated: use WorkspaceRoleName() instead. TODO: remove for DevWorkspace Operator v0.19
func OldWorkspaceRolebindingName
deprecated
added in
v0.18.0
func OldWorkspaceRolebindingName() string
OldWorkspaceRolebindingName returns the name used for the workspace serviceaccount rolebinding
Deprecated: use WorkspaceRoleBindingName() instead. TODO: remove for DevWorkspace Operator v0.19
func PVCCleanupJobName ¶
func PerWorkspacePVCName ¶ added in v0.15.0
func RegistryImageBuilderRoleName ¶ added in v0.40.0
func RegistryImageBuilderRoleName() string
func RegistryImagePullerRoleName ¶ added in v0.40.0
func RegistryImagePullerRoleName() string
func RegistryImagePullerRolebindingName ¶ added in v0.40.0
func ServiceAccountLabels ¶ added in v0.17.0
func ServiceAccountLabels(workspace *DevWorkspaceWithConfig) map[string]string
func ServiceAccountName ¶
func ServiceAccountName(workspace *DevWorkspaceWithConfig) string
func ServiceAccountTokenProjectionName ¶ added in v0.20.0
func ServiceName ¶
func ServingCertVolumeName ¶
func WorkspaceHostname ¶
WorkspaceHostname evaluates a single hostname for a workspace, and should be used for routing when endpoints are distinguished by path rules
func WorkspaceRoleName ¶ added in v0.11.0
func WorkspaceRoleName() string
func WorkspaceRolebindingName ¶ added in v0.11.0
func WorkspaceRolebindingName() string
func WorkspaceSCCRoleName ¶ added in v0.18.0
func WorkspaceSCCRolebindingName ¶ added in v0.18.0
Types ¶
type DevWorkspaceWithConfig ¶ added in v0.16.0
type DevWorkspaceWithConfig struct {
*dw.DevWorkspace `json:",inline"`
Config *controllerv1alpha1.OperatorConfiguration `json:"resolvedConfig"`
}