Skip to content

Commit

Permalink
Update charts/settings/templates/bot-accounts-job.yaml
Browse files Browse the repository at this point in the history
Co-authored-by: Wayne Starr <[email protected]>
  • Loading branch information
ericwyles and Racer159 authored Oct 2, 2024
1 parent 5055468 commit a950498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/settings/templates/bot-accounts-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ spec:
# Generate and capture a GitLab token from the GitLab Toolbox Rails Console for the root user
TOKEN=$(kubectl exec -n gitlab deployment/gitlab-toolbox -- \
gitlab-rails runner -e production \
"token = User.find_by_username('root').personal_access_tokens.create(scopes: ['api', 'admin_mode'], name: 'Bot Accounts API Token', expires_at: 1.days.from_now); token.save!; puts token.token" | tail -n 1)
"token = User.find_by_username('root').personal_access_tokens.create(scopes: ['api', 'admin_mode'], name: 'Bot Accounts API Token', expires_at: 1.hours.from_now); token.save!; puts token.token" | tail -n 1)
response=$(curl --silent --header "PRIVATE-TOKEN: $TOKEN" "${gitlab_host}/api/v4/license")
Expand Down

0 comments on commit a950498

Please sign in to comment.