Versions in this module Expand all Collapse all v0 v0.1.21 Jul 31, 2024 Changes in this version + const GPUAttributeVendor + const GPUVendorAMD + const GPUVendorNvidia + const ResourceGPUAMD + const ResourceGPUNvidia + const SettingsKey + const StorageAttributeClass + const StorageAttributeMount + const StorageAttributePersistent + const StorageClassDefault + const SuffixForNodePortServiceName + const TitanManagedLabelName + const TitanManifestServiceLabelName + var ErrSettingsValidation = xerrors.New("settings validation") + func DidNS(did manifest.DeploymentID) string + func NewHostName(ns string, hostName string) string + func ShouldBeIngress(expose *manifest.ServiceExpose) bool + func ValidateSettings(settings Settings) error + type ClusterDeployment struct + Did manifest.DeploymentID + Group *manifest.Group + Sparams ClusterSettings + func (d *ClusterDeployment) ClusterParams() ClusterSettings + func (d *ClusterDeployment) DeploymentID() manifest.DeploymentID + func (d *ClusterDeployment) ManifestGroup() *manifest.Group + type ClusterSettings struct + SchedulerParams []*SchedulerParams + type ContextKey string + type Deployment interface + Create func() (*appsv1.Deployment, error) + Update func(obj *appsv1.Deployment) (*appsv1.Deployment, error) + func NewDeployment(workload Workload) Deployment + type HostnameDirective struct + Hostname string + IngressName string + MaxBodySize uint32 + NextCases []string + NextTimeout uint32 + NextTries uint32 + ReadTimeout uint32 + SendTimeout uint32 + ServiceName string + ServicePort int32 + func BuildHostNameDirective(ns, hostName, serviceName, ingressName string, ...) *HostnameDirective + type IClusterDeployment interface + ClusterParams func() ClusterSettings + DeploymentID func() manifest.DeploymentID + ManifestGroup func() *manifest.Group + type Ingress interface + Create func() (*netv1.Ingress, error) + Update func(obj *netv1.Ingress) (*netv1.Ingress, error) + func BuildIngress(workload Workload, directive *HostnameDirective, tls []netv1.IngressTLS) Ingress + type NS interface + Create func() (*corev1.Namespace, error) + Update func(obj *corev1.Namespace) (*corev1.Namespace, error) + func BuildNS(settings Settings, deployment IClusterDeployment) NS + type NetPol interface + Create func() ([]*netv1.NetworkPolicy, error) + Update func(obj *netv1.NetworkPolicy) (*netv1.NetworkPolicy, error) + func BuildNetPol(settings Settings, deployment IClusterDeployment) NetPol + type SchedulerParams struct + Resources *SchedulerResources + RuntimeClass string + type SchedulerResourceGPU struct + Model string + Vendor string + type SchedulerResources struct + GPU *SchedulerResourceGPU + type Service interface + Any func() bool + Create func() (*corev1.Service, error) + Update func(obj *corev1.Service) (*corev1.Service, error) + func BuildService(workload Workload, requireNodePort bool) Service + type Settings struct + CPUCommitLevel float64 + ClusterPublicHostname string + DeploymentIngressDomain string + DeploymentIngressExposeLBHosts bool + DeploymentIngressStaticHosts bool + DeploymentRuntimeClass string + DeploymentServiceType corev1.ServiceType + DockerImagePullSecretsName string + GPUCommitLevel float64 + MemoryCommitLevel float64 + NetworkPoliciesEnabled bool + StorageCommitLevel float64 + func NewDefaultSettings() Settings + type StatefulSet interface + Create func() (*appsv1.StatefulSet, error) + Update func(obj *appsv1.StatefulSet) (*appsv1.StatefulSet, error) + func BuildStatefulSet(workload Workload) StatefulSet + type Workload struct + func NewWorkload(settings Settings, deployment IClusterDeployment, serviceIdx int) Workload + func (b *Workload) NS() string + func (b *Workload) Name() string + func (b *Workload) Validate() error