eventstore-user-operator

module
v0.0.0-...-0df0f2d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2019 License: MIT

README

Event Store User Operator

The Event Store user operator creates Event Store users according to EventStoreUser resources.

apiVersion: josefbrandl.com/v1
kind: EventStoreUser
metadata:
  name: my-app
spec:
  eventStore: my-eventstore
  groups:
    - foo
    - bar
  • After the my-app EventStoreUser resource is created, the operator will:
    • Create a new user on the Event Store specified by spec.eventStore and assign it the user groups specified in spec.groups
    • Create a my-app-eventstore-user secret with a username and password field and put it in the same namespace
  • If the spec.groups array on the EventStoreUser resource is updated on, the operator will update the user's groups on the Event Store.
  • If the EventStoreUser resource is deleted, the operator will delete the user from the Event Store
  • If the secret is deleted, the operator will reset the password of the user on the Event Store and create a new secret

Note: The spec.eventStore field should be considered immutable. Changing it, won't properly delete the user from the old Event Store.

The Event Store user operator is configured via the /etc/eventstore-user-operator/config/config.yaml:

eventStores:
  - name: my-eventstore
    url: http://my-eventstore.my-eventstore.svc.cluster.local
  • The name field defines the name under which EventStoreUser resources can reference the Event Store via their spec.eventStore field.
  • The url should point to the HTTP endpoint of the Event Store (usually port 2113 on the Event Store container)

For each Event Store, the operator expects a username and password file under /etc/eventstore-user-operator/eventstore-credentials/<eventstore-name>/.

Directories

Path Synopsis
cmd
manager command
pkg
apis/josefbrandl
Package josefbrandl contains josefbrandl API versions.
Package josefbrandl contains josefbrandl API versions.
apis/josefbrandl/v1
Package v1 contains API Schema definitions for the josefbrandl v1 API group +k8s:deepcopy-gen=package,register +groupName=josefbrandl.com
Package v1 contains API Schema definitions for the josefbrandl v1 API group +k8s:deepcopy-gen=package,register +groupName=josefbrandl.com

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL