Skip to content

Commit b8d4a04

Browse files
author
eliranb
committed
Update CRDs and example files to replace Deployment and StatefulSet references with Workload and WorkloadType, enhancing clarity and consistency in the LightrunJavaAgent configuration.
1 parent 4a18f67 commit b8d4a04

File tree

4 files changed

+80
-48
lines changed

4 files changed

+80
-48
lines changed

charts/lightrun-operator/crds/lightrunjavaagent_crd.yaml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ spec:
1616
scope: Namespaced
1717
versions:
1818
- additionalPrinterColumns:
19-
- description: Deployment name
20-
jsonPath: .spec.deploymentName
21-
name: Deployment
19+
- description: Workload name
20+
jsonPath: .spec.workloadName
21+
name: Workload
2222
type: string
23-
- description: StatefulSet name
24-
jsonPath: .spec.statefulSetName
25-
name: StatefulSet
23+
- description: Workload type
24+
jsonPath: .spec.workloadType
25+
name: Type
2626
type: string
27-
- description: Status of Deployment Reconciliation
28-
jsonPath: .status.deploymentStatus
27+
- description: Status of Workload Reconciliation
28+
jsonPath: .status.workloadStatus
2929
name: Status
3030
type: string
3131
- jsonPath: .metadata.creationTimestamp
@@ -118,8 +118,16 @@ spec:
118118
Lightrun server hostname that will be used for downloading an agent
119119
Key and company id in the secret has to be taken from this server as well
120120
type: string
121-
statefulSetName:
122-
description: Name of the StatefulSet that will be patched
121+
workloadName:
122+
description: Name of the Workload that will be patched e.g. Deployment,
123+
StatefulSet
124+
type: string
125+
workloadType:
126+
description: Type of the workload that will be patched supported values
127+
are Deployment, StatefulSet
128+
enum:
129+
- Deployment
130+
- StatefulSet
123131
type: string
124132
required:
125133
- agentEnvVarName
@@ -201,11 +209,11 @@ spec:
201209
- type
202210
type: object
203211
type: array
204-
deploymentStatus:
205-
type: string
206212
lastScheduleTime:
207213
format: date-time
208214
type: string
215+
workloadStatus:
216+
type: string
209217
type: object
210218
type: object
211219
served: true

config/crd/bases/agents.lightrun.com_lightrunjavaagents.yaml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ spec:
1717
scope: Namespaced
1818
versions:
1919
- additionalPrinterColumns:
20-
- description: Deployment name
21-
jsonPath: .spec.deploymentName
22-
name: Deployment
20+
- description: Workload name
21+
jsonPath: .spec.workloadName
22+
name: Workload
2323
type: string
24-
- description: StatefulSet name
25-
jsonPath: .spec.statefulSetName
26-
name: StatefulSet
24+
- description: Workload type
25+
jsonPath: .spec.workloadType
26+
name: Type
2727
type: string
28-
- description: Status of Deployment Reconciliation
29-
jsonPath: .status.deploymentStatus
28+
- description: Status of Workload Reconciliation
29+
jsonPath: .status.workloadStatus
3030
name: Status
3131
type: string
3232
- jsonPath: .metadata.creationTimestamp
@@ -119,8 +119,16 @@ spec:
119119
Lightrun server hostname that will be used for downloading an agent
120120
Key and company id in the secret has to be taken from this server as well
121121
type: string
122-
statefulSetName:
123-
description: Name of the StatefulSet that will be patched
122+
workloadName:
123+
description: Name of the Workload that will be patched e.g. Deployment,
124+
StatefulSet
125+
type: string
126+
workloadType:
127+
description: Type of the workload that will be patched supported values
128+
are Deployment, StatefulSet
129+
enum:
130+
- Deployment
131+
- StatefulSet
124132
type: string
125133
required:
126134
- agentEnvVarName
@@ -202,11 +210,11 @@ spec:
202210
- type
203211
type: object
204212
type: array
205-
deploymentStatus:
206-
type: string
207213
lastScheduleTime:
208214
format: date-time
209215
type: string
216+
workloadStatus:
217+
type: string
210218
type: object
211219
type: object
212220
served: true

config/samples/operator.yaml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ spec:
2828
scope: Namespaced
2929
versions:
3030
- additionalPrinterColumns:
31-
- description: Deployment name
32-
jsonPath: .spec.deploymentName
33-
name: Deployment
31+
- description: Workload name
32+
jsonPath: .spec.workloadName
33+
name: Workload
3434
type: string
35-
- description: StatefulSet name
36-
jsonPath: .spec.statefulSetName
37-
name: StatefulSet
35+
- description: Workload type
36+
jsonPath: .spec.workloadType
37+
name: Type
3838
type: string
39-
- description: Status of Deployment Reconciliation
40-
jsonPath: .status.deploymentStatus
39+
- description: Status of Workload Reconciliation
40+
jsonPath: .status.workloadStatus
4141
name: Status
4242
type: string
4343
- jsonPath: .metadata.creationTimestamp
@@ -130,8 +130,16 @@ spec:
130130
Lightrun server hostname that will be used for downloading an agent
131131
Key and company id in the secret has to be taken from this server as well
132132
type: string
133-
statefulSetName:
134-
description: Name of the StatefulSet that will be patched
133+
workloadName:
134+
description: Name of the Workload that will be patched e.g. Deployment,
135+
StatefulSet
136+
type: string
137+
workloadType:
138+
description: Type of the workload that will be patched supported values
139+
are Deployment, StatefulSet
140+
enum:
141+
- Deployment
142+
- StatefulSet
135143
type: string
136144
required:
137145
- agentEnvVarName
@@ -213,11 +221,11 @@ spec:
213221
- type
214222
type: object
215223
type: array
216-
deploymentStatus:
217-
type: string
218224
lastScheduleTime:
219225
format: date-time
220226
type: string
227+
workloadStatus:
228+
type: string
221229
type: object
222230
type: object
223231
served: true

examples/operator.yaml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ spec:
1818
scope: Namespaced
1919
versions:
2020
- additionalPrinterColumns:
21-
- description: Deployment name
22-
jsonPath: .spec.deploymentName
23-
name: Deployment
21+
- description: Workload name
22+
jsonPath: .spec.workloadName
23+
name: Workload
2424
type: string
25-
- description: StatefulSet name
26-
jsonPath: .spec.statefulSetName
27-
name: StatefulSet
25+
- description: Workload type
26+
jsonPath: .spec.workloadType
27+
name: Type
2828
type: string
29-
- description: Status of Deployment Reconciliation
30-
jsonPath: .status.deploymentStatus
29+
- description: Status of Workload Reconciliation
30+
jsonPath: .status.workloadStatus
3131
name: Status
3232
type: string
3333
- jsonPath: .metadata.creationTimestamp
@@ -120,8 +120,16 @@ spec:
120120
Lightrun server hostname that will be used for downloading an agent
121121
Key and company id in the secret has to be taken from this server as well
122122
type: string
123-
statefulSetName:
124-
description: Name of the StatefulSet that will be patched
123+
workloadName:
124+
description: Name of the Workload that will be patched e.g. Deployment,
125+
StatefulSet
126+
type: string
127+
workloadType:
128+
description: Type of the workload that will be patched supported values
129+
are Deployment, StatefulSet
130+
enum:
131+
- Deployment
132+
- StatefulSet
125133
type: string
126134
required:
127135
- agentEnvVarName
@@ -203,11 +211,11 @@ spec:
203211
- type
204212
type: object
205213
type: array
206-
deploymentStatus:
207-
type: string
208214
lastScheduleTime:
209215
format: date-time
210216
type: string
217+
workloadStatus:
218+
type: string
211219
type: object
212220
type: object
213221
served: true

0 commit comments

Comments
 (0)