v3.3.1
This commit is contained in:
31
CHANGELOG.md
31
CHANGELOG.md
@@ -1,33 +1,10 @@
|
||||
### Version 3.3.0
|
||||
### Version 3.3.1
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Fix bug with getting k8s_wg from import
|
||||
- Fix bug with getting k8s from import
|
||||
- Fix bug with sample decort_k8s_wg
|
||||
- Fix bug with the absence of an optional field ext_ip_addr with vins resource
|
||||
|
||||
### Features
|
||||
|
||||
- Add data_source k8s
|
||||
- Add data_source k8s_list
|
||||
- Add data_source k8s_list_deleted
|
||||
- Add data_source k8s_wg_list
|
||||
- Add data_source k8s_wg
|
||||
- Add a vins_id to the k8s schema/state
|
||||
- Add a ips from computes to the k8s group workers in schema/state
|
||||
- Add a ips from computes to the k8s masters in schema/state
|
||||
- Add a ips from computes to the k8s_wg in schema/state
|
||||
- Change data_source vins, the schema/state is aligned with the platform
|
||||
- Add data_source vins_audits
|
||||
- Add data_source vins_ext_net_list
|
||||
- Add data_source vins_ip_list
|
||||
- Change data_source vins_list, the schema/state is aligned with the platform
|
||||
- Add data_source vins_list_deleted
|
||||
- Add data_source vins_nat_rule_list
|
||||
- Add status checker for vins resource
|
||||
- Add the ability to create and update ip reservations
|
||||
- Add the ability to create and update nat_rule reservations
|
||||
- Add enable/disable functionality for vins resource
|
||||
- Add the ability to restart vnfDev
|
||||
- Add the ability to redeploy vnfDev
|
||||
- Add the ability to import vins
|
||||
- Add warnings handling, which does not interrupt the work when the state is successfully created
|
||||
- Change cloud_init in vins resource, the field shows full information about the configuration made by the user
|
||||
|
||||
@@ -2,7 +2,7 @@ FROM docker.io/hashicorp/terraform:latest
|
||||
|
||||
WORKDIR /opt/decort/tf/
|
||||
COPY provider.tf ./
|
||||
COPY terraform-provider-decort ./terraform.d/plugins/digitalenergy.online/decort/decort/3.3.0/linux_amd64/
|
||||
COPY terraform-provider-decort ./terraform.d/plugins/digitalenergy.online/decort/decort/3.3.1/linux_amd64/
|
||||
RUN terraform init
|
||||
|
||||
WORKDIR /tf
|
||||
|
||||
@@ -183,7 +183,7 @@ func flattenCompute(d *schema.ResourceData, compFacts string) error {
|
||||
d.Set("enabled", true)
|
||||
}
|
||||
|
||||
d.Set("cloud_init", "applied") // NOTE: for existing compute we hard-code this value as an indicator for DiffSuppress fucntion
|
||||
//d.Set("cloud_init", "applied") // NOTE: for existing compute we hard-code this value as an indicator for DiffSuppress fucntion
|
||||
// d.Set("status", model.Status)
|
||||
// d.Set("tech_status", model.TechStatus)
|
||||
d.Set("started", false)
|
||||
|
||||
@@ -782,11 +782,11 @@ func ResourceComputeSchemaMake() map[string]*schema.Schema {
|
||||
},
|
||||
|
||||
"cloud_init": {
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Default: "applied",
|
||||
DiffSuppressFunc: cloudInitDiffSupperss,
|
||||
Description: "Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases.",
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Description: "Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases.",
|
||||
//Default: "applied",
|
||||
//DiffSuppressFunc: cloudInitDiffSupperss,
|
||||
},
|
||||
|
||||
"enabled": {
|
||||
|
||||
@@ -545,15 +545,15 @@ func resourceVinsSchemaMake() map[string]*schema.Schema {
|
||||
Optional: true,
|
||||
Default: -1,
|
||||
}
|
||||
rets["ipcidr"] = &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
}
|
||||
rets["ext_ip_addr"] = &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Default: "",
|
||||
}
|
||||
rets["ipcidr"] = &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
}
|
||||
rets["pre_reservations_num"] = &schema.Schema{
|
||||
Type: schema.TypeInt,
|
||||
Optional: true,
|
||||
@@ -607,11 +607,6 @@ func resourceVinsSchemaMake() map[string]*schema.Schema {
|
||||
Default: "",
|
||||
Description: "Optional user-defined text description of this ViNS.",
|
||||
}
|
||||
rets["ext_ip_addr"] = &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "IP address of the external connection (valid for ViNS connected to external network, ignored otherwise).",
|
||||
}
|
||||
rets["restore"] = &schema.Schema{
|
||||
Type: schema.TypeBool,
|
||||
Optional: true,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
decort = {
|
||||
source = "digitalenergy.online/decort/decort"
|
||||
version = "3.3.0"
|
||||
source = " digitalenergy.online/decort/decort"
|
||||
version = "3.3.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ provider "decort" {
|
||||
allow_unverified_ssl = true
|
||||
}
|
||||
|
||||
data "decort_k8s_wf" "k8s_wg" {
|
||||
data "decort_k8s_wg" "k8s_wg" {
|
||||
#id кластера
|
||||
#обязательный параметр
|
||||
#тип - число
|
||||
|
||||
@@ -30,7 +30,6 @@ data "decort_vins_ext_net_list" "vins_ext_net_list" {
|
||||
#id жедаемого vins
|
||||
#тип - число
|
||||
vins_id = 10101
|
||||
|
||||
}
|
||||
|
||||
output "test" {
|
||||
|
||||
@@ -25,7 +25,7 @@ provider "decort" {
|
||||
allow_unverified_ssl = true
|
||||
}
|
||||
|
||||
data "decort_vins_list_deleted" "vinslist_deleted" {
|
||||
data "decort_vins_list_deleted" "vins_list_deleted" {
|
||||
#кол-во страниц для вывода
|
||||
#опицональный параметр
|
||||
#тип - число
|
||||
|
||||
Reference in New Issue
Block a user