forked from GoogleCloudPlatform/k8s-config-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'GoogleCloudPlatform:master' into mockgcp_test_bigqueryd…
…atasetaccess
- Loading branch information
Showing
29 changed files
with
1,031 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
REPO_ROOT="$(git rev-parse --show-toplevel)" | ||
cd ${REPO_ROOT} | ||
|
||
export ONLY_TEST_APIGROUP=kms.cnrm.cloud.google.com | ||
|
||
dev/ci/periodics/_create_project_and_run_e2e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
# v1.122.0 | ||
|
||
** This version is not yet released; this document is gathering release notes for the future release ** | ||
* Special shout-outs to @600lyy, @acpana, @anhdle-sso, @barney-s, @CyberHippo, @gemmahou, @haiyanmeng, @hankfreund, @himanikh, @jasonvigil, @jingyih, @justinsb, @maqiuyujoyce, @marko7460, @xiaoweim, @yuwenma, @ziyue-101 for their contributions to this release. | ||
|
||
* ... | ||
## Direct Cloud Reconciler: | ||
|
||
* Special shout-outs to ... for their | ||
contributions to this release. | ||
TODO: list contributors with `git log v1.121.0... | grep Merge | grep from | awk '{print $6}' | cut -d '/' -f 1 | sort | uniq` | ||
* `RedisCluster` (v1alpha1) | ||
* `SQLInstance` | ||
|
||
## Resources promoted from alpha to beta: | ||
## New Resources: | ||
|
||
*When resources are promoted from alpha to beta, we (generally) ensure they follow our best practices: use of refs on fields where appropriate, | ||
output fields from GCP APIs are in `status.observedState.*` | ||
* Added support for `RedisCluster` (v1alpha1) resource. | ||
|
||
* `PlaceholderKind` | ||
## New Fields: | ||
|
||
## New Resources: | ||
* `ContainerCluster` | ||
* The `spec.nodeConfig.taint` can be updated. | ||
|
||
* Added support for `PlaceholderKind` (v1beta1) resource. | ||
* `ContainerNodePool` | ||
* The `spec.nodeConfig.taint` can be updated. | ||
|
||
## New Fields: | ||
* `SQLInstance` | ||
* Add the `spec.cloneSource`. | ||
|
||
* `RunJob` | ||
* Add the `spec.template.template.volumes[].cloudSqlInstance` | ||
|
||
* PlaceholderKind | ||
* Added `spec.placeholder` field. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# v1.123.0 | ||
|
||
** This version is not yet released; this document is gathering release notes for the future release ** | ||
|
||
* ... | ||
|
||
* Special shout-outs to ... for their | ||
contributions to this release. | ||
TODO: list contributors with `git log v1.122.0... | grep Merge | grep from | awk '{print $6}' | cut -d '/' -f 1 | sort | uniq` | ||
|
||
## Resources promoted from alpha to beta: | ||
|
||
*When resources are promoted from alpha to beta, we (generally) ensure they follow our best practices: use of refs on fields where appropriate, | ||
output fields from GCP APIs are in `status.observedState.*` | ||
|
||
* `PlaceholderKind` | ||
|
||
## New Resources: | ||
|
||
* Added support for `PlaceholderKind` (v1beta1) resource. | ||
|
||
## New Fields: | ||
|
||
* PlaceholderKind | ||
* Added `spec.placeholder` field. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,13 +95,9 @@ func (s *sqlInstancesService) Insert(ctx context.Context, req *pb.SqlInstancesIn | |
fqn := name.String() | ||
now := time.Now() | ||
|
||
region := "us-central1" | ||
zone := "us-central1-a" | ||
|
||
obj := proto.Clone(req.GetBody()).(*pb.DatabaseInstance) | ||
obj.Name = name.InstanceName | ||
obj.Project = name.Project.ID | ||
obj.Region = region | ||
|
||
obj.SelfLink = fmt.Sprintf("https://sqladmin.googleapis.com/sql/v1beta4/projects/%s/instances/%s", | ||
name.Project.ID, name.InstanceName) | ||
|
@@ -112,8 +108,6 @@ func (s *sqlInstancesService) Insert(ctx context.Context, req *pb.SqlInstancesIn | |
return nil, err | ||
} | ||
|
||
obj.GceZone = zone | ||
|
||
// By default, allocate a public IP for the instance. | ||
shouldAllocatePublicIP := true | ||
// By default, do not allocate a private IP for the instance. | ||
|
@@ -172,7 +166,9 @@ func (s *sqlInstancesService) Insert(ctx context.Context, req *pb.SqlInstancesIn | |
|
||
obj.ServiceAccountEmailAddress = fmt.Sprintf("p%[email protected]", name.Project.Number) | ||
|
||
populateDefaults(obj, zone) | ||
populateDefaults(obj) | ||
|
||
obj.GceZone = obj.Settings.LocationPreference.Zone | ||
|
||
obj.Settings.SettingsVersion = wrapperspb.Int64(1) | ||
|
||
|
@@ -510,7 +506,7 @@ func setDatabaseVersionDefaults(obj *pb.DatabaseInstance) error { | |
return nil | ||
} | ||
|
||
func populateDefaults(obj *pb.DatabaseInstance, zone string) { | ||
func populateDefaults(obj *pb.DatabaseInstance) { | ||
if obj.InstanceType == pb.SqlInstanceType_SQL_INSTANCE_TYPE_UNSPECIFIED { | ||
obj.InstanceType = pb.SqlInstanceType_CLOUD_SQL_INSTANCE | ||
} | ||
|
@@ -575,13 +571,12 @@ func populateDefaults(obj *pb.DatabaseInstance, zone string) { | |
} | ||
} | ||
|
||
locationPreference := settings.LocationPreference | ||
if locationPreference == nil { | ||
locationPreference = &pb.LocationPreference{} | ||
settings.LocationPreference = locationPreference | ||
if settings.LocationPreference == nil { | ||
settings.LocationPreference = &pb.LocationPreference{ | ||
Kind: "sql#locationPreference", | ||
Zone: obj.Region + "-a", | ||
} | ||
} | ||
locationPreference.Kind = "sql#locationPreference" | ||
locationPreference.Zone = zone | ||
|
||
backupConfiguration := settings.BackupConfiguration | ||
if backupConfiguration == nil { | ||
|
@@ -739,7 +734,7 @@ func (s *sqlInstancesService) Update(ctx context.Context, req *pb.SqlInstancesUp | |
obj.State = existing.State | ||
obj.UpgradableDatabaseVersions = existing.UpgradableDatabaseVersions | ||
|
||
populateDefaults(obj, existing.GetSettings().GetLocationPreference().GetZone()) | ||
populateDefaults(obj) | ||
|
||
obj.Settings.SettingsVersion = wrapperspb.Int64(existing.GetSettings().GetSettingsVersion().GetValue() + 1) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.