From 000d4dbec0a7f1241524534f5e7a56ebe7e5df5e Mon Sep 17 00:00:00 2001 From: Patrick D'appollonio <930925+patrickdappollonio@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:07:11 -0400 Subject: [PATCH 01/95] Ensure Go tests are run on commits. --- .github/workflows/tests.yml | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f5b209240..25a7c0b87 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,18 +1,22 @@ - name: Test CI +name: Test CI - on: - push: - jobs: +on: + push: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.ref }} - - name: Running Tests - run: | - docker-compose -f docker-compose-test.yaml build --no-cache \ - && docker compose -f docker-compose-test.yaml run kubefirst-unit-tests +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" + - name: Running Golang tests + run: go test -v ./... + - name: Running Docker Compose tests + run: | + docker-compose -f docker-compose-test.yaml build --no-cache \ + && docker compose -f docker-compose-test.yaml run kubefirst-unit-tests From 80f499b6a1cb0e965dc4ecd7a2869266ff813c97 Mon Sep 17 00:00:00 2001 From: Patrick D'appollonio <930925+patrickdappollonio@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:07:23 -0400 Subject: [PATCH 02/95] Fix broken tests. --- cmd/k3s/create.go | 2 +- internal/k3d/menu.go | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/k3s/create.go b/cmd/k3s/create.go index f590531f3..f96bcca4b 100644 --- a/cmd/k3s/create.go +++ b/cmd/k3s/create.go @@ -31,7 +31,7 @@ func createK3s(cmd *cobra.Command, args []string) error { cliFlags, err := utilities.GetFlags(cmd, "k3s") if err != nil { progress.Error(err.Error()) - log.Fatal().Msgf("error collecting flags: ", err) + log.Fatal().Msgf("error collecting flags: %s", err) return nil } diff --git a/internal/k3d/menu.go b/internal/k3d/menu.go index e51e4c9d5..9d145a497 100644 --- a/internal/k3d/menu.go +++ b/internal/k3d/menu.go @@ -9,16 +9,18 @@ package k3d import ( "fmt" "io" - "os" "strings" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/charmbracelet/bubbles/list" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" + "github.com/kubefirst/kubefirst/internal/progress" ) -const ListHeight = 14 -const DefaultWidth = 20 +const ( + ListHeight = 14 + DefaultWidth = 20 +) var ( TitleStyle = lipgloss.NewStyle().MarginLeft(2) From 7666a95a40781ca17c8a5ab3ca05f9ce8744bd0d Mon Sep 17 00:00:00 2001 From: Patrick D'appollonio <930925+patrickdappollonio@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:09:45 -0400 Subject: [PATCH 03/95] Swap tests to an enabled workflow. --- .github/workflows/check-unit-tests.yml | 16 ++++++++++++++++ .github/workflows/tests.yml | 6 ------ 2 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/check-unit-tests.yml diff --git a/.github/workflows/check-unit-tests.yml b/.github/workflows/check-unit-tests.yml new file mode 100644 index 000000000..cfff643e5 --- /dev/null +++ b/.github/workflows/check-unit-tests.yml @@ -0,0 +1,16 @@ +name: Run uni tests + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" + - name: Running Golang tests + run: go test -v -short ./... diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 25a7c0b87..c0ffd2cba 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,12 +10,6 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ github.ref }} - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version-file: "go.mod" - - name: Running Golang tests - run: go test -v ./... - name: Running Docker Compose tests run: | docker-compose -f docker-compose-test.yaml build --no-cache \ From 04dbef5bc4753cc37b3becb14c222c525dd8ab19 Mon Sep 17 00:00:00 2001 From: Patrick D'appollonio <930925+patrickdappollonio@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:11:57 -0400 Subject: [PATCH 04/95] Run gofmt. --- cmd/logs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/logs.go b/cmd/logs.go index 117738347..d7373ac36 100755 --- a/cmd/logs.go +++ b/cmd/logs.go @@ -9,8 +9,8 @@ package cmd import ( "fmt" - "github.com/kubefirst/kubefirst/internal/provisionLogs" "github.com/kubefirst/kubefirst/internal/progress" + "github.com/kubefirst/kubefirst/internal/provisionLogs" "github.com/nxadm/tail" "github.com/spf13/cobra" "github.com/spf13/viper" From e57bf671ffbe07aab518b99b5a0eac3d87b468f8 Mon Sep 17 00:00:00 2001 From: Patrick D'appollonio <930925+patrickdappollonio@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:13:46 -0400 Subject: [PATCH 05/95] Fix typo. --- .github/workflows/check-unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-unit-tests.yml b/.github/workflows/check-unit-tests.yml index cfff643e5..e0a90e9ad 100644 --- a/.github/workflows/check-unit-tests.yml +++ b/.github/workflows/check-unit-tests.yml @@ -1,4 +1,4 @@ -name: Run uni tests +name: Run unit tests on: push: From ca343b02c6e3eae994e4d0ce39b1fc392f0c1f36 Mon Sep 17 00:00:00 2001 From: Patrick D'appollonio <930925+patrickdappollonio@users.noreply.github.com> Date: Wed, 31 Jul 2024 17:03:56 -0400 Subject: [PATCH 06/95] Apply gofmt, golangci-lint. --- cmd/akamai/command.go | 2 +- cmd/akamai/create.go | 1 - cmd/aws/command.go | 8 +----- cmd/aws/create.go | 2 -- cmd/aws/quota.go | 3 +-- cmd/civo/command.go | 2 +- cmd/civo/create.go | 1 - cmd/civo/quota.go | 3 +-- cmd/digitalocean/command.go | 2 +- cmd/digitalocean/create.go | 1 - cmd/google/command.go | 2 +- cmd/info.go | 1 - cmd/k3d/command.go | 2 +- cmd/k3d/create.go | 31 ++++++++++------------- cmd/k3d/destroy.go | 4 +-- cmd/k3d/mkcert.go | 2 +- cmd/k3d/vault.go | 4 +-- cmd/k3s/command.go | 2 +- cmd/launch.go | 6 ++--- cmd/letsencrypt.go | 6 ++--- cmd/reset.go | 18 ++++++------- cmd/root.go | 6 ++--- cmd/vultr/command.go | 3 +-- cmd/vultr/create.go | 1 - internal/cluster/cluster.go | 6 +++-- internal/common/common.go | 1 - internal/gitShim/containerRegistryAuth.go | 2 +- internal/launch/cmd.go | 27 +++++++++----------- internal/launch/utils.go | 4 +-- internal/progress/command.go | 2 -- internal/provision/provision.go | 3 +-- internal/provisionLogs/command.go | 4 +-- internal/provisionLogs/constants.go | 29 --------------------- internal/segment/segment.go | 1 - internal/utilities/utilities.go | 1 - main.go | 13 ++++------ 36 files changed, 71 insertions(+), 135 deletions(-) delete mode 100644 internal/provisionLogs/constants.go diff --git a/cmd/akamai/command.go b/cmd/akamai/command.go index 11a28fe21..4a17c39ac 100644 --- a/cmd/akamai/command.go +++ b/cmd/akamai/command.go @@ -98,7 +98,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") - createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma seperated values to install after provision") + createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") return createCmd diff --git a/cmd/akamai/create.go b/cmd/akamai/create.go index fd9b114c3..5badbe37e 100644 --- a/cmd/akamai/create.go +++ b/cmd/akamai/create.go @@ -50,7 +50,6 @@ func createAkamai(cmd *cobra.Command, args []string) error { utilities.CreateK1ClusterDirectory(clusterNameFlag) gitAuth, err := gitShim.ValidateGitCredentials(cliFlags.GitProvider, cliFlags.GithubOrg, cliFlags.GitlabGroup) - if err != nil { progress.Error(err.Error()) return nil diff --git a/cmd/aws/command.go b/cmd/aws/command.go index f6d0e1c1e..9fa7431b3 100644 --- a/cmd/aws/command.go +++ b/cmd/aws/command.go @@ -38,11 +38,6 @@ var ( installCatalogApps string installKubefirstProFlag bool - // RootCredentials - copyArgoCDPasswordToClipboardFlag bool - copyKbotPasswordToClipboardFlag bool - copyVaultPasswordToClipboardFlag bool - // Supported argument arrays supportedDNSProviders = []string{"aws", "cloudflare"} supportedGitProviders = []string{"github", "gitlab"} @@ -100,7 +95,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") - createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma seperated values to install after provision") + createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") createCmd.Flags().BoolVar(&ecrFlag, "ecr", false, "whether or not to use ecr vs the git provider") createCmd.Flags().BoolVar(&installKubefirstProFlag, "install-kubefirst-pro", true, "whether or not to install kubefirst pro") @@ -118,7 +113,6 @@ func Destroy() *cobra.Command { } return destroyCmd - } func Quota() *cobra.Command { diff --git a/cmd/aws/create.go b/cmd/aws/create.go index 59b9a6ef0..57b42d2af 100644 --- a/cmd/aws/create.go +++ b/cmd/aws/create.go @@ -62,7 +62,6 @@ func createAws(cmd *cobra.Command, args []string) error { Config: awsinternal.NewAwsV2(cloudRegionFlag), } creds, err := awsClient.Config.Credentials.Retrieve(aws.BackgroundContext()) - if err != nil { progress.Error(err.Error()) return nil @@ -80,7 +79,6 @@ func createAws(cmd *cobra.Command, args []string) error { } gitAuth, err := gitShim.ValidateGitCredentials(cliFlags.GitProvider, cliFlags.GithubOrg, cliFlags.GitlabGroup) - if err != nil { progress.Error(err.Error()) return nil diff --git a/cmd/aws/quota.go b/cmd/aws/quota.go index 77076fad2..9ace8e4b2 100644 --- a/cmd/aws/quota.go +++ b/cmd/aws/quota.go @@ -35,7 +35,6 @@ func printAwsQuotaWarning(messageHeader string, output map[string][]awsinternal. // Write to logs, but also output to stdout return createAwsQuotaWarning.String() - } // evalAwsQuota provides an interface to the command-line @@ -53,7 +52,7 @@ func evalAwsQuota(cmd *cobra.Command, args []string) error { return err } - var messageHeader = fmt.Sprintf( + messageHeader := fmt.Sprintf( "AWS Quota Health\nRegion: %s\n\nIf you encounter issues deploying your kubefirst cluster, check these quotas and determine if you need to request a limit increase.", cloudRegionFlag, ) diff --git a/cmd/civo/command.go b/cmd/civo/command.go index df66f4f1e..fe8712bdd 100644 --- a/cmd/civo/command.go +++ b/cmd/civo/command.go @@ -111,7 +111,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") - createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma seperated values to install after provision") + createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") createCmd.Flags().BoolVar(&installKubefirstProFlag, "install-kubefirst-pro", true, "whether or not to install kubefirst pro") diff --git a/cmd/civo/create.go b/cmd/civo/create.go index 93b404b54..4530788e6 100644 --- a/cmd/civo/create.go +++ b/cmd/civo/create.go @@ -50,7 +50,6 @@ func createCivo(cmd *cobra.Command, args []string) error { utilities.CreateK1ClusterDirectory(clusterNameFlag) gitAuth, err := gitShim.ValidateGitCredentials(cliFlags.GitProvider, cliFlags.GithubOrg, cliFlags.GitlabGroup) - if err != nil { progress.Error(err.Error()) return nil diff --git a/cmd/civo/quota.go b/cmd/civo/quota.go index 9458e5947..89673db49 100644 --- a/cmd/civo/quota.go +++ b/cmd/civo/quota.go @@ -132,7 +132,7 @@ func returnCivoQuotaEvaluation(cloudRegion string) (string, int, int, error) { } // Parse the entire message - var messageHeader = fmt.Sprintf("Civo Quota Health\nRegion: %s\n\nNote that if any of these are approaching their limits, you may want to increase them.", cloudRegion) + messageHeader := fmt.Sprintf("Civo Quota Health\nRegion: %s\n\nNote that if any of these are approaching their limits, you may want to increase them.", cloudRegion) sort.Strings(output) result := printCivoQuotaWarning(messageHeader, output) @@ -164,7 +164,6 @@ func printCivoQuotaWarning(messageHeader string, output []string) string { // Write to logs, but also output to stdout return createCivoQuotaWarning.String() - } // evalCivoQuota provides an interface to the command-line diff --git a/cmd/digitalocean/command.go b/cmd/digitalocean/command.go index 391b4feaf..02fc40192 100644 --- a/cmd/digitalocean/command.go +++ b/cmd/digitalocean/command.go @@ -104,7 +104,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") - createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma seperated values to install after provision") + createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") createCmd.Flags().BoolVar(&installKubefirstProFlag, "install-kubefirst-pro", true, "whether or not to install kubefirst pro") diff --git a/cmd/digitalocean/create.go b/cmd/digitalocean/create.go index 6ca997a7b..a875ed5fd 100644 --- a/cmd/digitalocean/create.go +++ b/cmd/digitalocean/create.go @@ -56,7 +56,6 @@ func createDigitalocean(cmd *cobra.Command, args []string) error { utilities.CreateK1ClusterDirectory(clusterNameFlag) gitAuth, err := gitShim.ValidateGitCredentials(cliFlags.GitProvider, cliFlags.GithubOrg, cliFlags.GitlabGroup) - if err != nil { progress.Error(err.Error()) return nil diff --git a/cmd/google/command.go b/cmd/google/command.go index b5ac28836..5f175bf2f 100644 --- a/cmd/google/command.go +++ b/cmd/google/command.go @@ -108,7 +108,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") - createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma seperated values to install after provision") + createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") createCmd.Flags().BoolVar(&forceDestroyFlag, "force-destroy", false, "allows force destruction on objects (helpful for test environments, defaults to false)") createCmd.Flags().BoolVar(&installKubefirstProFlag, "install-kubefirst-pro", true, "whether or not to install kubefirst pro") diff --git a/cmd/info.go b/cmd/info.go index 2527abb75..f95b90d25 100755 --- a/cmd/info.go +++ b/cmd/info.go @@ -20,7 +20,6 @@ var infoCmd = &cobra.Command{ Short: "provides general Kubefirst setup data", Long: `Provides machine data, files and folders paths`, Run: func(cmd *cobra.Command, args []string) { - config := configs.ReadConfig() content := ` diff --git a/cmd/k3d/command.go b/cmd/k3d/command.go index 51f2c65e7..5b8b2c3d4 100644 --- a/cmd/k3d/command.go +++ b/cmd/k3d/command.go @@ -96,7 +96,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") - createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma seperated values of catalog apps to install after provision") + createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values of catalog apps to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") return createCmd diff --git a/cmd/k3d/create.go b/cmd/k3d/create.go index 16943a783..e2b25c1ce 100644 --- a/cmd/k3d/create.go +++ b/cmd/k3d/create.go @@ -9,6 +9,7 @@ package k3d import ( "context" "encoding/base64" + "errors" "fmt" "net/http" "os" @@ -54,10 +55,6 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) -var ( - cancelContext context.CancelFunc -) - func runK3d(cmd *cobra.Command, args []string) error { ciFlag, err := cmd.Flags().GetBool("ci") if err != nil { @@ -137,14 +134,14 @@ func runK3d(cmd *cobra.Command, args []string) error { case "github": key, err := internalssh.GetHostKey("github.com") if err != nil { - return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan github.com >> ~/.ssh/known_hosts` to remedy") + return errors.New("known_hosts file does not exist - please run `ssh-keyscan github.com >> ~/.ssh/known_hosts` to remedy") } else { log.Info().Msgf("%s %s\n", "github.com", key.Type()) } case "gitlab": key, err := internalssh.GetHostKey("gitlab.com") if err != nil { - return fmt.Errorf("known_hosts file does not exist - please run `ssh-keyscan gitlab.com >> ~/.ssh/known_hosts` to remedy") + return errors.New("known_hosts file does not exist - please run `ssh-keyscan gitlab.com >> ~/.ssh/known_hosts` to remedy") } else { log.Info().Msgf("%s %s\n", "gitlab.com", key.Type()) } @@ -152,7 +149,7 @@ func runK3d(cmd *cobra.Command, args []string) error { // Either user or org can be specified for github, not both if githubOrgFlag != "" && githubUserFlag != "" { - return fmt.Errorf("only one of --github-user or --github-org can be supplied") + return errors.New("only one of --github-user or --github-org can be supplied") } // Check for existing port forwards before continuing @@ -171,8 +168,8 @@ func runK3d(cmd *cobra.Command, args []string) error { // } // Global context - var ctx context.Context - ctx, cancelContext = context.WithCancel(context.Background()) + ctx, cancel := context.WithCancel(context.Background()) + defer cancel() // Clients httpClient := http.DefaultClient @@ -357,7 +354,7 @@ func runK3d(cmd *cobra.Command, args []string) error { } default: switch gitopsTemplateURLFlag { - case "https://github.com/kubefirst/gitops-template.git": //default value + case "https://github.com/kubefirst/gitops-template.git": // default value if gitopsTemplateBranchFlag == "" { gitopsTemplateBranchFlag = configs.K1Version } @@ -366,7 +363,7 @@ func runK3d(cmd *cobra.Command, args []string) error { gitopsTemplateBranchFlag = configs.K1Version } default: // not equal to our defaults - if gitopsTemplateBranchFlag == "" { //didn't supply the branch flag but they did supply the repo flag + if gitopsTemplateBranchFlag == "" { // didn't supply the branch flag but they did supply the repo flag return fmt.Errorf("must supply gitops-template-branch flag when gitops-template-url is overridden") } } @@ -575,11 +572,11 @@ func runK3d(cmd *cobra.Command, args []string) error { config.GitProvider, clusterNameFlag, clusterTypeFlag, - config.DestinationGitopsRepoURL, //default to https for git interactions when creating remotes + config.DestinationGitopsRepoURL, // default to https for git interactions when creating remotes config.GitopsDir, gitopsTemplateBranchFlag, gitopsTemplateURLFlag, - config.DestinationMetaphorRepoURL, //default to https for git interactions when creating remotes + config.DestinationMetaphorRepoURL, // default to https for git interactions when creating remotes config.K1Dir, &gitopsDirectoryTokens, config.MetaphorDir, @@ -714,7 +711,7 @@ func runK3d(cmd *cobra.Command, args []string) error { return err } - //Push to remotes and use https + // Push to remotes and use https // Push gitops repo to remote err = gitopsRepo.Push( &git.PushOptions{ @@ -1142,7 +1139,7 @@ func runK3d(cmd *cobra.Command, args []string) error { log.Info().Msgf("Error creating Minio client: %s", err) } - //define upload object + // define upload object objectName := fmt.Sprintf("terraform/%s/terraform.tfstate", config.GitProvider) filePath := config.K1Dir + fmt.Sprintf("/gitops/%s", objectName) contentType := "xl.meta" @@ -1301,7 +1298,7 @@ func runK3d(cmd *cobra.Command, args []string) error { progressPrinter.IncrementTracker("creating-users", 1) } - //PostRun string replacement + // PostRun string replacement progressPrinter.AddTracker("wrapping-up", "Wrapping up", 2) progressPrinter.SetupProgress(progressPrinter.TotalOfTrackers(), false) @@ -1316,7 +1313,7 @@ func runK3d(cmd *cobra.Command, args []string) error { if err != nil { log.Info().Msgf("error opening repo at: %s", config.GitopsDir) } - //check if file exists before rename + // check if file exists before rename _, err = os.Stat(fmt.Sprintf("%s/terraform/%s/remote-backend.md", config.GitopsDir, config.GitProvider)) if err == nil { err = os.Rename(fmt.Sprintf("%s/terraform/%s/remote-backend.md", config.GitopsDir, config.GitProvider), fmt.Sprintf("%s/terraform/%s/remote-backend.tf", config.GitopsDir, config.GitProvider)) diff --git a/cmd/k3d/destroy.go b/cmd/k3d/destroy.go index 4fc90c5af..a6540e592 100644 --- a/cmd/k3d/destroy.go +++ b/cmd/k3d/destroy.go @@ -151,7 +151,7 @@ func destroyK3d(cmd *cobra.Command, args []string) error { // Before removing Terraform resources, remove any container registry repositories // since failing to remove them beforehand will result in an apply failure - var projectsForDeletion = []string{"gitops", "metaphor"} + projectsForDeletion := []string{"gitops", "metaphor"} for _, project := range projectsForDeletion { projectExists, err := gitlabClient.CheckProjectExists(project) if err != nil { @@ -250,7 +250,7 @@ func destroyK3d(cmd *cobra.Command, args []string) error { if _, err := os.Stat(config.K1Dir + "/kubeconfig"); !os.IsNotExist(err) { err = os.Remove(config.K1Dir + "/kubeconfig") if err != nil { - return fmt.Errorf("unable to delete %q folder, error: %s", config.K1Dir+"/kubeconfig", err) + return fmt.Errorf("unable to delete %q folder, error: %w", config.K1Dir+"/kubeconfig", err) } } time.Sleep(time.Millisecond * 200) // allows progress bars to finish diff --git a/cmd/k3d/mkcert.go b/cmd/k3d/mkcert.go index 3fbaa9ef4..5e3816fa2 100644 --- a/cmd/k3d/mkcert.go +++ b/cmd/k3d/mkcert.go @@ -48,7 +48,7 @@ func mkCert(cmd *cobra.Command, args []string) error { err = k3d.GenerateSingleTLSSecret(kcfg.Clientset, *config, appNameFlag, appNamespaceFlag) if err != nil { - return fmt.Errorf("error generating certificate for %s/%s: %s", appNameFlag, appNamespaceFlag, err) + return fmt.Errorf("error generating certificate for %s/%s: %w", appNameFlag, appNamespaceFlag, err) } log.Infof("Certificate generated. You can use it with an app by setting `tls.secretName: %s-tls` on a Traefik IngressRoute.", appNameFlag) diff --git a/cmd/k3d/vault.go b/cmd/k3d/vault.go index 2fc1624ea..9f3b4bb92 100644 --- a/cmd/k3d/vault.go +++ b/cmd/k3d/vault.go @@ -88,7 +88,7 @@ func unsealVault(cmd *cobra.Command, args []string) error { } } if i == 5 { - return fmt.Errorf("error passing unseal shard %v to %s: %s", i+1, node, err) + return fmt.Errorf("error passing unseal shard %v to %s: %w", i+1, node, err) } } // Wait for key acceptance @@ -99,7 +99,7 @@ func unsealVault(cmd *cobra.Command, args []string) error { } if sealStatus.Progress > sealStatusTracking || !sealStatus.Sealed { log.Info().Msgf("shard accepted") - sealStatusTracking += 1 + sealStatusTracking++ break } log.Info().Msgf("waiting for node %s to accept unseal shard", node) diff --git a/cmd/k3s/command.go b/cmd/k3s/command.go index bbc6c9a38..1164ee2f6 100644 --- a/cmd/k3s/command.go +++ b/cmd/k3s/command.go @@ -105,7 +105,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") - createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma seperated values to install after provision") + createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") createCmd.Flags().BoolVar(&forceDestroyFlag, "force-destroy", false, "allows force destruction on objects (helpful for test environments, defaults to false)") createCmd.Flags().BoolVar(&installKubefirstProFlag, "install-kubefirst-pro", true, "whether or not to install kubefirst pro") diff --git a/cmd/launch.go b/cmd/launch.go index 47c55b6df..a709c6322 100644 --- a/cmd/launch.go +++ b/cmd/launch.go @@ -13,10 +13,8 @@ import ( "github.com/spf13/cobra" ) -var ( - // additionalHelmFlags can optionally pass user-supplied flags to helm - additionalHelmFlags []string -) +// additionalHelmFlags can optionally pass user-supplied flags to helm +var additionalHelmFlags []string func LaunchCommand() *cobra.Command { launchCommand := &cobra.Command{ diff --git a/cmd/letsencrypt.go b/cmd/letsencrypt.go index d1d06339b..7e989c959 100644 --- a/cmd/letsencrypt.go +++ b/cmd/letsencrypt.go @@ -14,10 +14,8 @@ import ( "github.com/spf13/cobra" ) -var ( - // Certificate check - domainNameFlag string -) +// Certificate check +var domainNameFlag string func LetsEncryptCommand() *cobra.Command { letsEncryptCommand := &cobra.Command{ diff --git a/cmd/reset.go b/cmd/reset.go index 86ae7d669..437324e54 100755 --- a/cmd/reset.go +++ b/cmd/reset.go @@ -30,16 +30,15 @@ var resetCmd = &cobra.Command{ cloudProvider := viper.GetString("kubefirst.cloud-provider") checksMap := viper.Get("kubefirst-checks") - switch checksMap.(type) { + switch v := checksMap.(type) { case string: - content := checksMap.(string) - if content == "" { + if v == "" { log.Info().Msg("checks map is empty, continuing") } else { return fmt.Errorf("unable to determine contents of kubefirst-checks") } - default: - checks, err := parseConfigEntryKubefirstChecks(checksMap) + case map[string]interface{}: + checks, err := parseConfigEntryKubefirstChecks(v) if err != nil { log.Error().Msgf("error: %s - resetting directory without checks", err) } @@ -58,10 +57,12 @@ var resetCmd = &cobra.Command{ cloudProvider, ) } + default: + return fmt.Errorf("unable to determine contents of kubefirst-checks: unexpected type %T", v) + } runReset() - return nil }, } @@ -72,11 +73,10 @@ func init() { // parseConfigEntryKubefirstChecks gathers the kubefirst-checks section of the Viper // config file and parses as a map[string]bool -func parseConfigEntryKubefirstChecks(raw interface{}) (map[string]bool, error) { - if raw == nil { +func parseConfigEntryKubefirstChecks(checks map[string]interface{}) (map[string]bool, error) { + if checks == nil { return map[string]bool{}, fmt.Errorf("checks configuration is nil") } - checks := raw.(map[string]interface{}) checksMap := make(map[string]bool, 0) for key, value := range checks { strKey := fmt.Sprintf("%v", key) diff --git a/cmd/root.go b/cmd/root.go index c82f234bf..765830083 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -42,9 +42,9 @@ var rootCmd = &cobra.Command{ // Execute adds all child commands to the root command and sets flags appropriately. // This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { - //This will allow all child commands to have informUser available for free. - //Refers: https://github.com/kubefirst/runtime/issues/525 - //Before removing next line, please read ticket above. + // This will allow all child commands to have informUser available for free. + // Refers: https://github.com/kubefirst/runtime/issues/525 + // Before removing next line, please read ticket above. common.CheckForVersionUpdate() progressPrinter.GetInstance() err := rootCmd.Execute() diff --git a/cmd/vultr/command.go b/cmd/vultr/command.go index 5cbb32266..c90035b15 100644 --- a/cmd/vultr/command.go +++ b/cmd/vultr/command.go @@ -50,7 +50,6 @@ var ( ) func NewCommand() *cobra.Command { - vultrCmd := &cobra.Command{ Use: "vultr", Short: "kubefirst Vultr installation", @@ -104,7 +103,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") - createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma seperated values to install after provision") + createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") createCmd.Flags().BoolVar(&installKubefirstProFlag, "install-kubefirst-pro", true, "whether or not to install kubefirst pro") diff --git a/cmd/vultr/create.go b/cmd/vultr/create.go index 6c59152d8..b2dc08a88 100644 --- a/cmd/vultr/create.go +++ b/cmd/vultr/create.go @@ -57,7 +57,6 @@ func createVultr(cmd *cobra.Command, args []string) error { utilities.CreateK1ClusterDirectory(clusterNameFlag) gitAuth, err := gitShim.ValidateGitCredentials(cliFlags.GitProvider, cliFlags.GithubOrg, cliFlags.GitlabGroup) - if err != nil { progress.Error(err.Error()) return nil diff --git a/internal/cluster/cluster.go b/internal/cluster/cluster.go index b4682bc1c..fb9da8891 100644 --- a/internal/cluster/cluster.go +++ b/internal/cluster/cluster.go @@ -22,8 +22,7 @@ import ( ) func GetConsoleIngresUrl() string { - - if strings.ToLower(os.Getenv("K1_LOCAL_DEBUG")) == "true" { //allow using local console running on port 3000 + if strings.ToLower(os.Getenv("K1_LOCAL_DEBUG")) == "true" { // allow using local console running on port 3000 return os.Getenv("K1_CONSOLE_REMOTE_URL") } @@ -57,6 +56,7 @@ func CreateCluster(cluster apiTypes.ClusterDefinition) error { log.Info().Msgf("error %s", err) return err } + defer res.Body.Close() body, err := io.ReadAll(res.Body) if err != nil { @@ -101,6 +101,7 @@ func ResetClusterProgress(clusterName string) error { log.Info().Msgf("error %s", err) return err } + defer res.Body.Close() if res.StatusCode != http.StatusOK { log.Info().Msgf("unable to create cluster %s", res.Status) @@ -137,6 +138,7 @@ func GetCluster(clusterName string) (apiTypes.Cluster, error) { log.Info().Msgf("error %s", err) return cluster, err } + defer res.Body.Close() if res.StatusCode != http.StatusOK { log.Info().Msgf("unable to get cluster %s, continuing", res.Status) diff --git a/internal/common/common.go b/internal/common/common.go index 0026fe9e8..3fd34397d 100644 --- a/internal/common/common.go +++ b/internal/common/common.go @@ -63,7 +63,6 @@ func versionCheck() (res *CheckResponse, skip bool) { flatVersion := strings.ReplaceAll(configs.K1Version, "v", "") resp, err := http.Get("https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/k/kubefirst.rb") - if err != nil { fmt.Printf("checking for a newer version failed (cannot get Homebrew formula) with: %s", err) return nil, true diff --git a/internal/gitShim/containerRegistryAuth.go b/internal/gitShim/containerRegistryAuth.go index 268c32026..720e69a84 100644 --- a/internal/gitShim/containerRegistryAuth.go +++ b/internal/gitShim/containerRegistryAuth.go @@ -71,7 +71,7 @@ func CreateContainerRegistrySecret(obj *ContainerRegistryAuth) (string, error) { } // Create argo workflows pull secret - var p = gitlab.DeployTokenCreateParameters{ + p := gitlab.DeployTokenCreateParameters{ Name: secretName, Username: secretName, Scopes: []string{"read_registry", "write_registry"}, diff --git a/internal/launch/cmd.go b/internal/launch/cmd.go index 1a9d6c341..97d7257bf 100644 --- a/internal/launch/cmd.go +++ b/internal/launch/cmd.go @@ -31,10 +31,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) -var ( - // Describes the local kubefirst console cluster name - consoleClusterName = "kubefirst-console" -) +// Describes the local kubefirst console cluster name +var consoleClusterName = "kubefirst-console" // Up func Up(additionalHelmFlags []string, inCluster bool, useTelemetry bool) { @@ -84,7 +82,7 @@ func Up(additionalHelmFlags []string, inCluster bool, useTelemetry bool) { if err != nil { progress.Error(fmt.Sprintf("error while trying to download k3d: %s", err)) } - err = os.Chmod(k3dClient, 0755) + err = os.Chmod(k3dClient, 0o755) if err != nil { log.Fatal().Msg(err.Error()) } @@ -112,15 +110,14 @@ func Up(additionalHelmFlags []string, inCluster bool, useTelemetry bool) { } helmTarDownload, err := os.Open(helmDownloadTarGzPath) if err != nil { - progress.Error(fmt.Sprintf("could not read helm download content")) - + progress.Error("could not read helm download content") } downloadManager.ExtractFileFromTarGz( helmTarDownload, fmt.Sprintf("%s-%s/helm", k3d.LocalhostOS, k3d.LocalhostARCH), helmClient, ) - err = os.Chmod(helmClient, 0755) + err = os.Chmod(helmClient, 0o755) if err != nil { log.Fatal().Msg(err.Error()) } @@ -145,7 +142,7 @@ func Up(additionalHelmFlags []string, inCluster bool, useTelemetry bool) { if err != nil { progress.Error(fmt.Sprintf("error while trying to download mkcert: %s", err)) } - err = os.Chmod(mkcertClient, 0755) + err = os.Chmod(mkcertClient, 0o755) if err != nil { progress.Error(err.Error()) } @@ -427,8 +424,8 @@ func Up(additionalHelmFlags []string, inCluster bool, useTelemetry bool) { Namespace: namespace, }, Data: map[string][]byte{ - "tls.crt": []byte(certPem), - "tls.key": []byte(keyPem), + "tls.crt": certPem, + "tls.key": keyPem, }, }, metav1.CreateOptions{}) if err != nil { @@ -518,17 +515,17 @@ func Down(inCluster bool) { // ListClusters makes a request to the console API to list created clusters func ListClusters() { clusters, err := cluster.GetClusters() - - err = displayFormattedClusterInfo(clusters) if err != nil { - progress.Error(fmt.Sprintf("error printing cluster list: %s", err)) + progress.Error(fmt.Sprintf("error getting clusters: %s", err)) + return } + + displayFormattedClusterInfo(clusters) } // DeleteCluster makes a request to the console API to delete a single cluster func DeleteCluster(managedClusterName string) { err := cluster.DeleteCluster(managedClusterName) - if err != nil { progress.Error(fmt.Sprintf("error: cluster %s not found\n", managedClusterName)) } diff --git a/internal/launch/utils.go b/internal/launch/utils.go index 464d12803..916a32e60 100644 --- a/internal/launch/utils.go +++ b/internal/launch/utils.go @@ -15,7 +15,7 @@ import ( // displayFormattedClusterInfo uses tabwriter to pretty print information on clusters using // the specified formatting -func displayFormattedClusterInfo(clusters []types.Cluster) error { +func displayFormattedClusterInfo(clusters []types.Cluster) { header := ` | NAME | CREATED AT | STATUS | TYPE | PROVIDER | | --- | --- | --- | --- | --- | @@ -32,6 +32,4 @@ func displayFormattedClusterInfo(clusters []types.Cluster) error { } progress.Success(header + content) - - return nil } diff --git a/internal/progress/command.go b/internal/progress/command.go index 6a40888ef..a8b16b181 100644 --- a/internal/progress/command.go +++ b/internal/progress/command.go @@ -18,9 +18,7 @@ import ( func GetClusterInterval(clusterName string) tea.Cmd { return tea.Every(time.Second*10, func(t time.Time) tea.Msg { provisioningCluster, err := cluster.GetCluster(clusterName) - if err != nil { - } return CusterProvisioningMsg(provisioningCluster) diff --git a/internal/provision/provision.go b/internal/provision/provision.go index 0e86a315c..d8c634319 100644 --- a/internal/provision/provision.go +++ b/internal/provision/provision.go @@ -8,7 +8,6 @@ package provision import ( apiTypes "github.com/kubefirst/kubefirst-api/pkg/types" - runtimeTypes "github.com/kubefirst/kubefirst-api/pkg/types" "github.com/kubefirst/kubefirst/internal/cluster" "github.com/kubefirst/kubefirst/internal/progress" "github.com/kubefirst/kubefirst/internal/types" @@ -16,7 +15,7 @@ import ( "github.com/rs/zerolog/log" ) -func CreateMgmtCluster(gitAuth runtimeTypes.GitAuth, cliFlags types.CliFlags, catalogApps []apiTypes.GitopsCatalogApp) { +func CreateMgmtCluster(gitAuth apiTypes.GitAuth, cliFlags types.CliFlags, catalogApps []apiTypes.GitopsCatalogApp) { clusterRecord := utilities.CreateClusterDefinitionRecordFromRaw( gitAuth, cliFlags, diff --git a/internal/provisionLogs/command.go b/internal/provisionLogs/command.go index 8e11009e6..0d089f62e 100644 --- a/internal/provisionLogs/command.go +++ b/internal/provisionLogs/command.go @@ -30,8 +30,8 @@ var ( ) func AddLog(logMsg string) { - log := Log{} - formatterMsg := "" + var log Log + var formatterMsg string err := json.Unmarshal([]byte(logMsg), &log) if err != nil { diff --git a/internal/provisionLogs/constants.go b/internal/provisionLogs/constants.go deleted file mode 100644 index 7a35585ba..000000000 --- a/internal/provisionLogs/constants.go +++ /dev/null @@ -1,29 +0,0 @@ -/* -Copyright (C) 2021-2023, Kubefirst - -This program is licensed under MIT. -See the LICENSE file for more details. -*/ -package provisionLogs - -import ( - "time" - - "github.com/charmbracelet/lipgloss" -) - -const ( - padding = 2 - maxWidth = 80 -) - -const debounceDuration = time.Second * 10 - -var ( - currentPkgNameStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("211")) - doneStyle = lipgloss.NewStyle().Margin(1, 2) - checkMark = lipgloss.NewStyle().Foreground(lipgloss.Color("42")).SetString("✓") - helpStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#626262")).Render - StatusStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#FFFFFF")).Bold(true).Render - spinnerStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("69")) -) diff --git a/internal/segment/segment.go b/internal/segment/segment.go index 45c2c42c7..d2661c23b 100644 --- a/internal/segment/segment.go +++ b/internal/segment/segment.go @@ -14,7 +14,6 @@ const ( ) func InitClient(clusterId, clusterType, gitProvider string) telemetry.TelemetryEvent { - machineID, _ := machineid.ID() c := telemetry.TelemetryEvent{ diff --git a/internal/utilities/utilities.go b/internal/utilities/utilities.go index a10752948..88185866c 100644 --- a/internal/utilities/utilities.go +++ b/internal/utilities/utilities.go @@ -249,7 +249,6 @@ func ExportCluster(cluster apiTypes.Cluster, kcfg *k8s.KubernetesClient) error { } err = k8s.CreateSecretV2(kcfg.Clientset, secret) - if err != nil { return fmt.Errorf(fmt.Sprintf("unable to save secret to management cluster. %s", err)) } diff --git a/main.go b/main.go index d5b4d0a77..34ff9a514 100644 --- a/main.go +++ b/main.go @@ -30,13 +30,11 @@ func main() { bubbleTeaBlacklist := []string{"completion", "help", "--help", "-h", "quota", "logs"} canRunBubbleTea := true - if argsWithProg != nil { - for _, arg := range argsWithProg { - isBlackListed := slices.Contains(bubbleTeaBlacklist, arg) + for _, arg := range argsWithProg { + isBlackListed := slices.Contains(bubbleTeaBlacklist, arg) - if isBlackListed { - canRunBubbleTea = false - } + if isBlackListed { + canRunBubbleTea = false } } @@ -91,7 +89,7 @@ func main() { //* create log directory logsFolder := fmt.Sprintf("%s/logs", k1Dir) - _ = os.Mkdir(logsFolder, 0700) + _ = os.Mkdir(logsFolder, 0o700) if err != nil { log.Fatal().Msgf("error creating logs directory: %s", err) } @@ -139,5 +137,4 @@ func main() { } else { cmd.Execute() } - } From 74dc4e212218aececace2da31ec62123f482af87 Mon Sep 17 00:00:00 2001 From: kube1st Date: Thu, 1 Aug 2024 18:33:04 +0000 Subject: [PATCH 07/95] set next macro chart for kubefirst - 2.4.14-rc42 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 008859ebd..9e6825b54 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc41" + helmChartVersion = "2.4.14-rc42" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From b99a6c12dc778e7526c2e9ce7dead92e447a4499 Mon Sep 17 00:00:00 2001 From: kube1st Date: Thu, 1 Aug 2024 18:59:20 +0000 Subject: [PATCH 08/95] set next macro chart for kubefirst - 2.4.14-rc43 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 9e6825b54..075faf4f8 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc42" + helmChartVersion = "2.4.14-rc43" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 17c689199cb90075677dc63238b738bb37a17f6f Mon Sep 17 00:00:00 2001 From: kube1st Date: Thu, 1 Aug 2024 19:06:41 +0000 Subject: [PATCH 09/95] set next macro chart for kubefirst - 2.4.14-rc44 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 075faf4f8..e984010b6 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc43" + helmChartVersion = "2.4.14-rc44" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 5fbe8a8fb2e686d21bdfe8e2b705965bfb89c9e9 Mon Sep 17 00:00:00 2001 From: kube1st Date: Fri, 2 Aug 2024 12:43:02 +0000 Subject: [PATCH 10/95] set next macro chart for kubefirst - 2.4.14-rc45 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index e984010b6..121ee7fd4 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc44" + helmChartVersion = "2.4.14-rc45" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 82d9f6a76cb9165bcd23172f79a9049716f93d41 Mon Sep 17 00:00:00 2001 From: kube1st Date: Fri, 2 Aug 2024 12:56:54 +0000 Subject: [PATCH 11/95] set next macro chart for kubefirst - 2.4.14-rc46 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 121ee7fd4..cd6ebb9a0 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc45" + helmChartVersion = "2.4.14-rc46" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 6df9fc3798dc8675b4f09b2893176e491f3b7dd6 Mon Sep 17 00:00:00 2001 From: kube1st Date: Fri, 2 Aug 2024 17:58:18 +0000 Subject: [PATCH 12/95] set next macro chart for kubefirst - 2.4.14-rc49 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index cd6ebb9a0..2240290c6 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc46" + helmChartVersion = "2.4.14-rc49" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 406ff32e3f18395bc628bcd10281d9aa37867696 Mon Sep 17 00:00:00 2001 From: kube1st Date: Mon, 5 Aug 2024 19:34:29 +0000 Subject: [PATCH 13/95] set next macro chart for kubefirst - 2.50.0-rc.2a704f6 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 2240290c6..5bb74e219 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc49" + helmChartVersion = "2.50.0-rc.2a704f6" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From a15e4b68d0dc0cc36634ca5b4e8a2c39c3b9c6a7 Mon Sep 17 00:00:00 2001 From: kube1st Date: Mon, 5 Aug 2024 20:19:21 +0000 Subject: [PATCH 14/95] set next macro chart for kubefirst - 2.50.0-rc.e4183ac --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 5bb74e219..d59fc6b50 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.50.0-rc.2a704f6" + helmChartVersion = "2.50.0-rc.e4183ac" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 98cde55a20b66c27a7c6a4c04763b5a2f1f46121 Mon Sep 17 00:00:00 2001 From: kube1st Date: Mon, 5 Aug 2024 20:43:02 +0000 Subject: [PATCH 15/95] set next macro chart for kubefirst - 2.4.14-rc54 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index d59fc6b50..ab2650a15 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.50.0-rc.e4183ac" + helmChartVersion = "2.4.14-rc54" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 1b9057ec0da5de2b884d432004913eb81f90ad11 Mon Sep 17 00:00:00 2001 From: kube1st Date: Mon, 5 Aug 2024 21:16:10 +0000 Subject: [PATCH 16/95] set next macro chart for kubefirst - 2.4.14-rc55 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index ab2650a15..1c5b93914 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc54" + helmChartVersion = "2.4.14-rc55" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 88ac1648c644bb42660690f8ca7062ff4070cf31 Mon Sep 17 00:00:00 2001 From: kube1st Date: Mon, 5 Aug 2024 21:27:22 +0000 Subject: [PATCH 17/95] set next macro chart for kubefirst - 2.4.14-rc56 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 1c5b93914..ec4b8a152 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc55" + helmChartVersion = "2.4.14-rc56" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 49c70f8c1de91a1b24b0fdde4eef4fcacc69ef0d Mon Sep 17 00:00:00 2001 From: kube1st Date: Mon, 5 Aug 2024 21:44:40 +0000 Subject: [PATCH 18/95] set next macro chart for kubefirst - 2.4.14-rc57 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index ec4b8a152..ffa5b73bb 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc56" + helmChartVersion = "2.4.14-rc57" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 7ba055cbfe5c2ea008d07b2e197c91c22c726609 Mon Sep 17 00:00:00 2001 From: kube1st Date: Mon, 5 Aug 2024 21:48:39 +0000 Subject: [PATCH 19/95] set next macro chart for kubefirst - 2.4.14-rc58 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index ffa5b73bb..1681a9906 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc57" + helmChartVersion = "2.4.14-rc58" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From b57a2140013a5ed2e155d7ba81f1b53283d2a56b Mon Sep 17 00:00:00 2001 From: kube1st Date: Mon, 5 Aug 2024 21:58:23 +0000 Subject: [PATCH 20/95] set next macro chart for kubefirst - 2.4.14-rc59 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 1681a9906..35e89e981 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc58" + helmChartVersion = "2.4.14-rc59" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 6833c30bd9c327f56378a3058d2c08415c4df873 Mon Sep 17 00:00:00 2001 From: kube1st Date: Mon, 5 Aug 2024 22:06:57 +0000 Subject: [PATCH 21/95] set next macro chart for kubefirst - 2.4.14-rc60 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 35e89e981..1a0620afe 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc59" + helmChartVersion = "2.4.14-rc60" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 83c7672ee323375565c95bedfbda974ebe9c2138 Mon Sep 17 00:00:00 2001 From: kube1st Date: Mon, 5 Aug 2024 22:12:29 +0000 Subject: [PATCH 22/95] set next macro chart for kubefirst - 2.4.14-rc61 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 1a0620afe..bd47293d8 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc60" + helmChartVersion = "2.4.14-rc61" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 01e1c05aca6817e365bc682e50e21ee6ac538bf0 Mon Sep 17 00:00:00 2001 From: kube1st Date: Mon, 5 Aug 2024 22:24:27 +0000 Subject: [PATCH 23/95] set next macro chart for kubefirst - 2.4.14-rc62 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index bd47293d8..7d486f699 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc61" + helmChartVersion = "2.4.14-rc62" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 6e661bf7dcb865b3ef179f512d3408465f6209f6 Mon Sep 17 00:00:00 2001 From: Simon Emms Date: Tue, 6 Aug 2024 09:39:11 +0100 Subject: [PATCH 24/95] chore: add support for editorconfig (#2242) --- .editorconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..8de40a7b5 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +# editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.go] +indent_style = tab +indent_size = 4 + +[Makefile] +indent_style = tab +indent_size = 4 From a3c76b7b5eeab0d6e78db930101023b09d0c8b6f Mon Sep 17 00:00:00 2001 From: kube1st Date: Tue, 6 Aug 2024 14:16:37 +0000 Subject: [PATCH 25/95] set next macro chart for kubefirst - 2.4.15-rc2 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 7d486f699..45518cf09 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.14-rc62" + helmChartVersion = "2.4.15-rc2" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 6eaac71bed64ceec36e658b7a7af84dfee10bcca Mon Sep 17 00:00:00 2001 From: kube1st Date: Tue, 6 Aug 2024 14:22:51 +0000 Subject: [PATCH 26/95] set next macro chart for kubefirst - 2.4.15-rc3 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 45518cf09..018654385 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.15-rc2" + helmChartVersion = "2.4.15-rc3" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From b9b0d3ba487997d19e741dc8f23194870860238d Mon Sep 17 00:00:00 2001 From: kube1st Date: Tue, 6 Aug 2024 18:03:45 +0000 Subject: [PATCH 27/95] set next macro chart for kubefirst - 2.4.15-rc4 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 018654385..d9ec49ad9 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.15-rc3" + helmChartVersion = "2.4.15-rc4" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 159039323efa0387fe25c373bad85b6aad72293c Mon Sep 17 00:00:00 2001 From: kube1st Date: Tue, 6 Aug 2024 18:36:30 +0000 Subject: [PATCH 28/95] set next macro chart for kubefirst - 2.4.15 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index d9ec49ad9..e2c738348 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.15-rc4" + helmChartVersion = "2.4.15" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 2a6d2190ea4fec3674e83ab68fcb4476152a65a2 Mon Sep 17 00:00:00 2001 From: Simon Emms Date: Wed, 7 Aug 2024 08:35:09 +0100 Subject: [PATCH 29/95] chore: add devcontainer for local development (#2258) --- .devcontainer/devcontainer.json | 11 +++++++++++ CONTRIBUTING.md | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..41ddfd73a --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,11 @@ +{ + "name": "devcontainer", + "image": "ghcr.io/kubefirst/devcontainers/full", + "features": {}, + "customizations": { + "vscode": { + "extensions": [], + "settings": {} + } + } +} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 77eab2afc..7784739e7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,6 +19,12 @@ Before making a code change, first discuss your idea via an [issue](https://gith ## Getting Started with the Code +### Dev containers + +A [.devcontainer](https://containers.dev/) configuration is provided to allow for a full-featured development environment. + +### Local development + Kubefirst is created using the [Go Programming Language](https://go.dev). To set up your computer, follow [these steps](https://go.dev/doc/install). Once Go is installed, you can run Kubefirst from any branch using `go run .`. Go will automatically install the needed modules listed in the [go.mod](go.mod) file. As an example, if you want to create a [local cluster](https://docs.kubefirst.io/kubefirst/local/install.html), the command would be `go run . k3d create`. Note that even if you run kubefirst from `main`, the [gitops-template](https://github.com/kubefirst/gitops-template) version used will be the [latest release](https://github.com/kubefirst/gitops-template/releases). If you also want to use the latest from `main` for the template also, you need to run to use the `--gitops-template-url`, and the `--gitops-template-branch` as follow: From fd6d92804773a23c30303685e8b385216586d566 Mon Sep 17 00:00:00 2001 From: kube1st Date: Wed, 7 Aug 2024 07:49:42 +0000 Subject: [PATCH 30/95] set next macro chart for kubefirst - 2.6.0-rc1 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index e2c738348..bb4fc6b95 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.15" + helmChartVersion = "2.6.0-rc1" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 1e9f486a77c068e960b4a4e11141e0311ecf33ef Mon Sep 17 00:00:00 2001 From: kube1st Date: Wed, 7 Aug 2024 23:48:58 +0000 Subject: [PATCH 31/95] set next macro chart for kubefirst - 2.4.16-rc2 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index bb4fc6b95..61e1b95cf 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.6.0-rc1" + helmChartVersion = "2.4.16-rc2" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 6ee0f151c760e3ca137314c750cc71d0c8c81d3e Mon Sep 17 00:00:00 2001 From: kube1st Date: Thu, 8 Aug 2024 00:00:36 +0000 Subject: [PATCH 32/95] set next macro chart for kubefirst - 2.4.16 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 61e1b95cf..0917dca3e 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.16-rc2" + helmChartVersion = "2.4.16" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From c8de0b9875d7501f467f4b37f3bce78fd8d21c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Harper?= Date: Thu, 15 Aug 2024 16:57:44 -0400 Subject: [PATCH 33/95] docs: update the local testing to reflect latest changes in the process (#2263) --- CONTRIBUTING.md | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7784739e7..02526f1a9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,15 +25,37 @@ A [.devcontainer](https://containers.dev/) configuration is provided to allow fo ### Local development +#### The CLI + Kubefirst is created using the [Go Programming Language](https://go.dev). To set up your computer, follow [these steps](https://go.dev/doc/install). -Once Go is installed, you can run Kubefirst from any branch using `go run .`. Go will automatically install the needed modules listed in the [go.mod](go.mod) file. As an example, if you want to create a [local cluster](https://docs.kubefirst.io/kubefirst/local/install.html), the command would be `go run . k3d create`. Note that even if you run kubefirst from `main`, the [gitops-template](https://github.com/kubefirst/gitops-template) version used will be the [latest release](https://github.com/kubefirst/gitops-template/releases). If you also want to use the latest from `main` for the template also, you need to run to use the `--gitops-template-url`, and the `--gitops-template-branch` as follow: +Once Go is installed, you can run Kubefirst from any branch using `go run .`. Go will automatically install the needed modules listed in the [go.mod](go.mod) file. Since Go is a compiled programming language, every time you use the `run` command, Go will compile the code before running it. If you want to save time, you can compile your code using `go build`, which will generate a file named `kubefirst`. You will then be able to run your compiled version with the `./kubefirst` command. + +If you want to create a [Civo cluster](https://docs.kubefirst.io/kubefirst/local/install.html), the command would be `go run . civo create`. + +#### GitOps Template + +Note that even if you run kubefirst from `main`, the [gitops-template](https://github.com/kubefirst/gitops-template) version used will be the [latest release](https://github.com/kubefirst/gitops-template/releases). If you also want to use the latest from `main` for the template, you need to run to use the `--gitops-template-url`, and the `--gitops-template-branch` as follow: + +```shell +go run . civo create --gitops-template-url https://github.com/kubefirst/gitops-template --gitops-template-branch main +``` + +#### Kubefirst API + +If you need to use a specific branch or latest from `main` that wasn't released yet for the [kubefirst-api](https://github.com/kubefirst/kubefirst-api) repository, you will need to first run it locally as described in [its documentation](https://github.com/kubefirst/kubefirst-api#running-locally). You will also need to run the code from [console](https://github.com/kubefirst/console) repository, whether you need to use a specific version of the code or not, as we don't expose the API directly. To do so, follow the [instructions in its README](https://github.com/kubefirst/console#setup-instructions). Before running the CLI as mentionned "The CLI" section, you need to export a local variable: ```shell -go run . k3d create --gitops-template-url https://github.com/kubefirst/gitops-template --gitops-template-branch main +export K1_CONSOLE_REMOTE_URL="http://localhost:3000" +``` + +The previous steps will work for all clouds except k3d which use our runtime for now: we have plan to remove this dependencies completely and use the API also to make the code easier to maintain, and less prone to issues. For that step, instead of running the API, and console locally, you simply need to clone the [kubefirst-api](https://github.com/kubefirst/kubefirst-api) repository locally, and add the following line in the `go.mod` file: + +```go +github.com/kubefirst/kubefirst-api vX.X.XX => /path-to/kubefirst-api/ ``` -Since Go is a compiled programming language, every time you use the `run` command, Go will compile the code before running it. If you want to save time, you can compile your code using `go build`, which will generate a file named `kubefirst`. You will then be able to run your compiled version with the `./kubefirst` command. +Replace `vX.X.XX` with the latest version used in the mode file for the API, and the `/path-to/kubefirst-api/` with the path to the folder of your locally Kubefirst API folder. ## Getting Started with the Documentation From ded53cce1d88f6be8b567e8124245edfef115a20 Mon Sep 17 00:00:00 2001 From: kube1st Date: Thu, 15 Aug 2024 21:01:02 +0000 Subject: [PATCH 34/95] set next macro chart for kubefirst - 2.4.16-rc1 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 0917dca3e..14d845286 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.16" + helmChartVersion = "2.4.16-rc1" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 3158fcefa35d20c8599e6b47b6e1cb26bc6bbb2d Mon Sep 17 00:00:00 2001 From: kube1st Date: Thu, 15 Aug 2024 21:35:01 +0000 Subject: [PATCH 35/95] set next macro chart for kubefirst - 2.4.16-rc3 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 14d845286..40f62ed77 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.16-rc1" + helmChartVersion = "2.4.16-rc3" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From f9fd6f4d4bb5a51eb71346b50e3a055b6095c320 Mon Sep 17 00:00:00 2001 From: kube1st Date: Thu, 15 Aug 2024 21:40:53 +0000 Subject: [PATCH 36/95] set next macro chart for kubefirst - 2.4.16-rc4 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 40f62ed77..dc7a740c5 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.16-rc3" + helmChartVersion = "2.4.16-rc4" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 49230a923b8dc342d3944361dc1539c1356897f7 Mon Sep 17 00:00:00 2001 From: kube1st Date: Thu, 15 Aug 2024 21:48:46 +0000 Subject: [PATCH 37/95] set next macro chart for kubefirst - 2.4.16-rc5 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index dc7a740c5..853eb9b4a 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.16-rc4" + helmChartVersion = "2.4.16-rc5" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 8e5067f49a5b846dd37390f0a30ee5912986bbed Mon Sep 17 00:00:00 2001 From: kube1st Date: Fri, 16 Aug 2024 04:27:05 +0000 Subject: [PATCH 38/95] set next macro chart for kubefirst - 2.4.17-rc3 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 853eb9b4a..c4f5f106e 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.16-rc5" + helmChartVersion = "2.4.17-rc3" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 41b8c0df3f745012ca4df576b958407f23ce433a Mon Sep 17 00:00:00 2001 From: kube1st Date: Fri, 16 Aug 2024 05:09:35 +0000 Subject: [PATCH 39/95] set next macro chart for kubefirst - 2.4.17-rc4 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index c4f5f106e..7d2b972e1 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.17-rc3" + helmChartVersion = "2.4.17-rc4" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 0c9efd446bdef3cd935f8ed593bb897ca52b3c6e Mon Sep 17 00:00:00 2001 From: kube1st Date: Fri, 16 Aug 2024 05:37:32 +0000 Subject: [PATCH 40/95] set next macro chart for kubefirst - 2.4.17-rc5 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 7d2b972e1..d731c9c07 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.17-rc4" + helmChartVersion = "2.4.17-rc5" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 49665b715b1899887e82454a920506f493ba5448 Mon Sep 17 00:00:00 2001 From: kube1st Date: Fri, 16 Aug 2024 06:02:02 +0000 Subject: [PATCH 41/95] set next macro chart for kubefirst - 2.4.17 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index d731c9c07..be78d78d3 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.17-rc5" + helmChartVersion = "2.4.17" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 357a690c59e781e500b2347cef13dc8b5119ff02 Mon Sep 17 00:00:00 2001 From: mrrishi Date: Tue, 27 Aug 2024 18:33:44 +0530 Subject: [PATCH 42/95] fix: akamai pro feature flag --- cmd/akamai/command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/akamai/command.go b/cmd/akamai/command.go index 4a17c39ac..bd2165802 100644 --- a/cmd/akamai/command.go +++ b/cmd/akamai/command.go @@ -35,6 +35,7 @@ var ( nodeTypeFlag string nodeCountFlag string installCatalogApps string + installKubefirstProFlag bool // RootCredentials copyArgoCDPasswordToClipboardFlag bool @@ -100,6 +101,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") + createCmd.Flags().BoolVar(&installKubefirstProFlag, "install-kubefirst-pro", true, "whether or not to install kubefirst pro") return createCmd } From 83f083570d7cc29e3bd670087893a57cb3a25c4e Mon Sep 17 00:00:00 2001 From: mrrishi Date: Tue, 27 Aug 2024 18:36:34 +0530 Subject: [PATCH 43/95] fix:description --- cmd/akamai/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/akamai/command.go b/cmd/akamai/command.go index bd2165802..7b57e73d6 100644 --- a/cmd/akamai/command.go +++ b/cmd/akamai/command.go @@ -56,7 +56,7 @@ func NewCommand() *cobra.Command { Long: "kubefirst akamai", Run: func(cmd *cobra.Command, args []string) { fmt.Println("To learn more about akamai in kubefirst, run:") - fmt.Println(" kubefirst akamai --help") + fmt.Println(" kubefirst beta akamai --help") if progress.Progress != nil { progress.Progress.Quit() From 14d21181b97be76df5c946645883c00b26ce4670 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 06:22:45 +0000 Subject: [PATCH 44/95] set next macro chart for kubefirst - 2.5.0-rc8 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index be78d78d3..4dbefe605 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.4.17" + helmChartVersion = "2.5.0-rc8" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 5d5c22607119061ea420a88a3a25a9ead2f70d01 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 15:08:58 +0000 Subject: [PATCH 45/95] set next macro chart for kubefirst - 2.5.0-rc9 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 4dbefe605..1249b69bf 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0-rc8" + helmChartVersion = "2.5.0-rc9" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From d9b094150fd708411a78dd6cdabd34961a9eb0c0 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 15:35:04 +0000 Subject: [PATCH 46/95] set next macro chart for kubefirst - 2.5.0-rc10 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 1249b69bf..ceb210f34 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0-rc9" + helmChartVersion = "2.5.0-rc10" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From d0d4da24c86136fa0d5bc83fe32902ea5a12c2ea Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 15:38:08 +0000 Subject: [PATCH 47/95] set next macro chart for kubefirst - 2.5.0-rc11 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index ceb210f34..df500df62 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0-rc10" + helmChartVersion = "2.5.0-rc11" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 0b6f2af32e3b35345e90447d808b4b51e5daf6b7 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 15:59:54 +0000 Subject: [PATCH 48/95] set next macro chart for kubefirst - 2.5.0-rc12 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index df500df62..4e25df20e 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0-rc11" + helmChartVersion = "2.5.0-rc12" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 89dfad55694016acc13febe0b1ebc0e358ed7c0e Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 16:26:14 +0000 Subject: [PATCH 49/95] set next macro chart for kubefirst - 2.5.0-rc13 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 4e25df20e..86b6594ee 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0-rc12" + helmChartVersion = "2.5.0-rc13" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 2d7b8f25c990f82116236812701e2990842c0d6f Mon Sep 17 00:00:00 2001 From: mrrishi Date: Wed, 28 Aug 2024 22:04:24 +0530 Subject: [PATCH 50/95] reference to konstruct --- cmd/akamai/command.go | 6 +-- cmd/akamai/create.go | 18 +++---- cmd/aws/command.go | 6 +-- cmd/aws/create.go | 20 ++++---- cmd/aws/quota.go | 4 +- cmd/beta.go | 10 ++-- cmd/civo/backup.go | 6 +-- cmd/civo/command.go | 6 +-- cmd/civo/create.go | 18 +++---- cmd/civo/quota.go | 2 +- cmd/digitalocean/command.go | 6 +-- cmd/digitalocean/create.go | 18 +++---- cmd/google/command.go | 6 +-- cmd/google/create.go | 18 +++---- cmd/info.go | 4 +- cmd/k3d/command.go | 2 +- cmd/k3d/create.go | 59 ++++++++++++----------- cmd/k3d/destroy.go | 18 +++---- cmd/k3d/mkcert.go | 8 +-- cmd/k3d/root-credentials.go | 8 +-- cmd/k3d/vault.go | 8 +-- cmd/k3s/command.go | 2 +- cmd/k3s/create.go | 18 +++---- cmd/launch.go | 2 +- cmd/letsencrypt.go | 4 +- cmd/logs.go | 4 +- cmd/reset.go | 6 +-- cmd/root.go | 16 +++--- cmd/terraform.go | 4 +- cmd/version.go | 4 +- cmd/vultr/command.go | 6 +-- cmd/vultr/create.go | 18 +++---- go.mod | 4 +- go.sum | 4 +- internal/catalog/catalog.go | 2 +- internal/cluster/cluster.go | 4 +- internal/common/common.go | 12 ++--- internal/gitShim/containerRegistryAuth.go | 4 +- internal/gitShim/init.go | 12 ++--- internal/k3d/menu.go | 2 +- internal/launch/cmd.go | 20 ++++---- internal/launch/utils.go | 4 +- internal/progress/command.go | 4 +- internal/progress/message.go | 2 +- internal/progress/progress.go | 2 +- internal/progress/types.go | 2 +- internal/provision/provision.go | 10 ++-- internal/provisionLogs/message.go | 2 +- internal/segment/segment.go | 4 +- internal/types/proxy.go | 2 +- internal/utilities/flags.go | 4 +- internal/utilities/utilities.go | 10 ++-- main.go | 8 +-- 53 files changed, 229 insertions(+), 224 deletions(-) diff --git a/cmd/akamai/command.go b/cmd/akamai/command.go index 7b57e73d6..f1928102b 100644 --- a/cmd/akamai/command.go +++ b/cmd/akamai/command.go @@ -9,9 +9,9 @@ package akamai import ( "fmt" - "github.com/kubefirst/kubefirst-api/pkg/constants" - "github.com/kubefirst/kubefirst/internal/common" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/constants" + "github.com/konstructio/kubefirst/internal/common" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/cobra" ) diff --git a/cmd/akamai/create.go b/cmd/akamai/create.go index 5badbe37e..ed0177ceb 100644 --- a/cmd/akamai/create.go +++ b/cmd/akamai/create.go @@ -11,15 +11,15 @@ import ( "os" "strings" - internalssh "github.com/kubefirst/kubefirst-api/pkg/ssh" - pkg "github.com/kubefirst/kubefirst-api/pkg/utils" - "github.com/kubefirst/kubefirst/internal/catalog" - "github.com/kubefirst/kubefirst/internal/cluster" - "github.com/kubefirst/kubefirst/internal/gitShim" - "github.com/kubefirst/kubefirst/internal/launch" - "github.com/kubefirst/kubefirst/internal/progress" - "github.com/kubefirst/kubefirst/internal/provision" - "github.com/kubefirst/kubefirst/internal/utilities" + internalssh "github.com/konstructio/kubefirst-api/pkg/ssh" + pkg "github.com/konstructio/kubefirst-api/pkg/utils" + "github.com/konstructio/kubefirst/internal/catalog" + "github.com/konstructio/kubefirst/internal/cluster" + "github.com/konstructio/kubefirst/internal/gitShim" + "github.com/konstructio/kubefirst/internal/launch" + "github.com/konstructio/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/provision" + "github.com/konstructio/kubefirst/internal/utilities" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/aws/command.go b/cmd/aws/command.go index 9fa7431b3..38d06c304 100644 --- a/cmd/aws/command.go +++ b/cmd/aws/command.go @@ -9,9 +9,9 @@ package aws import ( "fmt" - "github.com/kubefirst/kubefirst-api/pkg/constants" - "github.com/kubefirst/kubefirst/internal/common" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/constants" + "github.com/konstructio/kubefirst/internal/common" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/cobra" ) diff --git a/cmd/aws/create.go b/cmd/aws/create.go index 57b42d2af..e2e51a2be 100644 --- a/cmd/aws/create.go +++ b/cmd/aws/create.go @@ -12,16 +12,16 @@ import ( "strings" "github.com/aws/aws-sdk-go/aws" - awsinternal "github.com/kubefirst/kubefirst-api/pkg/aws" - internalssh "github.com/kubefirst/kubefirst-api/pkg/ssh" - pkg "github.com/kubefirst/kubefirst-api/pkg/utils" - "github.com/kubefirst/kubefirst/internal/catalog" - "github.com/kubefirst/kubefirst/internal/cluster" - "github.com/kubefirst/kubefirst/internal/gitShim" - "github.com/kubefirst/kubefirst/internal/launch" - "github.com/kubefirst/kubefirst/internal/progress" - "github.com/kubefirst/kubefirst/internal/provision" - "github.com/kubefirst/kubefirst/internal/utilities" + awsinternal "github.com/konstructio/kubefirst-api/pkg/aws" + internalssh "github.com/konstructio/kubefirst-api/pkg/ssh" + pkg "github.com/konstructio/kubefirst-api/pkg/utils" + "github.com/konstructio/kubefirst/internal/catalog" + "github.com/konstructio/kubefirst/internal/cluster" + "github.com/konstructio/kubefirst/internal/gitShim" + "github.com/konstructio/kubefirst/internal/launch" + "github.com/konstructio/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/provision" + "github.com/konstructio/kubefirst/internal/utilities" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/aws/quota.go b/cmd/aws/quota.go index 9ace8e4b2..d54f50d00 100644 --- a/cmd/aws/quota.go +++ b/cmd/aws/quota.go @@ -11,8 +11,8 @@ import ( "fmt" "strings" - awsinternal "github.com/kubefirst/kubefirst-api/pkg/aws" - "github.com/kubefirst/kubefirst-api/pkg/reports" + awsinternal "github.com/konstructio/kubefirst-api/pkg/aws" + "github.com/konstructio/kubefirst-api/pkg/reports" "github.com/spf13/cobra" ) diff --git a/cmd/beta.go b/cmd/beta.go index 02bafc654..777c0cb62 100644 --- a/cmd/beta.go +++ b/cmd/beta.go @@ -9,11 +9,11 @@ package cmd import ( "fmt" - "github.com/kubefirst/kubefirst/cmd/akamai" - "github.com/kubefirst/kubefirst/cmd/google" - "github.com/kubefirst/kubefirst/cmd/k3s" - "github.com/kubefirst/kubefirst/cmd/vultr" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/cmd/akamai" + "github.com/konstructio/kubefirst/cmd/google" + "github.com/konstructio/kubefirst/cmd/k3s" + "github.com/konstructio/kubefirst/cmd/vultr" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/cobra" ) diff --git a/cmd/civo/backup.go b/cmd/civo/backup.go index 064d7a3c4..8985e1b29 100644 --- a/cmd/civo/backup.go +++ b/cmd/civo/backup.go @@ -9,9 +9,9 @@ package civo import ( "os" - "github.com/kubefirst/kubefirst-api/pkg/providerConfigs" - "github.com/kubefirst/kubefirst-api/pkg/ssl" - utils "github.com/kubefirst/kubefirst-api/pkg/utils" + "github.com/konstructio/kubefirst-api/pkg/providerConfigs" + "github.com/konstructio/kubefirst-api/pkg/ssl" + utils "github.com/konstructio/kubefirst-api/pkg/utils" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/civo/command.go b/cmd/civo/command.go index fe8712bdd..5c998b1d4 100644 --- a/cmd/civo/command.go +++ b/cmd/civo/command.go @@ -9,9 +9,9 @@ package civo import ( "fmt" - "github.com/kubefirst/kubefirst-api/pkg/constants" - "github.com/kubefirst/kubefirst/internal/common" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/constants" + "github.com/konstructio/kubefirst/internal/common" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/cobra" ) diff --git a/cmd/civo/create.go b/cmd/civo/create.go index 4530788e6..f1f36bef3 100644 --- a/cmd/civo/create.go +++ b/cmd/civo/create.go @@ -11,15 +11,15 @@ import ( "os" "strings" - internalssh "github.com/kubefirst/kubefirst-api/pkg/ssh" - utils "github.com/kubefirst/kubefirst-api/pkg/utils" - "github.com/kubefirst/kubefirst/internal/catalog" - "github.com/kubefirst/kubefirst/internal/cluster" - "github.com/kubefirst/kubefirst/internal/gitShim" - "github.com/kubefirst/kubefirst/internal/launch" - "github.com/kubefirst/kubefirst/internal/progress" - "github.com/kubefirst/kubefirst/internal/provision" - "github.com/kubefirst/kubefirst/internal/utilities" + internalssh "github.com/konstructio/kubefirst-api/pkg/ssh" + utils "github.com/konstructio/kubefirst-api/pkg/utils" + "github.com/konstructio/kubefirst/internal/catalog" + "github.com/konstructio/kubefirst/internal/cluster" + "github.com/konstructio/kubefirst/internal/gitShim" + "github.com/konstructio/kubefirst/internal/launch" + "github.com/konstructio/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/provision" + "github.com/konstructio/kubefirst/internal/utilities" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/civo/quota.go b/cmd/civo/quota.go index 89673db49..a4f5eef3a 100644 --- a/cmd/civo/quota.go +++ b/cmd/civo/quota.go @@ -17,7 +17,7 @@ import ( "github.com/civo/civogo" "github.com/fatih/color" - "github.com/kubefirst/kubefirst-api/pkg/reports" + "github.com/konstructio/kubefirst-api/pkg/reports" "github.com/rs/zerolog/log" "github.com/spf13/cobra" ) diff --git a/cmd/digitalocean/command.go b/cmd/digitalocean/command.go index 02fc40192..fc941ae12 100644 --- a/cmd/digitalocean/command.go +++ b/cmd/digitalocean/command.go @@ -9,9 +9,9 @@ package digitalocean import ( "fmt" - "github.com/kubefirst/kubefirst-api/pkg/constants" - "github.com/kubefirst/kubefirst/internal/common" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/constants" + "github.com/konstructio/kubefirst/internal/common" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/cobra" ) diff --git a/cmd/digitalocean/create.go b/cmd/digitalocean/create.go index a875ed5fd..9ae9e2aa7 100644 --- a/cmd/digitalocean/create.go +++ b/cmd/digitalocean/create.go @@ -11,15 +11,15 @@ import ( "os" "strings" - internalssh "github.com/kubefirst/kubefirst-api/pkg/ssh" - utils "github.com/kubefirst/kubefirst-api/pkg/utils" - "github.com/kubefirst/kubefirst/internal/catalog" - "github.com/kubefirst/kubefirst/internal/cluster" - "github.com/kubefirst/kubefirst/internal/gitShim" - "github.com/kubefirst/kubefirst/internal/launch" - "github.com/kubefirst/kubefirst/internal/progress" - "github.com/kubefirst/kubefirst/internal/provision" - "github.com/kubefirst/kubefirst/internal/utilities" + internalssh "github.com/konstructio/kubefirst-api/pkg/ssh" + utils "github.com/konstructio/kubefirst-api/pkg/utils" + "github.com/konstructio/kubefirst/internal/catalog" + "github.com/konstructio/kubefirst/internal/cluster" + "github.com/konstructio/kubefirst/internal/gitShim" + "github.com/konstructio/kubefirst/internal/launch" + "github.com/konstructio/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/provision" + "github.com/konstructio/kubefirst/internal/utilities" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/google/command.go b/cmd/google/command.go index 5f175bf2f..14ec050e1 100644 --- a/cmd/google/command.go +++ b/cmd/google/command.go @@ -9,9 +9,9 @@ package google import ( "fmt" - "github.com/kubefirst/kubefirst-api/pkg/constants" - "github.com/kubefirst/kubefirst/internal/common" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/constants" + "github.com/konstructio/kubefirst/internal/common" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/cobra" ) diff --git a/cmd/google/create.go b/cmd/google/create.go index 880bc4d00..e15651df2 100644 --- a/cmd/google/create.go +++ b/cmd/google/create.go @@ -11,15 +11,15 @@ import ( "os" "strings" - internalssh "github.com/kubefirst/kubefirst-api/pkg/ssh" - utils "github.com/kubefirst/kubefirst-api/pkg/utils" - "github.com/kubefirst/kubefirst/internal/catalog" - "github.com/kubefirst/kubefirst/internal/cluster" - "github.com/kubefirst/kubefirst/internal/gitShim" - "github.com/kubefirst/kubefirst/internal/launch" - "github.com/kubefirst/kubefirst/internal/progress" - "github.com/kubefirst/kubefirst/internal/provision" - "github.com/kubefirst/kubefirst/internal/utilities" + internalssh "github.com/konstructio/kubefirst-api/pkg/ssh" + utils "github.com/konstructio/kubefirst-api/pkg/utils" + "github.com/konstructio/kubefirst/internal/catalog" + "github.com/konstructio/kubefirst/internal/cluster" + "github.com/konstructio/kubefirst/internal/gitShim" + "github.com/konstructio/kubefirst/internal/launch" + "github.com/konstructio/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/provision" + "github.com/konstructio/kubefirst/internal/utilities" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/info.go b/cmd/info.go index f95b90d25..f1a5b1160 100755 --- a/cmd/info.go +++ b/cmd/info.go @@ -9,8 +9,8 @@ package cmd import ( "runtime" - "github.com/kubefirst/kubefirst-api/pkg/configs" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/configs" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/cobra" ) diff --git a/cmd/k3d/command.go b/cmd/k3d/command.go index 5b8b2c3d4..6e1676ed4 100644 --- a/cmd/k3d/command.go +++ b/cmd/k3d/command.go @@ -9,7 +9,7 @@ package k3d import ( "fmt" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/cobra" ) diff --git a/cmd/k3d/create.go b/cmd/k3d/create.go index e2b25c1ce..5f1246bd5 100644 --- a/cmd/k3d/create.go +++ b/cmd/k3d/create.go @@ -24,29 +24,29 @@ import ( argocdapi "github.com/argoproj/argo-cd/v2/pkg/client/clientset/versioned" "github.com/go-git/go-git/v5" githttps "github.com/go-git/go-git/v5/plumbing/transport/http" - "github.com/kubefirst/kubefirst-api/pkg/configs" - constants "github.com/kubefirst/kubefirst-api/pkg/constants" - "github.com/kubefirst/kubefirst-api/pkg/gitClient" - "github.com/kubefirst/kubefirst-api/pkg/handlers" - "github.com/kubefirst/kubefirst-api/pkg/reports" - "github.com/kubefirst/kubefirst-api/pkg/types" - utils "github.com/kubefirst/kubefirst-api/pkg/utils" - - "github.com/kubefirst/kubefirst-api/pkg/argocd" - github "github.com/kubefirst/kubefirst-api/pkg/github" - gitlab "github.com/kubefirst/kubefirst-api/pkg/gitlab" - "github.com/kubefirst/kubefirst-api/pkg/k3d" - "github.com/kubefirst/kubefirst-api/pkg/k8s" - "github.com/kubefirst/kubefirst-api/pkg/progressPrinter" - "github.com/kubefirst/kubefirst-api/pkg/services" - internalssh "github.com/kubefirst/kubefirst-api/pkg/ssh" - "github.com/kubefirst/kubefirst-api/pkg/terraform" - "github.com/kubefirst/kubefirst-api/pkg/wrappers" - "github.com/kubefirst/kubefirst/internal/catalog" - "github.com/kubefirst/kubefirst/internal/gitShim" - "github.com/kubefirst/kubefirst/internal/progress" - "github.com/kubefirst/kubefirst/internal/segment" - "github.com/kubefirst/kubefirst/internal/utilities" + "github.com/konstructio/kubefirst-api/pkg/configs" + constants "github.com/konstructio/kubefirst-api/pkg/constants" + "github.com/konstructio/kubefirst-api/pkg/gitClient" + "github.com/konstructio/kubefirst-api/pkg/handlers" + "github.com/konstructio/kubefirst-api/pkg/reports" + "github.com/konstructio/kubefirst-api/pkg/types" + utils "github.com/konstructio/kubefirst-api/pkg/utils" + + "github.com/konstructio/kubefirst-api/pkg/argocd" + github "github.com/konstructio/kubefirst-api/pkg/github" + gitlab "github.com/konstructio/kubefirst-api/pkg/gitlab" + "github.com/konstructio/kubefirst-api/pkg/k3d" + "github.com/konstructio/kubefirst-api/pkg/k8s" + "github.com/konstructio/kubefirst-api/pkg/progressPrinter" + "github.com/konstructio/kubefirst-api/pkg/services" + internalssh "github.com/konstructio/kubefirst-api/pkg/ssh" + "github.com/konstructio/kubefirst-api/pkg/terraform" + "github.com/konstructio/kubefirst-api/pkg/wrappers" + "github.com/konstructio/kubefirst/internal/catalog" + "github.com/konstructio/kubefirst/internal/gitShim" + "github.com/konstructio/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/segment" + "github.com/konstructio/kubefirst/internal/utilities" "github.com/kubefirst/metrics-client/pkg/telemetry" "github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7/pkg/credentials" @@ -902,9 +902,8 @@ func runK3d(cmd *cobra.Command, args []string) error { progressPrinter.AddTracker("installing-argo-cd", "Installing and configuring Argo CD", 3) progressPrinter.SetupProgress(progressPrinter.TotalOfTrackers(), false) - argoCDInstallPath := fmt.Sprintf("github.com:kubefirst/manifests/argocd/k3d?ref=%s", constants.KubefirstManifestRepoRef) - - //* install argocd + argoCDInstallPath := fmt.Sprintf("github.com:konstructio/manifests/argocd/k3d?ref=%s", constants.KubefirstManifestRepoRef) + //* install argo executionControl = viper.GetBool("kubefirst-checks.argocd-install") if !executionControl { telemetry.SendEvent(segClient, telemetry.ArgoCDInstallStarted, "") @@ -1035,7 +1034,13 @@ func runK3d(cmd *cobra.Command, args []string) error { log.Info().Msg("applying the registry application to argocd") registryApplicationObject := argocd.GetArgoCDApplicationObject(gitopsRepoURL, fmt.Sprintf("registry/%s", clusterNameFlag)) - _, _ = argocdClient.ArgoprojV1alpha1().Applications("argocd").Create(context.Background(), registryApplicationObject, metav1.CreateOptions{}) + _, err = argocdClient.ArgoprojV1alpha1().Applications("argocd").Create(context.Background(), registryApplicationObject, metav1.CreateOptions{}) + + if err != nil { + return fmt.Errorf("error creating argocd application : %w", err) + } + + log.Info().Msg("Argo CD application created successfully\n") viper.Set("kubefirst-checks.argocd-create-registry", true) viper.WriteConfig() telemetry.SendEvent(segClient, telemetry.CreateRegistryCompleted, "") diff --git a/cmd/k3d/destroy.go b/cmd/k3d/destroy.go index a6540e592..3a3782b1f 100644 --- a/cmd/k3d/destroy.go +++ b/cmd/k3d/destroy.go @@ -13,15 +13,15 @@ import ( "strings" "time" - constants "github.com/kubefirst/kubefirst-api/pkg/constants" - utils "github.com/kubefirst/kubefirst-api/pkg/utils" - - gitlab "github.com/kubefirst/kubefirst-api/pkg/gitlab" - "github.com/kubefirst/kubefirst-api/pkg/k3d" - "github.com/kubefirst/kubefirst-api/pkg/k8s" - "github.com/kubefirst/kubefirst-api/pkg/progressPrinter" - "github.com/kubefirst/kubefirst-api/pkg/terraform" - "github.com/kubefirst/kubefirst/internal/progress" + constants "github.com/konstructio/kubefirst-api/pkg/constants" + utils "github.com/konstructio/kubefirst-api/pkg/utils" + + gitlab "github.com/konstructio/kubefirst-api/pkg/gitlab" + "github.com/konstructio/kubefirst-api/pkg/k3d" + "github.com/konstructio/kubefirst-api/pkg/k8s" + "github.com/konstructio/kubefirst-api/pkg/progressPrinter" + "github.com/konstructio/kubefirst-api/pkg/terraform" + "github.com/konstructio/kubefirst/internal/progress" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/k3d/mkcert.go b/cmd/k3d/mkcert.go index 5e3816fa2..4c7851a53 100644 --- a/cmd/k3d/mkcert.go +++ b/cmd/k3d/mkcert.go @@ -9,10 +9,10 @@ package k3d import ( "fmt" - "github.com/kubefirst/kubefirst-api/pkg/k3d" - "github.com/kubefirst/kubefirst-api/pkg/k8s" - utils "github.com/kubefirst/kubefirst-api/pkg/utils" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/k3d" + "github.com/konstructio/kubefirst-api/pkg/k8s" + utils "github.com/konstructio/kubefirst-api/pkg/utils" + "github.com/konstructio/kubefirst/internal/progress" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/k3d/root-credentials.go b/cmd/k3d/root-credentials.go index a55f57473..ca629a223 100644 --- a/cmd/k3d/root-credentials.go +++ b/cmd/k3d/root-credentials.go @@ -9,10 +9,10 @@ package k3d import ( "fmt" - "github.com/kubefirst/kubefirst-api/pkg/credentials" - "github.com/kubefirst/kubefirst-api/pkg/k3d" - "github.com/kubefirst/kubefirst-api/pkg/k8s" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/credentials" + "github.com/konstructio/kubefirst-api/pkg/k3d" + "github.com/konstructio/kubefirst-api/pkg/k8s" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/cmd/k3d/vault.go b/cmd/k3d/vault.go index 9f3b4bb92..8327a9913 100644 --- a/cmd/k3d/vault.go +++ b/cmd/k3d/vault.go @@ -14,10 +14,10 @@ import ( "time" vaultapi "github.com/hashicorp/vault/api" - "github.com/kubefirst/kubefirst-api/pkg/k3d" - "github.com/kubefirst/kubefirst-api/pkg/k8s" - utils "github.com/kubefirst/kubefirst-api/pkg/utils" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/k3d" + "github.com/konstructio/kubefirst-api/pkg/k8s" + utils "github.com/konstructio/kubefirst-api/pkg/utils" + "github.com/konstructio/kubefirst/internal/progress" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/k3s/command.go b/cmd/k3s/command.go index 1164ee2f6..2ba892a20 100644 --- a/cmd/k3s/command.go +++ b/cmd/k3s/command.go @@ -9,7 +9,7 @@ package k3s import ( "fmt" - "github.com/kubefirst/kubefirst/internal/common" + "github.com/konstructio/kubefirst/internal/common" "github.com/spf13/cobra" ) diff --git a/cmd/k3s/create.go b/cmd/k3s/create.go index f96bcca4b..a76dd5bed 100644 --- a/cmd/k3s/create.go +++ b/cmd/k3s/create.go @@ -13,15 +13,15 @@ import ( "github.com/rs/zerolog/log" - internalssh "github.com/kubefirst/kubefirst-api/pkg/ssh" - utils "github.com/kubefirst/kubefirst-api/pkg/utils" - "github.com/kubefirst/kubefirst/internal/catalog" - "github.com/kubefirst/kubefirst/internal/cluster" - "github.com/kubefirst/kubefirst/internal/gitShim" - "github.com/kubefirst/kubefirst/internal/launch" - "github.com/kubefirst/kubefirst/internal/progress" - "github.com/kubefirst/kubefirst/internal/provision" - "github.com/kubefirst/kubefirst/internal/utilities" + internalssh "github.com/konstructio/kubefirst-api/pkg/ssh" + utils "github.com/konstructio/kubefirst-api/pkg/utils" + "github.com/konstructio/kubefirst/internal/catalog" + "github.com/konstructio/kubefirst/internal/cluster" + "github.com/konstructio/kubefirst/internal/gitShim" + "github.com/konstructio/kubefirst/internal/launch" + "github.com/konstructio/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/provision" + "github.com/konstructio/kubefirst/internal/utilities" "github.com/spf13/cobra" "github.com/spf13/viper" _ "k8s.io/client-go/plugin/pkg/client/auth" diff --git a/cmd/launch.go b/cmd/launch.go index a709c6322..5431932a2 100644 --- a/cmd/launch.go +++ b/cmd/launch.go @@ -9,7 +9,7 @@ package cmd import ( "fmt" - "github.com/kubefirst/kubefirst/internal/launch" + "github.com/konstructio/kubefirst/internal/launch" "github.com/spf13/cobra" ) diff --git a/cmd/letsencrypt.go b/cmd/letsencrypt.go index 7e989c959..062dc4d53 100644 --- a/cmd/letsencrypt.go +++ b/cmd/letsencrypt.go @@ -9,8 +9,8 @@ package cmd import ( "fmt" - "github.com/kubefirst/kubefirst-api/pkg/certificates" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/certificates" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/cobra" ) diff --git a/cmd/logs.go b/cmd/logs.go index d7373ac36..d52f5ad28 100755 --- a/cmd/logs.go +++ b/cmd/logs.go @@ -9,8 +9,8 @@ package cmd import ( "fmt" - "github.com/kubefirst/kubefirst/internal/progress" - "github.com/kubefirst/kubefirst/internal/provisionLogs" + "github.com/konstructio/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/provisionLogs" "github.com/nxadm/tail" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/reset.go b/cmd/reset.go index 437324e54..7983aecec 100755 --- a/cmd/reset.go +++ b/cmd/reset.go @@ -12,9 +12,9 @@ import ( "strconv" "time" - "github.com/kubefirst/kubefirst-api/pkg/progressPrinter" - utils "github.com/kubefirst/kubefirst-api/pkg/utils" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/progressPrinter" + utils "github.com/konstructio/kubefirst-api/pkg/utils" + "github.com/konstructio/kubefirst/internal/progress" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/root.go b/cmd/root.go index 765830083..58554e890 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -9,15 +9,15 @@ package cmd import ( "fmt" - "github.com/kubefirst/kubefirst-api/pkg/configs" - "github.com/kubefirst/kubefirst/cmd/aws" - "github.com/kubefirst/kubefirst/cmd/civo" - "github.com/kubefirst/kubefirst/cmd/digitalocean" - "github.com/kubefirst/kubefirst/cmd/k3d" - "github.com/kubefirst/kubefirst/internal/common" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/configs" + "github.com/konstructio/kubefirst/cmd/aws" + "github.com/konstructio/kubefirst/cmd/civo" + "github.com/konstructio/kubefirst/cmd/digitalocean" + "github.com/konstructio/kubefirst/cmd/k3d" + "github.com/konstructio/kubefirst/internal/common" + "github.com/konstructio/kubefirst/internal/progress" - "github.com/kubefirst/kubefirst-api/pkg/progressPrinter" + "github.com/konstructio/kubefirst-api/pkg/progressPrinter" "github.com/spf13/cobra" ) diff --git a/cmd/terraform.go b/cmd/terraform.go index b25b72bf4..2225d48cf 100644 --- a/cmd/terraform.go +++ b/cmd/terraform.go @@ -9,8 +9,8 @@ package cmd import ( "fmt" - "github.com/kubefirst/kubefirst-api/pkg/vault" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/vault" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/cobra" ) diff --git a/cmd/version.go b/cmd/version.go index dc8c60d4b..e126b8c9d 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -9,8 +9,8 @@ package cmd import ( "fmt" - "github.com/kubefirst/kubefirst-api/pkg/configs" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/configs" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/cobra" ) diff --git a/cmd/vultr/command.go b/cmd/vultr/command.go index c90035b15..a6fa395b4 100644 --- a/cmd/vultr/command.go +++ b/cmd/vultr/command.go @@ -9,9 +9,9 @@ package vultr import ( "fmt" - "github.com/kubefirst/kubefirst-api/pkg/constants" - "github.com/kubefirst/kubefirst/internal/common" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/constants" + "github.com/konstructio/kubefirst/internal/common" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/cobra" ) diff --git a/cmd/vultr/create.go b/cmd/vultr/create.go index b2dc08a88..9cd911132 100644 --- a/cmd/vultr/create.go +++ b/cmd/vultr/create.go @@ -11,15 +11,15 @@ import ( "os" "strings" - internalssh "github.com/kubefirst/kubefirst-api/pkg/ssh" - utils "github.com/kubefirst/kubefirst-api/pkg/utils" - "github.com/kubefirst/kubefirst/internal/catalog" - "github.com/kubefirst/kubefirst/internal/cluster" - "github.com/kubefirst/kubefirst/internal/gitShim" - "github.com/kubefirst/kubefirst/internal/launch" - "github.com/kubefirst/kubefirst/internal/progress" - "github.com/kubefirst/kubefirst/internal/provision" - "github.com/kubefirst/kubefirst/internal/utilities" + internalssh "github.com/konstructio/kubefirst-api/pkg/ssh" + utils "github.com/konstructio/kubefirst-api/pkg/utils" + "github.com/konstructio/kubefirst/internal/catalog" + "github.com/konstructio/kubefirst/internal/cluster" + "github.com/konstructio/kubefirst/internal/gitShim" + "github.com/konstructio/kubefirst/internal/launch" + "github.com/konstructio/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/provision" + "github.com/konstructio/kubefirst/internal/utilities" "github.com/rs/zerolog/log" "github.com/spf13/cobra" diff --git a/go.mod b/go.mod index e799483d5..bbd026e8d 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/kubefirst/kubefirst +module github.com/konstructio/kubefirst go 1.18 @@ -14,7 +14,7 @@ require ( github.com/dustin/go-humanize v1.0.1 github.com/go-git/go-git/v5 v5.6.1 github.com/hashicorp/vault/api v1.9.0 - github.com/kubefirst/kubefirst-api v0.1.26 + github.com/konstructio/kubefirst-api v0.100.0 github.com/kubefirst/metrics-client v0.3.0 github.com/nxadm/tail v1.4.8 github.com/rs/zerolog v1.29.1 diff --git a/go.sum b/go.sum index 37850e3d5..4db54c557 100644 --- a/go.sum +++ b/go.sum @@ -714,6 +714,8 @@ github.com/klauspost/cpuid/v2 v2.2.3/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8t github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konstructio/kubefirst-api v0.100.0 h1:RttN9KWKOReMWXy2izJupuVUrTO/K3WjY9SDyFKifYU= +github.com/konstructio/kubefirst-api v0.100.0/go.mod h1:jpBfSHjZhzcotYBvX4GG7H/y3VZANxri37/3ZO6B/Hk= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -724,8 +726,6 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/kubefirst/kubefirst-api v0.1.26 h1:0ejYuTEh5wZPed/Lsd7E721Yy0TouzFLz03Yw8/KbiM= -github.com/kubefirst/kubefirst-api v0.1.26/go.mod h1:9fJTwsFdkmTiscz+rBvTLMnKpi8zKIeUHDE2fQex3E4= github.com/kubefirst/metrics-client v0.3.0 h1:zCug82pEzeWhHhpeYQvdhytRNDxrLxX18dPQ5PSxY3s= github.com/kubefirst/metrics-client v0.3.0/go.mod h1:GR7wsMcyYhd+EU67PeuMCBYFE6OJ7P/j5OI5BLOoRMc= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= diff --git a/internal/catalog/catalog.go b/internal/catalog/catalog.go index f6d0c3cc7..0fcd54734 100644 --- a/internal/catalog/catalog.go +++ b/internal/catalog/catalog.go @@ -15,7 +15,7 @@ import ( git "github.com/google/go-github/v52/github" - apiTypes "github.com/kubefirst/kubefirst-api/pkg/types" + apiTypes "github.com/konstructio/kubefirst-api/pkg/types" "github.com/rs/zerolog/log" "gopkg.in/yaml.v2" diff --git a/internal/cluster/cluster.go b/internal/cluster/cluster.go index fb9da8891..da7457b23 100644 --- a/internal/cluster/cluster.go +++ b/internal/cluster/cluster.go @@ -17,8 +17,8 @@ import ( "github.com/rs/zerolog/log" - apiTypes "github.com/kubefirst/kubefirst-api/pkg/types" - "github.com/kubefirst/kubefirst/internal/types" + apiTypes "github.com/konstructio/kubefirst-api/pkg/types" + "github.com/konstructio/kubefirst/internal/types" ) func GetConsoleIngresUrl() string { diff --git a/internal/common/common.go b/internal/common/common.go index 3fd34397d..42110f5a6 100644 --- a/internal/common/common.go +++ b/internal/common/common.go @@ -15,12 +15,12 @@ import ( "runtime" "strings" - "github.com/kubefirst/kubefirst-api/pkg/configs" - "github.com/kubefirst/kubefirst-api/pkg/docker" - "github.com/kubefirst/kubefirst-api/pkg/providerConfigs" - "github.com/kubefirst/kubefirst/internal/cluster" - "github.com/kubefirst/kubefirst/internal/launch" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/configs" + "github.com/konstructio/kubefirst-api/pkg/docker" + "github.com/konstructio/kubefirst-api/pkg/providerConfigs" + "github.com/konstructio/kubefirst/internal/cluster" + "github.com/konstructio/kubefirst/internal/launch" + "github.com/konstructio/kubefirst/internal/progress" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/internal/gitShim/containerRegistryAuth.go b/internal/gitShim/containerRegistryAuth.go index 720e69a84..0469428a1 100644 --- a/internal/gitShim/containerRegistryAuth.go +++ b/internal/gitShim/containerRegistryAuth.go @@ -10,8 +10,8 @@ import ( "encoding/base64" "fmt" - "github.com/kubefirst/kubefirst-api/pkg/gitlab" - "github.com/kubefirst/kubefirst-api/pkg/k8s" + "github.com/konstructio/kubefirst-api/pkg/gitlab" + "github.com/konstructio/kubefirst-api/pkg/k8s" "github.com/rs/zerolog/log" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/internal/gitShim/init.go b/internal/gitShim/init.go index c360e2b9b..2819384a9 100644 --- a/internal/gitShim/init.go +++ b/internal/gitShim/init.go @@ -11,12 +11,12 @@ import ( "net/http" "os" - "github.com/kubefirst/kubefirst-api/pkg/github" - "github.com/kubefirst/kubefirst-api/pkg/gitlab" - "github.com/kubefirst/kubefirst-api/pkg/handlers" - "github.com/kubefirst/kubefirst-api/pkg/services" - "github.com/kubefirst/kubefirst-api/pkg/types" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/github" + "github.com/konstructio/kubefirst-api/pkg/gitlab" + "github.com/konstructio/kubefirst-api/pkg/handlers" + "github.com/konstructio/kubefirst-api/pkg/services" + "github.com/konstructio/kubefirst-api/pkg/types" + "github.com/konstructio/kubefirst/internal/progress" "github.com/rs/zerolog/log" "github.com/spf13/viper" ) diff --git a/internal/k3d/menu.go b/internal/k3d/menu.go index 9d145a497..668d84614 100644 --- a/internal/k3d/menu.go +++ b/internal/k3d/menu.go @@ -14,7 +14,7 @@ import ( "github.com/charmbracelet/bubbles/list" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/progress" ) const ( diff --git a/internal/launch/cmd.go b/internal/launch/cmd.go index 97d7257bf..b570118fa 100644 --- a/internal/launch/cmd.go +++ b/internal/launch/cmd.go @@ -14,16 +14,16 @@ import ( "strings" "time" - "github.com/kubefirst/kubefirst-api/pkg/configs" - shell "github.com/kubefirst/kubefirst-api/pkg/shell" - pkg "github.com/kubefirst/kubefirst-api/pkg/utils" - - "github.com/kubefirst/kubefirst-api/pkg/downloadManager" - "github.com/kubefirst/kubefirst-api/pkg/k3d" - "github.com/kubefirst/kubefirst-api/pkg/k8s" - "github.com/kubefirst/kubefirst/internal/cluster" - "github.com/kubefirst/kubefirst/internal/helm" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/configs" + shell "github.com/konstructio/kubefirst-api/pkg/shell" + pkg "github.com/konstructio/kubefirst-api/pkg/utils" + + "github.com/konstructio/kubefirst-api/pkg/downloadManager" + "github.com/konstructio/kubefirst-api/pkg/k3d" + "github.com/konstructio/kubefirst-api/pkg/k8s" + "github.com/konstructio/kubefirst/internal/cluster" + "github.com/konstructio/kubefirst/internal/helm" + "github.com/konstructio/kubefirst/internal/progress" "github.com/rs/zerolog/log" "github.com/spf13/viper" "gopkg.in/yaml.v2" diff --git a/internal/launch/utils.go b/internal/launch/utils.go index 916a32e60..1246a94e3 100644 --- a/internal/launch/utils.go +++ b/internal/launch/utils.go @@ -9,8 +9,8 @@ package launch import ( "fmt" - "github.com/kubefirst/kubefirst-api/pkg/types" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/types" + "github.com/konstructio/kubefirst/internal/progress" ) // displayFormattedClusterInfo uses tabwriter to pretty print information on clusters using diff --git a/internal/progress/command.go b/internal/progress/command.go index a8b16b181..a0f92710f 100644 --- a/internal/progress/command.go +++ b/internal/progress/command.go @@ -10,8 +10,8 @@ import ( "time" tea "github.com/charmbracelet/bubbletea" - "github.com/kubefirst/kubefirst-api/pkg/types" - "github.com/kubefirst/kubefirst/internal/cluster" + "github.com/konstructio/kubefirst-api/pkg/types" + "github.com/konstructio/kubefirst/internal/cluster" ) // Commands diff --git a/internal/progress/message.go b/internal/progress/message.go index 5c9ca4ad2..901af7f94 100644 --- a/internal/progress/message.go +++ b/internal/progress/message.go @@ -15,7 +15,7 @@ import ( "strconv" "github.com/charmbracelet/glamour" - "github.com/kubefirst/kubefirst-api/pkg/types" + "github.com/konstructio/kubefirst-api/pkg/types" "github.com/spf13/viper" ) diff --git a/internal/progress/progress.go b/internal/progress/progress.go index 7d86ba202..adcd2d979 100644 --- a/internal/progress/progress.go +++ b/internal/progress/progress.go @@ -10,7 +10,7 @@ import ( "fmt" tea "github.com/charmbracelet/bubbletea" - "github.com/kubefirst/kubefirst-api/pkg/types" + "github.com/konstructio/kubefirst-api/pkg/types" "github.com/spf13/viper" ) diff --git a/internal/progress/types.go b/internal/progress/types.go index f927c4697..a196a6376 100644 --- a/internal/progress/types.go +++ b/internal/progress/types.go @@ -7,7 +7,7 @@ See the LICENSE file for more details. package progress import ( - "github.com/kubefirst/kubefirst-api/pkg/types" + "github.com/konstructio/kubefirst-api/pkg/types" ) // Terminal model diff --git a/internal/provision/provision.go b/internal/provision/provision.go index d8c634319..28db15cc1 100644 --- a/internal/provision/provision.go +++ b/internal/provision/provision.go @@ -7,11 +7,11 @@ See the LICENSE file for more details. package provision import ( - apiTypes "github.com/kubefirst/kubefirst-api/pkg/types" - "github.com/kubefirst/kubefirst/internal/cluster" - "github.com/kubefirst/kubefirst/internal/progress" - "github.com/kubefirst/kubefirst/internal/types" - "github.com/kubefirst/kubefirst/internal/utilities" + apiTypes "github.com/konstructio/kubefirst-api/pkg/types" + "github.com/konstructio/kubefirst/internal/cluster" + "github.com/konstructio/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/types" + "github.com/konstructio/kubefirst/internal/utilities" "github.com/rs/zerolog/log" ) diff --git a/internal/provisionLogs/message.go b/internal/provisionLogs/message.go index 65ce7e5be..bfaf9d066 100644 --- a/internal/provisionLogs/message.go +++ b/internal/provisionLogs/message.go @@ -13,7 +13,7 @@ import ( "log" "github.com/charmbracelet/glamour" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/progress" ) func renderMessage(message string) string { diff --git a/internal/segment/segment.go b/internal/segment/segment.go index d2661c23b..c2f2120f3 100644 --- a/internal/segment/segment.go +++ b/internal/segment/segment.go @@ -4,8 +4,8 @@ import ( "os" "github.com/denisbrodbeck/machineid" - "github.com/kubefirst/kubefirst-api/pkg/configs" - "github.com/kubefirst/kubefirst-api/pkg/k3d" + "github.com/konstructio/kubefirst-api/pkg/configs" + "github.com/konstructio/kubefirst-api/pkg/k3d" "github.com/kubefirst/metrics-client/pkg/telemetry" ) diff --git a/internal/types/proxy.go b/internal/types/proxy.go index 454808c7e..dc16ceb2c 100644 --- a/internal/types/proxy.go +++ b/internal/types/proxy.go @@ -7,7 +7,7 @@ See the LICENSE file for more details. package types import ( - apiTypes "github.com/kubefirst/kubefirst-api/pkg/types" + apiTypes "github.com/konstructio/kubefirst-api/pkg/types" ) type ProxyCreateClusterRequest struct { diff --git a/internal/utilities/flags.go b/internal/utilities/flags.go index 81a589d77..13daceaa2 100644 --- a/internal/utilities/flags.go +++ b/internal/utilities/flags.go @@ -9,8 +9,8 @@ package utilities import ( "strings" - "github.com/kubefirst/kubefirst/internal/progress" - "github.com/kubefirst/kubefirst/internal/types" + "github.com/konstructio/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/types" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/internal/utilities/utilities.go b/internal/utilities/utilities.go index 88185866c..41c626fbe 100644 --- a/internal/utilities/utilities.go +++ b/internal/utilities/utilities.go @@ -16,11 +16,11 @@ import ( "strconv" "time" - "github.com/kubefirst/kubefirst-api/pkg/configs" - "github.com/kubefirst/kubefirst-api/pkg/k8s" - apiTypes "github.com/kubefirst/kubefirst-api/pkg/types" - "github.com/kubefirst/kubefirst/internal/progress" - "github.com/kubefirst/kubefirst/internal/types" + "github.com/konstructio/kubefirst-api/pkg/configs" + "github.com/konstructio/kubefirst-api/pkg/k8s" + apiTypes "github.com/konstructio/kubefirst-api/pkg/types" + "github.com/konstructio/kubefirst/internal/progress" + "github.com/konstructio/kubefirst/internal/types" "github.com/rs/zerolog/log" "github.com/spf13/viper" "go.mongodb.org/mongo-driver/bson/primitive" diff --git a/main.go b/main.go index 34ff9a514..c5e4ea0fb 100644 --- a/main.go +++ b/main.go @@ -17,10 +17,10 @@ import ( zeroLog "github.com/rs/zerolog" "github.com/rs/zerolog/log" - "github.com/kubefirst/kubefirst-api/pkg/configs" - utils "github.com/kubefirst/kubefirst-api/pkg/utils" - "github.com/kubefirst/kubefirst/cmd" - "github.com/kubefirst/kubefirst/internal/progress" + "github.com/konstructio/kubefirst-api/pkg/configs" + utils "github.com/konstructio/kubefirst-api/pkg/utils" + "github.com/konstructio/kubefirst/cmd" + "github.com/konstructio/kubefirst/internal/progress" "github.com/spf13/viper" ) From 2500c7a723734d4e25eceb6f0fdebb4ec4b655f1 Mon Sep 17 00:00:00 2001 From: mrrishi Date: Thu, 29 Aug 2024 00:37:21 +0530 Subject: [PATCH 51/95] add restart function for argo --- cmd/k3d/create.go | 16 +++++++++++++++- go.mod | 4 ++++ go.sum | 21 +++++++++++++++++---- 3 files changed, 36 insertions(+), 5 deletions(-) diff --git a/cmd/k3d/create.go b/cmd/k3d/create.go index 5f1246bd5..9afdf6f1a 100644 --- a/cmd/k3d/create.go +++ b/cmd/k3d/create.go @@ -53,6 +53,7 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/util/wait" ) func runK3d(cmd *cobra.Command, args []string) error { @@ -1034,12 +1035,25 @@ func runK3d(cmd *cobra.Command, args []string) error { log.Info().Msg("applying the registry application to argocd") registryApplicationObject := argocd.GetArgoCDApplicationObject(gitopsRepoURL, fmt.Sprintf("registry/%s", clusterNameFlag)) - _, err = argocdClient.ArgoprojV1alpha1().Applications("argocd").Create(context.Background(), registryApplicationObject, metav1.CreateOptions{}) + err = k3d.RestartDeployment(context.Background(), kcfg.Clientset, "argocd", "argocd-applicationset-controller") + if err != nil { + return fmt.Errorf("error in restarting argocd controller %w", err) + } + + err = wait.PollImmediate(5*time.Second, 20*time.Second, func() (bool, error) { + _, err := argocdClient.ArgoprojV1alpha1().Applications("argocd").Create(context.Background(), registryApplicationObject, metav1.CreateOptions{}) + if err != nil { + return false, nil + } + return true, nil + }) if err != nil { return fmt.Errorf("error creating argocd application : %w", err) } + log.Info().Msg("Argo CD application created successfully\n") + log.Info().Msg("Argo CD application created successfully\n") viper.Set("kubefirst-checks.argocd-create-registry", true) viper.WriteConfig() diff --git a/go.mod b/go.mod index bbd026e8d..f64820519 100644 --- a/go.mod +++ b/go.mod @@ -60,6 +60,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.23 // indirect github.com/aws/aws-sdk-go-v2/service/ec2 v1.91.0 // indirect github.com/aws/aws-sdk-go-v2/service/ecr v1.18.7 // indirect + github.com/aws/aws-sdk-go-v2/service/eks v1.27.10 // indirect github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.15.6 // indirect github.com/aws/aws-sdk-go-v2/service/iam v1.19.8 // indirect github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.11 // indirect @@ -80,6 +81,7 @@ require ( github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/chai2010/gettext-go v0.1.0 // indirect github.com/cloudflare/circl v1.1.0 // indirect + github.com/cloudflare/cloudflare-go v0.73.0 // indirect github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect github.com/digitalocean/godo v1.98.0 // indirect github.com/dlclark/regexp2 v1.4.0 // indirect @@ -100,6 +102,7 @@ require ( github.com/go-openapi/swag v0.22.4 // indirect github.com/go-redis/cache/v8 v8.4.2 // indirect github.com/go-redis/redis/v8 v8.11.5 // indirect + github.com/go-resty/resty/v2 v2.11.0 // indirect github.com/go-test/deep v1.1.0 // indirect github.com/go-yaml/yaml v2.1.0+incompatible // indirect github.com/gobwas/glob v0.2.3 // indirect @@ -124,6 +127,7 @@ require ( github.com/klauspost/compress v1.16.0 // indirect github.com/klauspost/cpuid/v2 v2.2.3 // indirect github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect + github.com/linode/linodego v1.29.0 // indirect github.com/lixiangzhong/dnsutil v1.4.0 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-localereader v0.0.1 // indirect diff --git a/go.sum b/go.sum index 4db54c557..3999493f7 100644 --- a/go.sum +++ b/go.sum @@ -172,6 +172,8 @@ github.com/aws/aws-sdk-go-v2/service/ec2 v1.91.0 h1:b4Qme29Ml9nl3QBxWobytF5Uxlfm github.com/aws/aws-sdk-go-v2/service/ec2 v1.91.0/go.mod h1:ZZLfkd1Y7fjXujjMg1CFqNmaTl314eCbShlHQO7VTWo= github.com/aws/aws-sdk-go-v2/service/ecr v1.18.7 h1:oQ1Esut3iaL2Dydt2RBd9gbuUevToXpdTI+Uh1xXryI= github.com/aws/aws-sdk-go-v2/service/ecr v1.18.7/go.mod h1:RHhgOMnMIkgB4TmxQat9obSnZ6fF1fuA27+itZKUi1o= +github.com/aws/aws-sdk-go-v2/service/eks v1.27.10 h1:6eVyL60z5mXZ2uh90PlzVpPRPz2jLp1x9yyGTZJrtEY= +github.com/aws/aws-sdk-go-v2/service/eks v1.27.10/go.mod h1:qCd3ykvlPnRgBEJOQWeKcSNUy6hgMDb81ihhHmIsFpE= github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.15.6 h1:rY5DlQpQVGje6jiZQ+8xb4WbUyq4EFoPowpAnE3LrGg= github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.15.6/go.mod h1:by4vXHvRiuHkKrp3h++wo776M2E80m4Wmyt+Yj6uF1M= github.com/aws/aws-sdk-go-v2/service/iam v1.19.8 h1:kQsBeGgm68kT0xc90spgC5qEOQGH74V2bFqgBgG21Bo= @@ -262,6 +264,8 @@ github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4 github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cloudflare/circl v1.1.0 h1:bZgT/A+cikZnKIwn7xL2OBj012Bmvho/o6RpRvv3GKY= github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I= +github.com/cloudflare/cloudflare-go v0.73.0 h1:yBjVidAbzdI3aNSFotJdyIBswDWMO4k9Qpd25z7a16M= +github.com/cloudflare/cloudflare-go v0.73.0/go.mod h1:5xOc5nIVnd+5ai+10r+5NdFHf92RPRx5AM+aekMIhco= github.com/clusterhq/flocker-go v0.0.0-20160920122132-2b8b7259d313/go.mod h1:P1wt9Z3DP8O6W3rvwCt0REIlshg1InHImaLW0t3ObY0= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= @@ -454,6 +458,8 @@ github.com/go-redis/cache/v8 v8.4.2/go.mod h1:X7Jjd69Ssbrf3xBQLtIDE0g3WcSbFoQiSG github.com/go-redis/redis/v8 v8.11.3/go.mod h1:xNJ9xDG09FsIPwh3bWdk+0oDWHbtF9rPN0F/oD9XeKc= github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI= github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo= +github.com/go-resty/resty/v2 v2.11.0 h1:i7jMfNOJYMp69lq7qozJP+bjgzfAzeOhuGlyDrqxT/8= +github.com/go-resty/resty/v2 v2.11.0/go.mod h1:iiP/OpA0CkcL3IGt1O0+/SIItFUbkkyw5BGXiVdTu+A= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 h1:p104kn46Q8WdvHunIJ9dAyjPVtrBPhSr3KT2yUst43I= @@ -714,8 +720,6 @@ github.com/klauspost/cpuid/v2 v2.2.3/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8t github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konstructio/kubefirst-api v0.100.0 h1:RttN9KWKOReMWXy2izJupuVUrTO/K3WjY9SDyFKifYU= -github.com/konstructio/kubefirst-api v0.100.0/go.mod h1:jpBfSHjZhzcotYBvX4GG7H/y3VZANxri37/3ZO6B/Hk= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -734,6 +738,8 @@ github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhn github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= +github.com/linode/linodego v1.29.0 h1:gDSQWAbKMAQX8db9FDCXHhodQPrJmLcmthjx6m+PyV4= +github.com/linode/linodego v1.29.0/go.mod h1:3k6WvCM10gillgYcnoLqIL23ST27BD9HhMsCJWb3Bpk= github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= github.com/lixiangzhong/dnsutil v1.4.0 h1:S75ND4O8IbNhVdaP/Bn+3YHXPYvt6jpeqy3Yyr+iUNY= github.com/lixiangzhong/dnsutil v1.4.0/go.mod h1:hQj5Vdv9+/m5GZxu75Hp4SMPeYV3JZUABlUadwNVFmk= @@ -945,7 +951,6 @@ github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0 github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= @@ -1010,7 +1015,6 @@ github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzG github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= -github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/xid v1.4.0 h1:qd7wPTDkN6KQx2VmMBLrpHkiyQwgFXRnkOLacUiaSNY= github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= @@ -1242,6 +1246,7 @@ golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0 golang.org/x/crypto v0.0.0-20220826181053-bd7e27e6170d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= golang.org/x/crypto v0.20.0 h1:jmAMJJZXr5KiCw05dfYK9QnqaqKLYXijU23lsEdcQqg= golang.org/x/crypto v0.20.0/go.mod h1:Xwo95rrVNIoSMx9wa1JroENMToLWn3RNVrTBpLHgZPQ= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -1368,6 +1373,8 @@ golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= @@ -1507,6 +1514,8 @@ golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -1518,6 +1527,8 @@ golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= golang.org/x/term v0.17.0 h1:mkTF7LCd6WGJNL3K1Ad7kwxNfYAW6a8a8QqtMblp/4U= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1535,6 +1546,8 @@ golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= From 19c0475d8b1710d978d04b22de4fe92a872abc1e Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 19:28:45 +0000 Subject: [PATCH 52/95] set next macro chart for kubefirst - 2.5.0-rc14 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 86b6594ee..c6f42c4cc 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0-rc13" + helmChartVersion = "2.5.0-rc14" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 25e0aaa86ed41d30f501e82161b3e5b3b6ccd78a Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 19:49:32 +0000 Subject: [PATCH 53/95] set next macro chart for kubefirst - 2.5.0-rc15 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index c6f42c4cc..c06df45ed 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0-rc14" + helmChartVersion = "2.5.0-rc15" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From d0747ae3a539eea51e1945ed02f974830fbee421 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 19:56:41 +0000 Subject: [PATCH 54/95] set next macro chart for kubefirst - 2.5.0-rc16 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index c06df45ed..3f47a1734 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0-rc15" + helmChartVersion = "2.5.0-rc16" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 456c15ec03638aa5e3ba683646ee57cae56a3096 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 20:09:47 +0000 Subject: [PATCH 55/95] set next macro chart for kubefirst - 2.5.0-rc17 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 3f47a1734..e2a9bdc9c 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0-rc16" + helmChartVersion = "2.5.0-rc17" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 703dc804be737bd20b446301900675497bf5d773 Mon Sep 17 00:00:00 2001 From: mrrishi Date: Thu, 29 Aug 2024 01:41:40 +0530 Subject: [PATCH 56/95] refer latest kubefirst-api --- go.mod | 3 +-- go.sum | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index f64820519..27aba6c90 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/dustin/go-humanize v1.0.1 github.com/go-git/go-git/v5 v5.6.1 github.com/hashicorp/vault/api v1.9.0 - github.com/konstructio/kubefirst-api v0.100.0 + github.com/konstructio/kubefirst-api v0.102.0 github.com/kubefirst/metrics-client v0.3.0 github.com/nxadm/tail v1.4.8 github.com/rs/zerolog v1.29.1 @@ -155,7 +155,6 @@ require ( github.com/prometheus/common v0.39.0 // indirect github.com/prometheus/procfs v0.9.0 // indirect github.com/robfig/cron/v3 v3.0.1 // indirect - github.com/rogpeppe/go-internal v1.8.1 // indirect github.com/rs/xid v1.4.0 // indirect github.com/russross/blackfriday v1.6.0 // indirect github.com/sahilm/fuzzy v0.1.0 // indirect diff --git a/go.sum b/go.sum index 3999493f7..2e67aec77 100644 --- a/go.sum +++ b/go.sum @@ -720,6 +720,8 @@ github.com/klauspost/cpuid/v2 v2.2.3/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8t github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konstructio/kubefirst-api v0.102.0 h1:0l1q8TbD+K3ShQCb1Nv5AJdjc/BVso2nQY2MLIMZWHE= +github.com/konstructio/kubefirst-api v0.102.0/go.mod h1:jpBfSHjZhzcotYBvX4GG7H/y3VZANxri37/3ZO6B/Hk= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= From f178edd52ef4b7d7a691bf0f43a92419770ad40c Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 20:17:34 +0000 Subject: [PATCH 57/95] set next macro chart for kubefirst - 2.5.0-rc18 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index e2a9bdc9c..9fed4a6bd 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0-rc17" + helmChartVersion = "2.5.0-rc18" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From a94c1a6136d1504ffcbf7ee690b5180a50ed2032 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 20:23:47 +0000 Subject: [PATCH 58/95] set next macro chart for kubefirst - 2.5.0-rc19 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 9fed4a6bd..3b3167965 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0-rc18" + helmChartVersion = "2.5.0-rc19" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 44ad1226ea5e78c721039c7f69f162c3f92cd83e Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 20:43:04 +0000 Subject: [PATCH 59/95] set next macro chart for kubefirst - 2.5.0-rc20 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 3b3167965..4d5a03db5 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0-rc19" + helmChartVersion = "2.5.0-rc20" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From b52ccde7aecbb2c03f7c62da1801252e0a1d04c0 Mon Sep 17 00:00:00 2001 From: Patrick D'appollonio <930925+patrickdappollonio@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:55:14 -0400 Subject: [PATCH 60/95] Add conditions based on the situation. --- cmd/k3d/create.go | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/cmd/k3d/create.go b/cmd/k3d/create.go index 9afdf6f1a..c493909ee 100644 --- a/cmd/k3d/create.go +++ b/cmd/k3d/create.go @@ -15,6 +15,7 @@ import ( "os" "strconv" "strings" + "syscall" "time" "github.com/atotto/clipboard" @@ -24,23 +25,22 @@ import ( argocdapi "github.com/argoproj/argo-cd/v2/pkg/client/clientset/versioned" "github.com/go-git/go-git/v5" githttps "github.com/go-git/go-git/v5/plumbing/transport/http" + "github.com/konstructio/kubefirst-api/pkg/argocd" "github.com/konstructio/kubefirst-api/pkg/configs" constants "github.com/konstructio/kubefirst-api/pkg/constants" "github.com/konstructio/kubefirst-api/pkg/gitClient" - "github.com/konstructio/kubefirst-api/pkg/handlers" - "github.com/konstructio/kubefirst-api/pkg/reports" - "github.com/konstructio/kubefirst-api/pkg/types" - utils "github.com/konstructio/kubefirst-api/pkg/utils" - - "github.com/konstructio/kubefirst-api/pkg/argocd" github "github.com/konstructio/kubefirst-api/pkg/github" gitlab "github.com/konstructio/kubefirst-api/pkg/gitlab" + "github.com/konstructio/kubefirst-api/pkg/handlers" "github.com/konstructio/kubefirst-api/pkg/k3d" "github.com/konstructio/kubefirst-api/pkg/k8s" "github.com/konstructio/kubefirst-api/pkg/progressPrinter" + "github.com/konstructio/kubefirst-api/pkg/reports" "github.com/konstructio/kubefirst-api/pkg/services" internalssh "github.com/konstructio/kubefirst-api/pkg/ssh" "github.com/konstructio/kubefirst-api/pkg/terraform" + "github.com/konstructio/kubefirst-api/pkg/types" + utils "github.com/konstructio/kubefirst-api/pkg/utils" "github.com/konstructio/kubefirst-api/pkg/wrappers" "github.com/konstructio/kubefirst/internal/catalog" "github.com/konstructio/kubefirst/internal/gitShim" @@ -52,6 +52,7 @@ import ( "github.com/minio/minio-go/v7/pkg/credentials" "github.com/spf13/cobra" "github.com/spf13/viper" + apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/wait" ) @@ -1043,11 +1044,18 @@ func runK3d(cmd *cobra.Command, args []string) error { err = wait.PollImmediate(5*time.Second, 20*time.Second, func() (bool, error) { _, err := argocdClient.ArgoprojV1alpha1().Applications("argocd").Create(context.Background(), registryApplicationObject, metav1.CreateOptions{}) if err != nil { - return false, nil + if errors.Is(err, syscall.ECONNREFUSED) { + return false, nil // retry if we can't connect to it + } + + if apierrors.IsAlreadyExists(err) { + return true, nil // application already exists + } + + return false, fmt.Errorf("error creating argocd application : %w", err) } return true, nil }) - if err != nil { return fmt.Errorf("error creating argocd application : %w", err) } From 2c950b44855f90808ae2b5afd0a252c9f4adb2f5 Mon Sep 17 00:00:00 2001 From: Patrick D'appollonio <930925+patrickdappollonio@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:56:52 -0400 Subject: [PATCH 61/95] Fix linting messages. --- cmd/k3d/create.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/k3d/create.go b/cmd/k3d/create.go index c493909ee..5e471e7a4 100644 --- a/cmd/k3d/create.go +++ b/cmd/k3d/create.go @@ -422,7 +422,7 @@ func runK3d(cmd *cobra.Command, args []string) error { strings.ToUpper(config.GitProvider), ) telemetry.SendEvent(segClient, telemetry.GitCredentialsCheckFailed, msg) - return fmt.Errorf(msg) + return errors.New(msg) } initGitParameters := gitShim.GitInitParameters{ @@ -630,7 +630,7 @@ func runK3d(cmd *cobra.Command, args []string) error { if err != nil { msg := fmt.Sprintf("error creating github resources with terraform %s: %s", tfEntrypoint, err) telemetry.SendEvent(segClient, telemetry.GitTerraformApplyFailed, msg) - return fmt.Errorf(msg) + return errors.New(msg) } log.Info().Msgf("created git repositories for github.com/%s", cGitOwner) @@ -669,7 +669,7 @@ func runK3d(cmd *cobra.Command, args []string) error { if err != nil { msg := fmt.Sprintf("error creating gitlab resources with terraform %s: %s", tfEntrypoint, err) telemetry.SendEvent(segClient, telemetry.GitTerraformApplyFailed, msg) - return fmt.Errorf(msg) + return errors.New(msg) } log.Info().Msgf("created git projects and groups for gitlab.com/%s", gitlabGroupFlag) @@ -772,7 +772,7 @@ func runK3d(cmd *cobra.Command, args []string) error { viper.Set("kubefirst-checks.create-k3d-cluster-failed", true) viper.WriteConfig() telemetry.SendEvent(segClient, telemetry.CloudTerraformApplyFailed, msg) - return fmt.Errorf(msg) + return errors.New(msg) } log.Info().Msg("successfully created k3d cluster") From a30001b50842b720fadcaa1907f34f634c011617 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Wed, 28 Aug 2024 21:03:26 +0000 Subject: [PATCH 62/95] set next macro chart for kubefirst - 2.5.0 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 4d5a03db5..8fd9fe9e6 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0-rc20" + helmChartVersion = "2.5.0" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 58cb3163ada466ea79f1e3295a03fb29d2b24ee9 Mon Sep 17 00:00:00 2001 From: mrrishi Date: Thu, 29 Aug 2024 02:49:28 +0530 Subject: [PATCH 63/95] removed duplicate --- cmd/k3d/create.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/k3d/create.go b/cmd/k3d/create.go index 5e471e7a4..ed4991a37 100644 --- a/cmd/k3d/create.go +++ b/cmd/k3d/create.go @@ -1060,9 +1060,7 @@ func runK3d(cmd *cobra.Command, args []string) error { return fmt.Errorf("error creating argocd application : %w", err) } - log.Info().Msg("Argo CD application created successfully\n") - - log.Info().Msg("Argo CD application created successfully\n") + log.Info().Msg("Argo CD application created successfully") viper.Set("kubefirst-checks.argocd-create-registry", true) viper.WriteConfig() telemetry.SendEvent(segClient, telemetry.CreateRegistryCompleted, "") From 6a7998ef68da3007b1af22bfdf6e0cc6eec44499 Mon Sep 17 00:00:00 2001 From: Jared Edwards Date: Wed, 28 Aug 2024 15:39:09 -0600 Subject: [PATCH 64/95] replace kubefirst refs with konstructio (#2270) --- .github/ISSUE_TEMPLATE/bugs.yml | 2 +- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/ISSUE_TEMPLATE/features.yml | 2 +- .goreleaser.yaml | 8 ++++---- CONTRIBUTING.md | 20 ++++++++++---------- README.md | 6 +++--- SUPPORT.MD | 2 +- build/Dockerfile | 2 +- cmd/akamai/command.go | 2 +- cmd/aws/command.go | 2 +- cmd/civo/command.go | 2 +- cmd/digitalocean/command.go | 2 +- cmd/google/command.go | 2 +- cmd/k3d/command.go | 2 +- cmd/k3d/create.go | 6 +++--- cmd/k3s/command.go | 2 +- cmd/root.go | 2 +- cmd/vultr/command.go | 2 +- internal/common/common.go | 4 ++-- 19 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bugs.yml b/.github/ISSUE_TEMPLATE/bugs.yml index e870ce36c..0194b4658 100644 --- a/.github/ISSUE_TEMPLATE/bugs.yml +++ b/.github/ISSUE_TEMPLATE/bugs.yml @@ -101,7 +101,7 @@ body: id: terms attributes: label: Code of Conduct - description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/kubefirst/kubefirst/blob/main/CODE_OF_CONDUCT.md) + description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/konstructio/kubefirst/blob/main/CODE_OF_CONDUCT.md) options: - label: I agree to follow this project's Code of Conduct required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index f04015fcb..689afcd85 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,5 @@ blank_issues_enabled: false contact_links: - name: Documentations - url: https://github.com/kubefirst/docs/issues/new?assignees=&labels=docs&template=docs.yml&title=%5BDocs%5D%3A+ + url: https://github.com/konstructio/kubefirst-docs/issues/new?assignees=&labels=docs&template=docs.yml&title=%5BDocs%5D%3A+ about: Any suggestions related to the documentation, whether it's an issue, missing information, unclear steps or new page that should be created diff --git a/.github/ISSUE_TEMPLATE/features.yml b/.github/ISSUE_TEMPLATE/features.yml index 8159f2b74..8e4014a9e 100644 --- a/.github/ISSUE_TEMPLATE/features.yml +++ b/.github/ISSUE_TEMPLATE/features.yml @@ -34,7 +34,7 @@ body: id: terms attributes: label: Code of Conduct - description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/kubefirst/kubefirst/blob/main/CODE_OF_CONDUCT.md) + description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/konstructio/kubefirst/blob/main/CODE_OF_CONDUCT.md) options: - label: I agree to follow this project's Code of Conduct required: true diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 839f1aefb..28c31e553 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -14,7 +14,7 @@ builds: flags: - -trimpath ldflags: - - -X github.com/kubefirst/kubefirst-api/configs.K1Version=v{{.Version}} + - -X github.com/konstructio/kubefirst-api/configs.K1Version=v{{.Version}} #archives: # - replacements: @@ -35,10 +35,10 @@ changelog: - '^test:' brews: - name: kubefirst - homepage: https://github.com/kubefirst/kubefirst + homepage: https://github.com/konstructio/kubefirst repository: - owner: kubefirst - name: homebrew-tools + owner: konstructio + name: homebrew-taps dependencies: - aws-iam-authenticator version: 2 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 02526f1a9..1cf4b7dc1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,12 +10,12 @@ Note we have a [code of conduct](CODE_OF_CONDUCT.md) which needs to be followed At Kubefirst, we believe that every contribution is valuable, not just the code one, which means we welcome -- [bug reports](https://github.com/kubefirst/kubefirst/issues/new); -- [feature requests](https://github.com/kubefirst/kubefirst/issues/new?assignees=&labels=feature-request&template=feature_request.md&title=); -- [documentations issues reports](https://github.com/kubefirst/kubefirst/issues/new?assignees=&labels=feature-request&template=feature_request.md&title=) like unclear section, missing information or even typos; +- [bug reports](https://github.com/konstructio/kubefirst/issues/new); +- [feature requests](https://github.com/konstructio/kubefirst/issues/new?assignees=&labels=feature-request&template=feature_request.md&title=); +- [documentations issues reports](https://github.com/konstructio/kubefirst/issues/new?assignees=&labels=feature-request&template=feature_request.md&title=) like unclear section, missing information or even typos; - and, of course, any code contributions to Kubefirst, or the documentations. -Before making a code change, first discuss your idea via an [issue](https://github.com/kubefirst/kubefirst/issues/new/choose). Please check if a feature request or bug report does [already exist](https://github.com/kubefirst/kubefirst/issues/) before creating a new one. +Before making a code change, first discuss your idea via an [issue](https://github.com/konstructio/kubefirst/issues/new/choose). Please check if a feature request or bug report does [already exist](https://github.com/konstructio/kubefirst/issues/) before creating a new one. ## Getting Started with the Code @@ -35,31 +35,31 @@ If you want to create a [Civo cluster](https://docs.kubefirst.io/kubefirst/local #### GitOps Template -Note that even if you run kubefirst from `main`, the [gitops-template](https://github.com/kubefirst/gitops-template) version used will be the [latest release](https://github.com/kubefirst/gitops-template/releases). If you also want to use the latest from `main` for the template, you need to run to use the `--gitops-template-url`, and the `--gitops-template-branch` as follow: +Note that even if you run kubefirst from `main`, the [gitops-template](https://github.com/konstructio/gitops-template) version used will be the [latest release](https://github.com/konstructio/gitops-template/releases). If you also want to use the latest from `main` for the template, you need to run to use the `--gitops-template-url`, and the `--gitops-template-branch` as follow: ```shell -go run . civo create --gitops-template-url https://github.com/kubefirst/gitops-template --gitops-template-branch main +go run . civo create --gitops-template-url https://github.com/konstructio/gitops-template --gitops-template-branch main ``` #### Kubefirst API -If you need to use a specific branch or latest from `main` that wasn't released yet for the [kubefirst-api](https://github.com/kubefirst/kubefirst-api) repository, you will need to first run it locally as described in [its documentation](https://github.com/kubefirst/kubefirst-api#running-locally). You will also need to run the code from [console](https://github.com/kubefirst/console) repository, whether you need to use a specific version of the code or not, as we don't expose the API directly. To do so, follow the [instructions in its README](https://github.com/kubefirst/console#setup-instructions). Before running the CLI as mentionned "The CLI" section, you need to export a local variable: +If you need to use a specific branch or latest from `main` that wasn't released yet for the [kubefirst-api](https://github.com/konstructio/kubefirst-api) repository, you will need to first run it locally as described in [its documentation](https://github.com/konstructio/kubefirst-api#running-locally). You will also need to run the code from [console](https://github.com/konstructio/console) repository, whether you need to use a specific version of the code or not, as we don't expose the API directly. To do so, follow the [instructions in its README](https://github.com/konstructio/console#setup-instructions). Before running the CLI as mentionned "The CLI" section, you need to export a local variable: ```shell export K1_CONSOLE_REMOTE_URL="http://localhost:3000" ``` -The previous steps will work for all clouds except k3d which use our runtime for now: we have plan to remove this dependencies completely and use the API also to make the code easier to maintain, and less prone to issues. For that step, instead of running the API, and console locally, you simply need to clone the [kubefirst-api](https://github.com/kubefirst/kubefirst-api) repository locally, and add the following line in the `go.mod` file: +The previous steps will work for all clouds except k3d which use our runtime for now: we have plan to remove this dependencies completely and use the API also to make the code easier to maintain, and less prone to issues. For that step, instead of running the API, and console locally, you simply need to clone the [kubefirst-api](https://github.com/konstructio/kubefirst-api) repository locally, and add the following line in the `go.mod` file: ```go -github.com/kubefirst/kubefirst-api vX.X.XX => /path-to/kubefirst-api/ +github.com/konstructio/kubefirst-api vX.X.XX => /path-to/kubefirst-api/ ``` Replace `vX.X.XX` with the latest version used in the mode file for the API, and the `/path-to/kubefirst-api/` with the path to the folder of your locally Kubefirst API folder. ## Getting Started with the Documentation -Please check the [CONTRIBUTING.md](https://github.com/kubefirst/docs/blob/main/CONTRIBUTING.md) file from the [docs](https://github.com/kubefirst/docs/) repository. +Please check the [CONTRIBUTING.md](https://github.com/konstructio/kubefirst-docs/blob/main/CONTRIBUTING.md) file from the [docs](https://github.com/konstructio/kubefirst-docs/) repository. ## Help diff --git a/README.md b/README.md index b6381f99d..a621d166c 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,9 @@

- + - +

--- @@ -57,7 +57,7 @@ Feed K-Ray a GitHub star ⭐ above to bookmark our project and keep K-Ray happy! ## Contributions -We want to thank all of our contributors who created a pull request to fix a bug, add a new feature or update the [documentation](https://github.com/kubefirst/docs/). We also value a lot contributions in the form of bug reporting or feature requests: it helps us continuously make kubefirst better. Lastly, helping the users in our Slack community, or helping us share the love on social media are also ways in which you support us tremendously. We know your time is valuable, and we can't thank you enough for everything you do: we wouldn't be where we are without you! +We want to thank all of our contributors who created a pull request to fix a bug, add a new feature or update the [documentation](https://github.com/konstructio/kubefirst-docs/). We also value a lot contributions in the form of bug reporting or feature requests: it helps us continuously make kubefirst better. Lastly, helping the users in our Slack community, or helping us share the love on social media are also ways in which you support us tremendously. We know your time is valuable, and we can't thank you enough for everything you do: we wouldn't be where we are without you! A special thanks to [DrummyFloyd](https://github.com/DrummyFloyd) who, in addition to adding support for k3s, is a champion all around within our community and the kubefirst project 🫶 diff --git a/SUPPORT.MD b/SUPPORT.MD index 6154b3ae3..b4b6623d6 100644 --- a/SUPPORT.MD +++ b/SUPPORT.MD @@ -2,7 +2,7 @@ ## Issues -If you are having an issue with kubefirst, we highly suggest that you share the problem with us on our Slack Community (read the next section for more information). If you are certain it's a bug with our platform, you can create an [issue](https://github.com/kubefirst/kubefirst/issues/new/choose). We'll get back to you as soon as possible. +If you are having an issue with kubefirst, we highly suggest that you share the problem with us on our Slack Community (read the next section for more information). If you are certain it's a bug with our platform, you can create an [issue](https://github.com/konstructio/kubefirst/issues/new/choose). We'll get back to you as soon as possible. ## Questions diff --git a/build/Dockerfile b/build/Dockerfile index 4a97f3131..803900ef6 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -33,7 +33,7 @@ RUN curl -LO https://s3.us-west-2.amazonaws.com/amazon-eks/1.21.2/2021-07-05/bin SHELL ["/bin/bash", "-c"] # Kubefirst cli -RUN curl -LO https://github.com/kubefirst/kubefirst/releases/download/$KUBEFIRST_VERSION/kubefirst_${KUBEFIRST_VERSION:1}_linux_amd64.tar.gz && \ +RUN curl -LO https://github.com/konstructio/kubefirst/releases/download/$KUBEFIRST_VERSION/kubefirst_${KUBEFIRST_VERSION:1}_linux_amd64.tar.gz && \ tar -xvzf kubefirst_${KUBEFIRST_VERSION:1}_linux_amd64.tar.gz -C /usr/local/bin/ && \ chmod +x /usr/local/bin/kubefirst && \ rm kubefirst_${KUBEFIRST_VERSION:1}_linux_amd64.tar.gz diff --git a/cmd/akamai/command.go b/cmd/akamai/command.go index f1928102b..82336e0bb 100644 --- a/cmd/akamai/command.go +++ b/cmd/akamai/command.go @@ -98,7 +98,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&githubOrgFlag, "github-org", "", "the GitHub organization for the new gitops and metaphor repositories - required if using github") createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") - createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") + createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/konstructio/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") createCmd.Flags().BoolVar(&installKubefirstProFlag, "install-kubefirst-pro", true, "whether or not to install kubefirst pro") diff --git a/cmd/aws/command.go b/cmd/aws/command.go index 38d06c304..77fffcd29 100644 --- a/cmd/aws/command.go +++ b/cmd/aws/command.go @@ -94,7 +94,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&githubOrgFlag, "github-org", "", "the GitHub organization for the new gitops and metaphor repositories - required if using github") createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") - createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") + createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/konstructio/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") createCmd.Flags().BoolVar(&ecrFlag, "ecr", false, "whether or not to use ecr vs the git provider") diff --git a/cmd/civo/command.go b/cmd/civo/command.go index 5c998b1d4..4bda3c650 100644 --- a/cmd/civo/command.go +++ b/cmd/civo/command.go @@ -110,7 +110,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&githubOrgFlag, "github-org", "", "the GitHub organization for the new gitops and metaphor repositories - required if using github") createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") - createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") + createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/konstructio/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") createCmd.Flags().BoolVar(&installKubefirstProFlag, "install-kubefirst-pro", true, "whether or not to install kubefirst pro") diff --git a/cmd/digitalocean/command.go b/cmd/digitalocean/command.go index fc941ae12..e04ce26da 100644 --- a/cmd/digitalocean/command.go +++ b/cmd/digitalocean/command.go @@ -103,7 +103,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&githubOrgFlag, "github-org", "", "the GitHub organization for the new gitops and metaphor repositories - required if using github") createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") - createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") + createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/konstructio/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") createCmd.Flags().BoolVar(&installKubefirstProFlag, "install-kubefirst-pro", true, "whether or not to install kubefirst pro") diff --git a/cmd/google/command.go b/cmd/google/command.go index 14ec050e1..e53ac8858 100644 --- a/cmd/google/command.go +++ b/cmd/google/command.go @@ -107,7 +107,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&githubOrgFlag, "github-org", "", "the GitHub organization for the new gitops and metaphor repositories - required if using github") createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") - createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") + createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/konstructio/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") createCmd.Flags().BoolVar(&forceDestroyFlag, "force-destroy", false, "allows force destruction on objects (helpful for test environments, defaults to false)") diff --git a/cmd/k3d/command.go b/cmd/k3d/command.go index 6e1676ed4..ed9cde811 100644 --- a/cmd/k3d/command.go +++ b/cmd/k3d/command.go @@ -95,7 +95,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&githubOrgFlag, "github-org", "", "the GitHub organization for the new gitops and metaphor repositories - this cannot be used with --github-user") createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") - createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") + createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/konstructio/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values of catalog apps to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") diff --git a/cmd/k3d/create.go b/cmd/k3d/create.go index ed4991a37..dd60016ae 100644 --- a/cmd/k3d/create.go +++ b/cmd/k3d/create.go @@ -351,16 +351,16 @@ func runK3d(cmd *cobra.Command, args []string) error { // kubefirst binary for version compatibility switch configs.K1Version { case "development": - if strings.Contains(gitopsTemplateURLFlag, "https://github.com/kubefirst/gitops-template.git") && gitopsTemplateBranchFlag == "" { + if strings.Contains(gitopsTemplateURLFlag, "https://github.com/konstructio/gitops-template.git") && gitopsTemplateBranchFlag == "" { gitopsTemplateBranchFlag = "main" } default: switch gitopsTemplateURLFlag { - case "https://github.com/kubefirst/gitops-template.git": // default value + case "https://github.com/konstructio/gitops-template.git": // default value if gitopsTemplateBranchFlag == "" { gitopsTemplateBranchFlag = configs.K1Version } - case "https://github.com/kubefirst/gitops-template": // edge case for valid but incomplete url + case "https://github.com/konstructio/gitops-template": // edge case for valid but incomplete url if gitopsTemplateBranchFlag == "" { gitopsTemplateBranchFlag = configs.K1Version } diff --git a/cmd/k3s/command.go b/cmd/k3s/command.go index 2ba892a20..e89e1211c 100644 --- a/cmd/k3s/command.go +++ b/cmd/k3s/command.go @@ -104,7 +104,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&githubOrgFlag, "github-org", "", "the GitHub organization for the new gitops and metaphor repositories - required if using github") createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") - createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") + createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/konstructio/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") createCmd.Flags().BoolVar(&forceDestroyFlag, "force-destroy", false, "allows force destruction on objects (helpful for test environments, defaults to false)") diff --git a/cmd/root.go b/cmd/root.go index 58554e890..2b2e76484 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -43,7 +43,7 @@ var rootCmd = &cobra.Command{ // This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { // This will allow all child commands to have informUser available for free. - // Refers: https://github.com/kubefirst/runtime/issues/525 + // Refers: https://github.com/konstructio/runtime/issues/525 // Before removing next line, please read ticket above. common.CheckForVersionUpdate() progressPrinter.GetInstance() diff --git a/cmd/vultr/command.go b/cmd/vultr/command.go index a6fa395b4..0dac234bd 100644 --- a/cmd/vultr/command.go +++ b/cmd/vultr/command.go @@ -102,7 +102,7 @@ func Create() *cobra.Command { createCmd.Flags().StringVar(&githubOrgFlag, "github-org", "", "the GitHub organization for the new gitops and metaphor repositories - required if using github") createCmd.Flags().StringVar(&gitlabGroupFlag, "gitlab-group", "", "the GitLab group for the new gitops and metaphor projects - required if using gitlab") createCmd.Flags().StringVar(&gitopsTemplateBranchFlag, "gitops-template-branch", "", "the branch to clone for the gitops-template repository") - createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/kubefirst/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") + createCmd.Flags().StringVar(&gitopsTemplateURLFlag, "gitops-template-url", "https://github.com/konstructio/gitops-template.git", "the fully qualified url to the gitops-template repository to clone") createCmd.Flags().StringVar(&installCatalogApps, "install-catalog-apps", "", "comma separated values to install after provision") createCmd.Flags().BoolVar(&useTelemetryFlag, "use-telemetry", true, "whether to emit telemetry") createCmd.Flags().BoolVar(&installKubefirstProFlag, "install-kubefirst-pro", true, "whether or not to install kubefirst pro") diff --git a/internal/common/common.go b/internal/common/common.go index 42110f5a6..f019cb5cf 100644 --- a/internal/common/common.go +++ b/internal/common/common.go @@ -50,7 +50,7 @@ func CheckForVersionUpdate() { case "darwin": fmt.Printf("A newer version (v%s) is available! Please upgrade with: \"brew update && brew upgrade kubefirst\"\n", res.Current) default: - fmt.Printf("A newer version (v%s) is available! \"https://github.com/kubefirst/kubefirst/blob/main/build/README.md\"\n", res.Current) + fmt.Printf("A newer version (v%s) is available! \"https://github.com/konstructio/kubefirst/blob/main/build/README.md\"\n", res.Current) } } } @@ -81,7 +81,7 @@ func versionCheck() (res *CheckResponse, skip bool) { } bodyString := string(bodyBytes) - if !strings.Contains(bodyString, "url \"https://github.com/kubefirst/kubefirst/archive/refs/tags/") { + if !strings.Contains(bodyString, "url \"https://github.com/konstructio/kubefirst/archive/refs/tags/") { fmt.Printf("checking for a newer version failed (no reference to kubefirst release) with: %s", err) return nil, true } From 1060f5a9f58ac9a61da6f4338e540abfe6802ca5 Mon Sep 17 00:00:00 2001 From: Jared Edwards Date: Wed, 28 Aug 2024 15:52:13 -0600 Subject: [PATCH 65/95] use generated release notes for gitops-template (#2271) * use generated release notes for gitops-template * fix org * remove dockerhub publish --- .github/workflows/releaser.yaml | 35 ++------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/.github/workflows/releaser.yaml b/.github/workflows/releaser.yaml index 8af39c628..75c34665d 100644 --- a/.github/workflows/releaser.yaml +++ b/.github/workflows/releaser.yaml @@ -16,8 +16,8 @@ jobs: uses: actions/checkout@v2 - name: Update version file run: echo $GITHUB_REF_NAME > VERSION.md - - name: Release kubefirst/gitops-template - run: gh release create -R kubefirst/gitops-template ${{ github.REF_NAME }} --notes "${{ env.RELEASE_NOTES }}" + - name: Release konstructio/gitops-template + run: gh release create -R konstructio/gitops-template ${{ github.REF_NAME }} --generate-notes goreleaser: runs-on: ubuntu-latest steps: @@ -41,34 +41,3 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - - release-docker: - needs: goreleaser - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v3 - with: - push: true - context: ./build - build-args: KUBEFIRST_VERSION=${{ github.REF_NAME }} - file: ./build/Dockerfile - tags: kubefirst/kubefirst:${{ github.REF_NAME }},kubefirst/kubefirst:latest - - name: Update Docker Hub Description - uses: peter-evans/dockerhub-description@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - repository: kubefirst/kubefirst - short-description: ${{ github.event.repository.description }} From 98a3aaa81adf7bbdfee02244b39a56d13313e56b Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Thu, 29 Aug 2024 02:51:52 +0000 Subject: [PATCH 66/95] set next macro chart for kubefirst - 2.5.1 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 8fd9fe9e6..2f33e6ddd 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.0" + helmChartVersion = "2.5.1" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 733da328717d4ef5d67c7a793f045c7ea53a452b Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Thu, 29 Aug 2024 04:36:44 +0000 Subject: [PATCH 67/95] set next macro chart for kubefirst - 2.5.3-rc1 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 2f33e6ddd..08be2a695 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.1" + helmChartVersion = "2.5.3-rc1" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 946826c483afed88e2265b0f0b5347c34db06403 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Thu, 29 Aug 2024 04:50:36 +0000 Subject: [PATCH 68/95] set next macro chart for kubefirst - 2.5.3-rc2 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 08be2a695..a8ee82966 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.3-rc1" + helmChartVersion = "2.5.3-rc2" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 0b51b2e5322b896c922c8c232cf4f4b6305aa030 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Thu, 29 Aug 2024 04:59:53 +0000 Subject: [PATCH 69/95] set next macro chart for kubefirst - 2.5.3-rc3 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index a8ee82966..8a48ee8cf 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.3-rc2" + helmChartVersion = "2.5.3-rc3" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From d718ebb289ffad0d731ef57aab7819e805e34096 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Thu, 29 Aug 2024 05:04:51 +0000 Subject: [PATCH 70/95] set next macro chart for kubefirst - 2.5.3-rc4 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 8a48ee8cf..746767598 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.3-rc3" + helmChartVersion = "2.5.3-rc4" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From f74dbae30dcd0c456b726a100335b24e26970b63 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Thu, 29 Aug 2024 05:10:42 +0000 Subject: [PATCH 71/95] set next macro chart for kubefirst - 2.5.3 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 746767598..ded8255aa 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.kubefirst.com" - helmChartVersion = "2.5.3-rc4" + helmChartVersion = "2.5.3" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From e56ded0eacbf396408069842e211faa45cc07ff4 Mon Sep 17 00:00:00 2001 From: Jared Edwards Date: Thu, 29 Aug 2024 00:41:31 -0600 Subject: [PATCH 72/95] fix bad chart ref from kubefirst and emails (#2274) --- CODE_OF_CONDUCT.md | 2 +- internal/launch/constants.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 9da306bb9..766dbcb57 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -36,7 +36,7 @@ This Code of Conduct applies within all community spaces, and also applies when ## Enforcement -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [conduct@kubefirst.com](mailto:conduct@kubefirst.com). All complaints will be reviewed and investigated promptly and fairly. +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [conduct@konstruct.io](mailto:conduct@konstruct.io). All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the reporter of any incident. diff --git a/internal/launch/constants.go b/internal/launch/constants.go index ded8255aa..a2ea1c73b 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -10,7 +10,7 @@ const ( consoleURL = "https://console.kubefirst.dev" helmChartName = "kubefirst" helmChartRepoName = "kubefirst" - helmChartRepoURL = "https://charts.kubefirst.com" + helmChartRepoURL = "https://charts.konstruct.io" helmChartVersion = "2.5.3" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" From e41a90878e2bf028912e298bea0d43392357eade Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Thu, 29 Aug 2024 07:12:32 +0000 Subject: [PATCH 73/95] set next macro chart for kubefirst - 2.5.4-rc1 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index a2ea1c73b..050ff7ee0 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.3" + helmChartVersion = "2.5.4-rc1" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From be4722f90d136eaf127017831df3f751892f8e51 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Thu, 29 Aug 2024 07:17:08 +0000 Subject: [PATCH 74/95] set next macro chart for kubefirst - 2.5.4-rc2 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 050ff7ee0..593c60b2d 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.4-rc1" + helmChartVersion = "2.5.4-rc2" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 039bfa754443d1d40f7136eebd02bba0c42ea7fe Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Thu, 29 Aug 2024 07:23:40 +0000 Subject: [PATCH 75/95] set next macro chart for kubefirst - 2.5.4 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 593c60b2d..073a30fce 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.4-rc2" + helmChartVersion = "2.5.4" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 515cac25f06f002b418330ff76317f755ef19207 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Thu, 29 Aug 2024 12:13:46 +0000 Subject: [PATCH 76/95] set next macro chart for kubefirst - 2.5.5-rc1 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 073a30fce..21d0422f8 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.4" + helmChartVersion = "2.5.5-rc1" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 4a89610b95c9f035d7dfd23634dc6026eb7cab1a Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Thu, 29 Aug 2024 14:00:30 +0000 Subject: [PATCH 77/95] set next macro chart for kubefirst - 2.5.5-rc2 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 21d0422f8..2b8627f96 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.5-rc1" + helmChartVersion = "2.5.5-rc2" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 85138849f4c317f03435a554900eed9ffe62caca Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Thu, 29 Aug 2024 15:34:51 +0000 Subject: [PATCH 78/95] set next macro chart for kubefirst - 2.5.5-rc3 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 2b8627f96..344f39c70 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.5-rc2" + helmChartVersion = "v2.5.5-rc3" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From a2ce7953260090bbccb25795ca980f917e249a10 Mon Sep 17 00:00:00 2001 From: Jared Edwards Date: Thu, 29 Aug 2024 22:06:15 -0600 Subject: [PATCH 79/95] remove v so regex matches again (#2275) --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 344f39c70..04eaa8993 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "v2.5.5-rc3" + helmChartVersion = "2.5.7-rc2" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 475790dcf2949eb2fab428a10e57553a002b268f Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Fri, 30 Aug 2024 04:17:50 +0000 Subject: [PATCH 80/95] set next macro chart for kubefirst - 2.5.8-rc1 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 04eaa8993..af24be20d 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.7-rc2" + helmChartVersion = "2.5.8-rc1" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 26b802166f89378674d7c00aa82e59dd56ec1d0d Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Fri, 30 Aug 2024 04:25:09 +0000 Subject: [PATCH 81/95] set next macro chart for kubefirst - 2.5.8 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index af24be20d..3d76bd960 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.8-rc1" + helmChartVersion = "2.5.8" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 15e4b8d9261c3d404a7774474991f14cb9ab5442 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Fri, 30 Aug 2024 04:40:35 +0000 Subject: [PATCH 82/95] set next macro chart for kubefirst - 2.5.9-rc1 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 3d76bd960..fd49bdb1a 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.8" + helmChartVersion = "2.5.9-rc1" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 51153a938d712d17e576dff1c6a95b050d2ae6d3 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Fri, 30 Aug 2024 04:52:19 +0000 Subject: [PATCH 83/95] set next macro chart for kubefirst - 2.5.9-rc2 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index fd49bdb1a..f25dba97c 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.9-rc1" + helmChartVersion = "2.5.9-rc2" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 8996335bb29edea7fbb4e93450be731d6713a3bd Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Fri, 30 Aug 2024 04:59:19 +0000 Subject: [PATCH 84/95] set next macro chart for kubefirst - 2.5.9-rc3 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index f25dba97c..bfc321c4c 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.9-rc2" + helmChartVersion = "2.5.9-rc3" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 5c8f9b61320b6fe94d4a87e198237beffbcb98b4 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Fri, 30 Aug 2024 05:06:52 +0000 Subject: [PATCH 85/95] set next macro chart for kubefirst - 2.5.9 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index bfc321c4c..7783e5f84 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.9-rc3" + helmChartVersion = "2.5.9" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From ebd23e00079fa3a9498293c443a85dbe2419162f Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Fri, 30 Aug 2024 16:11:29 +0000 Subject: [PATCH 86/95] set next macro chart for kubefirst - 2.5.10-rc1 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 7783e5f84..81a7708f7 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.9" + helmChartVersion = "2.5.10-rc1" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 8557f55eb3aa91cbf94f63ae92768ac466a6f24e Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Fri, 30 Aug 2024 16:17:26 +0000 Subject: [PATCH 87/95] set next macro chart for kubefirst - 2.5.10-rc2 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 81a7708f7..f5c89e57f 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.10-rc1" + helmChartVersion = "2.5.10-rc2" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From c57395cc2634fb2ecfa6aecea64bf74ac6824ac4 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Fri, 30 Aug 2024 16:34:50 +0000 Subject: [PATCH 88/95] set next macro chart for kubefirst - 2.5.10-rc3 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index f5c89e57f..5b4aec7e9 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.10-rc2" + helmChartVersion = "2.5.10-rc3" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From b7f5ecb50ede621081842ee15fab6bafbdf3f495 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Fri, 30 Aug 2024 16:44:59 +0000 Subject: [PATCH 89/95] set next macro chart for kubefirst - 2.5.10 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 5b4aec7e9..bbb585d82 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.10-rc3" + helmChartVersion = "2.5.10" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From d0e2ce6c97a607f14f4012f9b1badcddb3c72905 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Fri, 30 Aug 2024 20:46:40 +0000 Subject: [PATCH 90/95] set next macro chart for kubefirst - 0.1.0-rc131 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index bbb585d82..3bb6e338d 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.10" + helmChartVersion = "0.1.0-rc131" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 4354f6451d7ce16e7d06eb924eec0cb6e7a07f5e Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Sat, 31 Aug 2024 22:53:39 +0000 Subject: [PATCH 91/95] set next macro chart for kubefirst - 2.5.11-rc1 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 3bb6e338d..48e30cc10 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "0.1.0-rc131" + helmChartVersion = "2.5.11-rc1" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 6f754b7be796bb50a859a02f99742bb997143090 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Sat, 31 Aug 2024 23:01:43 +0000 Subject: [PATCH 92/95] set next macro chart for kubefirst - 2.5.11-rc2 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 48e30cc10..f6670a9a9 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.11-rc1" + helmChartVersion = "2.5.11-rc2" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 7ce2ae5627b751a022f88282570e8cb812bcc1ac Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Sat, 31 Aug 2024 23:26:50 +0000 Subject: [PATCH 93/95] set next macro chart for kubefirst - 2.5.11-rc3 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index f6670a9a9..01434519b 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.11-rc2" + helmChartVersion = "2.5.11-rc3" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 0e3eada73db96f60aa8994251f88b95429145472 Mon Sep 17 00:00:00 2001 From: konstruct-bot Date: Sat, 31 Aug 2024 23:43:29 +0000 Subject: [PATCH 94/95] set next macro chart for kubefirst - 2.5.11 --- internal/launch/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 01434519b..4a6adbc25 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -11,7 +11,7 @@ const ( helmChartName = "kubefirst" helmChartRepoName = "kubefirst" helmChartRepoURL = "https://charts.konstruct.io" - helmChartVersion = "2.5.11-rc3" + helmChartVersion = "2.5.11" namespace = "kubefirst" secretName = "kubefirst-initial-secrets" ) From 5d71fa11b85ac9abf899eb43766ba43b7ff33837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristhian=20Fern=C3=A1ndez?= Date: Sat, 31 Aug 2024 20:33:22 -0500 Subject: [PATCH 95/95] fix: devel (#2276) --- internal/launch/cmd.go | 3 ++- internal/launch/constants.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/launch/cmd.go b/internal/launch/cmd.go index b570118fa..ece9fe31b 100644 --- a/internal/launch/cmd.go +++ b/internal/launch/cmd.go @@ -294,7 +294,7 @@ func Up(additionalHelmFlags []string, inCluster bool, useTelemetry bool) { helmChartName, "--version", helmChartVersion, - "kubefirst/kubefirst", + "konstruct/kubefirst", "--set", "console.ingress.createTraefikRoute=true", "--set", @@ -325,6 +325,7 @@ func Up(additionalHelmFlags []string, inCluster bool, useTelemetry bool) { "kubefirst-api.serviceAccount.createClusterRoleBinding=true", "--set", "kubefirst-api-ee.serviceAccount.createClusterRoleBinding=true", + "--devel", } if len(additionalHelmFlags) > 0 { diff --git a/internal/launch/constants.go b/internal/launch/constants.go index 4a6adbc25..bc7a4b6b6 100644 --- a/internal/launch/constants.go +++ b/internal/launch/constants.go @@ -9,7 +9,7 @@ package launch const ( consoleURL = "https://console.kubefirst.dev" helmChartName = "kubefirst" - helmChartRepoName = "kubefirst" + helmChartRepoName = "konstruct" helmChartRepoURL = "https://charts.konstruct.io" helmChartVersion = "2.5.11" namespace = "kubefirst"