https://github.com/bartvanbenthem/cdbootstrap-operator
A test project to evaluate the effectiveness of Rust and the Kube-rs framework for developing Kubernetes Operators.
https://github.com/bartvanbenthem/cdbootstrap-operator
ci-cd-automation integration kube-rs kubernetes operator rust
Last synced: 5 months ago
JSON representation
A test project to evaluate the effectiveness of Rust and the Kube-rs framework for developing Kubernetes Operators.
- Host: GitHub
- URL: https://github.com/bartvanbenthem/cdbootstrap-operator
- Owner: bartvanbenthem
- Created: 2024-01-05T09:26:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-12T07:23:50.000Z (about 1 year ago)
- Last Synced: 2025-06-12T08:31:37.841Z (about 1 year ago)
- Topics: ci-cd-automation, integration, kube-rs, kubernetes, operator, rust
- Language: Rust
- Homepage:
- Size: 501 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cdbootstrap operator
A test project to evaluate the effectiveness of Rust and the Kube-rs framework for developing Kubernetes Operators.
```bash
# Create CDBootstrap CRD
kubectl create -f config/crd/cdbootstraps.cndev.nl.yaml
```
```bash
# Run the Operator
KUBECONFIG=~/.kube/k3s.yaml
cargo fmt
cargo run
```
```bash
# apply CDBootstrap sample
kubectl apply -f config/samples/cdbootstrap-example.yaml
```
```bash
# Inject Token in Agent secret
export EPAT=$(echo "" | base64)
kubectl patch secret test-bootstrap -p '{"data":{"AZP_TOKEN": "'"$EPAT"'"}}'
# restart pods
kubectl scale deploy test-bootstrap --replicas=0 && kubectl scale deploy test-bootstrap --replicas=2
```