add logging to the operator
Some checks failed
Build images / Run e2e tests (push) Failing after 1m57s
Build images / Run lint test (push) Failing after 7m27s
Lint / Run on Ubuntu (push) Failing after 6m47s
Build images / Run unit test (push) Failing after 8m53s
Build images / Build docker image (push) Has been skipped
E2E Tests / Run on Ubuntu (push) Failing after 1m50s
Tests / Run on Ubuntu (push) Failing after 3m1s

add logging
This commit is contained in:
Chris Richardson
2025-07-02 12:48:45 -04:00
parent d9a945efd4
commit 4d9663fe60
7 changed files with 719 additions and 31 deletions

View File

@@ -37,12 +37,167 @@ spec:
metadata:
type: object
spec:
description: LocustClusterSpec defines the desired state of LocustCluster.
description: LocustClusterSpec defines the desired state of LocustCluster
properties:
foo:
description: Foo is an example field of LocustCluster. Edit locustcluster_types.go
to remove/update
type: string
infrastructure:
items:
properties:
endpoint:
type: string
prometheusEndpoint:
type: string
prometheusJobName:
type: string
prometheusPort:
type: integer
required:
- endpoint
type: object
type: array
leader:
properties:
download:
properties:
bucket:
type: string
filename:
type: string
required:
- bucket
- filename
type: object
image:
type: string
leaderFile:
type: string
priorityClass:
type: string
resources:
properties:
maxCpu:
type: string
maxMem:
type: string
minCpu:
type: string
minMem:
type: string
type: object
type: object
metrics:
properties:
mosaic:
properties:
grafanaEndpoint:
type: string
groupEmail:
type: string
mtls:
type: boolean
nameSpace:
type: string
prometheusTag:
type: string
publishing_endpoint:
type: string
workSpace:
type: string
required:
- groupEmail
- nameSpace
- prometheusTag
- workSpace
type: object
type: object
secrets:
items:
properties:
secretKeys:
items:
properties:
secretKey:
type: string
required:
- secretKey
type: object
type: array
secretName:
type: string
required:
- secretKeys
- secretName
type: object
type: array
worker:
properties:
clients:
type: integer
hatchRate:
type: integer
nodes:
type: integer
priorityClass:
type: string
resources:
properties:
maxCpu:
type: string
maxMem:
type: string
minCpu:
type: string
minMem:
type: string
type: object
scenarioName:
type: string
testContainer:
type: string
testLanguage:
type: string
testPath:
type: string
tests:
items:
properties:
env:
items:
properties:
name:
type: string
value:
type: string
required:
- name
- value
type: object
type: array
runTime:
type: string
testCommand:
items:
type: string
type: array
testName:
type: string
required:
- runTime
- testName
type: object
type: array
required:
- clients
- hatchRate
- nodes
- scenarioName
- testContainer
- testLanguage
- testPath
- tests
type: object
required:
- metrics
- worker
type: object
status:
description: LocustClusterStatus defines the observed state of LocustCluster.

View File

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