Skip to content
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

test: Remove unnecessary dependent project #3754

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gemmahou
Copy link
Collaborator

@gemmahou gemmahou commented Feb 21, 2025

Change description

Followup of #3663.

The integration test is still failing after #3663 was merged. I realized all dependent resources must use the same project, example error message: Invalid value for field 'resource.backend_service': 'xxx'. Only external forwarding rules are allowed to reference cross-project backends. After I updated the projectRef for forwarding rule, the backendservice, network, subnetwork etc need to be updated to use the same dependent project.

I didn't notice this because in my local test, I replaced the dependent project with my cnrm project, making the main project(${projectId}) and the dependent project same. Then I realized that the dependent project might be unnecessary, as we may not need an extra project other than ${projectId} to create dependent resources.

Tests you have done

Gerrit cl: https://cnrm-review.git.corp.google.com/c/cnrm/+/72620
Tests passed: https://prow-gob.gcpnode.com/view/gs/cnrm-prow/pr-logs/pull/cnrm-review.googlesource.com_cnrm/72620/cnrm-test/1893043641480384512

  • Run make ready-pr to ensure this PR is ready for review.
  • Perform necessary E2E testing for changed resources.

Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign yuwenma for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -12,45 +12,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: resourcemanager.cnrm.cloud.google.com/v1beta1
kind: Project
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems like a dependency before you added your changes, and I wondered if it was done like this to avoid conflict because it uses the default network and quite some other Compute resources. Is it possible to keep using a different project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants