-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
ApprovalTest.generate_withValidCrd_shouldGeneratePojos.testAkkaMicroservicesCrd.approved.txt
629 lines (512 loc) · 31.9 KB
/
ApprovalTest.generate_withValidCrd_shouldGeneratePojos.testAkkaMicroservicesCrd.approved.txt
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
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
AkkaMicroserviceJavaCr[0] = package org.test.v1;
@io.fabric8.kubernetes.model.annotation.Version(value = "v1" , storage = true , served = true)
@io.fabric8.kubernetes.model.annotation.Group("akka.lightbend.com")
@io.fabric8.kubernetes.model.annotation.Singular("akkamicroservice")
@io.fabric8.kubernetes.model.annotation.Plural("akkamicroservices")
@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner")
public class AkkaMicroservice extends io.fabric8.kubernetes.client.CustomResource<org.test.v1.AkkaMicroserviceSpec, org.test.v1.AkkaMicroserviceStatus> implements io.fabric8.kubernetes.api.model.Namespaced {
}
AkkaMicroserviceJavaCr[1] = package org.test.v1;
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
@com.fasterxml.jackson.annotation.JsonPropertyOrder({"akkaManagementPort","appVersion","cassandraDataStaxAstra","configSecret","deploymentStrategy","env","envFrom","envSecret","extraVolumeMounts","grpcIngress","grpcPort","httpIngress","httpPort","image","imagePullPolicy","imagePullSecrets","javaOptions","jdbc","kafka","kafkaConfluentCloud","livenessProbe","logbackSecret","podTemplateSpec","prometheusPort","readinessProbe","replicas","resources","roles","secretVolumes","serviceAccount","splitBrainResolver"})
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner")
public class AkkaMicroserviceSpec implements io.fabric8.kubernetes.api.model.KubernetesResource {
/**
* Akka Management (Cluster Bootstrap) HTTP port in the range 1024 - 65535. Can be disabled with "off". This port is exposed as HTTP_MGMT_PORT environment variable if it is enabled.
*/
@com.fasterxml.jackson.annotation.JsonProperty("akkaManagementPort")
@io.fabric8.generator.annotation.Pattern("^(off)$|^(102[4-9]|10[3-9][0-9]|1[1-9][0-9]{2}|[2-9][0-9]{3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Akka Management (Cluster Bootstrap) HTTP port in the range 1024 - 65535. Can be disabled with \"off\". This port is exposed as HTTP_MGMT_PORT environment variable if it is enabled.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String akkaManagementPort = "8558";
public String getAkkaManagementPort() {
return akkaManagementPort;
}
public void setAkkaManagementPort(String akkaManagementPort) {
this.akkaManagementPort = akkaManagementPort;
}
/**
* Application version of the deployment. Used by rolling update features to distinguish between old and new nodes. Unlike "deployment.kubernetes.io/revision", the appVersion may span multiple "Deployment" resources.
*/
@com.fasterxml.jackson.annotation.JsonProperty("appVersion")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Application version of the deployment. Used by rolling update features to distinguish between old and new nodes. Unlike \"deployment.kubernetes.io/revision\", the appVersion may span multiple \"Deployment\" resources.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String appVersion;
public String getAppVersion() {
return appVersion;
}
public void setAppVersion(String appVersion) {
this.appVersion = appVersion;
}
/**
* Integration with DataStax Astra (Cloud-Native Cassandra-as-a-Service)
*/
@com.fasterxml.jackson.annotation.JsonProperty("cassandraDataStaxAstra")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Integration with DataStax Astra (Cloud-Native Cassandra-as-a-Service)")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.CassandraDataStaxAstra cassandraDataStaxAstra;
public org.test.v1.akkamicroservicespec.CassandraDataStaxAstra getCassandraDataStaxAstra() {
return cassandraDataStaxAstra;
}
public void setCassandraDataStaxAstra(org.test.v1.akkamicroservicespec.CassandraDataStaxAstra cassandraDataStaxAstra) {
this.cassandraDataStaxAstra = cassandraDataStaxAstra;
}
/**
* Name of Secret with config entries that will be concatenated into main.conf together with
* configuration provided by the operator. The main.conf includes application.conf and the JVM system
* property config.file is set to main.conf. The purpose of this configuration is to be able to
* override environment specific configuration.
*/
@com.fasterxml.jackson.annotation.JsonProperty("configSecret")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Name of Secret with config entries that will be concatenated into main.conf together with\nconfiguration provided by the operator. The main.conf includes application.conf and the JVM system\nproperty config.file is set to main.conf. The purpose of this configuration is to be able to\noverride environment specific configuration.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.ConfigSecret configSecret;
public org.test.v1.akkamicroservicespec.ConfigSecret getConfigSecret() {
return configSecret;
}
public void setConfigSecret(org.test.v1.akkamicroservicespec.ConfigSecret configSecret) {
this.configSecret = configSecret;
}
/**
* The deployment strategy to use to replace existing pods with new ones.
* For more information see https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
*/
@com.fasterxml.jackson.annotation.JsonProperty("deploymentStrategy")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("The deployment strategy to use to replace existing pods with new ones.\nFor more information see https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.DeploymentStrategy deploymentStrategy = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("{\"type\":\"RollingUpdate\",\"rollingUpdate\":{\"maxSurge\":\"25%\",\"maxUnavailable\":\"25%\"}}", org.test.v1.akkamicroservicespec.DeploymentStrategy.class);
public org.test.v1.akkamicroservicespec.DeploymentStrategy getDeploymentStrategy() {
return deploymentStrategy;
}
public void setDeploymentStrategy(org.test.v1.akkamicroservicespec.DeploymentStrategy deploymentStrategy) {
this.deploymentStrategy = deploymentStrategy;
}
/**
* List of environment variables to set in the container.
*/
@com.fasterxml.jackson.annotation.JsonProperty("env")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("List of environment variables to set in the container.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private java.util.List<org.test.v1.akkamicroservicespec.Env> env;
public java.util.List<org.test.v1.akkamicroservicespec.Env> getEnv() {
return env;
}
public void setEnv(java.util.List<org.test.v1.akkamicroservicespec.Env> env) {
this.env = env;
}
/**
* A list of Secret and/or ConfigMap references with entries that will be included as environment variables.
*/
@com.fasterxml.jackson.annotation.JsonProperty("envFrom")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("A list of Secret and/or ConfigMap references with entries that will be included as environment variables.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private java.util.List<org.test.v1.akkamicroservicespec.EnvFrom> envFrom;
public java.util.List<org.test.v1.akkamicroservicespec.EnvFrom> getEnvFrom() {
return envFrom;
}
public void setEnvFrom(java.util.List<org.test.v1.akkamicroservicespec.EnvFrom> envFrom) {
this.envFrom = envFrom;
}
/**
* DEPRECATED use envFrom instead* Name of Secret with entries that will be included as environment variables.
*/
@com.fasterxml.jackson.annotation.JsonProperty("envSecret")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("*DEPRECATED use envFrom instead* Name of Secret with entries that will be included as environment variables.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.EnvSecret envSecret;
public org.test.v1.akkamicroservicespec.EnvSecret getEnvSecret() {
return envSecret;
}
public void setEnvSecret(org.test.v1.akkamicroservicespec.EnvSecret envSecret) {
this.envSecret = envSecret;
}
/**
* List of extra volume mounts to be provided to the main container.
*/
@com.fasterxml.jackson.annotation.JsonProperty("extraVolumeMounts")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("List of extra volume mounts to be provided to the main container.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private java.util.List<org.test.v1.akkamicroservicespec.ExtraVolumeMounts> extraVolumeMounts = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("[]", java.util.List.class);
public java.util.List<org.test.v1.akkamicroservicespec.ExtraVolumeMounts> getExtraVolumeMounts() {
return extraVolumeMounts;
}
public void setExtraVolumeMounts(java.util.List<org.test.v1.akkamicroservicespec.ExtraVolumeMounts> extraVolumeMounts) {
this.extraVolumeMounts = extraVolumeMounts;
}
/**
* Enable ingress for gRPC
*/
@com.fasterxml.jackson.annotation.JsonProperty("grpcIngress")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Enable ingress for gRPC")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.GrpcIngress grpcIngress;
public org.test.v1.akkamicroservicespec.GrpcIngress getGrpcIngress() {
return grpcIngress;
}
public void setGrpcIngress(org.test.v1.akkamicroservicespec.GrpcIngress grpcIngress) {
this.grpcIngress = grpcIngress;
}
/**
* gRPC port in the range 1024 - 65535. Can be disabled with "off". This port is exposed as GRPC_PORT environment variable if it is enabled.
*/
@com.fasterxml.jackson.annotation.JsonProperty("grpcPort")
@io.fabric8.generator.annotation.Pattern("^(off)$|^(102[4-9]|10[3-9][0-9]|1[1-9][0-9]{2}|[2-9][0-9]{3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("gRPC port in the range 1024 - 65535. Can be disabled with \"off\". This port is exposed as GRPC_PORT environment variable if it is enabled.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String grpcPort = "8101";
public String getGrpcPort() {
return grpcPort;
}
public void setGrpcPort(String grpcPort) {
this.grpcPort = grpcPort;
}
/**
* Enable ingress for http
*/
@com.fasterxml.jackson.annotation.JsonProperty("httpIngress")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Enable ingress for http")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.HttpIngress httpIngress;
public org.test.v1.akkamicroservicespec.HttpIngress getHttpIngress() {
return httpIngress;
}
public void setHttpIngress(org.test.v1.akkamicroservicespec.HttpIngress httpIngress) {
this.httpIngress = httpIngress;
}
/**
* HTTP port in the range 1024 - 65535. Disabled by default. This port is exposed as HTTP_PORT environment variable if it is enabled.
*/
@com.fasterxml.jackson.annotation.JsonProperty("httpPort")
@io.fabric8.generator.annotation.Pattern("^(off)$|^(102[4-9]|10[3-9][0-9]|1[1-9][0-9]{2}|[2-9][0-9]{3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("HTTP port in the range 1024 - 65535. Disabled by default. This port is exposed as HTTP_PORT environment variable if it is enabled.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String httpPort = "off";
public String getHttpPort() {
return httpPort;
}
public void setHttpPort(String httpPort) {
this.httpPort = httpPort;
}
/**
* Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images */
*/
@com.fasterxml.jackson.annotation.JsonProperty("image")
@io.fabric8.generator.annotation.Required()
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images */")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String image;
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
/**
* Image pull policy. One of Always, Never, IfNotPresent. No setting falls back to the container default. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
*/
@com.fasterxml.jackson.annotation.JsonProperty("imagePullPolicy")
@io.fabric8.generator.annotation.Pattern("^Always$|^Never$|^IfNotPresent$")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Image pull policy. One of Always, Never, IfNotPresent. No setting falls back to the container default. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String imagePullPolicy;
public String getImagePullPolicy() {
return imagePullPolicy;
}
public void setImagePullPolicy(String imagePullPolicy) {
this.imagePullPolicy = imagePullPolicy;
}
/**
* List of the image pull secrets to be used. More info: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-pod-that-uses-your-secret
*/
@com.fasterxml.jackson.annotation.JsonProperty("imagePullSecrets")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("List of the image pull secrets to be used. More info: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-pod-that-uses-your-secret")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private java.util.List<String> imagePullSecrets = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("[]", java.util.List.class);
public java.util.List<String> getImagePullSecrets() {
return imagePullSecrets;
}
public void setImagePullSecrets(java.util.List<String> imagePullSecrets) {
this.imagePullSecrets = imagePullSecrets;
}
/**
* Additional arguments to the application JVM. It will be added to the `JAVA_TOOL_OPTIONS` environment variable, which will be used by most JVM implementations.
*/
@com.fasterxml.jackson.annotation.JsonProperty("javaOptions")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Additional arguments to the application JVM. It will be added to the `JAVA_TOOL_OPTIONS` environment variable, which will be used by most JVM implementations.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String javaOptions = "";
public String getJavaOptions() {
return javaOptions;
}
public void setJavaOptions(String javaOptions) {
this.javaOptions = javaOptions;
}
/**
* Integration with JDBC data source
*/
@com.fasterxml.jackson.annotation.JsonProperty("jdbc")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Integration with JDBC data source")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.Jdbc jdbc;
public org.test.v1.akkamicroservicespec.Jdbc getJdbc() {
return jdbc;
}
public void setJdbc(org.test.v1.akkamicroservicespec.Jdbc jdbc) {
this.jdbc = jdbc;
}
/**
* Integration with Kafka
*/
@com.fasterxml.jackson.annotation.JsonProperty("kafka")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Integration with Kafka")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.Kafka kafka;
public org.test.v1.akkamicroservicespec.Kafka getKafka() {
return kafka;
}
public void setKafka(org.test.v1.akkamicroservicespec.Kafka kafka) {
this.kafka = kafka;
}
/**
* Integration with Confluent Cloud
*/
@com.fasterxml.jackson.annotation.JsonProperty("kafkaConfluentCloud")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Integration with Confluent Cloud")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.KafkaConfluentCloud kafkaConfluentCloud;
public org.test.v1.akkamicroservicespec.KafkaConfluentCloud getKafkaConfluentCloud() {
return kafkaConfluentCloud;
}
public void setKafkaConfluentCloud(org.test.v1.akkamicroservicespec.KafkaConfluentCloud kafkaConfluentCloud) {
this.kafkaConfluentCloud = kafkaConfluentCloud;
}
/**
* The liveness probe, can be configured as any standard probe or disabled by using an empty object. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes
*/
@com.fasterxml.jackson.annotation.JsonProperty("livenessProbe")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("The liveness probe, can be configured as any standard probe or disabled by using an empty object. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.LivenessProbe livenessProbe = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("{\"httpGet\":{\"port\":\"management\",\"path\":\"/alive\"},\"periodSeconds\":10,\"initialDelaySeconds\":20,\"failureThreshold\":10}", org.test.v1.akkamicroservicespec.LivenessProbe.class);
public org.test.v1.akkamicroservicespec.LivenessProbe getLivenessProbe() {
return livenessProbe;
}
public void setLivenessProbe(org.test.v1.akkamicroservicespec.LivenessProbe livenessProbe) {
this.livenessProbe = livenessProbe;
}
/**
* Name of Secret with entries that will be used as logback.xml configuration.
*/
@com.fasterxml.jackson.annotation.JsonProperty("logbackSecret")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Name of Secret with entries that will be used as logback.xml configuration.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.LogbackSecret logbackSecret;
public org.test.v1.akkamicroservicespec.LogbackSecret getLogbackSecret() {
return logbackSecret;
}
public void setLogbackSecret(org.test.v1.akkamicroservicespec.LogbackSecret logbackSecret) {
this.logbackSecret = logbackSecret;
}
/**
* A Pod Template to be merged with the one generated by the operator. More info: https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates
*/
@com.fasterxml.jackson.annotation.JsonProperty("podTemplateSpec")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("A Pod Template to be merged with the one generated by the operator. More info: https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.PodTemplateSpec podTemplateSpec;
public org.test.v1.akkamicroservicespec.PodTemplateSpec getPodTemplateSpec() {
return podTemplateSpec;
}
public void setPodTemplateSpec(org.test.v1.akkamicroservicespec.PodTemplateSpec podTemplateSpec) {
this.podTemplateSpec = podTemplateSpec;
}
/**
* HTTP port to expose metrics for Prometheus to scrape. Must be in the range 1024 - 65535. Disabled by default. This port is exposed as HTTP_PROMETHEUS_PORT environment variable if it is enabled.
*/
@com.fasterxml.jackson.annotation.JsonProperty("prometheusPort")
@io.fabric8.generator.annotation.Pattern("^(off)$|^(102[4-9]|10[3-9][0-9]|1[1-9][0-9]{2}|[2-9][0-9]{3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("HTTP port to expose metrics for Prometheus to scrape. Must be in the range 1024 - 65535. Disabled by default. This port is exposed as HTTP_PROMETHEUS_PORT environment variable if it is enabled.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String prometheusPort = "off";
public String getPrometheusPort() {
return prometheusPort;
}
public void setPrometheusPort(String prometheusPort) {
this.prometheusPort = prometheusPort;
}
/**
* The readiness probe, can be configured as any standard probe or disabled by using an empty object. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes
*/
@com.fasterxml.jackson.annotation.JsonProperty("readinessProbe")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("The readiness probe, can be configured as any standard probe or disabled by using an empty object. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.ReadinessProbe readinessProbe = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("{\"httpGet\":{\"port\":\"management\",\"path\":\"/ready\"},\"periodSeconds\":10,\"initialDelaySeconds\":20,\"failureThreshold\":10}", org.test.v1.akkamicroservicespec.ReadinessProbe.class);
public org.test.v1.akkamicroservicespec.ReadinessProbe getReadinessProbe() {
return readinessProbe;
}
public void setReadinessProbe(org.test.v1.akkamicroservicespec.ReadinessProbe readinessProbe) {
this.readinessProbe = readinessProbe;
}
/**
* Number of desired pods.
*/
@com.fasterxml.jackson.annotation.JsonProperty("replicas")
@io.fabric8.generator.annotation.Max(1000.0)
@io.fabric8.generator.annotation.Min(0.0)
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Number of desired pods.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private Long replicas = 1L;
public Long getReplicas() {
return replicas;
}
public void setReplicas(Long replicas) {
this.replicas = replicas;
}
/**
* ResourceRequirements describes the compute resource requirements.
*/
@com.fasterxml.jackson.annotation.JsonProperty("resources")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("ResourceRequirements describes the compute resource requirements.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.Resources resources = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("{\"limits\":{\"memory\":\"1024Mi\",\"cpu\":\"\"},\"requests\":{\"memory\":\"1024Mi\",\"cpu\":\"1\"}}", org.test.v1.akkamicroservicespec.Resources.class);
public org.test.v1.akkamicroservicespec.Resources getResources() {
return resources;
}
public void setResources(org.test.v1.akkamicroservicespec.Resources resources) {
this.resources = resources;
}
/**
* Scale by Akka Cluster node role. https://doc.akka.io/docs/akka/current/typed/cluster.html#node-roles
*/
@com.fasterxml.jackson.annotation.JsonProperty("roles")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Scale by Akka Cluster node role. https://doc.akka.io/docs/akka/current/typed/cluster.html#node-roles")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private java.util.List<org.test.v1.akkamicroservicespec.Roles> roles = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("[]", java.util.List.class);
public java.util.List<org.test.v1.akkamicroservicespec.Roles> getRoles() {
return roles;
}
public void setRoles(java.util.List<org.test.v1.akkamicroservicespec.Roles> roles) {
this.roles = roles;
}
/**
* List of Secrets with entries that will be mounted as files in the mountPath directory.
*/
@com.fasterxml.jackson.annotation.JsonProperty("secretVolumes")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("List of Secrets with entries that will be mounted as files in the mountPath directory.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private java.util.List<org.test.v1.akkamicroservicespec.SecretVolumes> secretVolumes = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("[]", java.util.List.class);
public java.util.List<org.test.v1.akkamicroservicespec.SecretVolumes> getSecretVolumes() {
return secretVolumes;
}
public void setSecretVolumes(java.util.List<org.test.v1.akkamicroservicespec.SecretVolumes> secretVolumes) {
this.secretVolumes = secretVolumes;
}
/**
* The service account to be used by the microservice, instead of the one generated one. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
*/
@com.fasterxml.jackson.annotation.JsonProperty("serviceAccount")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("The service account to be used by the microservice, instead of the one generated one. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String serviceAccount;
public String getServiceAccount() {
return serviceAccount;
}
public void setServiceAccount(String serviceAccount) {
this.serviceAccount = serviceAccount;
}
@com.fasterxml.jackson.annotation.JsonProperty("splitBrainResolver")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicespec.SplitBrainResolver splitBrainResolver;
public org.test.v1.akkamicroservicespec.SplitBrainResolver getSplitBrainResolver() {
return splitBrainResolver;
}
public void setSplitBrainResolver(org.test.v1.akkamicroservicespec.SplitBrainResolver splitBrainResolver) {
this.splitBrainResolver = splitBrainResolver;
}
}
AkkaMicroserviceJavaCr[2] = package org.test.v1;
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
@com.fasterxml.jackson.annotation.JsonPropertyOrder({"akkaClusterStatus","availableReplicas","message","oldestPodStartTime","phase","podStatus"})
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner")
public class AkkaMicroserviceStatus implements io.fabric8.kubernetes.api.model.KubernetesResource {
/**
* Status summary about the Akka Cluster members.
*/
@com.fasterxml.jackson.annotation.JsonProperty("akkaClusterStatus")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Status summary about the Akka Cluster members.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private org.test.v1.akkamicroservicestatus.AkkaClusterStatus akkaClusterStatus;
public org.test.v1.akkamicroservicestatus.AkkaClusterStatus getAkkaClusterStatus() {
return akkaClusterStatus;
}
public void setAkkaClusterStatus(org.test.v1.akkamicroservicestatus.AkkaClusterStatus akkaClusterStatus) {
this.akkaClusterStatus = akkaClusterStatus;
}
/**
* Total number of available pods targeted by this AkkaMicroservice.
*/
@com.fasterxml.jackson.annotation.JsonProperty("availableReplicas")
@io.fabric8.generator.annotation.Format("int32")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Total number of available pods targeted by this AkkaMicroservice.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private Integer availableReplicas;
public Integer getAvailableReplicas() {
return availableReplicas;
}
public void setAvailableReplicas(Integer availableReplicas) {
this.availableReplicas = availableReplicas;
}
/**
* A human readable message indicating details about why the AkkaMicroservice is in this condition.
*/
@com.fasterxml.jackson.annotation.JsonProperty("message")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("A human readable message indicating details about why the AkkaMicroservice is in this condition.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String message;
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
/**
* The start time of the oldest pod.
*/
@com.fasterxml.jackson.annotation.JsonProperty("oldestPodStartTime")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("The start time of the oldest pod.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String oldestPodStartTime;
public String getOldestPodStartTime() {
return oldestPodStartTime;
}
public void setOldestPodStartTime(String oldestPodStartTime) {
this.oldestPodStartTime = oldestPodStartTime;
}
/**
* The phase of an AkkaMicroservice is a simple, high-level summary of where the AkkaMicroservice is in its lifecycle.
*/
@com.fasterxml.jackson.annotation.JsonProperty("phase")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("The phase of an AkkaMicroservice is a simple, high-level summary of where the AkkaMicroservice is in its lifecycle.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String phase;
public String getPhase() {
return phase;
}
public void setPhase(String phase) {
this.phase = phase;
}
/**
* The pods state in case of failures.
*/
@com.fasterxml.jackson.annotation.JsonProperty("podStatus")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("The pods state in case of failures.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private java.util.List<String> podStatus;
public java.util.List<String> getPodStatus() {
return podStatus;
}
public void setPodStatus(java.util.List<String> podStatus) {
this.podStatus = podStatus;
}
}