Documentation ¶
Index ¶
- type Cluster
- type CustomK8sResource
- type HelmApp
- type JoinNode
- type KubernetesNode
- type MicroK8sAddon
- type Network
- type NodeType
- type ProvisionRequest
- type ProvisionStage
- type Service
- func (k *Service) ClearEvents() int
- func (k *Service) CreateVirtualMachines(provisionRequest Cluster, keyPair ssh.RsaKeyPair) error
- func (k *Service) GetEvents() []event.Event
- func (k *Service) GetKubeConfigFromCluster(clusterDef Cluster, keyPair ssh.RsaKeyPair) (string, error)
- func (k *Service) InstallAdditionalK8sResources(provisionRequest Cluster, keyPair ssh.RsaKeyPair) error
- func (k *Service) InstallAddons(provisionRequest Cluster, keyPair ssh.RsaKeyPair) error
- func (k *Service) InstallCustomHelmApps(cluster Cluster, keyPair ssh.RsaKeyPair) error
- func (k *Service) InstallHelmApps(cluster Cluster, keyPair ssh.RsaKeyPair) error
- func (k *Service) InstallKubernetesOnNodes(cluster Cluster, keyPair ssh.RsaKeyPair) error
- func (k *Service) JoinNodesToCluster(provisionRequest Cluster, keyPair ssh.RsaKeyPair) error
- func (k *Service) SetupEnvironmentOnProxmox() error
- func (k *Service) SetupVmsOs(provisionRequest Cluster, keyPair ssh.RsaKeyPair) error
- func (k *Service) ShutdownVirtualMachines(cluster Cluster) error
- func (k *Service) StartVirtualMachines(cluster Cluster, keyPair ssh.RsaKeyPair) error
- func (k *Service) UpdateVmsOs(provisionRequest Cluster, keyPair ssh.RsaKeyPair) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { NodeUsername string `json:"nodeUsername" yaml:"nodeUsername"` NodePassword string `json:"nodePassword" yaml:"nodePassword"` MicroK8sAddons []MicroK8sAddon `json:"microK8SAddons" yaml:"microK8SAddons"` HelmApps []HelmApp `json:"helmApps" yaml:"helmApps"` CustomHelmApps []HelmApp `json:"customHelmApps" yaml:"customHelmApps"` CustomK8sResources []CustomK8sResource `json:"customK8SResources" yaml:"customK8SResources"` NodeDiskSize uint16 `json:"nodeDiskSize" yaml:"nodeDiskSize"` Nodes []KubernetesNode `json:"nodes" yaml:"nodes"` Network Network `json:"network" yaml:"network"` }
type CustomK8sResource ¶ added in v0.4.0
type HelmApp ¶ added in v0.4.0
type HelmApp struct { ChartName string `json:"chartName" yaml:"chartName"` Repository string `json:"repository" yaml:"repository"` ReleaseName string `json:"releaseName" yaml:"releaseName"` Namespace string `json:"namespace" yaml:"namespace"` Parameters map[string]string `json:"parameters" yaml:"parameters"` AdditionalK8sResources []string `json:"additionalK8SResources" yaml:"additionalK8SResources"` ValueFileContent string `json:"valueFileContent" yaml:"valueFileContent"` ProjectParams map[string]string `json:"projectParams" yaml:"projectParams"` }
type KubernetesNode ¶
type KubernetesNode struct { Name string `json:"name" yaml:"name"` Vmid uint32 `json:"vmid" yaml:"vmid"` Cores uint16 `json:"cores" yaml:"cores"` Memory uint16 `json:"memory" yaml:"memory"` IpAddress string `json:"ipAddress" yaml:"ipAddress"` StoragePool string `json:"storagePool" yaml:"storagePool"` NodeType NodeType `json:"nodeType" yaml:"nodeType"` }
type MicroK8sAddon ¶ added in v0.4.0
type NodeType ¶
type NodeType string
const Master NodeType = "master"
const Worker NodeType = "worker"
type ProvisionRequest ¶
type ProvisionRequest struct { Stages ProvisionStage `json:"stages"` // This declaration is ugly hack - Wails has problem with generating models when are in different packages - to fix later NotUsed Cluster `json:"notUsed"` }
type ProvisionStage ¶
type ProvisionStage struct { CreateVirtualMachines bool `json:"createVirtualMachines"` SetupVirtualMachines bool `json:"setupVirtualMachines"` InstallKubernetes bool `json:"installKubernetes"` JoinNodesToCluster bool `json:"joinNodesToCluster"` InstallAddons bool `json:"installAddons"` InstallHelpApps bool `json:"installHelpApps"` InstallCustomHelmApps bool `json:"installCustomHelmApps"` InstallCustomK8sResources bool `json:"installCustomK8SResources"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewK4PService ¶
func (*Service) ClearEvents ¶
func (*Service) CreateVirtualMachines ¶
func (k *Service) CreateVirtualMachines(provisionRequest Cluster, keyPair ssh.RsaKeyPair) error
func (*Service) GetKubeConfigFromCluster ¶
func (*Service) InstallAdditionalK8sResources ¶ added in v0.4.0
func (k *Service) InstallAdditionalK8sResources(provisionRequest Cluster, keyPair ssh.RsaKeyPair) error
func (*Service) InstallAddons ¶ added in v0.4.0
func (k *Service) InstallAddons(provisionRequest Cluster, keyPair ssh.RsaKeyPair) error
func (*Service) InstallCustomHelmApps ¶ added in v0.4.0
func (k *Service) InstallCustomHelmApps(cluster Cluster, keyPair ssh.RsaKeyPair) error
func (*Service) InstallHelmApps ¶ added in v0.4.0
func (k *Service) InstallHelmApps(cluster Cluster, keyPair ssh.RsaKeyPair) error
func (*Service) InstallKubernetesOnNodes ¶ added in v0.2.0
func (k *Service) InstallKubernetesOnNodes(cluster Cluster, keyPair ssh.RsaKeyPair) error
func (*Service) JoinNodesToCluster ¶
func (k *Service) JoinNodesToCluster(provisionRequest Cluster, keyPair ssh.RsaKeyPair) error
func (*Service) SetupEnvironmentOnProxmox ¶
func (*Service) SetupVmsOs ¶ added in v0.3.0
func (k *Service) SetupVmsOs(provisionRequest Cluster, keyPair ssh.RsaKeyPair) error
func (*Service) ShutdownVirtualMachines ¶
func (*Service) StartVirtualMachines ¶
func (k *Service) StartVirtualMachines(cluster Cluster, keyPair ssh.RsaKeyPair) error
func (*Service) UpdateVmsOs ¶ added in v0.2.0
func (k *Service) UpdateVmsOs(provisionRequest Cluster, keyPair ssh.RsaKeyPair) error
Click to show internal directories.
Click to hide internal directories.