Skip to content

Commit 13a2865

Browse files
committed
remove kpack installation
1 parent f85a999 commit 13a2865

File tree

1 file changed

+5
-32
lines changed

1 file changed

+5
-32
lines changed

cmd/kuberoCli/install.go

+5-32
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ required binaries:
6161
case "monitoring":
6262
installMonitoring()
6363
return
64-
case "buildpacks":
65-
installKpack()
6664
case "kubernetes":
6765
installKubernetes()
6866
checkCluster()
@@ -77,9 +75,8 @@ required binaries:
7775
installMetrics() // 5
7876
installCertManager() // 6
7977
installMonitoring() // 7
80-
installKpack() // 8
81-
installKuberoUi() // 9
82-
writeCLIconfig() // 10
78+
installKuberoUi() // 8
79+
writeCLIconfig() // 9
8380
printDNSinfo()
8481
finalMessage()
8582
return
@@ -105,7 +102,7 @@ var ingressControllerVersion = "v1.10.0" // https://github.com/kubernetes/ingres
105102
var clusterTypeList = []string{"kind", "linode", "scaleway", "gke", "digitalocean"}
106103

107104
func init() {
108-
installCmd.Flags().StringVarP(&arg_component, "component", "c", "", "install component (kubernetes,olm,ingress,metrics,certmanager,kubero-operator,monitoring,buildpacks,kubero-ui)")
105+
installCmd.Flags().StringVarP(&arg_component, "component", "c", "", "install component (kubernetes,olm,ingress,metrics,certmanager,kubero-operator,monitoring,kubero-ui)")
109106
installCmd.Flags().StringVarP(&arg_adminUser, "user", "u", "", "Admin username for the kubero UI")
110107
installCmd.Flags().StringVarP(&arg_adminPassword, "user-password", "U", "", "Password for the admin user")
111108
installCmd.Flags().StringVarP(&arg_apiToken, "apitoken", "a", "", "API token for the admin user")
@@ -150,9 +147,8 @@ func printInstallSteps() {
150147
5. Install the metrics server {{(optional, but recommended)}}::gray
151148
6. Install the cert-manager {{(optional)}}::gray
152149
7. Install the monitoring stack {{(optional, but recommended)}}::gray
153-
8. Install the buildpacks for buildpacks.io {{(optional)}}::gray
154-
9. Install the kubero UI {{(optional, but highly recommended)}}::gray
155-
10. Write the kubero CLI config
150+
8. Install the kubero UI {{(optional, but highly recommended)}}::gray
151+
9. Write the kubero CLI config
156152
`)
157153
}
158154

@@ -327,29 +323,6 @@ func installOLM() {
327323
olmWaitCatalogSpinner.Success("OLM Catalog is ready")
328324
}
329325

330-
func installKpack() {
331-
332-
kpackInstalled, _ := exec.Command("kubectl", "get", "crd", "builds.kpack.io").Output()
333-
if len(kpackInstalled) > 0 {
334-
cfmt.Println("{{✓ Kpack is allredy installed}}::lightGreen")
335-
return
336-
}
337-
338-
kpackInstall := promptLine("8) Install Kpack for buildpacks.io", "[y,n]", "y")
339-
if kpackInstall != "y" {
340-
return
341-
}
342-
343-
components := "https://github.com/buildpacks-community/kpack/releases/download/v0.13.3/release-0.13.3.yaml"
344-
_, installErr := exec.Command("kubectl", "apply", "-f", components).Output()
345-
346-
if installErr != nil {
347-
fmt.Println("failed to install kpack")
348-
log.Fatal(installErr)
349-
}
350-
cfmt.Println("{{✓ Kpack Operator installed}}::lightGreen")
351-
}
352-
353326
func installMetrics() {
354327

355328
installed, _ := exec.Command("kubectl", "get", "deployments.apps", "metrics-server", "-n", "kube-system").Output()

0 commit comments

Comments
 (0)