This commit is contained in:
asteam
2024-12-04 13:18:58 +03:00
parent 003e4d656e
commit 76ea459b3d
417 changed files with 30051 additions and 975 deletions

View File

@@ -122,6 +122,23 @@ func MakeSchemaDataSourceK8S() map[string]schema.Attribute {
"extnet_id": schema.Int64Attribute{
Computed: true,
},
"extnet_only": schema.BoolAttribute{
Computed: true,
},
"ha_mode": schema.BoolAttribute{
Computed: true,
},
"address_vip": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"backend_ip": schema.StringAttribute{
Computed: true,
},
"frontend_ip": schema.StringAttribute{
Computed: true,
},
},
},
"k8sci_name": schema.StringAttribute{
Computed: true,
},

View File

@@ -126,7 +126,14 @@ func MakeSchemaResourceK8SCP() map[string]schema.Attribute {
},
"oidc_cert": schema.StringAttribute{
Optional: true,
Description: "insert ssl certificate in x509 pem format",
Description: "Insert ssl certificate in x509 pem format",
},
"chipset": schema.StringAttribute{
Optional: true,
Description: "Type of the emulated system",
Validators: []validator.String{
stringvalidator.OneOfCaseInsensitive("Q35", "i440fx"),
},
},
"lb_sysctl_params": schema.ListNestedAttribute{
Optional: true,
@@ -302,6 +309,17 @@ func MakeSchemaResourceK8SCP() map[string]schema.Attribute {
"account_name": schema.StringAttribute{
Computed: true,
},
"address_vip": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"backend_ip": schema.StringAttribute{
Computed: true,
},
"frontend_ip": schema.StringAttribute{
Computed: true,
},
},
},
"bservice_id": schema.Int64Attribute{
Computed: true,
},

View File

@@ -1,6 +1,7 @@
package schemas
import (
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
@@ -28,11 +29,25 @@ func MakeSchemaResourceK8SWG() map[string]schema.Attribute {
Computed: true,
Description: "Number of worker nodes to create.",
},
"worker_chipset": schema.StringAttribute{
Optional: true,
Description: "Type of the emulated system of worker nodes",
Validators: []validator.String{
stringvalidator.OneOfCaseInsensitive("Q35", "i440fx"),
},
},
"cpu": schema.Int64Attribute{
Optional: true,
Computed: true,
Description: "Worker node CPU count.",
},
"chipset": schema.StringAttribute{
Optional: true,
Description: "Type of the emulated system of work group",
Validators: []validator.String{
stringvalidator.OneOfCaseInsensitive("Q35", "i440fx"),
},
},
"ram": schema.Int64Attribute{
Optional: true,
Computed: true,