diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 1083307..4e0d779 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -76,7 +76,7 @@ func New(version string, tenant *string) func() *schema.Provider { "keep_original_source": &schema.Schema{ Type: schema.TypeBool, Optional: true, - Description: "Keep original source code, keeping comment and indentation.", + Description: "Keep original source code, keeping comment and indentation. Setting to false is now deprecated and will be removed in the future.", DefaultFunc: schema.EnvDefaultFunc("KESTRA_KEEP_ORIGINAL_SOURCE", true), }, }, diff --git a/internal/provider/resource_flow.go b/internal/provider/resource_flow.go index 47396d6..44cc7d6 100644 --- a/internal/provider/resource_flow.go +++ b/internal/provider/resource_flow.go @@ -91,6 +91,13 @@ func resourceFlowCreate(ctx context.Context, d *schema.ResourceData, meta interf return errs } + // Add a warning for JSON creation deprecation + diags = append(diags, diag.Diagnostic{ + Severity: diag.Warning, + Summary: "Deprecation warning", + Detail: "Creating flow not using the YAML source code is deprecated and will be soon removed.", + }) + return diags } }