-
Notifications
You must be signed in to change notification settings - Fork 33
Description
for 2 of the checks i get an error. all the other checks run fine.
this one i can't even get a help screen to show anything throws this.
#check-kube-service-available.rb
Check failed to run: can't modify frozen String, ["/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:315:inbuild_option_arguments'", "/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:269:inblock (2 levels) in opt_parser'", "/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:268:ineach'", "/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:268:inblock in opt_parser'", "/usr/local/lib/ruby/2.5.0/optparse.rb:1062:ininitialize'", "/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:263:innew'", "/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:263:inopt_parser'", "/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:230:inparse_options'", "/usr/local/bundle/gems/sensu-plugin-4.0.0/lib/sensu-plugin/cli.rb:16:ininitialize'", "/usr/local/bundle/gems/sensu-plugins-kubernetes-5.0.1/lib/sensu-plugins-kubernetes/cli.rb:82:ininitialize'", "/usr/local/bundle/gems/sensu-plugin-4.0.0/lib/sensu-plugin/cli.rb:58:innew'", "/usr/local/bundle/gems/sensu-plugin-4.0.0/lib/sensu-plugin/cli.rb:58:inblock in class:CLI'"]
for this one i can get the help but once i pass in the url and token i get this.
#check-kube-nodes-ready.rb -s https://kubernetes.default.svc/api --token-file /var/run/secrets/kubernetes.io/serviceaccount/token
Check failed to run: can't modify frozen String, ["/usr/local/bundle/gems/sensu-plugins-kubernetes-5.0.1/bin/check-kube-nodes-ready.rb:78:inrescue in run'", "/usr/local/bundle/gems/sensu-plugins-kubernetes-5.0.1/bin/check-kube-nodes-ready.rb:60:inrun'", "/usr/local/bundle/gems/sensu-plugin-4.0.0/lib/sensu-plugin/cli.rb:59:in `block in class:CLI'"]
ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]