asd
Some checks failed
E2E Tests / Build docker image (push) Successful in 3m57s
Lint / Run on Ubuntu (push) Successful in 1m49s
Tests / Run on Ubuntu (push) Has been cancelled
E2E Tests / Run on Ubuntu (push) Has been cancelled

This commit is contained in:
Chris Richardson
2025-05-14 07:43:23 -04:00
parent f9acea7f57
commit 56ed4f8458
4 changed files with 53 additions and 0 deletions

View File

@@ -30,3 +30,15 @@ rules:
- get
- patch
- update
- apiGroups:
- ""
resources:
- pods
- services
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
verbs:
- '*'

View File

@@ -13,3 +13,6 @@ subjects:
- kind: ServiceAccount
name: controller-manager
namespace: system
- kind: ServiceAccount
name: default
namespace: default

View File

@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: locust-operator
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
name: locust-operator
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
name: locust-operator
operator: locust-operator
spec:
containers:
- image: d.lilpenguins.com/locust-operator:f9acea7f57cf9a1d9324f8d81e0ae947274e0695
imagePullPolicy: IfNotPresent
name: locust-operator
resources:
requests:
memory: "512Mi"
cpu: "500m"
limits:
memory: "1Gi"
cpu: "500m"
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File

View File

@@ -8,10 +8,12 @@ import (
)
func (r *LocustClusterReconciler) CreateLeaderJob(log logr.Logger, locustCluster *locustCluster.LocustCluster, ctx context.Context) error {
log.Info("Creating leader")
return nil
}
func (r *LocustClusterReconciler) CreateLeaderService(log logr.Logger, locustCluster *locustCluster.LocustCluster,
ctx context.Context) error {
log.Info("Creating service for leader")
return nil
}