-
Notifications
You must be signed in to change notification settings - Fork 1.5k
GCP: Add networkProjectID parameter to install-config. #6166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/retest |
|
/retest |
|
LGTM do we need extra unit test cases for this? |
|
LGTM too but holding off due to WIP label nit: do we want static validation that hostproject != networkProject? I do have one concern with merging this PR, unrelated to the PR itself. We do not plan on landing this feature in 4.12, but this PR will expose the fields in the install config. What is the best way to handle that (i.e. that we would have valid fields in the API for unstable features)? Potential ideas for handling this:
|
This change adds the networkProjecID parameter to the GCP platform in the install-config. When set, it also validates the project exists and that the network and subnetworks belong to this project.
|
I've added unit tests for the networkProjectID validation function. I also added wording in |
|
@jstuever: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: patrickdillon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
** Added checks in types to ensure that network, computeSubnet, and controlPlaneSubnet are set when NetworkProjectID exists. ** Added checks in installconfig to ensure that CredentialsMode is set to either Passthrough or Manual when NetworkProjectID exists. CORS-2048 Requires openshift#6166 Removed Duplicated networkProjectID
** Added the Network Project ID data to gcp terraform vars ** Added checks to GCP terraform to set count to 0 for firewall rules when the Network Project ID is available. CORS 2039 Requires openshift#6166 ** Added a default value for the terraform value for network_project_id
This change adds the networkProjecID parameter to the GCP platform in
the install-config. When set, it also validates the project exists and
that the network and subnetworks belong to this project.
https://issues.redhat.com/browse/CORS-2036