Skip to content

Commit 7b2fc45

Browse files
Merge pull request #5182 from yuwenma/BigQueryReservationAssignment
chore: align BigQueryReservation api and mapper
2 parents 7a84f90 + 26dabbe commit 7b2fc45

File tree

13 files changed

+435
-803
lines changed

13 files changed

+435
-803
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
17+
set -o errexit
18+
set -o nounset
19+
set -o pipefail
20+
21+
REPO_ROOT="$(git rev-parse --show-toplevel)"
22+
cd ${REPO_ROOT}/dev/tools/controllerbuilder
23+
24+
go run . generate-types \
25+
--service google.cloud.bigquery.reservation.v1 \
26+
--api-version "bigqueryreservation.cnrm.cloud.google.com/v1alpha1" \
27+
--resource BigQueryReservationAssignment:Assignment
28+
29+
go run . generate-mapper \
30+
--service google.cloud.bigquery.reservation.v1 \
31+
--api-version "bigqueryreservation.cnrm.cloud.google.com/v1alpha1"
32+
33+
cd ${REPO_ROOT}
34+
dev/tasks/generate-crds
35+
36+
go run -mod=readonly golang.org/x/tools/cmd/goimports@latest -w pkg/controller/direct/bigqueryreservation/
37+

apis/bigqueryreservation/v1alpha1/types.generated.go

Lines changed: 6 additions & 153 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)