Skip to content

Commit

Permalink
Automated Config Connector import.
Browse files Browse the repository at this point in the history
  - 4c5d99b476bb1c2274f8a3b73e19bd75b9dc3f99 mockgcp: IAM ServiceAccount initial support by Config Connector Team <[email protected]>

GitOrigin-RevId: 4c5d99b476bb1c2274f8a3b73e19bd75b9dc3f99
  • Loading branch information
Config Connector Team authored and copybara-github committed Jun 26, 2023
1 parent 5a1d768 commit e29615f
Show file tree
Hide file tree
Showing 19 changed files with 17,407 additions and 197 deletions.
3 changes: 3 additions & 0 deletions config/tests/samples/create/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ func MaybeSkip(t *testing.T, name string, resources []*unstructured.Unstructured
for _, resource := range resources {
gvk := resource.GroupVersionKind()
switch gvk.GroupKind() {
case schema.GroupKind{Group: "iam.cnrm.cloud.google.com", Kind: "IAMServiceAccount"}:
// ok

case schema.GroupKind{Group: "networkservices.cnrm.cloud.google.com", Kind: "NetworkServicesMesh"}:
// ok

Expand Down
2 changes: 2 additions & 0 deletions mockgcp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ gen-proto:
mkdir -p third_party
git clone https://github.com/googleapis/googleapis.git third_party/googleapis || (cd third_party/googleapis && git reset --hard origin/master && git pull)
# Reset to a commit known-compatible with our go libraries
# Problem is cloud.google.com/go/networkservices/apiv1/networkservicespb: module cloud.google.com/go@latest found (v0.110.2), but does not contain package cloud.google.com/go/networkservices/apiv1/networkservicespb
cd third_party/googleapis && git reset --hard d02e58244db5d01607ec2ad52a47e7edce8612f0^
# May need protoc installed: apt install protobuf-compiler
mkdir -p ./generated
Expand All @@ -19,6 +20,7 @@ gen-proto:
--grpc-gateway_opt paths=source_relative \
--grpc-gateway_opt standalone=true \
--experimental_allow_proto3_optional \
./third_party/googleapis/google/iam/admin/v1/*.proto \
./third_party/googleapis/google/cloud/networkservices/v1/*.proto \
./third_party/googleapis/google/cloud/security/privateca/v1/*.proto \
./third_party/googleapis/google/cloud/secretmanager/v1/service.proto \
Expand Down
Loading

0 comments on commit e29615f

Please sign in to comment.