Skip to content

Conversation

@chusopr
Copy link
Contributor

@chusopr chusopr commented Sep 18, 2023

The VPC network and subnet discovery tasks that run in roles/platform/tasks/initialize_gcp.yml may require additional privileges and are only required to find a subnet to deploy to when not specified. When the subnet is already specified in infra.gcp.vpc.subnet_id those tasks are not required.

This PR skips those tasks when the subnet is already specified. I needed it for a project where listing GCP subnets was not allowed, so it was already tested.
I also tested that it still works as before when you don't provide a subnet.

@github-actions github-actions bot added the validated The pull request has passed the prechecks label Sep 18, 2023
@chusopr chusopr force-pushed the gcp-vpc-optional-discovery branch from 1fe3976 to 9fb9712 Compare September 18, 2023 15:35
@github-actions github-actions bot added validated The pull request has passed the prechecks and removed validated The pull request has passed the prechecks labels Sep 18, 2023
@wmudge wmudge added this to the Release 2.1.0 milestone Oct 5, 2023
@wmudge wmudge modified the milestones: Release 2.1.0, Release 2.2.0 Nov 2, 2023
@wmudge wmudge modified the milestones: Release 2.2.0, Release 2.3.0 Nov 20, 2023
@jimright jimright self-assigned this Dec 20, 2023
@wmudge wmudge requested a review from a team December 20, 2023 16:44
@jimright jimright added the enhancement MINOR - New feature or enhancement in the CHANGELOG label Dec 20, 2023
@chusopr chusopr force-pushed the gcp-vpc-optional-discovery branch from 9fb9712 to 9e05f69 Compare December 21, 2023 15:34
@github-actions github-actions bot added validated The pull request has passed the prechecks and removed validated The pull request has passed the prechecks labels Dec 21, 2023
@wmudge wmudge modified the milestones: Release 2.3.0, Release 2.4.0 Dec 21, 2023
Copy link
Contributor

@jimright jimright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with pre-existing VPC and subnet. Confirmed that these tasks are skipped and deployment is successful. Approved.

@wmudge wmudge merged commit 27d7bf2 into cloudera-labs:devel Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement MINOR - New feature or enhancement in the CHANGELOG validated The pull request has passed the prechecks

Development

Successfully merging this pull request may close these issues.

3 participants