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 KubeArmor helm chart is not properly quoted #1794

Closed
tesla59 opened this issue Jul 3, 2024 · 0 comments · Fixed by #1795
Closed

ConfigMap in KubeArmor helm chart is not properly quoted #1794

tesla59 opened this issue Jul 3, 2024 · 0 comments · Fixed by #1795
Labels
bug Something isn't working

Comments

@tesla59
Copy link
Contributor

tesla59 commented Jul 3, 2024

Bug Report

General Information

  • Environment description (GKE, VM-Kubeadm, vagrant-dev-env, minikube, microk8s, ...): k3s
  • Kernel version (run uname -a): Linux thunderbird 6.6.36-1-lts #1 SMP PREEMPT_DYNAMIC Thu, 27 Jun 2024 12:26:27 +0000 x86_64 GNU/Linux
  • Orchestration system version in use (e.g. kubectl version, ...)
Client Version: v1.30.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.6+k3s1
  • Helm Version: version.BuildInfo{Version:"v3.15.2", GitCommit:"1a500d5625419a524fdae4b33de351cc4f58ec35", GitTreeState:"clean", GoVersion:"go1.22.4"}
  • Link to relevant artifacts (policies, deployments scripts, ...): NA
  • Target containers/pods: NA

To Reproduce

  1. Setup a k8s cluster
  2. Run the command: helm upgrade --install kubearmor kubearmor/kubearmor -n kubearmor --create-namespace
  3. Error occurs
Release "kubearmor" does not exist. Installing it now.
Error: 1 error occurred:
        * 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

KubeArmor Helm chart is deployed without any error

Release "kubearmor" does not exist. Installing it now.
NAME: kubearmor
LAST DEPLOYED: Wed Jul  3 13:09:24 2024
NAMESPACE: kubearmor
STATUS: deployed
REVISION: 1
TEST SUITE: None

Why is this happening?
ConfigMaps are supposed to handle map[string]string. In a recent merge, more field were added such as alertThrottling, maxAlertPerSec, throttleSec. The value for these fields are not string but boolean and ints. Hence the ConfigMap cannot be parsed

@tesla59 tesla59 added the bug Something isn't working label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant