cruise-automation / isopod

An expressive DSL and framework for Kubernetes configuration without YAML
Apache License 2.0
482 stars 32 forks source link

Fix configmap too large error #66

Closed jonnylangefeld closed 4 years ago

jonnylangefeld commented 4 years ago

isopod stores every applied addon as configmap for auditing. However for large addons an error was thrown, because the max size of a configmap is limited by etcd to 1MB

This fix catches the error and gives the user notice that the configmap couldn't be stored, but the rollout is still live.

Example output:

$ isopod --context cluster=kind-kind
-kubeconfig=/tmp/kind-kubeconfig install $(pwd)/local/testenv/main.ipd
Current cluster: ("kind-kind")
Beginning rollout [rollout-bs7hc9p8d3b6d3h91ou0] installation...
 Installing kafka... done
Addon not stored in configmap because it is larger than the maximum of 1 MB ( 1.9 MB )
Rollout [rollout-bs7hc9p8d3b6d3h91ou0] is live!

Fix #65