kestra-io / terraform-provider-kestra

https://kestra.io/docs/terraform/
Apache License 2.0
17 stars 10 forks source link

Update and delete namespace secrets failed when namespace name contains underscores #76

Closed soulbah closed 1 year ago

soulbah commented 1 year ago

Expected Behavior

Namespace ID and secret key should be got whatever the separator between Namespace ID and secret key in secret ID. Or theses informations should be got in another ways.

Actual Behaviour

Namespace ID and secret key are retrieved from secret ID, namespace ID is equals to the first part before the first underscore and the secret key is equals to the other part. When the namespace ID contains underscores, parsing these informations is not done correctly.

Steps To Reproduce

Create a namespace secret in a namespace containing underscores in its name, and try to update the secret.

Environment Information

Example flow

resource "kestra_namespace_secret" "secret_test" { namespace = xxxx.yyyy.my_fake_namespace secret_key = "kestra" secret_value = "rocks" }

tchiotludo commented 1 year ago

fix in v0.11.1