shell-operator v1.0.0-beta.9
Changelog
hooks
- feat: allow to send metrics from hooks #165
- feat: executeHookOnSynchronization for kubernetes binding #164
- feat: type:Schedule for schedule bindings #156
- feat: combine binding context for sequence of HookRun tasks #140 #144 #149 #150
- feat: contexts grouping, type:Group #140 #150
- watchEvent → executeHookOnEvent #139
- feat: watchEvent is an alias of executeHookOnEvent
- feat: executeHookOnEvent supports empty array to not execute a hook on events
- fix: update libjq-go: better compile performance #163
- fix: start of schedule bindings without kubernetes bindings
- fix: lock for GetExistingObjects #136
examples
kube_client, kube_event_manager
- fix: proper handle of error from ServerPreferredResources #142
- fix: kube_event_manager: support for DeletedFinalStateUnknown #153
frameworks
debug
- queue dump
generator
- Binding context generator ChangeState method refactoring (#135)
build
documentation
- proofreading #133
- group field #151
- executeHookOnEvent, executeHookOnSynchronization #139 #164
- custom metrics #165
Installation and usage
Create image with your hooks added into /hooks directory:
Dockerfile
FROM flant/shell-operator:v1.0.0-beta.9
ADD pods-hook.sh /hooks
Push to registry, create rbac and create a Pod or Deployment:
apiVersion: v1
kind: Pod
metadata:
name: shell-operator
spec:
containers:
- name: shell-operator
image: registry.mycompany.com/shell-operator:monitor-pods
imagePullPolicy: Always
serviceAccountName: monitor-pods-acc
Check README for more information and /examples for inspiration.