Skip to content

Commit

Permalink
feat: runtime bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianF7 committed Oct 20, 2023
1 parent 5e73f60 commit f8b02e2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
23 changes: 20 additions & 3 deletions cmd/k3d/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ func runK3d(cmd *cobra.Command, args []string) error {
progressPrinter.IncrementTracker("wrapping-up", 1)

// Wait for console Deployment Pods to transition to Running
consoleDeployment, err := k8s.ReturnDeploymentObject(
argoDeployment, err := k8s.ReturnDeploymentObject(
kcfg.Clientset,
"app.kubernetes.io/instance",
"argo",
Expand All @@ -1345,12 +1345,11 @@ func runK3d(cmd *cobra.Command, args []string) error {
log.Error().Msgf("Error finding argo workflows Deployment: %s", err)
return err
}
_, err = k8s.WaitForDeploymentReady(kcfg.Clientset, consoleDeployment, 120)
_, err = k8s.WaitForDeploymentReady(kcfg.Clientset, argoDeployment, 120)
if err != nil {
log.Error().Msgf("Error waiting for argo workflows Deployment ready state: %s", err)
return err
}
progressPrinter.IncrementTracker("wrapping-up", 1)

// Mark cluster install as complete
telemetryShim.Transmit(useTelemetryFlag, segmentClient, segment.MetricClusterInstallCompleted, "")
Expand All @@ -1370,6 +1369,24 @@ func runK3d(cmd *cobra.Command, args []string) error {
viper.WriteConfig()
return err
} else {
kubefirstDeployment, err := k8s.ReturnDeploymentObject(
kcfg.Clientset,
"app.kubernetes.io/instance",
"kubefirst",
"kubefirst",
600,
)
if err != nil {
log.Error().Msgf("Error finding kubefirst Deployment: %s", err)
return err
}
_, err = k8s.WaitForDeploymentReady(kcfg.Clientset, kubefirstDeployment, 120)
if err != nil {
log.Error().Msgf("Error waiting for kubefirst Deployment ready state: %s", err)
return err
}
progressPrinter.IncrementTracker("wrapping-up", 1)

err = pkg.OpenBrowser(pkg.KubefirstConsoleLocalURLTLS)
if err != nil {
log.Error().Err(err).Msg("")
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/go-git/go-git/v5 v5.6.1
github.com/hashicorp/vault/api v1.9.0
github.com/kubefirst/kubefirst-api v0.0.2
github.com/kubefirst/runtime v0.3.24
github.com/kubefirst/runtime v0.3.28
github.com/rs/zerolog v1.29.0
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cobra v1.7.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,8 @@ 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.0.2 h1:ezvCOiafSJ9arapBAnewDU8a/r3VO6GAJywQrQs9QDU=
github.com/kubefirst/kubefirst-api v0.0.2/go.mod h1:SFnfUf9aY0sLmju1UvDGxLHL3mxGV94RzHwHrf27vsI=
github.com/kubefirst/runtime v0.3.24 h1:qXmQnn3kXmKNenY0DPn/0k6479Ydv3AZr7o7lOu9eTI=
github.com/kubefirst/runtime v0.3.24/go.mod h1:Ms1VyNgJW2thrAA+fj1V6bCN1DcbOyzIzw9Vc3WZkjg=
github.com/kubefirst/runtime v0.3.28 h1:Ac9NzqX+H0fa4tUauOMrjbtpSFnNluLYmSk6v5u++G4=
github.com/kubefirst/runtime v0.3.28/go.mod h1:9egAgF5cF594mIzra5nTB1kfE57Hr/Nvl79tjLsAWCQ=
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
github.com/ledongthuc/pdf v0.0.0-20220302134840-0c2507a12d80 h1:6Yzfa6GP0rIo/kULo2bwGEkFvCePZ3qHDDTC3/J9Swo=
github.com/libopenstorage/openstorage v1.0.0/go.mod h1:Sp1sIObHjat1BeXhfMqLZ14wnOzEhNx2YQedreMcUyc=
Expand Down

0 comments on commit f8b02e2

Please sign in to comment.