Skip to content

Commit

Permalink
mock containeranalysisnote
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmahou committed Jun 10, 2024
1 parent 20273c0 commit ba56aab
Show file tree
Hide file tree
Showing 31 changed files with 21,405 additions and 2 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 @@ -656,6 +656,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
3 changes: 2 additions & 1 deletion mockgcp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ gen-proto: generate-protos-from-openapi
./third_party/googleapis/mockgcp/cloud/gkehub/v1beta/*.proto \
./third_party/googleapis/mockgcp/cloud/gkehub/v1beta/configmanagement/*.proto \
./third_party/googleapis/mockgcp/cloud/gkehub/v1beta/metering/*.proto \
./third_party/googleapis/mockgcp/cloud/gkehub/v1beta/multiclusteringress/*.proto
./third_party/googleapis/mockgcp/cloud/gkehub/v1beta/multiclusteringress/*.proto \
./third_party/googleapis/mockgrafeas/v1/*.proto

.PHONY: generate-protos-from-openapi
generate-protos-from-openapi:
Expand Down
11 changes: 10 additions & 1 deletion mockgcp/fixup-third-party.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ mv google/api/serviceusage/ mockgcp/api/
mv google/devtools/artifactregistry mockgcp/devtools
mv google/devtools/cloudbuild mockgcp/devtools

rm -rf mockgrafeas/
mv grafeas mockgrafeas

cd mockgcp

# Rewrite import paths.
Expand Down Expand Up @@ -74,4 +77,10 @@ find . -type f -print0 | xargs -0 sed -i -e "s@google/devtools/artifactregistry/
find . -type f -print0 | xargs -0 sed -i -e "s@google\.devtools\.artifactregistry@mockgcp.devtools.artifactregistry@g"

find . -type f -print0 | xargs -0 sed -i -e "s@google/devtools/cloudbuild/@mockgcp/devtools/cloudbuild/@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google\.devtools\.cloudbuild@mockgcp.devtools.cloudbuild@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google\.devtools\.cloudbuild@mockgcp.devtools.cloudbuild@g"

cd ..
cd mockgrafeas

find . -type f -print0 | xargs -0 sed -i -e "s@grafeas/@mockgrafeas/@g"
find . -type f -print0 | xargs -0 sed -i -e "s@grafeas\.@mockgrafeas.@g"

0 comments on commit ba56aab

Please sign in to comment.