site

package
v0.0.0-...-f6ef04e Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Site

type Site struct {
	// contains filtered or unexported fields
}

Site : Structure that contains the settings needed for managing a site

func New

func New(siteRepo string, buildPath string) Site

New constructor for the generator

func NewWithName

func NewWithName(siteName string, buildPath string) Site

new constructor but just passing the name and path

func (Site) ApplyWorkloads

func (s Site) ApplyWorkloads(kubeconfigFile string, retryCount int, delay int)

using the site contents, applies the workloads on it

func (Site) AutomateClusterDestroy

func (s Site) AutomateClusterDestroy()

func (Site) AutomateMastersDeployment

func (s Site) AutomateMastersDeployment()

func (Site) AutomateWorkersDeployment

func (s Site) AutomateWorkersDeployment()

func (Site) DownloadRepo

func (s Site) DownloadRepo(sitePath string, profileLayerPath string, profileRef string)

given a site, download the repo dependencies

func (Site) DownloadSite

func (s Site) DownloadSite()

given a site repo, downloads the content and places into buildPath

func (Site) FetchRequirements

func (s Site) FetchRequirements(individualRequirements []string)

using the downloaded site content, fetches (and builds) the specified requirements, and also prepares the host for running scripts for the site's profile type

func (Site) GetProfileFromSite

func (s Site) GetProfileFromSite() (string, string, string)

retrieves the given profile used in a site

func (Site) PrepareManifests

func (s Site) PrepareManifests()

using the downloaded site content, prepares the manifests for it, and also runs host preparation finalization scripts for site automation (if any)

func (Site) WriteEnvFile

func (s Site) WriteEnvFile()

writes an env file, that needs to be sourced before running cluster install

Jump to

Keyboard shortcuts

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