Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a355247845 |
31
CHANGELOG.md
31
CHANGELOG.md
@@ -1,33 +1,10 @@
|
|||||||
### Version 3.3.0
|
### Version 3.3.1
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
- Fix bug with getting k8s_wg from import
|
- Fix bug with sample decort_k8s_wg
|
||||||
- Fix bug with getting k8s from import
|
- Fix bug with the absence of an optional field ext_ip_addr with vins resource
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
- Add data_source k8s
|
- Change cloud_init in vins resource, the field shows full information about the configuration made by the user
|
||||||
- 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
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ FROM docker.io/hashicorp/terraform:latest
|
|||||||
|
|
||||||
WORKDIR /opt/decort/tf/
|
WORKDIR /opt/decort/tf/
|
||||||
COPY provider.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
|
RUN terraform init
|
||||||
|
|
||||||
WORKDIR /tf
|
WORKDIR /tf
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ func flattenCompute(d *schema.ResourceData, compFacts string) error {
|
|||||||
d.Set("enabled", true)
|
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("status", model.Status)
|
||||||
// d.Set("tech_status", model.TechStatus)
|
// d.Set("tech_status", model.TechStatus)
|
||||||
d.Set("started", false)
|
d.Set("started", false)
|
||||||
|
|||||||
@@ -784,9 +784,9 @@ func ResourceComputeSchemaMake() map[string]*schema.Schema {
|
|||||||
"cloud_init": {
|
"cloud_init": {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: "applied",
|
|
||||||
DiffSuppressFunc: cloudInitDiffSupperss,
|
|
||||||
Description: "Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases.",
|
Description: "Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases.",
|
||||||
|
//Default: "applied",
|
||||||
|
//DiffSuppressFunc: cloudInitDiffSupperss,
|
||||||
},
|
},
|
||||||
|
|
||||||
"enabled": {
|
"enabled": {
|
||||||
|
|||||||
@@ -545,15 +545,15 @@ func resourceVinsSchemaMake() map[string]*schema.Schema {
|
|||||||
Optional: true,
|
Optional: true,
|
||||||
Default: -1,
|
Default: -1,
|
||||||
}
|
}
|
||||||
rets["ipcidr"] = &schema.Schema{
|
|
||||||
Type: schema.TypeString,
|
|
||||||
Optional: true,
|
|
||||||
}
|
|
||||||
rets["ext_ip_addr"] = &schema.Schema{
|
rets["ext_ip_addr"] = &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: "",
|
Default: "",
|
||||||
}
|
}
|
||||||
|
rets["ipcidr"] = &schema.Schema{
|
||||||
|
Type: schema.TypeString,
|
||||||
|
Optional: true,
|
||||||
|
}
|
||||||
rets["pre_reservations_num"] = &schema.Schema{
|
rets["pre_reservations_num"] = &schema.Schema{
|
||||||
Type: schema.TypeInt,
|
Type: schema.TypeInt,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@@ -607,11 +607,6 @@ func resourceVinsSchemaMake() map[string]*schema.Schema {
|
|||||||
Default: "",
|
Default: "",
|
||||||
Description: "Optional user-defined text description of this ViNS.",
|
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{
|
rets["restore"] = &schema.Schema{
|
||||||
Type: schema.TypeBool,
|
Type: schema.TypeBool,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
decort = {
|
decort = {
|
||||||
source = " digitalenergy.online/decort/decort"
|
source = " digitalenergy.online/decort/decort"
|
||||||
version = "3.3.0"
|
version = "3.3.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ provider "decort" {
|
|||||||
allow_unverified_ssl = true
|
allow_unverified_ssl = true
|
||||||
}
|
}
|
||||||
|
|
||||||
data "decort_k8s_wf" "k8s_wg" {
|
data "decort_k8s_wg" "k8s_wg" {
|
||||||
#id кластера
|
#id кластера
|
||||||
#обязательный параметр
|
#обязательный параметр
|
||||||
#тип - число
|
#тип - число
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ data "decort_vins_ext_net_list" "vins_ext_net_list" {
|
|||||||
#id жедаемого vins
|
#id жедаемого vins
|
||||||
#тип - число
|
#тип - число
|
||||||
vins_id = 10101
|
vins_id = 10101
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
output "test" {
|
output "test" {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ provider "decort" {
|
|||||||
allow_unverified_ssl = true
|
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