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.
Index ¶
- Constants
- Variables
- func AddK3DSecrets(atlantisWebhookSecret string, kbotPublicKey string, ...) error
- func AdjustGitopsRepo(...) error
- func AdjustMetaphorRepo(destinationMetaphorRepoGitURL, gitopsRepoDir, gitProvider, k1Dir string) error
- func ClusterCreate(clusterName string, k1Dir string, k3dClient string, kubeconfig string) error
- func DeleteK3dCluster(clusterName string, k1Dir string, k3dClient string) error
- func DownloadTools(clusterName string, gitProvider string, gitOwner string, toolsDir string) error
- func GenerateTLSSecrets(clientset *kubernetes.Clientset, config K3dConfig) error
- func GetGithubTerraformEnvs(envs map[string]string, githubToken string) map[string]string
- func GetUsersTerraformEnvs(config *K3dConfig, envs map[string]string) map[string]string
- func GetVaultTerraformEnvs(config *K3dConfig, envs map[string]string) map[string]string
- func PostRunPrepareGitopsRepository(clusterName string, gitopsDir string, tokens *GitopsTokenValues) error
- func PrepareGitRepositories(gitProvider string, clusterName string, clusterType string, ...) error
- func ResolveMinioLocal(path string) error
- type GithubTerraformEnvs
- type GitopsTokenValues
- type K3dConfig
- type MetaphorTokenValues
Constants ¶
const ( ArgocdPortForwardURL = "http://localhost:8080" CloudProvider = "k3d" DomainName = "kubefirst.dev" GithubHost = "github.com" GitlabHost = "gitlab.com" K3dVersion = "v5.4.6" KubectlVersion = "v1.25.7" LocalhostARCH = runtime.GOARCH LocalhostOS = runtime.GOOS MkCertVersion = "v1.4.4" TerraformVersion = "1.3.8" VaultPortForwardURL = "http://localhost:8200" )
Variables ¶
var ( ArgocdURL = fmt.Sprintf("https://argocd.%s", DomainName) ArgoWorkflowsURL = fmt.Sprintf("https://argo.%s", DomainName) AtlantisURL = fmt.Sprintf("https://atlantis.%s", DomainName) ChartMuseumURL = fmt.Sprintf("https://chartmuseum.%s", DomainName) KubefirstConsoleURL = fmt.Sprintf("https://kubefirst.%s", DomainName) MetaphorDevelopmentURL = fmt.Sprintf("https://metaphor-devlopment.%s", DomainName) MetaphorStagingURL = fmt.Sprintf("https://metaphor-staging.%s", DomainName) MetaphorProductionURL = fmt.Sprintf("https://metaphor-production.%s", DomainName) VaultURL = fmt.Sprintf("https://vault.%s", DomainName) )
Functions ¶
func AddK3DSecrets ¶
func AdjustGitopsRepo ¶
func AdjustMetaphorRepo ¶
func ClusterCreate ¶
ClusterCreate create an k3d cluster
func DeleteK3dCluster ¶
DeleteK3dCluster delete a k3d cluster
func DownloadTools ¶
func GenerateTLSSecrets ¶
func GenerateTLSSecrets(clientset *kubernetes.Clientset, config K3dConfig) error
func GetGithubTerraformEnvs ¶
func GetUsersTerraformEnvs ¶
func GetVaultTerraformEnvs ¶
func PostRunPrepareGitopsRepository ¶
func PostRunPrepareGitopsRepository(clusterName string, gitopsDir string, tokens *GitopsTokenValues, ) error
func PrepareGitRepositories ¶
func PrepareGitRepositories( gitProvider string, clusterName string, clusterType string, destinationGitopsRepoGitURL string, gitopsDir string, gitopsTemplateBranch string, gitopsTemplateURL string, destinationMetaphorRepoGitURL string, k1Dir string, gitopsTokens *GitopsTokenValues, metaphorDir string, metaphorTokens *MetaphorTokenValues, ) error
should tokens be a *GitopsTokenValues? does it matter
func ResolveMinioLocal ¶
ResolveMinioLocal allows resolving minio over a local port forward useful when destroying a local lucster
Types ¶
type GithubTerraformEnvs ¶
type GitopsTokenValues ¶
type GitopsTokenValues struct {
GithubOwner string
GithubUser string
GitlabOwner string
GitlabOwnerGroupID int
GitlabUser string
GitopsRepoGitURL string
DomainName string
AtlantisAllowList string
AlertsEmail string
ClusterName string
ClusterType string
GithubHost string
GitlabHost string
ArgoWorkflowsIngressURL string
VaultIngressURL string
ArgocdIngressURL string
AtlantisIngressURL string
MetaphorDevelopmentIngressURL string
MetaphorStagingIngressURL string
MetaphorProductionIngressURL string
KubefirstVersion string
KubefirstTeam string
UseTelemetry string
GitProvider string
CloudProvider string
ClusterId string
KubeconfigPath string
}
type K3dConfig ¶
type K3dConfig struct {
GithubToken string `env:"GITHUB_TOKEN"`
CivoToken string `env:"CIVO_TOKEN"`
DestinationGitopsRepoHttpsURL string
DestinationGitopsRepoGitURL string
DestinationMetaphorRepoHttpsURL string
DestinationMetaphorRepoGitURL string
GitopsDir string
GitProvider string
K1Dir string
K3dClient string
Kubeconfig string
KubectlClient string
KubefirstConfig string
MetaphorDir string
MkCertClient string
MkCertPemDir string
MkCertSSLSecretDir string
TerraformClient string
ToolsDir string
}