k8s

package
v0.0.0-...-c0458dd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWorkspace

func CreateWorkspace(ctx context.Context, k8sClient client.Client, req models.WorkspaceSettings, c *utils.Config) error

CreateWorkspace creates a new Workspace in the cluster

func DeleteWorkspace

func DeleteWorkspace(ctx context.Context, k8sClient client.Client, payload models.WorkspaceSettings) error

DeleteWorkspace deletes an existing Workspace in the cluster

func GenerateStorageConfig

func GenerateStorageConfig(workspaceName string, c *utils.Config) workspacev1alpha1.StorageSpec

GenerateStorageConfig generates a StorageSpec for a Workspace based on the workspace name

func InitializeManager

func InitializeManager() (manager.Manager, error)

InitializeManager initializes and returns a Kubernetes manager

func ListenForWorkspaceStatusUpdates

func ListenForWorkspaceStatusUpdates(ctx context.Context, mgr manager.Manager, statusUpdates chan models.WorkspaceStatus) error

ListenForWorkspaceStatusUpdates listens for updates to the Workspace CRD

func MapBlockStoresToEFSAccessPoints

func MapBlockStoresToEFSAccessPoints(workspaceName string, c *utils.Config, blockStores []models.BlockStore) []workspacev1alpha1.EFSAccess

MapBlockStoresToEFSAccessPoints maps BlockStores to EFSAccessPoints

func MapObjectStoresToS3Buckets

func MapObjectStoresToS3Buckets(workspaceName string, c *utils.Config, objectStores []models.ObjectStore) []workspacev1alpha1.S3Bucket

MapObjectStoresToS3Buckets maps ObjectStores to S3Buckets

func ProcessWorkspace

func ProcessWorkspace(ctx context.Context, client client.Client, c *utils.Config, payload models.WorkspaceSettings) error

ProcessWorkspace processes a WorkspaceSettings pulsar message payload

func UpdateWorkspace

func UpdateWorkspace(ctx context.Context, k8sClient client.Client, req models.WorkspaceSettings, c *utils.Config) error

UpdateWorkspace updates an existing Workspace in the cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

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