github-activity-counter icon indicating copy to clipboard operation
github-activity-counter copied to clipboard

script moves on when errors

Open ahmetb opened this issue 6 years ago • 1 comments

I think set -e is missing in the script.

e.g. ctrl+f "ERROR" below while executing bin/config

Enter a selection (1 - 15): 12

BigQuery configuration complete! Type "bq" to get started.

Dataset 'krew-k8s:eventcounter' successfully created.
Table 'krew-k8s:eventcounter.events' successfully created.
createTime: '2019-10-28T05:11:59.184968Z'
currentStateTime: '1970-01-01T00:00:00Z'
id: 2019-10-27_22_11_57-8922390344321487682
location: us-central1
name: eventcounter
projectId: krew-k8s
startTime: '2019-10-28T05:11:59.184968Z'
type: JOB_TYPE_STREAMING
Created service account [eventcounter-sa].
ERROR: (gcloud.beta.run.services.add-iam-policy-binding) NOT_FOUND: Resource 'eventcounter' of kind 'SERVICE' in region 'us-central1' in project 'krew-k8s' does not exist.
Updated IAM policy for project [krew-k8s].
bindings:
- members:
  - serviceAccount:[email protected]
  role: roles/cloudbuild.builds.builder
- members:
  - serviceAccount:[email protected]

ahmetb avatar Oct 28 '19 05:10 ahmetb

I think readme is inaccurate a bit. bin/setup requires bin/service to be executed first.

ahmetb avatar Oct 28 '19 05:10 ahmetb