Skip to content

Commit

Permalink
Fix init admin account & kbcli addon enable snapshot-controller (labr…
Browse files Browse the repository at this point in the history
…ing#4643)

* init admin account

* fix kbcli addon enable snapshot-controller
  • Loading branch information
bxy4543 authored Mar 29, 2024
1 parent 4363260 commit 4ab847e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/job/init/internal/util/database/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ func PresetAdminUser() error {
if err = v2Account.InitTables(); err != nil {
return fmt.Errorf("failed to init tables: %v", err)
}
if _, err = v2Account.NewAccount(&types.UserQueryOpts{Owner: adminUserName}); err != nil {
return fmt.Errorf("failed to create account: %v", err)
}
return nil
}

Expand Down
1 change: 1 addition & 0 deletions scripts/cloud/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ EOF
${image_registry}/${image_repository}/kubeblocks-redis:v${kubeblocks_version#v:-0.8.2}

kbcli addon enable prometheus
kbcli addon enable snapshot-controller

get_prompt "installing_monitoring"
sealos run "${image_registry}/${image_repository}/kube-prometheus-stack:v${kube_prometheus_stack_version#v:-0.63.0}"
Expand Down

0 comments on commit 4ab847e

Please sign in to comment.