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

WIP: Handcode MonitoringDashboard #1234

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/tests/samples/create/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ func MaybeSkip(t *testing.T, name string, resources []*unstructured.Unstructured
case schema.GroupKind{Group: "edgenetwork.cnrm.cloud.google.com", Kind: "EdgeNetworkNetwork"}:
case schema.GroupKind{Group: "edgenetwork.cnrm.cloud.google.com", Kind: "EdgeNetworkSubnet"}:

case schema.GroupKind{Group: "monitoring.cnrm.cloud.google.com", Kind: "MonitoringDashboard"}:

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

case schema.GroupKind{Group: "privateca.cnrm.cloud.google.com", Kind: "PrivateCACAPool"}:
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ replace github.com/GoogleCloudPlatform/k8s-config-connector/mockgcp => ./mockgcp

require (
cloud.google.com/go/apikeys v1.1.5
cloud.google.com/go/monitoring v1.17.0
cloud.google.com/go/profiler v0.1.0
contrib.go.opencensus.io/exporter/prometheus v0.1.0
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.61.0
Expand All @@ -17,6 +18,7 @@ require (
github.com/ghodss/yaml v1.0.0
github.com/go-logr/logr v1.4.1
github.com/go-logr/zapr v1.3.0
github.com/golang/protobuf v1.5.3
github.com/google/go-cmp v0.6.0
github.com/googleapis/gax-go/v2 v2.12.0
github.com/gosimple/slug v1.13.1
Expand Down Expand Up @@ -113,7 +115,6 @@ require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.1.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/btree v1.1.2 // indirect
github.com/google/gnostic v0.6.9 // indirect
github.com/google/go-cpy v0.0.0-20211218193943-a9c933c06932 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions mockgcp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ gen-proto:
./third_party/googleapis/mockgcp/cloud/resourcemanager/v3/*.proto \
./third_party/googleapis/mockgcp/cloud/security/privateca/v1/*.proto \
./third_party/googleapis/mockgcp/cloud/secretmanager/v1/*.proto \
./third_party/googleapis/mockgcp/monitoring/dashboard/v1/*.proto \
./third_party/googleapis/mockgcp/api/serviceusage/v1/*.proto \
./third_party/googleapis/mockgcp/api/serviceusage/v1beta1/*.proto
4 changes: 4 additions & 0 deletions mockgcp/fixup-third-party.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ rm -rf mockgcp/ && mkdir -p mockgcp/api/

mv google/cloud/ mockgcp/
mv google/iam/ mockgcp/
mv google/monitoring/ mockgcp/
mv google/storage/ mockgcp/
mv google/api/apikeys/ mockgcp/api/
mv google/api/serviceusage/ mockgcp/api/
Expand All @@ -38,6 +39,9 @@ find . -type f -print0 | xargs -0 sed -i -e "s@google\[email protected]@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google/iam/@mockgcp/iam/@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google\[email protected]@g"

find . -type f -print0 | xargs -0 sed -i -e "s@google/monitoring/@mockgcp/monitoring/@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google\[email protected]@g"

find . -type f -print0 | xargs -0 sed -i -e "s@google/storage/@mockgcp/storage/@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google\[email protected]@g"

Expand Down
189 changes: 189 additions & 0 deletions mockgcp/generated/mockgcp/monitoring/dashboard/v1/alertchart.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading