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.
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 DetokenizeGitGitops(path string, tokens *GitOpsDirectoryValues) error
- func DetokenizeGitMetaphor(path string, tokens *MetaphorTokenValues) error
- func DownloadTools(kubectlClientPath string, kubectlClientVersion string, localOs string, ...) error
- func GetGCPTerraformEnvs(config *GCPConfig, envs map[string]string) map[string]string
- func GetGithubTerraformEnvs(config *GCPConfig, envs map[string]string) map[string]string
- func GetGitlabTerraformEnvs(config *GCPConfig, envs map[string]string, gid int) map[string]string
- func GetUsersTerraformEnvs(clientset *kubernetes.Clientset, config *GCPConfig, envs map[string]string) map[string]string
- func GetVaultTerraformEnvs(clientset *kubernetes.Clientset, config *GCPConfig, envs map[string]string) map[string]string
- func PrepareGitRepositories(gitProvider string, clusterName string, clusterType string, ...) error
- type GCPConfig
- type GCPConfiguration
- func (conf *GCPConfiguration) CreateBucket(bucketName string) (*storage.BucketAttrs, error)
- func (conf *GCPConfiguration) DeleteBucket(bucketName string) error
- func (conf *GCPConfiguration) GetContainerCluster(clusterName string) (*containerpb.Cluster, error)
- func (conf *GCPConfiguration) GetContainerClusterAuth(clusterName string) (*k8s.KubernetesClient, error)
- func (conf *GCPConfiguration) GetRegions() ([]string, error)
- func (conf *GCPConfiguration) ListBuckets() ([]*storage.BucketAttrs, error)
- func (conf *GCPConfiguration) ListContainerClusters() (*containerpb.ListClustersResponse, error)
- func (conf *GCPConfiguration) TestHostedZoneLiveness(hostedZoneName string) bool
- type GitOpsDirectoryValues
- type MetaphorTokenValues
Constants ¶
const ( CloudProvider = "gcp" 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 DetokenizeGitGitops ¶
func DetokenizeGitGitops(path string, tokens *GitOpsDirectoryValues) error
detokenizeDirectoryRecursively - 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 GetGCPTerraformEnvs ¶
func GetGithubTerraformEnvs ¶
func GetGitlabTerraformEnvs ¶
func GetUsersTerraformEnvs ¶
func GetVaultTerraformEnvs ¶
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, ) error
Types ¶
type GCPConfig ¶
type GCPConfig struct {
GCPAuth string
GCPProject 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 GCPConfiguration ¶
GCPConfiguration stores session data to organize all GCP functions into a single struct
func (*GCPConfiguration) CreateBucket ¶
func (conf *GCPConfiguration) CreateBucket(bucketName string) (*storage.BucketAttrs, error)
CreateBucket creates a GCS bucket
func (*GCPConfiguration) DeleteBucket ¶
func (conf *GCPConfiguration) DeleteBucket(bucketName string) error
DeleteBucket deletes a GCS bucket
func (*GCPConfiguration) GetContainerCluster ¶
func (conf *GCPConfiguration) GetContainerCluster(clusterName string) (*containerpb.Cluster, error)
GetContainerCluster
func (*GCPConfiguration) GetContainerClusterAuth ¶
func (conf *GCPConfiguration) GetContainerClusterAuth(clusterName string) (*k8s.KubernetesClient, error)
GetContainerClusterAuth
func (*GCPConfiguration) GetRegions ¶
func (conf *GCPConfiguration) GetRegions() ([]string, error)
GetRegions lists all available regions
func (*GCPConfiguration) ListBuckets ¶
func (conf *GCPConfiguration) ListBuckets() ([]*storage.BucketAttrs, error)
ListBuckets lists all GCS buckets for a project
func (*GCPConfiguration) ListContainerClusters ¶
func (conf *GCPConfiguration) ListContainerClusters() (*containerpb.ListClustersResponse, error)
ListContainerClusters
func (*GCPConfiguration) TestHostedZoneLiveness ¶
func (conf *GCPConfiguration) TestHostedZoneLiveness(hostedZoneName string) bool
TestHostedZoneLiveness checks 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
KubefirstArtifactsBucket string
KubefirstStateStoreBucket string
KubefirstTeam string
KubefirstVersion string
StateStoreBucketHostname string
ArgoCDIngressURL string
ArgoCDIngressNoHTTPSURL string
ArgoWorkflowsIngressURL string
ArgoWorkflowsIngressNoHTTPSURL string
ArgoWorkflowsDir string
AtlantisIngressURL string
AtlantisIngressNoHTTPSURL string
ChartMuseumIngressURL string
VaultIngressURL string
VaultIngressNoHTTPSURL string
VouchIngressURL string
GCPAuth string
GCPProject 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
}