https://github.com/codemowers/operatorlib
Python library for building Kubernetes operators
https://github.com/codemowers/operatorlib
Last synced: 6 months ago
JSON representation
Python library for building Kubernetes operators
- Host: GitHub
- URL: https://github.com/codemowers/operatorlib
- Owner: codemowers
- License: mit
- Created: 2023-07-10T10:13:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-24T20:53:40.000Z (almost 2 years ago)
- Last Synced: 2024-08-24T21:46:03.909Z (almost 2 years ago)
- Language: Python
- Size: 438 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# operatorlib
This is Python library for building Kubernetes operators.
It addresses recurring issues in Kubernetes operator development such as
CRD, RBAC and deployment manifest generation,
stateful set instantiation,
PVC resizing,
secret generation and much more.
Refer to `samples/` directory to see how to use the library.
# Developing
Run `update-manifests.sh` to update Helm chart templates and Skaffold configs.
Before running Skaffold make sure dependencies are installed,
refer to each sample operator README.
To deploy and run:
```
find samples/ -name "*-crds.yaml" -exec kubectl apply -f {} \;
find samples/ -name "*-rbac.yaml" -exec kubectl apply -f {} \;
find samples/ -name "*-class.yaml" -exec kubectl apply -f {} \;
skaffold dev --build-concurrency=0
```
To wipe status conditions array:
```
for j in $(kubectl get redises.codemowers.cloud -o name); do
kubectl patch --type=merge --subresource=status $j -p '{"status":{"conditions":[]}}';
done
```