Skip to content

Commit 1e382ed

Browse files
committed
add postinstall hint
1 parent e23e649 commit 1e382ed

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

internal/installer/argocd.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ func (a *ArgoCD) applyPostInstallResources() error {
6464
return nil
6565
}
6666

67+
func showPostInstallHints() {
68+
log.Println(`To get ArgoCD admin password, run`)
69+
log.Println(` kubectl get secrets/argocd-initial-admin-secret -nargocd -ojson | jq -r ".data.password" | base64 -d`)
70+
log.Println(`To port-forward ArgoCD UI to localhost:8080, run`)
71+
log.Println(` kubectl port-forward svc/argocd-server 8080:80 -nargocd`)
72+
}
73+
6774
// Install the ArgoCD chart
6875
func (a *ArgoCD) Install() error {
6976
if a.Version == "" {
@@ -199,5 +206,7 @@ func (a *ArgoCD) Install() error {
199206
return fmt.Errorf("failed apply post chart install resources: %v", err)
200207
}
201208

209+
showPostInstallHints()
210+
202211
return nil
203212
}

0 commit comments

Comments
 (0)