Skip to content
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

ConfigMap in version "v1" cannot be handled as a ConfigMap: json: cannot unmarshal bool into Go struct field ConfigMap.data of type string #12

Open
4 tasks done
kaykhan opened this issue Jul 15, 2023 · 1 comment
Assignees

Comments

@kaykhan
Copy link

kaykhan commented Jul 15, 2023

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here (legacy) and here
  • I've tried installing latest charts and the issue still persists there
  • I'm running a supported version of the application & chart which is listed here

Describe the bug (actual behavior)

Deploying helm fails creating application with the following error:

 * ConfigMap in version "v1" cannot be handled as a ConfigMap: json: cannot unmarshal bool into Go struct field ConfigMap.data of type string

Expected behavior

Should deploy

Your installation details

  1. 0.7.2
  2. 0.7.2
resource "helm_release" "default" {
  name             = "kafka-ui"
  repository       = "https://provectus.github.io/kafka-ui-charts"
  chart            = "kafka-ui"
  version          = "0.7.2"
  namespace        = "kafka-ui"
  create_namespace = true

  set {
    name  = "envs.config.DYNAMIC_CONFIG_ENABLED"
    value = true
  }

  set {
    name  = "envs.config.AWS_ACCESS_KEY_ID"
    value = "<redacted>"
  }
  set {
    name  = "envs.config.AWS_SECRET_ACCESS_KEY"
    value = "<redacted>"
  }

  set {
    name  = "envs.config.KAFKA_CLUSTERS_0_NAME"
    value = "<redacted>"
  }

  set {
    name  = "envs.config.KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS"
    value = replace("<redacted>", ",", "\\,")
  }

  set {
    name  = "envs.config.KAFKA_CLUSTERS_0_PROPERTIES_SECURITY_PROTOCOL"
    value = "SASL_SSL"
  }

  set {
    name  = "envs.config.KAFKA_CLUSTERS_0_PROPERTIES_SASL_MECHANISM"
    value = "AWS_MSK_IAM"
  }

  set {
    name  = "envs.config.KAFKA_CLUSTERS_0_PROPERTIES_SASL_CLIENT_CALLBACK_HANDLER_CLASS"
    value = "software.amazon.msk.auth.iam.IAMClientCallbackHandler"
  }

  set {
    name  = "envs.config.KAFKA_CLUSTERS_0_PROPERTIES_SASL_JAAS_CONFIG"
    value = "software.amazon.msk.auth.iam.IAMLoginModule required;"
  }

}

Steps to reproduce

terraform apply

Screenshots

image

Logs

No response

Additional context

No response

@julian-perge
Copy link

All ConfigMaps data must be strings. You cannot put booleans in a ConfigMap: https://kubernetes.io/docs/concepts/configuration/configmap/#configmap-object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants