Documentation ¶
Index ¶
- Constants
- func AddHelmCharts(ApplicationConfiguration *ConfigurationSpecs)
- func ApplyFile(fileName, namespace string, cluster *Cluster)
- func ApplyIPerfServiceExportManifest(ApplicationConfiguration *ConfigurationSpecs)
- func ApplyKubectlManifest(fileName, namespace string, cluster *Cluster)
- func ApplySliceConfiguration(ApplicationConfiguration *ConfigurationSpecs)
- func CreateKindClusters(ApplicationConfiguration *ConfigurationSpecs)
- func CreateKubeConfig()
- func CreateKubeSliceProject(ApplicationConfiguration *ConfigurationSpecs, cliOptions *CliOptionsStruct)
- func CreateServiceExportConfig(namespace string, controllerCluster *Cluster, filename string)
- func CreateSliceConfig(namespace string, controllerCluster *Cluster, filename string)
- func DeleteKindClusters(ApplicationConfiguration *ConfigurationSpecs)
- func DeleteKubeSliceCluster(clusterName string, namespace string, controllerCluster *Cluster)
- func DeleteKubeSliceDirectory()
- func DeleteKubeSliceProject(projectName string, namespace string, controllerCluster *Cluster)
- func DeleteKubectlResources(resourceType string, resourceName string, namespace string, cluster *Cluster)
- func DeleteServiceExportConfig(serviceExportConfigName string, namespace string, controllerCluster *Cluster)
- func DeleteSliceConfig(sliceConfigName string, namespace string, controllerCluster *Cluster)
- func DescribeKubeSliceCluster(clusterName string, namespace string, controllerCluster *Cluster)
- func DescribeKubeSliceProject(projectName string, namespace string, controllerCluster *Cluster)
- func DescribeKubectlResources(resourceType string, resourceName string, namespace string, cluster *Cluster)
- func DescribeServiceExportConfig(serviceExportConfigName string, namespace string, controllerCluster *Cluster)
- func DescribeSliceConfig(sliceConfigName string, namespace string, controllerCluster *Cluster)
- func EditKubeSliceCluster(clusterName string, namespace string, controllerCluster *Cluster)
- func EditKubeSliceProject(projectName string, namespace string, controllerCluster *Cluster)
- func EditKubectlResources(resourceType string, resourceName string, namespace string, cluster *Cluster)
- func EditServiceExportConfig(serviceExportConfigName string, namespace string, controllerCluster *Cluster)
- func EditSliceConfig(sliceConfigName string, namespace string, controllerCluster *Cluster)
- func GatherNetworkInformation(ApplicationConfiguration *ConfigurationSpecs)
- func GenerateIPerfManifests()
- func GenerateIPerfServiceExportManifest(ApplicationConfiguration *ConfigurationSpecs)
- func GenerateKindConfiguration(ApplicationConfiguration *ConfigurationSpecs)
- func GenerateKubeSliceDirectory()
- func GenerateSliceConfiguration(ApplicationConfiguration *ConfigurationSpecs, worker []string, ...)
- func GetKubeSliceCluster(clusterName string, namespace string, controllerCluster *Cluster, ...)
- func GetKubeSliceProject(projectName string, namespace string, controllerCluster *Cluster)
- func GetKubectlResources(resourceType string, resourceName string, namespace string, cluster *Cluster, ...)
- func GetSecretName(workerName string, namespace string, controllerCluster *Cluster) string
- func GetSecrets(workerName string, namespace string, controllerCluster *Cluster, ...)
- func GetServiceExportConfig(serviceExportConfigName string, namespace string, controllerCluster *Cluster)
- func GetSliceConfig(sliceConfigName string, namespace string, controllerCluster *Cluster)
- func GetUIAdminToken(cc *Cluster, username, projectName string) string
- func GetUIEndpoint(cc *Cluster, profile string) string
- func InstallCalico(clusterConfig *ClusterConfiguration)
- func InstallCertManager(ApplicationConfiguration *ConfigurationSpecs)
- func InstallIPerf(ApplicationConfiguration *ConfigurationSpecs)
- func InstallKubeSliceController(ApplicationConfiguration *ConfigurationSpecs)
- func InstallKubeSliceUI(ApplicationConfiguration *ConfigurationSpecs)
- func InstallKubeSliceWorker(ApplicationConfiguration *ConfigurationSpecs)
- func InstallPrometheus(ApplicationConfiguration *ConfigurationSpecs)
- func LicenseVerification(message string, cluster Cluster, namespace string)
- func PodVerification(message string, cluster Cluster, namespace string)
- func PrintNextSteps(verificationOnly bool, ApplicationConfiguration *ConfigurationSpecs)
- func RegisterWorkerClusters(ApplicationConfiguration *ConfigurationSpecs, cliOptions *CliOptionsStruct)
- func Retry(backoffLimit int, sleep time.Duration, f func() error) (err error)
- func RolloutRestartIPerf(ApplicationConfiguration *ConfigurationSpecs)
- func SetKubeConfigPath()
- func SetWorker(worker []string, filename string)
- func UninstallCertManager(ApplicationConfiguration *ConfigurationSpecs)
- func UninstallKubeSliceController(ApplicationConfiguration *ConfigurationSpecs)
- func UninstallKubeSliceUI(ApplicationConfiguration *ConfigurationSpecs)
- func UninstallKubeSliceWorker(ApplicationConfiguration *ConfigurationSpecs, ...)
- func VerifyExecutables(ApplicationConfiguration *ConfigurationSpecs)
- type CliOptionsStruct
- type Cluster
- type ClusterConfiguration
- type Configuration
- type ConfigurationSpecs
- type HelmChart
- type HelmChartConfiguration
- type ImagePullSecrets
- type KubeSliceConfiguration
- type PodVerificationStatus
Constants ¶
View Source
const ( KUBESLICE_CONTROLLER_NAMESPACE = "kubeslice-controller" ProjectObject = "projects.controller.kubeslice.io" ClusterObject = "clusters.controller.kubeslice.io" SliceConfigObject = "sliceconfigs.controller.kubeslice.io" ServiceExportConfigObject = "serviceexportconfigs.controller.kubeslice.io" LicenseFileName = "kubeslice-license-file" Kind_Component = "kind" Calico_Component = "calico" Controller_Component = "controller" Worker_registration_Component = "worker-registration" UI_install_Component = "ui" Worker_Component = "worker" Demo_Component = "demo" CertManager_Component = "cert-manager" Prometheus_Component = "prometheus" SecretObject = "secrets" OutputFormatYaml = "yaml" OutputFormatJson = "json" )
View Source
const ( PrometheusValuesFileName = "helm-values-Prometheus.yaml" PrometheusNamespace = "monitoring" )
View Source
const KubeconfigPath = kubesliceDirectory + "/kubeconfig.yaml"
View Source
const (
ProfileEntDemo = "enterprise-demo"
)
View Source
const UIValuesTemplate = `
kubeslice:
uiproxy:
service:
type: %s
`
Variables ¶
This section is empty.
Functions ¶
func AddHelmCharts ¶
func AddHelmCharts(ApplicationConfiguration *ConfigurationSpecs)
func ApplyIPerfServiceExportManifest ¶
func ApplyIPerfServiceExportManifest(ApplicationConfiguration *ConfigurationSpecs)
func ApplyKubectlManifest ¶
func ApplySliceConfiguration ¶
func ApplySliceConfiguration(ApplicationConfiguration *ConfigurationSpecs)
func CreateKindClusters ¶
func CreateKindClusters(ApplicationConfiguration *ConfigurationSpecs)
func CreateKubeConfig ¶
func CreateKubeConfig()
func CreateKubeSliceProject ¶
func CreateKubeSliceProject(ApplicationConfiguration *ConfigurationSpecs, cliOptions *CliOptionsStruct)
func CreateSliceConfig ¶
func DeleteKindClusters ¶
func DeleteKindClusters(ApplicationConfiguration *ConfigurationSpecs)
func DeleteKubeSliceCluster ¶
func DeleteKubeSliceDirectory ¶
func DeleteKubeSliceDirectory()
func DeleteKubeSliceProject ¶
func DeleteKubectlResources ¶
func DeleteSliceConfig ¶
func DescribeSliceConfig ¶
func EditKubeSliceCluster ¶
func EditKubeSliceProject ¶
func EditKubectlResources ¶
func EditServiceExportConfig ¶
func EditSliceConfig ¶
func GatherNetworkInformation ¶
func GatherNetworkInformation(ApplicationConfiguration *ConfigurationSpecs)
func GenerateIPerfManifests ¶
func GenerateIPerfManifests()
func GenerateIPerfServiceExportManifest ¶
func GenerateIPerfServiceExportManifest(ApplicationConfiguration *ConfigurationSpecs)
func GenerateKindConfiguration ¶
func GenerateKindConfiguration(ApplicationConfiguration *ConfigurationSpecs)
func GenerateKubeSliceDirectory ¶
func GenerateKubeSliceDirectory()
func GenerateSliceConfiguration ¶
func GenerateSliceConfiguration(ApplicationConfiguration *ConfigurationSpecs, worker []string, sliceConfigName string, namespace string)
func GetKubeSliceCluster ¶
func GetKubeSliceProject ¶
func GetKubectlResources ¶
func GetSecretName ¶
func GetSecrets ¶
func GetServiceExportConfig ¶
func GetSliceConfig ¶
func GetUIAdminToken ¶
func GetUIEndpoint ¶
func InstallCalico ¶
func InstallCalico(clusterConfig *ClusterConfiguration)
func InstallCertManager ¶
func InstallCertManager(ApplicationConfiguration *ConfigurationSpecs)
func InstallIPerf ¶
func InstallIPerf(ApplicationConfiguration *ConfigurationSpecs)
func InstallKubeSliceController ¶
func InstallKubeSliceController(ApplicationConfiguration *ConfigurationSpecs)
func InstallKubeSliceUI ¶
func InstallKubeSliceUI(ApplicationConfiguration *ConfigurationSpecs)
func InstallKubeSliceWorker ¶
func InstallKubeSliceWorker(ApplicationConfiguration *ConfigurationSpecs)
func InstallPrometheus ¶
func InstallPrometheus(ApplicationConfiguration *ConfigurationSpecs)
func LicenseVerification ¶
func PodVerification ¶
func PrintNextSteps ¶
func PrintNextSteps(verificationOnly bool, ApplicationConfiguration *ConfigurationSpecs)
func RegisterWorkerClusters ¶
func RegisterWorkerClusters(ApplicationConfiguration *ConfigurationSpecs, cliOptions *CliOptionsStruct)
func RolloutRestartIPerf ¶
func RolloutRestartIPerf(ApplicationConfiguration *ConfigurationSpecs)
func SetKubeConfigPath ¶
func SetKubeConfigPath()
func UninstallCertManager ¶
func UninstallCertManager(ApplicationConfiguration *ConfigurationSpecs)
func UninstallKubeSliceController ¶
func UninstallKubeSliceController(ApplicationConfiguration *ConfigurationSpecs)
func UninstallKubeSliceUI ¶
func UninstallKubeSliceUI(ApplicationConfiguration *ConfigurationSpecs)
func UninstallKubeSliceWorker ¶
func UninstallKubeSliceWorker(ApplicationConfiguration *ConfigurationSpecs, workersToUninstall map[string]string)
func VerifyExecutables ¶
func VerifyExecutables(ApplicationConfiguration *ConfigurationSpecs)
Types ¶
type CliOptionsStruct ¶
type CliOptionsStruct struct { ObjectType string // "project", "cluster", "sliceConfig" ObjectName string // "projectName", "clusterName", "sliceConfigName" Namespace string // namespace for the workloads FileName string // path to the resource description file Cluster *Cluster // cluster OutputFormat string }
type ClusterConfiguration ¶
type Configuration ¶
type Configuration struct { ClusterConfiguration ClusterConfiguration `yaml:"cluster_configuration"` KubeSliceConfiguration KubeSliceConfiguration `yaml:"kubeslice_configuration"` HelmChartConfiguration HelmChartConfiguration `yaml:"helm_chart_configuration"` }
type ConfigurationSpecs ¶
type ConfigurationSpecs struct {
Configuration Configuration `yaml:"configuration"`
}
type HelmChartConfiguration ¶
type HelmChartConfiguration struct { RepoAlias string `yaml:"repo_alias"` RepoUrl string `yaml:"repo_url"` CertManagerChart HelmChart `yaml:"cert_manager_chart"` ControllerChart HelmChart `yaml:"controller_chart"` WorkerChart HelmChart `yaml:"worker_chart"` UIChart HelmChart `yaml:"ui_chart"` PrometheusChart HelmChart `yaml:"prometheus_chart"` HelmUsername string `yaml:"helm_username"` HelmPassword string `yaml:"helm_password"` ImagePullSecret ImagePullSecrets `yaml:"image_pull_secret"` UseLocal bool `yaml:"use_local"` }
type ImagePullSecrets ¶
type KubeSliceConfiguration ¶
type PodVerificationStatus ¶
type PodVerificationStatus int
const ( PodVerificationStatusSuccess PodVerificationStatus = iota PodVerificationStatusInProgress PodVerificationStatusFailed )
Source Files ¶
- bootstrap-configuration.go
- cert-manager-setup.go
- cluster-manifests.go
- constants.go
- controller.go
- enterprise.go
- executable-downloadable-messages.go
- generate-kind-templates.go
- get-network-info.go
- helm-repo-add.go
- install-calico.go
- install-iperf.go
- kind-clusters.go
- kubernetes-operation.go
- print-next-steps.go
- project-manifest.go
- prometheus.go
- secrets.go
- serviceExport.go
- slice-config.go
- values.go
- verify-executables.go
- worker.go
Click to show internal directories.
Click to hide internal directories.