Skip to content

container: provider cannot remove secrets #2950

@Codelax

Description

@Codelax

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Affected Resource(s)

  • scaleway_container_namespace
  • scaleway_container
  • scaleway_function_namespace
  • scaleway_function

Terraform Configuration Files

From:

resource scaleway_container_namespace "namespace" {
  secret_environment_variables = {
    foo: "bar"
  }
}

To:

resource scaleway_container_namespace "namespace" {
  secret_environment_variables = {
    foo2: "bar"
  }
}

Expected Behavior

The first secret foo should be removed and the new secret foo2 should be created. The issue is the same when deleting the secret map.

Actual Behavior

The secret foo2 is created and the old one is not deleted

Steps to Reproduce

  1. terraform apply

Important Factoids

The type of a Secret is:

type Secret struct {
	Key string `json:"key"`

	Value *string `json:"value"`
}

To remove a secret, you must send the secret with a nil Value

Metadata

Metadata

Assignees

Labels

bugcontainerContainer issues, bugs and feature requestsfunctionServerless function issues, bugs and feature requestspriority:highestBugs filled by customers, security issues

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions