-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make namespace and flow optional when using keep_original_source = true #79
Comments
Or make the opposite : use terraform fields and internally generate this mandatory part of the YAML. WDYT ? |
I've an issue, the goal keep_original_source is to kept exact source of the flow, if the people want to add comment everywhere (at the beginning, end, between namespace and id properties), it must be able to it, when we unserialize, serialize a yaml string, most of parsers will break that (remove comment, changing quote, ...), so it appear to be not the good way |
Okey, and what about doing it in the API call : https://kestra.io/docs/api-guide/#post-/api/v1/flows. Using values from terraform-provider-kestra/internal/provider/resource_flow.go Lines 63 to 92 in e0fff3d
tldr : not having to unserialize, serialize a yaml string |
In the end it's more a question about how we see the terraform provider. If no logic at all should be implemented within the provider then we go with only Otherwise we could also have |
As discuss with Ludo long times ago, this would be tricky, so we decided that the change will be done when we will fully change the API to create flows |
OK yes. Can't wait for this. Do you have an idea when it will be released? |
@aballiet We just deprecated methods using JSON to create/edit flow, so I can't really tell |
right now, we could read it from the yaml like that
but we are able to read it directly from the yaml since the
id
andnamespace
are mandatoryThe text was updated successfully, but these errors were encountered: