Documentation ¶
Index ¶
- Constants
- Variables
- func AppendLeaseLabels(lid mtypes.LeaseID, labels map[string]string) map[string]string
- func LidNS(lid mtypes.LeaseID) string
- func ValidateSettings(settings Settings) error
- type ContextKey
- type Deployment
- type Manifest
- type NS
- type NetPol
- type PspRestricted
- type Service
- type Settings
- type StatefulSet
Constants ¶
View Source
const ( AkashManagedLabelName = "akash.network" AkashManifestServiceLabelName = "akash.network/manifest-service" AkashNetworkStorageClasses = "akash.network/storageclasses" AkashLeaseOwnerLabelName = "akash.network/lease.id.owner" AkashLeaseDSeqLabelName = "akash.network/lease.id.dseq" AkashLeaseGSeqLabelName = "akash.network/lease.id.gseq" AkashLeaseOSeqLabelName = "akash.network/lease.id.oseq" AkashLeaseProviderLabelName = "akash.network/lease.id.provider" )
View Source
const SettingsKey = ContextKey("kube-client-settings")
View Source
const SuffixForNodePortServiceName = "-np"
Variables ¶
View Source
var ErrSettingsValidation = errors.New("settings validation")
Functions ¶
func AppendLeaseLabels ¶
func ValidateSettings ¶
Types ¶
type ContextKey ¶
type ContextKey string
type Deployment ¶
type Deployment interface { Create() (*appsv1.Deployment, error) Update(obj *appsv1.Deployment) (*appsv1.Deployment, error) // contains filtered or unexported methods }
type Manifest ¶
type NS ¶
type NetPol ¶
type NetPol interface { Create() ([]*netv1.NetworkPolicy, error) Update(obj *netv1.NetworkPolicy) (*netv1.NetworkPolicy, error) // contains filtered or unexported methods }
type PspRestricted ¶
type PspRestricted interface { Name() string Create() (*v1beta1.PodSecurityPolicy, error) Update(obj *v1beta1.PodSecurityPolicy) (*v1beta1.PodSecurityPolicy, error) // contains filtered or unexported methods }
type Service ¶
type Settings ¶
type Settings struct { // gcp: NodePort // others: ClusterIP DeploymentServiceType corev1.ServiceType // gcp: false // others: true DeploymentIngressStaticHosts bool // Ingress domain to map deployments to DeploymentIngressDomain string // Return load balancer host in lease status command ? // gcp: true // others: optional DeploymentIngressExposeLBHosts bool // Global hostname for arbitrary ports ClusterPublicHostname string // NetworkPoliciesEnabled determines if NetworkPolicies should be installed. NetworkPoliciesEnabled bool CPUCommitLevel float64 MemoryCommitLevel float64 StorageCommitLevel float64 DeploymentRuntimeClass string // Name of the image pull secret to use in pod spec DockerImagePullSecretsName string }
Settings configures k8s object generation such that it is customized to the cluster environment that is being used. For instance, GCP requires a different service type than minikube.
func NewDefaultSettings ¶
func NewDefaultSettings() Settings
type StatefulSet ¶
type StatefulSet interface { Create() (*appsv1.StatefulSet, error) Update(obj *appsv1.StatefulSet) (*appsv1.StatefulSet, error) // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.