Skip to content

Commit ca030f0

Browse files
authored
3.90.1: Fix deprecation warning in GKE Cluster (#3820)
1 parent 2878c39 commit ca030f0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 3.90.1 (Unreleased)
2+
3+
DEPRECATIONS:
4+
5+
* container: fixed an overly-broad deprecation on `master_auth`, constraining it to `master_auth.username` and `master_auth.password`
6+
17
## 3.90.0 (October 26, 2021)
28

39
DEPRECATIONS:

google-beta/resource_container_cluster.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,13 +730,13 @@ func resourceContainerCluster() *schema.Resource {
730730
Optional: true,
731731
MaxItems: 1,
732732
Computed: true,
733-
Deprecated: `Basic authentication was removed for GKE cluster versions >= 1.19.`,
734733
Description: `The authentication information for accessing the Kubernetes master. Some values in this block are only returned by the API if your service account has permission to get credentials for your GKE cluster. If you see an unexpected diff removing a username/password or unsetting your client cert, ensure you have the container.clusters.getCredentials permission.`,
735734
Elem: &schema.Resource{
736735
Schema: map[string]*schema.Schema{
737736
"password": {
738737
Type: schema.TypeString,
739738
Optional: true,
739+
Deprecated: `Basic authentication was removed for GKE cluster versions >= 1.19. If master_auth is present in your config with only password or username set, you can remove the block entirely.`,
740740
AtLeastOneOf: []string{"master_auth.0.password", "master_auth.0.username", "master_auth.0.client_certificate_config"},
741741
Sensitive: true,
742742
Description: `The password to use for HTTP basic authentication when accessing the Kubernetes master endpoint.`,
@@ -745,6 +745,7 @@ func resourceContainerCluster() *schema.Resource {
745745
"username": {
746746
Type: schema.TypeString,
747747
Optional: true,
748+
Deprecated: `Basic authentication was removed for GKE cluster versions >= 1.19. If master_auth is present in your config with only password or username set, you can remove the block entirely.`,
748749
AtLeastOneOf: []string{"master_auth.0.password", "master_auth.0.username", "master_auth.0.client_certificate_config"},
749750
Description: `The username to use for HTTP basic authentication when accessing the Kubernetes master endpoint. If not present basic auth will be disabled.`,
750751
},

0 commit comments

Comments
 (0)