feat: complete MVP resources and validate end-to-end terraform flow
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
"github.com/hashicorp/terraform-plugin-framework/resource"
|
||||
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
|
||||
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
|
||||
"github.com/hashicorp/terraform-plugin-framework/types"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
||||
@@ -65,11 +66,14 @@ func (r *HTTPTriggerResource) Schema(_ context.Context, _ resource.SchemaRequest
|
||||
},
|
||||
"methods": schema.ListAttribute{
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
ElementType: types.StringType,
|
||||
Description: "HTTP методы trigger, например [\"GET\", \"POST\"].",
|
||||
},
|
||||
"create_ingress": schema.BoolAttribute{
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
Default: booldefault.StaticBool(false),
|
||||
Description: "Включает создание ingress правила в Fission.",
|
||||
},
|
||||
"host": schema.StringAttribute{
|
||||
|
||||
Reference in New Issue
Block a user