Skip to content

Commit f288db2

Browse files
update dcl to 1.70 (#11285) (#7899)
[upstream:37741710686aebf23aeb55f909a13e6ca367ac76] Signed-off-by: Modular Magician <[email protected]>
1 parent a7062da commit f288db2

File tree

8 files changed

+42
-2
lines changed

8 files changed

+42
-2
lines changed

.changelog/11285.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
```release-note:enhancement
2+
gkehub: added `config_management.management` and `config_management.config_sync.enabled` fields to `google_gkehub_feature_membership`
3+
```
4+
```release-note:enhancement
5+
clouddeploy: added `gke.proxy_url` field to `google_clouddeploy_target`
6+
```

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.21
44

55
require (
66
cloud.google.com/go/bigtable v1.27.2-0.20240730134218-123c88616251
7-
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.68.0
7+
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.70.0
88
github.com/apparentlymart/go-cidr v1.1.0
99
github.com/davecgh/go-spew v1.1.1
1010
github.com/dnaeon/go-vcr v1.0.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
2424
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
2525
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.68.0 h1:LIPIYi4hy7ttUSrziY/TYwMDuEvvV593n80kRmz6nZ4=
2626
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.68.0/go.mod h1:pL2Qt5HT+x6xrTd806oMiM3awW6kNIXB/iiuClz6m6k=
27+
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.70.0 h1:dqqxHZYK0tlzViFqAbKzMIkfboQVWYN1CTEM2sjBtmQ=
28+
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.70.0/go.mod h1:pL2Qt5HT+x6xrTd806oMiM3awW6kNIXB/iiuClz6m6k=
2729
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
2830
github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
2931
github.com/ProtonMail/go-crypto v1.1.0-alpha.2 h1:bkyFVUP+ROOARdgCiJzNQo2V2kiB97LyUpzH9P6Hrlg=

google-beta/services/clouddeploy/resource_clouddeploy_target.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,12 @@ func ClouddeployTargetGkeSchema() *schema.Resource {
306306
Optional: true,
307307
Description: "Optional. If true, `cluster` is accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option when `cluster` is a [private GKE cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).",
308308
},
309+
310+
"proxy_url": {
311+
Type: schema.TypeString,
312+
Optional: true,
313+
Description: "Optional. If set, used to configure a [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) to the Kubernetes server.",
314+
},
309315
},
310316
}
311317
}
@@ -766,6 +772,7 @@ func expandClouddeployTargetGke(o interface{}) *clouddeploy.TargetGke {
766772
return &clouddeploy.TargetGke{
767773
Cluster: dcl.String(obj["cluster"].(string)),
768774
InternalIP: dcl.Bool(obj["internal_ip"].(bool)),
775+
ProxyUrl: dcl.String(obj["proxy_url"].(string)),
769776
}
770777
}
771778

@@ -776,6 +783,7 @@ func flattenClouddeployTargetGke(obj *clouddeploy.TargetGke) interface{} {
776783
transformed := map[string]interface{}{
777784
"cluster": obj.Cluster,
778785
"internal_ip": obj.InternalIP,
786+
"proxy_url": obj.ProxyUrl,
779787
}
780788

781789
return []interface{}{transformed}

google-beta/services/clouddeploy/resource_clouddeploy_target_generated_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ resource "google_clouddeploy_target" "primary" {
486486
gke {
487487
cluster = "projects/%{project_name}/locations/%{region}/clusters/different-example-cluster-name"
488488
internal_ip = true
489+
proxy_url = "http://10.0.0.1"
489490
}
490491
491492
project = "%{project_name}"

google-beta/services/gkehub/resource_gke_hub_feature_membership.go

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,17 @@ func GkeHubFeatureMembershipConfigmanagementSchema() *schema.Resource {
150150
Elem: GkeHubFeatureMembershipConfigmanagementHierarchyControllerSchema(),
151151
},
152152

153+
"management": {
154+
Type: schema.TypeString,
155+
Computed: true,
156+
Optional: true,
157+
Description: "Set this field to MANAGEMENT_AUTOMATIC to enable Config Sync auto-upgrades, and set this field to MANAGEMENT_MANUAL or MANAGEMENT_UNSPECIFIED to disable Config Sync auto-upgrades.",
158+
},
159+
153160
"policy_controller": {
154161
Type: schema.TypeList,
155162
Optional: true,
156-
Description: "Policy Controller configuration for the cluster.",
163+
Description: "**DEPRECATED** Configuring Policy Controller through the configmanagement feature is no longer recommended. Use the policycontroller feature instead.",
157164
MaxItems: 1,
158165
Elem: GkeHubFeatureMembershipConfigmanagementPolicyControllerSchema(),
159166
},
@@ -183,6 +190,12 @@ func GkeHubFeatureMembershipConfigmanagementBinauthzSchema() *schema.Resource {
183190
func GkeHubFeatureMembershipConfigmanagementConfigSyncSchema() *schema.Resource {
184191
return &schema.Resource{
185192
Schema: map[string]*schema.Schema{
193+
"enabled": {
194+
Type: schema.TypeBool,
195+
Optional: true,
196+
Description: "Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.",
197+
},
198+
186199
"git": {
187200
Type: schema.TypeList,
188201
Optional: true,
@@ -989,6 +1002,7 @@ func expandGkeHubFeatureMembershipConfigmanagement(o interface{}) *gkehub.Featur
9891002
Binauthz: expandGkeHubFeatureMembershipConfigmanagementBinauthz(obj["binauthz"]),
9901003
ConfigSync: expandGkeHubFeatureMembershipConfigmanagementConfigSync(obj["config_sync"]),
9911004
HierarchyController: expandGkeHubFeatureMembershipConfigmanagementHierarchyController(obj["hierarchy_controller"]),
1005+
Management: gkehub.FeatureMembershipConfigmanagementManagementEnumRef(obj["management"].(string)),
9921006
PolicyController: expandGkeHubFeatureMembershipConfigmanagementPolicyController(obj["policy_controller"]),
9931007
Version: dcl.StringOrNil(obj["version"].(string)),
9941008
}
@@ -1002,6 +1016,7 @@ func flattenGkeHubFeatureMembershipConfigmanagement(obj *gkehub.FeatureMembershi
10021016
"binauthz": flattenGkeHubFeatureMembershipConfigmanagementBinauthz(obj.Binauthz),
10031017
"config_sync": flattenGkeHubFeatureMembershipConfigmanagementConfigSync(obj.ConfigSync),
10041018
"hierarchy_controller": flattenGkeHubFeatureMembershipConfigmanagementHierarchyController(obj.HierarchyController),
1019+
"management": obj.Management,
10051020
"policy_controller": flattenGkeHubFeatureMembershipConfigmanagementPolicyController(obj.PolicyController),
10061021
"version": obj.Version,
10071022
}
@@ -1046,6 +1061,7 @@ func expandGkeHubFeatureMembershipConfigmanagementConfigSync(o interface{}) *gke
10461061
}
10471062
obj := objArr[0].(map[string]interface{})
10481063
return &gkehub.FeatureMembershipConfigmanagementConfigSync{
1064+
Enabled: dcl.Bool(obj["enabled"].(bool)),
10491065
Git: expandGkeHubFeatureMembershipConfigmanagementConfigSyncGit(obj["git"]),
10501066
MetricsGcpServiceAccountEmail: dcl.String(obj["metrics_gcp_service_account_email"].(string)),
10511067
Oci: expandGkeHubFeatureMembershipConfigmanagementConfigSyncOci(obj["oci"]),
@@ -1059,6 +1075,7 @@ func flattenGkeHubFeatureMembershipConfigmanagementConfigSync(obj *gkehub.Featur
10591075
return nil
10601076
}
10611077
transformed := map[string]interface{}{
1078+
"enabled": obj.Enabled,
10621079
"git": flattenGkeHubFeatureMembershipConfigmanagementConfigSyncGit(obj.Git),
10631080
"metrics_gcp_service_account_email": obj.MetricsGcpServiceAccountEmail,
10641081
"oci": flattenGkeHubFeatureMembershipConfigmanagementConfigSyncOci(obj.Oci),

google-beta/services/gkehub/resource_gke_hub_feature_membership_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,13 @@ resource "google_gke_hub_feature_membership" "feature_member_1" {
160160
version = "1.18.2"
161161
config_sync {
162162
source_format = "hierarchy"
163+
enabled = true
163164
git {
164165
sync_repo = "https://github.com/GoogleCloudPlatform/magic-modules"
165166
secret_type = "none"
166167
}
167168
}
169+
management = "MANAGEMENT_AUTOMATIC"
168170
}
169171
}
170172

website/docs/r/clouddeploy_target.html.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ The `gke` block supports:
250250
(Optional)
251251
Optional. If true, `cluster` is accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option when `cluster` is a [private GKE cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
252252

253+
* `proxy_url` -
254+
(Optional)
255+
Optional. If set, used to configure a [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) to the Kubernetes server.
256+
253257
The `multi_target` block supports:
254258

255259
* `target_ids` -

0 commit comments

Comments
 (0)