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, gitProvider string, ...) error
- func BootstrapMgmtCluster(clientset *kubernetes.Clientset, gitProvider string, gitUser string, ...) 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 K8sNamespaces(clientset *kubernetes.Clientset) error
- func PrepareGitRepositories(cloudProvider string, gitProvider string, clusterName string, ...) error
- func ServiceAccounts(clientset *kubernetes.Clientset, cloudflareAPIToken string) error
- type GitopsDirectoryValues
- type MetaphorTokenValues
- type ProviderConfig
Constants ¶
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 = pkg.ArgocdPortForwardURL VaultPortForwardURL = pkg.VaultPortForwardURL )
Variables ¶
This section is empty.
Functions ¶
func AdjustGitopsRepo ¶
func AdjustGitopsRepo( cloudProvider string, clusterName string, clusterType string, gitopsRepoDir string, gitProvider string, k1Dir string, apexContentExists bool, ) error
AdjustGitopsRepo
func AdjustMetaphorRepo ¶
func AdjustMetaphorRepo( destinationMetaphorRepoURL string, gitopsRepoDir string, gitProvider string, k1Dir string, ) error
AdjustMetaphorRepo
func BootstrapMgmtCluster ¶ added in v0.3.13
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) 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 K8sNamespaces ¶ added in v0.3.3
func K8sNamespaces(clientset *kubernetes.Clientset) 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, ) error
PrepareGitRepositories
func ServiceAccounts ¶ added in v0.3.3
func ServiceAccounts(clientset *kubernetes.Clientset, cloudflareAPIToken string) error
Types ¶
type GitopsDirectoryValues ¶ added in v0.3.3
type GitopsDirectoryValues struct {
AlertsEmail string
AtlantisAllowList string
CloudProvider string
CloudRegion string
ClusterId string
ClusterName string
ClusterType string
ContainerRegistryURL string
DomainName string
DNSProvider string
Kubeconfig string
KubeconfigPath string
KubefirstArtifactsBucket string
KubefirstStateStoreBucket string
KubefirstTeam string
KubefirstVersion string
StateStoreBucketHostname string
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
AwsIamArnAccountRoot string
AwsKmsKeyId string
AwsNodeCapacityType string
AwsAccountID string
GCPAuth string
GCPProject string
GoogleUniqueness string
ForceDestroy string
GitDescription string
GitNamespace string
GitProvider string
GitProtocol string
GitopsRepoGitURL string
GitopsRepoHttpsURL 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
ExternalDNSProviderName string
ExternalDNSProviderTokenEnvName string
ExternalDNSProviderSecretName string
ExternalDNSProviderSecretKey string
UseTelemetry string
}
type MetaphorTokenValues ¶
type ProviderConfig ¶
type ProviderConfig struct {
CivoToken string
DigitaloceanToken string
GCPAuth string
GCPProject string
VultrToken string
CloudflareApiToken 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
}