Repository navigation
Expand file tree
/
Copy pathoperator.solo.hiero.org_helmcapsules.yaml
More file actions
385 lines (385 loc) · 17.5 KB
/
Copy pathoperator.solo.hiero.org_helmcapsules.yaml
File metadata and controls
385 lines (385 loc) · 17.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.21.0
name: helmcapsules.operator.solo.hiero.org
spec:
group: operator.solo.hiero.org
names:
kind: HelmCapsule
listKind: HelmCapsuleList
plural: helmcapsules
shortNames:
- helmcap
singular: helmcapsule
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .spec.component
name: Component
type: string
- jsonPath: .spec.chart.chart
name: Chart
type: string
- jsonPath: .spec.chart.version
name: Version
type: string
- jsonPath: .status.phase
name: Phase
type: string
- jsonPath: .status.releaseStatus
name: HelmStatus
type: string
- jsonPath: .status.releaseVersion
name: Release
type: integer
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: |-
HelmCapsule manages a Helm release as part of a solo-operator network.
It supports both generic chart deployments and first-class Hedera ecosystem
components (mirror, relay, explorer, block-node) with automatic value
injection from the network topology.
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: HelmCapsuleSpec defines the desired state of a HelmCapsule.
properties:
atomic:
description: |-
Atomic rolls back the release on failure (implies Wait=true).
Helm default: false.
type: boolean
chart:
description: Chart defines the Helm chart source to install.
properties:
chart:
description: |-
Chart is the name of the chart within the repository.
Example: "hedera-mirror"
minLength: 1
type: string
credentialsRef:
description: |-
CredentialsRef names a Secret in the same namespace as the HelmCapsule
that contains chart repository credentials.
The Secret must have "username" and "password" string keys.
Required for private chart repositories; omit for public repos.
properties:
name:
default: ""
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
type: object
x-kubernetes-map-type: atomic
repo:
description: |-
Repo is the chart repository URL.
Use the oci:// scheme for OCI registries (recommended).
For https:// repos the operator constructs a direct .tgz URL in the form
"<repo>/<chart>-<version>.tgz" — this works for repos that serve tarballs
at a predictable path but does NOT support index-based Helm repos
(those require `helm repo add` which is not performed by the operator).
Example: "oci://ghcr.io/hashgraph/solo-charts"
minLength: 1
pattern: ^(oci|https)://
type: string
version:
description: |-
Version is the chart version to install (semver).
Example: "0.129.1"
minLength: 1
pattern: ^v?[0-9]+\.[0-9]+\.[0-9]
type: string
required:
- chart
- repo
- version
type: object
cleanupOnFail:
description: |-
CleanupOnFail deletes newly-created resources when an upgrade fails.
Helm default: false.
type: boolean
component:
description: |-
Component identifies a known Hedera ecosystem component.
When set together with OrbitRef the operator auto-injects network-topology
values before any ValuesFrom or Values entries are merged.
See the HelmComponent type documentation for the full list of injected
values per component.
enum:
- mirror
- explorer
- relay
- relay-websocket
- block-node
type: string
disableHooks:
description: |-
DisableHooks skips running pre/post Helm hooks during install and upgrade.
Helm default: false.
type: boolean
keepHistory:
description: |-
KeepHistory preserves Helm release history when the HelmCapsule is deleted.
Equivalent to helm uninstall --keep-history.
Helm default: false.
type: boolean
maxAttempts:
description: |-
MaxAttempts caps failed install/upgrade attempts per desired state; 0 (default) retries indefinitely.
Reset by changing the chart/values or the operator.solo.hiero.org/retry annotation.
minimum: 0
type: integer
maxHistory:
description: |-
MaxHistory limits the number of revisions Helm keeps for this release.
0 means unlimited. Helm CLI default: 10.
minimum: 0
type: integer
orbitRef:
description: |-
OrbitRef references the cluster-scoped Orbit CR by name.
The Orbit and its ConsensusCapsules are the source of auto-injected values
when Component is set.
properties:
name:
default: ""
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
type: object
x-kubernetes-map-type: atomic
releaseName:
description: |-
ReleaseName overrides the Helm release name.
Defaults to the HelmCapsule's metadata.name when omitted.
minLength: 1
type: string
timeout:
description: |-
Timeout for Helm install/upgrade operations.
Defaults to 5m (same as the Helm CLI default).
type: string
values:
description: |-
Values are inline, user-supplied Helm value overrides serialised as JSON/YAML.
These are merged last and take the highest priority, overriding both
auto-injected values and anything from ValuesFrom.
x-kubernetes-preserve-unknown-fields: true
valuesFrom:
description: |-
ValuesFrom loads Helm values from ConfigMaps or Secrets in the same namespace.
Multiple sources are merged in the order listed. Values from later entries
override earlier ones. All ValuesFrom values are overridden by the inline Values.
items:
description: HelmValuesReference points to a ConfigMap or Secret
key that contains a Helm values YAML.
properties:
kind:
description: Kind of the values source.
enum:
- ConfigMap
- Secret
type: string
name:
description: Name of the ConfigMap or Secret in the same namespace
as the HelmCapsule.
type: string
optional:
description: |-
Optional silently skips this reference if the ConfigMap or Secret does not
exist. When false (the default) a missing source causes reconciliation to fail.
type: boolean
valuesKey:
description: |-
ValuesKey is the key within the ConfigMap or Secret whose value is a Helm
values YAML document. Defaults to "values.yaml" when omitted.
minLength: 1
type: string
required:
- kind
- name
type: object
type: array
valuesMode:
default: Reset
description: |-
ValuesMode controls how upgrades treat the previous release's values.
Reset (default) applies only the values computed from this spec.
Reuse is helm --reuse-values: values removed from this spec persist in the release.
ResetThenReuse is helm --reset-then-reuse-values.
Ignored on first install. Changing only this field does not trigger an upgrade;
it applies on the next one.
enum:
- Reset
- Reuse
- ResetThenReuse
type: string
wait:
description: |-
Wait waits until all resources are ready before marking the release successful.
Helm default: false.
type: boolean
required:
- chart
- orbitRef
type: object
x-kubernetes-validations:
- message: orbitRef is required and its name must not be empty
rule: has(self.orbitRef) && has(self.orbitRef.name) && size(self.orbitRef.name)
> 0
status:
description: HelmCapsuleStatus defines the observed state of a HelmCapsule.
properties:
conditions:
description: |-
Conditions holds the latest observations of the HelmCapsule state.
Ready=True means the release is deployed and up-to-date.
Ready=False carries a Reason: ChartFetchFailed, HelmFailed, ValuesBuildFailed, or RetriesExhausted.
items:
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
lastTransitionTime is the last time the condition transitioned from one status to another.
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
format: date-time
type: string
message:
description: |-
message is a human readable message indicating details about the transition.
This may be an empty string.
maxLength: 32768
type: string
observedGeneration:
description: |-
observedGeneration represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
format: int64
minimum: 0
type: integer
reason:
description: |-
reason contains a programmatic identifier indicating the reason for the condition's last transition.
Producers of specific condition types may define expected values and meanings for this field,
and whether the values are considered a guaranteed API.
The value should be a CamelCase string.
This field may not be empty.
maxLength: 1024
minLength: 1
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
type: string
status:
description: status of the condition, one of True, False, Unknown.
enum:
- "True"
- "False"
- Unknown
type: string
type:
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
required:
- lastTransitionTime
- message
- reason
- status
- type
type: object
type: array
failedAttempts:
description: FailedAttempts counts consecutive failures for FailedHash.
type: integer
failedHash:
description: FailedHash is the desired state FailedAttempts counts
against.
type: string
installedChart:
description: |-
InstalledChart is the chart name + version string of the currently deployed release,
e.g. "hedera-mirror-0.129.1".
type: string
lastFailure:
description: LastFailure is the most recent install/upgrade error.
type: string
observedGeneration:
description: ObservedGeneration is the .metadata.generation last processed
by the controller.
format: int64
type: integer
outputs:
additionalProperties:
type: string
description: Outputs are component-specific key-values for consumers
(see HelmComponent).
type: object
phase:
description: Phase is the current lifecycle phase of the Helm release.
enum:
- Pending
- Running
- Succeeded
- Failed
- Unknown
type: string
releaseStatus:
description: |-
ReleaseStatus is the Helm release status as reported by Helm after the last
install or upgrade (e.g. "deployed", "failed", "pending-install").
type: string
releaseVersion:
description: ReleaseVersion is the Helm revision number currently
deployed (increments on each upgrade).
type: integer
valuesHash:
description: |-
ValuesHash is a SHA-256 digest of the chart spec and the fully-merged values
map at the time of the last successful install or upgrade.
The controller compares this against the current desired state on every
reconcile; a mismatch triggers helm upgrade. This covers both chart version
changes and values changes (inline Values, ValuesFrom sources, or
auto-injected topology values).
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}