-
Notifications
You must be signed in to change notification settings - Fork 417
Closed
Labels
Description
Terraform, Provider, Kubernetes and Helm Versions
Terraform version: v1.10.4
Provider version: 3.0.0-pre1
Kubernetes version: v1.29.10+67d3387
Affected Resource(s)
- helm_release
Terraform Configuration Files
resource "helm_release" "kong" {
name = "kong"
namespace = var.namespace
repository = "https://charts.konghq.com"
chart = "ingress"
version = local.kong-helm-version
skip_crds = true
values = [
"${file("${path.module}/values.yaml")}"
]
set = [
{
name = "controller.containerSecurityContext.runAsUser"
value = null
},
{
name = "gateway.containerSecurityContext.runAsUser"
value = null
}
]
}Debug Output
│ Error: Missing Configuration for Required Attribute
│
│ with module.kong.helm_release.kong,
│ on ../../modules/terraform-module-kong-konnect/main.tf line 7, in resource "helm_release" "kong":
│ 7: resource "helm_release" "kong" {
│
│ Must set a configuration value for the set[0].value attribute as the provider has marked it as required.
│
│ Refer to the provider documentation or contact the provider developers for additional information about configurable attributes that are required.
╵
╷
│ Error: Missing Configuration for Required Attribute
│
│ with module.kong.helm_release.kong,
│ on ../../modules/terraform-module-kong-konnect/main.tf line 7, in resource "helm_release" "kong":
│ 7: resource "helm_release" "kong" {
│
│ Must set a configuration value for the set[1].value attribute as the provider has marked it as required.
│
│ Refer to the provider documentation or contact the provider developers for additional information about configurable attributes that are required.
Panic Output
Steps to Reproduce
terraform apply
Expected Behavior
helm_release should have rendered the template without errors and both fields (controller.containerSecurityContext.runAsUser and gateway.containerSecurityContext.runAsUser should be null.
Actual Behavior
helm_release fails with the error from the debug output
Important Factoids
References
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Reactions are currently unavailable