Skip to content

Commit

Permalink
Billing Budgets Budget resource mocks
Browse files Browse the repository at this point in the history
- Following instructions at: https://github.com/GoogleCloudPlatform/k8s-config-connector/blob/master/mockgcp/README.md
- Ran make gen-proto
- E2E_KUBE_TARGET=envtest RUN_E2E=1 E2E_GCP_TARGET=mock go test -test.count=1 -timeout 3600s -v ./tests/e2e  ..
  • Loading branch information
barney-s committed Oct 23, 2024
1 parent 22080fc commit 9dee85b
Show file tree
Hide file tree
Showing 11 changed files with 3,226 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/tests/samples/create/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ func MaybeSkip(t *testing.T, name string, resources []*unstructured.Unstructured
case schema.GroupKind{Group: "vertexai.cnrm.cloud.google.com", Kind: "VertexAIDataset"}:
case schema.GroupKind{Group: "vertexai.cnrm.cloud.google.com", Kind: "VertexAITensorboard"}:
case schema.GroupKind{Group: "vertexai.cnrm.cloud.google.com", Kind: "VertexAIEndpoint"}:
case schema.GroupKind{Group: "billingbudgets.cnrm.cloud.google.com", Kind: "BillingBudgetsBudget"}:

default:
t.Skipf("gk %v not suppported by mock gcp %v; skipping", gvk.GroupKind(), name)
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/cli-runtime v0.26.3 // indirect
k8s.io/component-base v0.27.9 // indirect
k8s.io/klog v1.0.0 // indirect
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
k8s.io/kubectl v0.26.3 // indirect
k8s.io/utils v0.0.0-20230505201702-9f6742963106 // indirect
Expand Down
1 change: 1 addition & 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 @@ -106,6 +106,7 @@ gen-proto-no-fixup:
./third_party/googleapis/mockgcp/pubsub/v1/*.proto \
./third_party/googleapis/mockgcp/spanner/admin/database/v1/*.proto \
./third_party/googleapis/mockgcp/spanner/admin/instance/v1/*.proto \
./third_party/googleapis/mockgcp/cloud/billing/budgets/v1/*.proto \
./third_party/googleapis/mockgrafeas/v1/*.proto \
./third_party/googleapis/mockgcp/cloud/bigquery/biglake/v1/*.proto

Expand Down
Loading

0 comments on commit 9dee85b

Please sign in to comment.