Skip to content

project_setup.sh unbound variable #26

@0snug0

Description

@0snug0

Command and error message

./deploy/project_setup.sh

+ set -o nounset
+ set -o errexit
++ dirname ./deploy/project_setup.sh
+ mydir=./deploy
+ source ./deploy/common.sh
++ set -o nounset
++ set -o errexit
++ GCFS_SA_DIR=/Users/ericlugo
++ GCFS_SA_FILE=/Users/ericlugo/gcp_filestore_csi_driver_sa.json
++ GCFS_SA_NAME=gcp-filestore-csi-driver-sa
++ GCFS_NS=gcp-filestore-csi-driver
./deploy/project_setup.sh: line 10: PROJECT: unbound variable

Fix:
Add PROJECT=$(gcloud info --format='value(config.project)') within the project_setup.sh script
Or add clearer documentation to set $PROJECT variable before running script

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions