Skip to content

Commit

Permalink
[wip] infra/gcp/main: refactor into functions
Browse files Browse the repository at this point in the history
wip because:
- still verifying all works as expected

specifically:

- refactored by:
  - grouping blocks of code into functions
  - parameterizing those functions on PROJECT
  - adding ensure_workload_identity_serviceaccount to handle the sundry
    single-role service accounts intended for use by GKE clusters
- prune main_project_services down to just what we directly use
  - drop compute: direct dep of container
  - drop oslogin: direct dep of compute
  - swap bigquery-json for biquery: the former doesn't exist
  - add comments explaning each of the services we do use
- fix a bunch of shellcheck nits
  • Loading branch information
spiffxp committed May 5, 2021
1 parent 7279348 commit 7e8c9a3
Showing 1 changed file with 305 additions and 212 deletions.
Loading

0 comments on commit 7e8c9a3

Please sign in to comment.