Skip to content

Commit

Permalink
mock containeranalysisnote
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmahou committed May 20, 2024
1 parent 74d66b4 commit f7fcb26
Show file tree
Hide file tree
Showing 150 changed files with 111,178 additions and 70,369 deletions.
2 changes: 2 additions & 0 deletions config/tests/samples/create/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ func MaybeSkip(t *testing.T, name string, resources []*unstructured.Unstructured
case schema.GroupKind{Group: "container.cnrm.cloud.google.com", Kind: "ContainerCluster"}:
case schema.GroupKind{Group: "container.cnrm.cloud.google.com", Kind: "ContainerNodePool"}:

case schema.GroupKind{Group: "containeranalysis.cnrm.cloud.google.com", Kind: "ContainerAnalysisNote"}:

case schema.GroupKind{Group: "iam.cnrm.cloud.google.com", Kind: "IAMPartialPolicy"}:
case schema.GroupKind{Group: "iam.cnrm.cloud.google.com", Kind: "IAMPolicy"}:
case schema.GroupKind{Group: "iam.cnrm.cloud.google.com", Kind: "IAMPolicyMember"}:
Expand Down
6 changes: 6 additions & 0 deletions mockgcp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ gen-proto:
./apis/mockgcp/cloud/servicenetworking/v1/*.proto \
./apis/mockgcp/cloud/resourcemanager/v1/*.proto \
./apis/mockgcp/storage/v1/*.proto \
./apis/mockgcp/devtools/containeranalysis/v1/*.proto \
./third_party/googleapis/mockgcp/api/apikeys/v2/*.proto \
./third_party/googleapis/mockgcp/devtools/artifactregistry/v1/*.proto \
./third_party/googleapis/mockgcp/iam/admin/v1/*.proto \
Expand Down Expand Up @@ -74,10 +75,15 @@ generate-protos-from-openapi:
mkdir -p apis/mockgcp/cloud/bigquery/v2/
cd tools/gapic; go run . --proto-version=2 ../../bigquery-v2.json > ../../apis/mockgcp/cloud/bigquery/v2/api.proto

wget -O containeranalysis-v1.json https://raw.githubusercontent.com/googleapis/google-api-go-client/main/containeranalysis/v1/containeranalysis-api.json
mkdir -p apis/mockgcp/devtools/containeranalysis/v1/
cd tools/gapic; go run . ../../containeranalysis-v1.json > ../../apis/mockgcp/devtools/containeranalysis/v1/containeranalysis.proto

wget -O servicenetworking-api.json https://raw.githubusercontent.com/googleapis/google-api-go-client/main/servicenetworking/v1/servicenetworking-api.json
mkdir -p apis/mockgcp/cloud/servicenetworking/v1/
cd tools/gapic; go run . ../../servicenetworking-api.json > ../../apis/mockgcp/cloud/servicenetworking/v1/servicenetworking.proto

wget -O storage-v1.json https://raw.githubusercontent.com/googleapis/google-api-go-client/main/storage/v1/storage-api.json
mkdir -p apis/mockgcp/storage/v1/
cd tools/gapic; go run . --proto-version=2 ../../storage-v1.json > ../../apis/mockgcp/storage/v1/service.proto

Loading

0 comments on commit f7fcb26

Please sign in to comment.