Skip to content

Commit e9b798a

Browse files
author
eliranb
committed
Phase 1: update chart and config examples
1 parent 65d209c commit e9b798a

File tree

4 files changed

+60
-15
lines changed

4 files changed

+60
-15
lines changed

charts/lightrun-operator/crds/lightrunjavaagent_crd.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ spec:
2020
jsonPath: .spec.deploymentName
2121
name: Deployment
2222
type: string
23-
- description: Status of Deployment Reconciliation
24-
jsonPath: .status.deploymentStatus
23+
- description: StatefulSet name
24+
jsonPath: .spec.statefulSetName
25+
name: StatefulSet
26+
type: string
27+
- description: Status of Workload Reconciliation
28+
jsonPath: .status.workloadStatus
2529
name: Status
2630
type: string
2731
- jsonPath: .metadata.creationTimestamp
@@ -114,11 +118,13 @@ spec:
114118
Lightrun server hostname that will be used for downloading an agent
115119
Key and company id in the secret has to be taken from this server as well
116120
type: string
121+
statefulSetName:
122+
description: Name of the StatefulSet that will be patched
123+
type: string
117124
required:
118125
- agentEnvVarName
119126
- agentTags
120127
- containerSelector
121-
- deploymentName
122128
- initContainer
123129
- secretName
124130
- serverHostname
@@ -195,11 +201,11 @@ spec:
195201
- type
196202
type: object
197203
type: array
198-
deploymentStatus:
199-
type: string
200204
lastScheduleTime:
201205
format: date-time
202206
type: string
207+
workloadStatus:
208+
type: string
203209
type: object
204210
type: object
205211
served: true

charts/lightrun-operator/generated/rbac_manager_rules.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@
3333
- list
3434
- patch
3535
- watch
36+
- apiGroups:
37+
- apps
38+
resources:
39+
- statefulsets
40+
verbs:
41+
- get
42+
- list
43+
- patch
44+
- watch
3645
- apiGroups:
3746
- ""
3847
resources:

config/samples/operator.yaml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ spec:
3232
jsonPath: .spec.deploymentName
3333
name: Deployment
3434
type: string
35-
- description: Status of Deployment Reconciliation
36-
jsonPath: .status.deploymentStatus
35+
- description: StatefulSet name
36+
jsonPath: .spec.statefulSetName
37+
name: StatefulSet
38+
type: string
39+
- description: Status of Workload Reconciliation
40+
jsonPath: .status.workloadStatus
3741
name: Status
3842
type: string
3943
- jsonPath: .metadata.creationTimestamp
@@ -126,11 +130,13 @@ spec:
126130
Lightrun server hostname that will be used for downloading an agent
127131
Key and company id in the secret has to be taken from this server as well
128132
type: string
133+
statefulSetName:
134+
description: Name of the StatefulSet that will be patched
135+
type: string
129136
required:
130137
- agentEnvVarName
131138
- agentTags
132139
- containerSelector
133-
- deploymentName
134140
- initContainer
135141
- secretName
136142
- serverHostname
@@ -207,11 +213,11 @@ spec:
207213
- type
208214
type: object
209215
type: array
210-
deploymentStatus:
211-
type: string
212216
lastScheduleTime:
213217
format: date-time
214218
type: string
219+
workloadStatus:
220+
type: string
215221
type: object
216222
type: object
217223
served: true
@@ -315,6 +321,15 @@ rules:
315321
- list
316322
- patch
317323
- watch
324+
- apiGroups:
325+
- apps
326+
resources:
327+
- statefulsets
328+
verbs:
329+
- get
330+
- list
331+
- patch
332+
- watch
318333
- apiGroups:
319334
- ""
320335
resources:

examples/operator.yaml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@ spec:
2222
jsonPath: .spec.deploymentName
2323
name: Deployment
2424
type: string
25-
- description: Status of Deployment Reconciliation
26-
jsonPath: .status.deploymentStatus
25+
- description: StatefulSet name
26+
jsonPath: .spec.statefulSetName
27+
name: StatefulSet
28+
type: string
29+
- description: Status of Workload Reconciliation
30+
jsonPath: .status.workloadStatus
2731
name: Status
2832
type: string
2933
- jsonPath: .metadata.creationTimestamp
@@ -116,11 +120,13 @@ spec:
116120
Lightrun server hostname that will be used for downloading an agent
117121
Key and company id in the secret has to be taken from this server as well
118122
type: string
123+
statefulSetName:
124+
description: Name of the StatefulSet that will be patched
125+
type: string
119126
required:
120127
- agentEnvVarName
121128
- agentTags
122129
- containerSelector
123-
- deploymentName
124130
- initContainer
125131
- secretName
126132
- serverHostname
@@ -197,11 +203,11 @@ spec:
197203
- type
198204
type: object
199205
type: array
200-
deploymentStatus:
201-
type: string
202206
lastScheduleTime:
203207
format: date-time
204208
type: string
209+
workloadStatus:
210+
type: string
205211
type: object
206212
type: object
207213
served: true
@@ -267,6 +273,15 @@ rules:
267273
- list
268274
- patch
269275
- watch
276+
- apiGroups:
277+
- apps
278+
resources:
279+
- statefulsets
280+
verbs:
281+
- get
282+
- list
283+
- patch
284+
- watch
270285
- apiGroups:
271286
- ""
272287
resources:

0 commit comments

Comments
 (0)