@@ -100,6 +100,10 @@ func resourceK8s() *schema.Resource {
100
100
Type : schema .TypeBool ,
101
101
Optional : true ,
102
102
},
103
+ "external_dns_enabled" : & schema.Schema {
104
+ Type : schema .TypeBool ,
105
+ Optional : true ,
106
+ },
103
107
"master_lb_floating_ip_enabled" : & schema.Schema {
104
108
Type : schema .TypeBool ,
105
109
Optional : true ,
@@ -265,11 +269,12 @@ func resourceK8sCreate(ctx context.Context, d *schema.ResourceData, m interface{
265
269
}
266
270
267
271
opts := clusters.CreateOpts {
268
- Name : d .Get ("name" ).(string ),
269
- FixedNetwork : d .Get ("fixed_network" ).(string ),
270
- FixedSubnet : d .Get ("fixed_subnet" ).(string ),
271
- KeyPair : d .Get ("keypair" ).(string ),
272
- AutoHealingEnabled : d .Get ("auto_healing_enabled" ).(bool ),
272
+ Name : d .Get ("name" ).(string ),
273
+ FixedNetwork : d .Get ("fixed_network" ).(string ),
274
+ FixedSubnet : d .Get ("fixed_subnet" ).(string ),
275
+ KeyPair : d .Get ("keypair" ).(string ),
276
+ AutoHealingEnabled : d .Get ("auto_healing_enabled" ).(bool ),
277
+ //ExternalDNSEnabled: d.Get("external_dns_enabled").(bool),
273
278
MasterLBFloatingIPEnabled : d .Get ("master_lb_floating_ip_enabled" ).(bool ),
274
279
}
275
280
@@ -359,6 +364,7 @@ func resourceK8sRead(ctx context.Context, d *schema.ResourceData, m interface{})
359
364
}
360
365
361
366
d .Set ("name" , cluster .Name )
367
+ //d.Set("external_dns_enabled", cluster.ExternalDNSEnabled)
362
368
d .Set ("fixed_network" , cluster .FixedNetwork )
363
369
d .Set ("fixed_subnet" , cluster .FixedSubnet )
364
370
d .Set ("master_lb_floating_ip_enabled" , cluster .FloatingIPEnabled )
0 commit comments