Skip to content

[Bug]: Label containing slash ("/") returns Bad Request #471

@casperdekeyser

Description

@casperdekeyser

Current Behavior

I'm trying to update a label on the SKS cluster node pool via Terraform. A label containing a slash ("/") returns a bad request.

Examples:

  • key: test, value: test --> OK
  • key: test, value: test/test --> BAD REQUEST

Terraform command output:

Terraform will perform the following actions:

  # module.sks_cluster["itops-test"].exoscale_sks_nodepool.sks_nodepools["workers"] will be updated in-place
  ~ resource "exoscale_sks_nodepool" "sks_nodepools" {
        id                      = "2c07093a-ac9e-4af3-95ef-ba61a5654a74"
      ~ labels                  = {
          ~ "managed_uptime" = "standard-test" -> "standard/test"
        }
        name                    = "itops-test-workers"
        # (16 unchanged attributes hidden)
    }

Error from Terraform provider:

╷
│ Error: UpdateSKSNodepool: http response: Bad Request: bad request
│
│   with module.sks_cluster["itops-test"].exoscale_sks_nodepool.sks_nodepools["workers"],
│   on modules/sks_cluster/main.tf line 184, in resource "exoscale_sks_nodepool" "sks_nodepools":
│  184: resource "exoscale_sks_nodepool" "sks_nodepools" {
│
╵

Expected Behavior

Via the Exoscale Portal, I am able to add labels which have a slash ("/") in their value. I expect this to also work via Terraform.

Steps To Reproduce

No response

Provider Version

0.67.1

Terraform Version

1.13.5

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions