When trying to run the check-kube-pods-running.rb from the asset https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-kubernetes out of a pod with the following command:
/var/cache/sensu/sensu-agent/8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 # LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib ./bin/ruby ../b78f9395c15abd9762cc61cc34a1c27b536e95c0173f0fa7887ebad158e3ed4a7be4ed97bdd8a1df53371cdd2005fe8202e6080f
502a6476e0d51833efc13dd2/bin/check-kube-pods-running.rb --in-cluster
I get the following error back.
Does anybody have an idea what it is trying to tell me?
Check failed to run: can't modify frozen String, ["/var/cache/sensu/sensu-agent/b78f9395c15abd9762cc61cc34a1c27b536e95c0173f0fa7887ebad158e3ed4a7be4ed97bdd8a1df53371cdd2005fe8202e6080f502a6476e0d51833efc13dd2/lib/ruby/2.4.0/bundler/gems/sensu-plugins-kubernetes-167d4ef12ee4/bin/check-kube-pods-running.rb:139:in `rescue in run'", "/var/cache/sensu/sensu-agent/b78f9395c15abd9762cc61cc34a1c27b536e95c0173f0fa7887ebad158e3ed4a7be4ed97bdd8a1df53371cdd2005fe8202e6080f502a6476e0d51833efc13dd2/lib/ruby/2.4.0/bundler/gems/sensu-plugins-kubernetes-167d4ef12ee4/bin/check-kube-pods-running.rb:101:in `run'", "/var/cache/sensu/sensu-agent/b78f9395c15abd9762cc61cc34a1c27b536e95c0173f0fa7887ebad158e3ed4a7be4ed97bdd8a1df53371cdd2005fe8202e6080f502a6476e0d51833efc13dd2/lib/ruby/2.4.0/gems/sensu-plugin-4.0.0/lib/sensu-plugin/cli.rb:59:in `block in <class:CLI>'"]
/var/cache/sensu/sensu-agent/8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250 # command terminated with exit code 3