Skip to content

Commit 807cb11

Browse files
committed
fix: print correct argocd url after cluster bringup
Also, use `idpbuilder` to fetch argo admin secret for initial login Signed-off-by: Bradon Kanyid (rattboi) <[email protected]>
1 parent d08aed5 commit 807cb11

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

pkg/cmd/create/root.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,17 @@ func create(cmd *cobra.Command, args []string) error {
122122
return err
123123
}
124124

125+
subDomain := "argocd."
126+
subPath := ""
127+
128+
if pathRouting == true {
129+
subDomain = ""
130+
subPath = "argocd"
131+
}
132+
125133
fmt.Print("\n\n########################### Finished Creating IDP Successfully! ############################\n\n\n")
126-
fmt.Printf("Can Access ArgoCD at https://argocd.cnoe.localtest.me:%s/\nUsername: admin\n", port)
127-
fmt.Print(`Password can be retrieved by running: kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d`, "\n")
134+
fmt.Printf("Can Access ArgoCD at %s\nUsername: admin\n", fmt.Sprintf("https://%s%s:%s/%s", subDomain, host, port, subPath))
135+
fmt.Print(`Password can be retrieved by running: idpbuilder get secrets -p argocd`, "\n")
128136

129137
return nil
130138
}

0 commit comments

Comments
 (0)