File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1547,18 +1547,20 @@ func tkeGetAuthOptions(d *schema.ResourceData) *tke.ModifyClusterAuthenticationO
1547
1547
raw , ok := d .GetOk ("auth_options" )
1548
1548
options := raw .([]interface {})
1549
1549
1550
- if ! ok || len (options ) == 0 {
1551
- return nil
1552
- }
1553
-
1554
- option := options [0 ].(map [string ]interface {})
1555
1550
request := tke .NewModifyClusterAuthenticationOptionsRequest ()
1556
1551
request .ClusterId = helper .String (d .Id ())
1557
-
1558
1552
request .ServiceAccounts = & tke.ServiceAccountAuthenticationOptions {
1559
1553
AutoCreateDiscoveryAnonymousAuth : helper .Bool (false ),
1554
+ Issuer : helper .String ("" ),
1555
+ JWKSURI : helper .String ("" ),
1560
1556
}
1561
1557
1558
+ if ! ok || len (options ) == 0 {
1559
+ return request
1560
+ }
1561
+
1562
+ option := options [0 ].(map [string ]interface {})
1563
+
1562
1564
if v , ok := option ["auto_create_discovery_anonymous_auth" ]; ok {
1563
1565
request .ServiceAccounts .AutoCreateDiscoveryAnonymousAuth = helper .Bool (v .(bool ))
1564
1566
}
You can’t perform that action at this time.
0 commit comments