Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
AdheipSingh committed Sep 18, 2024
1 parent 90591d1 commit ec002d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
24 changes: 0 additions & 24 deletions hossted/service/activate.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,6 @@ const (
// ActivateK8s imports Kubernetes clusters.
func ActivateK8s(develMode bool) error {

// emailsID, err := getEmail()
// if err != nil {
// return err
// }

// getResponse from reading file in .hossted/config.json
// resp, err := getLoginResponse()
// if err != nil {
// return err
// }
// validate auth token

// err = validateToken(resp)
// if err != nil {
// return err
// }
// handle usecases for orgID selection
// orgID, err := useCases(resp)
// if err != nil {
// return err
// }

// prompt user for k8s context
clusterName, err := promptK8sContext()
if err != nil {
Expand All @@ -103,8 +81,6 @@ func ActivateK8s(develMode bool) error {
return err
}

fmt.Println(orgID)

if isStandby {
fmt.Println("Standby mode detected")
clientset := getKubeClient()
Expand Down
2 changes: 2 additions & 0 deletions hossted/service/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ func OrgUseCases(orgs []org) (orgID string, err error) {
fmt.Printf("OrgName: %s\n", orgName)
return orgs[0].ID, nil
}

return "", nil
}

func removePrefix(text string) (string, error) {
Expand Down

0 comments on commit ec002d9

Please sign in to comment.