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.
Index ¶
- Constants
- func AdjustGitopsRepo(cloudProvider string, clusterName string, clusterType string, ...) error
- func AdjustMetaphorRepo(destinationMetaphorRepoURL string, gitopsRepoDir string, k1Dir string) error
- func BootstrapMgmtCluster(clientset kubernetes.Interface, opts BootstrapOptions) error
- func BootstrapSecrets(client kubernetes.Interface, cl *pkgtypes.Cluster, extraSecret ...kube.Secret) error
- func DetokenizeAdditionalPath(path string, tokens *GitopsDirectoryValues) error
- func DetokenizeGitGitops(path string, tokens *GitopsDirectoryValues, gitProtocol string, ...) error
- func DetokenizeGitMetaphor(path string, tokens *MetaphorTokenValues) error
- func Namespaces(client kubernetes.Interface) error
- func PrepareGitRepositories(cloudProvider string, gitProvider string, clusterName string, ...) error
- func ServiceAccounts(client kubernetes.Interface) error
- type BootstrapOptions
- type GitopsDirectoryValues
- type MetaphorTokenValues
- type ProviderConfig
Constants ¶
const ( AkamaiGitHub = "akamai-github" AwsGitHub = "aws-github" AwsGitLab = "aws-gitlab" AzureGitHub = "azure-github" AzureGitLab = "azure-gitlab" CivoGitHub = "civo-github" CivoGitLab = "civo-gitlab" GoogleGitHub = "google-github" GoogleGitLab = "google-gitlab" DigitalOceanGitHub = "digitalocean-github" DigitalOceanGitLab = "digitalocean-gitlab" VultrGitHub = "vultr-github" VultrGitLab = "vultr-gitlab" K3sGitHub = "k3s-github" K3sGitLab = "k3s-gitlab" )
const ( 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 = runtimepkg.ArgocdPortForwardURL VaultPortForwardURL = runtimepkg.VaultPortForwardURL )
Variables ¶
This section is empty.
Functions ¶
func AdjustGitopsRepo ¶
func AdjustGitopsRepo( cloudProvider string, clusterName string, clusterType string, gitopsRepoDir string, gitProvider string, apexContentExists bool, useCloudflareOriginIssuer bool, ) error
AdjustGitopsRepo
func AdjustMetaphorRepo ¶
func AdjustMetaphorRepo( destinationMetaphorRepoURL string, gitopsRepoDir string, k1Dir string, ) error
AdjustMetaphorRepo
func BootstrapMgmtCluster ¶
func BootstrapMgmtCluster(clientset kubernetes.Interface, opts BootstrapOptions) error
func BootstrapSecrets ¶ added in v0.106.0
func DetokenizeAdditionalPath ¶
func DetokenizeAdditionalPath(path string, tokens *GitopsDirectoryValues) error
DetokenizeAdditionalPath - Translate tokens by values on a given path
func DetokenizeGitGitops ¶
func DetokenizeGitGitops(path string, tokens *GitopsDirectoryValues, gitProtocol string, useCloudflareOriginIssuer bool) 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 Namespaces ¶ added in v0.106.0
func Namespaces(client kubernetes.Interface) error
func PrepareGitRepositories ¶
func PrepareGitRepositories( cloudProvider string, gitProvider string, clusterName string, clusterType string, destinationGitopsRepoURL string, gitopsDir string, gitopsTemplateBranch string, gitopsTemplateURL string, destinationMetaphorRepoURL string, k1Dir string, gitopsTokens *GitopsDirectoryValues, metaphorDir string, metaphorTokens *MetaphorTokenValues, apexContentExists bool, gitProtocol string, useCloudflareOriginIssuer bool, ) error
PrepareGitRepositories
func ServiceAccounts ¶
func ServiceAccounts(client kubernetes.Interface) error
Types ¶
type BootstrapOptions ¶ added in v0.106.0
type GitopsDirectoryValues ¶
type GitopsDirectoryValues struct { AlertsEmail string AtlantisAllowList string CloudProvider string CloudRegion string ClusterID string ClusterName string ClusterType string ContainerRegistryURL string DomainName string SubdomainName string DNSProvider string Kubeconfig string KubeconfigPath string KubefirstArtifactsBucket string KubefirstStateStoreBucket string KubefirstTeam string KubefirstVersion string StateStoreBucketHostname string NodeType string NodeCount int ArgoCDIngressURL string ArgoCDIngressNoHTTPSURL string ArgoWorkflowsIngressURL string ArgoWorkflowsIngressNoHTTPSURL string ArgoWorkflowsDir string AtlantisIngressURL string AtlantisIngressNoHTTPSURL string AtlantisWebhookURL string ChartMuseumIngressURL string VaultIngressURL string VaultIngressNoHTTPSURL string VaultDataBucketName string VouchIngressURL string RegistryPath string SecretStoreRef string Project string ClusterDestination string Environment string AwsIamArnAccountRoot string AwsKmsKeyID string AwsNodeCapacityType string AwsAccountID string AzureStorageResourceGroup string AzureStorageContainerName string AzureDNSZoneResourceGroup string GoogleAuth string GoogleProject string GoogleUniqueness string ForceDestroy string K3sServersPrivateIps []string K3sServersPublicIps []string K3sServersArgs []string SSHUser string SSHPrivateKey string GitDescription string GitNamespace string GitProvider string GitProtocol string GitopsRepoGitURL string GitopsRepoURL 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 GitopsRepoNoHTTPSURL string WorkloadClusterTerraformModuleURL string WorkloadClusterBootstrapTerraformModuleURL string ExternalDNSProviderName string ExternalDNSProviderTokenEnvName string ExternalDNSProviderSecretName string ExternalDNSProviderSecretKey string UseTelemetry string }
type MetaphorTokenValues ¶
type ProviderConfig ¶
type ProviderConfig struct { AkamaiToken string CivoToken string DigitaloceanToken string GoogleAuth string GoogleProject string K3sServersPrivateIps []string K3sServersPublicIps []string K3sSSHPrivateKey string K3sServersArgs []string K3sSSHUser string VultrToken string CloudflareAPIToken string CloudflareOriginCaIssuerAPIToken string GithubToken string GitlabToken string ArgoWorkflowsDir string DestinationGitopsRepoHTTPSURL string DestinationGitopsRepoGitURL string DestinationGitopsRepoURL string DestinationMetaphorRepoHTTPSURL string DestinationMetaphorRepoGitURL string DestinationMetaphorRepoURL string GitopsDir string GitProvider string GitProtocol 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 GitopsDirectoryValues *GitopsDirectoryValues MetaphorDirectoryValues *MetaphorTokenValues }
func GetConfig ¶
func GetConfig( clusterName, domainName, gitProvider, gitOwner, gitProtocol, cloudflareAPIToken, cloudflareOriginCaIssuerAPIToken string, ) (*ProviderConfig, error)
GetConfig - load default values from kubefirst installer