shell-operator icon indicating copy to clipboard operation
shell-operator copied to clipboard

Shell-operator is a tool for running event-driven scripts in a Kubernetes cluster

Results 123 shell-operator issues
Sort by recently updated
recently updated
newest added

_Originally posted by @nabokihms in https://github.com/flant/shell-operator/pull/239#discussion_r549278642_

Main issues with migration were discussed in [this](https://github.com/flant/shell-operator/pull/239#discussion_r581902510) thread.

While using binding contexts without specifying v1 version (`configVersion: v1`). ``` panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x12f8668] goroutine 42...

Addon-operator logs: ``` {"binding":"kubernetes","binding.name":"nodes","event.id":"eid","hook":"HHHHH","hook.type":"module","level":"info","module":"MMMMM","msg":"Module hook success","queue":"QQQQ","task.id":"tid","time":"2020-11-05T06:31:20Z","watchEvent":"Modified"} 2020-11-05 06:31:20.197816 I | http: superfluous response.WriteHeader call from github.com/prometheus/client_golang/prometheus/promhttp.(*responseWriterDelegator).WriteHeader (delegator.go:58) {"json line again"} ```

It would be nice if the shell-operator can call certain hooks when a Prometheus alert happens. The Prometheus Alertmanager has support for calling [webhooks](https://prometheus.io/docs/alerting/latest/configuration/#webhook_config). So the shell-operator could have an...

Following instructions here to debug a hook: https://github.com/flant/shell-operator/blob/master/RUNNING.md And looking at example using functions like this one: https://github.com/flant/shell-operator/blob/master/examples/003-common-library/hooks/hook.sh I shouldn't be able to run this example outside of a cluster...

> There is a myriad of map[string]string initialized and passed between layers. The upper-level code should know which labels to pass to the lower-level methods and lower-level has no access...

These binaries can simplify local testing and debugging hooks. See #193

Implement e2e tests.

enhancement