Skip to content

Commit

Permalink
setup-go
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody committed Aug 30, 2024
1 parent f637753 commit 644d47b
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 137 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci_any_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{github.event.pull_request.head.sha}}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: ${{ matrix.go-test-dir }}/../go.mod
cache-dependency-path: ${{ matrix.go-test-dir }}/../go.sum
- name: Golang unit tests
timeout-minutes: 20
env:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci_main_branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{github.event.pull_request.head.sha}}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: ${{ matrix.go-test-dir }}/../go.mod
cache-dependency-path: ${{ matrix.go-test-dir }}/../go.sum
- name: Golang unit tests
timeout-minutes: 20
env:
Expand Down
2 changes: 1 addition & 1 deletion anthos-bm-apigee/docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
username = tfadmin
```

Uncomment the `gce_vm_service_account` if you want to login to your cluster
Uncomment the `gcp_login_accounts` if you want to login to your cluster
using the Google email account that is associated with your GCP Project. You
can add multiple GCP accounts to enable access to multiple users.

Expand Down
1 change: 0 additions & 1 deletion anthos-bm-apigee/docs/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ terraform-docs markdown table \
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_credentials_file"></a> [credentials\_file](#input\_credentials\_file) | Path to the Google Cloud Service Account key file.<br> This is the key that will be used to authenticate the provider with the Cloud APIs | `string` | n/a | yes |
| <a name="input_gce_vm_service_account"></a> [gce\_vm\_service\_account](#input\_gce\_vm\_service\_account) | Service Account to use for GCE instances | `string` | `""` | no |
| <a name="input_gcp_login_accounts"></a> [gcp\_login\_accounts](#input\_gcp\_login\_accounts) | GCP account email addresses that must be allowed to login to the cluster using Google Cloud Identity. | `list(string)` | `[]` | no |
| <a name="input_mode"></a> [mode](#input\_mode) | Indication of the execution mode. By default the terraform execution will end<br> after setting up the GCE VMs where the Anthos bare metal clusters can be deployed.<br><br> **setup:** create and initialize the GCE VMs required to install Anthos bare metal.<br><br> **install:** everything up to 'setup' mode plus automatically run Anthos bare metal installation steps as well.<br><br> **manuallb:** similar to 'install' mode but Anthos on bare metal is installed with ManualLB mode. | `string` | `"setup"` | no |
| <a name="input_project_id"></a> [project\_id](#input\_project\_id) | Unique identifer of the Google Cloud Project that is to be used | `string` | n/a | yes |
Expand Down
2 changes: 0 additions & 2 deletions anthos-bm-gcp-terraform/docs/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,12 @@ terraform-docs markdown table \
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_abm_cluster_id"></a> [abm\_cluster\_id](#input\_abm\_cluster\_id) | Unique id to represent the Anthos Cluster to be created | `string` | `"cluster1"` | no |
| <a name="input_access_scopes"></a> [access\_scopes](#input\_access\_scopes) | The IAM access scopes associated to the Compute Engine VM Service Accounts | `set(string)` | <pre>[<br> "cloud-platform"<br>]</pre> | no |
| <a name="input_anthos_service_account_name"></a> [anthos\_service\_account\_name](#input\_anthos\_service\_account\_name) | Name given to the Service account that will be used by the Anthos cluster components | `string` | `"baremetal-gcr"` | no |
| <a name="input_boot_disk_size"></a> [boot\_disk\_size](#input\_boot\_disk\_size) | Size of the primary boot disk to be attached to the Compute Engine VMs in GBs | `number` | `200` | no |
| <a name="input_boot_disk_type"></a> [boot\_disk\_type](#input\_boot\_disk\_type) | Type of the boot disk to be attached to the Compute Engine VMs | `string` | `"pd-ssd"` | no |
| <a name="input_connect_agent_account"></a> [connect\_agent\_account](#input\_connect\_agent\_account) | GCP account email address to use with Connect Agent for logging into the cluster using Google Cloud identity. | `string` | `""` | no |
| <a name="input_credentials_file"></a> [credentials\_file](#input\_credentials\_file) | Path to the Google Cloud Service Account key file.<br> This is the key that will be used to authenticate the provider with the Cloud APIs | `string` | n/a | yes |
| <a name="input_enable_nested_virtualization"></a> [enable\_nested\_virtualization](#input\_enable\_nested\_virtualization) | Enable nested virtualization on the Compute Engine VMs are to be scheduled | `string` | `"true"` | no |
| <a name="input_gce_vm_service_account"></a> [gce\_vm\_service\_account](#input\_gce\_vm\_service\_account) | Service Account to use for GCE instances | `string` | `""` | no |
| <a name="input_gpu"></a> [gpu](#input\_gpu) | GPU information to be attached to the provisioned GCE instances.<br> See https://cloud.google.com/compute/docs/gpus for supported types | `object({ type = string, count = number })` | <pre>{<br> "count": 0,<br> "type": ""<br>}</pre> | no |
| <a name="input_image"></a> [image](#input\_image) | The source image to use when provisioning the Compute Engine VMs.<br> Use 'gcloud compute images list' to find a list of all available images | `string` | `"ubuntu-2004-focal-v20210429"` | no |
| <a name="input_image_family"></a> [image\_family](#input\_image\_family) | Source image to use when provisioning the Compute Engine VMs.<br> The source image should be one that is in the selected image\_project | `string` | `"ubuntu-2004-lts"` | no |
Expand Down
1 change: 0 additions & 1 deletion anthos-bm-gcp-terraform/terraform.tfvars.sample
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ instance_count = {
"worker" : 2
}
#gcp_login_accounts = ["<GCP_ACCOUNT_1>", <GCP_ACCOUNT_2>, <GCP_ACCOUNT_3>]
#gce_vm_service_account = "<GCE_SERVICE_ACCOUNT_WITH_iam.serviceAccountKeyAdmin_PERMISSION>"
#nfs_server = true
#gpu = {
# count = 1,
Expand Down
1 change: 0 additions & 1 deletion anthos-bm-gcp-terraform/test/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/gnostic v0.5.7-v3refs // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/go-containerregistry v0.6.0 // indirect
Expand Down
Loading

0 comments on commit 644d47b

Please sign in to comment.