Documentation
¶
Overview ¶
Copyright (C) 2021-2023, Kubefirst
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Index ¶
- Constants
- func AdjustGitopsRepo(...) error
- func AdjustMetaphorRepo(destinationMetaphorRepoGitURL, gitopsRepoDir, gitProvider, k1Dir string) error
- func BootstrapCivoMgmtCluster(civoToken string, kubeconfigPath string, gitProvider string, gitUser string) error
- func DetokenizeAdditionalPath(path string, tokens *GitOpsDirectoryValues) error
- func DetokenizeGitGitops(path string, tokens *GitOpsDirectoryValues) error
- func DetokenizeGitMetaphor(path string, tokens *MetaphorTokenValues) error
- func DownloadTools(...) error
- func GetCivoTerraformEnvs(config *CivoConfig, envs map[string]string) map[string]string
- func GetDomainApexContent(domainName string) bool
- func GetGithubTerraformEnvs(config *CivoConfig, envs map[string]string) map[string]string
- func GetGitlabTerraformEnvs(config *CivoConfig, envs map[string]string, gid int) map[string]string
- func GetUsersTerraformEnvs(clientset *kubernetes.Clientset, config *CivoConfig, envs map[string]string) map[string]string
- func GetVaultTerraformEnvs(clientset *kubernetes.Clientset, config *CivoConfig, envs map[string]string) map[string]string
- func NewCivo(civoToken string, region string) *civogo.Client
- func PrepareGitRepositories(gitProvider string, clusterName string, clusterType string, ...) error
- type CivoConfig
- type CivoConfiguration
- func (c *CivoConfiguration) CreateStorageBucket(accessKeyId string, bucketName string, region string) (civogo.ObjectStore, error)
- func (c *CivoConfiguration) DeleteAccessCredentials(credentialName string, region string) error
- func (c *CivoConfiguration) DeleteStorageBucket(bucketName string) error
- func (c *CivoConfiguration) GetAccessCredentials(credentialName string, region string) (civogo.ObjectStoreCredential, error)
- func (c *CivoConfiguration) GetDNSDomains(region string) ([]string, error)
- func (c *CivoConfiguration) GetDNSInfo(domainName string, region string) (string, error)
- func (c *CivoConfiguration) GetRegions(region string) ([]string, error)
- func (c *CivoConfiguration) TestDomainLiveness(domainName string, domainId string, region string) bool
- type GitOpsDirectoryValues
- type MetaphorTokenValues
Constants ¶
const ( CloudProvider = "civo" GithubHost = "github.com" GitlabHost = "gitlab.com" KubectlClientVersion = "v1.25.7" LocalhostOS = runtime.GOOS LocalhostArch = runtime.GOARCH TerraformClientVersion = "1.3.8" ArgocdHelmChartVersion = "4.10.5" ArgocdPortForwardURL = pkg.ArgocdPortForwardURL VaultPortForwardURL = pkg.VaultPortForwardURL )
Variables ¶
This section is empty.
Functions ¶
func AdjustGitopsRepo ¶
func AdjustMetaphorRepo ¶
func DetokenizeAdditionalPath ¶
func DetokenizeAdditionalPath(path string, tokens *GitOpsDirectoryValues) error
DetokenizeCivoAdditionalPath - Translate tokens by values on a given path
func DetokenizeGitGitops ¶
func DetokenizeGitGitops(path string, tokens *GitOpsDirectoryValues) error
DetokenizeGitGitops - Translate tokens by values on a given path
func DetokenizeGitMetaphor ¶
func DetokenizeGitMetaphor(path string, tokens *MetaphorTokenValues) error
DetokenizeGithubMetaphor - Translate tokens by values on a given path
func DownloadTools ¶
func GetCivoTerraformEnvs ¶
func GetCivoTerraformEnvs(config *CivoConfig, envs map[string]string) map[string]string
func GetDomainApexContent ¶
GetDomainApexContent determines whether or not a target domain features a host responding at zone apex
func GetGithubTerraformEnvs ¶
func GetGithubTerraformEnvs(config *CivoConfig, envs map[string]string) map[string]string
func GetGitlabTerraformEnvs ¶
func GetUsersTerraformEnvs ¶
func GetUsersTerraformEnvs(clientset *kubernetes.Clientset, config *CivoConfig, envs map[string]string) map[string]string
func GetVaultTerraformEnvs ¶
func GetVaultTerraformEnvs(clientset *kubernetes.Clientset, config *CivoConfig, envs map[string]string) map[string]string
func PrepareGitRepositories ¶
func PrepareGitRepositories( gitProvider string, clusterName string, clusterType string, destinationGitopsRepoGitURL string, gitopsDir string, gitopsTemplateBranch string, gitopsTemplateURL string, destinationMetaphorRepoGitURL string, k1Dir string, gitopsTokens *GitOpsDirectoryValues, metaphorDir string, metaphorTokens *MetaphorTokenValues, apexContentExists bool, ) error
Types ¶
type CivoConfig ¶
type CivoConfig struct {
CivoToken string
GithubToken string
GitlabToken string
ArgoWorkflowsDir string
DestinationGitopsRepoHttpsURL string
DestinationGitopsRepoGitURL string
DestinationMetaphorRepoHttpsURL string
DestinationMetaphorRepoGitURL string
GitopsDir string
GitProvider string
K1Dir string
Kubeconfig string
KubectlClient string
KubefirstBotSSHPrivateKey string
KubefirstConfig string
LogsDir string
MetaphorDir string
RegistryAppName string
RegistryYaml string
SSLBackupDir string
TerraformClient string
ToolsDir string
}
type CivoConfiguration ¶ added in v0.1.28
func (*CivoConfiguration) CreateStorageBucket ¶ added in v0.1.28
func (c *CivoConfiguration) CreateStorageBucket(accessKeyId string, bucketName string, region string) (civogo.ObjectStore, error)
CreateStorageBucket creates an object storage bucket
func (*CivoConfiguration) DeleteAccessCredentials ¶ added in v0.1.28
func (c *CivoConfiguration) DeleteAccessCredentials(credentialName string, region string) error
DeleteAccessCredentials deletes object store credentials
func (*CivoConfiguration) DeleteStorageBucket ¶ added in v0.1.28
func (c *CivoConfiguration) DeleteStorageBucket(bucketName string) error
DeleteStorageBucket deletes an object storage bucket
func (*CivoConfiguration) GetAccessCredentials ¶ added in v0.1.28
func (c *CivoConfiguration) GetAccessCredentials(credentialName string, region string) (civogo.ObjectStoreCredential, error)
GetAccessCredentials creates object store access credentials if they do not exist and returns them if they do
func (*CivoConfiguration) GetDNSDomains ¶ added in v0.1.28
func (c *CivoConfiguration) GetDNSDomains(region string) ([]string, error)
GetDNSDomains lists all available DNS domains
func (*CivoConfiguration) GetDNSInfo ¶ added in v0.1.28
func (c *CivoConfiguration) GetDNSInfo(domainName string, region string) (string, error)
GetDNSInfo try to reach the provided domain
func (*CivoConfiguration) GetRegions ¶ added in v0.1.30
func (c *CivoConfiguration) GetRegions(region string) ([]string, error)
GetRegions lists all available regions
func (*CivoConfiguration) TestDomainLiveness ¶ added in v0.1.28
func (c *CivoConfiguration) TestDomainLiveness(domainName string, domainId string, region string) bool
TestDomainLiveness checks Civo DNS for the liveness test record
type GitOpsDirectoryValues ¶
type GitOpsDirectoryValues struct {
AlertsEmail string
AtlantisAllowList string
CloudProvider string
CloudRegion string
ClusterId string
ClusterName string
ClusterType string
DomainName string
KubeconfigPath string
KubefirstStateStoreBucket string
KubefirstTeam string
KubefirstVersion string
ArgoCDIngressURL string
ArgoCDIngressNoHTTPSURL string
ArgoWorkflowsIngressURL string
ArgoWorkflowsIngressNoHTTPSURL string
ArgoWorkflowsDir string
AtlantisIngressURL string
AtlantisIngressNoHTTPSURL string
ChartMuseumIngressURL string
VaultIngressURL string
VaultIngressNoHTTPSURL string
VouchIngressURL string
GitDescription string
GitNamespace string
GitProvider string
GitRunner string
GitRunnerDescription string
GitRunnerNS string
GitURL string
GitHubHost string
GitHubOwner string
GitHubUser string
GitlabHost string
GitlabOwner string
GitlabOwnerGroupID int
GitlabUser string
GitOpsRepoAtlantisWebhookURL string
GitOpsRepoGitURL string
GitOpsRepoNoHTTPSURL string
UseTelemetry string
}