Skip to content

mockGCP: Resource modelarmor template #4125

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

Merged

Conversation

gemmahou
Copy link
Collaborator

Change description

Fixes #

Tests you have done

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

@gemmahou gemmahou force-pushed the resource-modelarmor-template branch from 87a6f43 to 4c779bc Compare March 20, 2025 23:58
@gemmahou gemmahou marked this pull request as ready for review March 20, 2025 23:59
@gemmahou gemmahou force-pushed the resource-modelarmor-template branch 2 times, most recently from 4c779bc to 60a2e42 Compare March 21, 2025 00:30
Copy link
Collaborator

Choose a reason for hiding this comment

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

Mind explaining why this CRD is changed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah it's from the generate CRD task I included files in this PR by mistake. Removed

@gemmahou gemmahou force-pushed the resource-modelarmor-template branch 6 times, most recently from f127cbf to 6b19557 Compare March 25, 2025 03:25
Copy link
Collaborator

@yuwenma yuwenma left a comment

Choose a reason for hiding this comment

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

/approve

@@ -0,0 +1,5 @@
- pre: gcloud config set api_endpoint_overrides/modelarmor "https://modelarmor.us-central1.rep.googleapis.com/"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we don't need to override the api endpoint. Could you double check?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, this is a required step specific for this resource, in addition to the regular API enabling: https://cloud.google.com/security-command-center/docs/get-started-model-armor#enable-model-armor
The location specified in the endpoint must match the resource's location, otherwise the API execution will fail.

Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yuwenma

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

The pull request process is described 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

@gemmahou gemmahou force-pushed the resource-modelarmor-template branch from 4f0cbe2 to 887a62a Compare March 26, 2025 18:31
@yuwenma
Copy link
Collaborator

yuwenma commented Mar 28, 2025

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Mar 28, 2025
@google-oss-prow google-oss-prow bot merged commit d63ced3 into GoogleCloudPlatform:master Mar 28, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants