Skip to content

shell-operator v1.0.0-beta.9

Compare
Choose a tag to compare
@diafour diafour released this 03 Apr 11:46
23e281c

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

  • fix python example #154
  • use alpine 3.11 #157

kube_client, kube_event_manager

  • fix: proper handle of error from ServerPreferredResources #142
  • fix: kube_event_manager: support for DeletedFinalStateUnknown #153

frameworks

  • [shell framework] sed without PCRE-shortcuts #152
  • [shell framework] hook handler with Groups #160

debug

  • queue dump
    • feat: fail description and count for failed tasks in queue dump #134
    • task description in queue dump: show binding, group, hook name #150
    • queue status: run/sleep after fail/waiting seconds #150

generator

  • Binding context generator ChangeState method refactoring (#135)

build

  • update kubectl #141
  • add alpine-3.11 build #146

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.