@@ -46,7 +46,6 @@ public Deployment getDefaultAppDeployment(ApicurioRegistry3 primary) {
46
46
.map (AppSpec ::getPodTemplateSpec ).orElse (null )); // TODO:
47
47
// Replicas
48
48
mergeDeploymentPodTemplateSpec (
49
- // spotless:off
50
49
r .getSpec ().getTemplate (),
51
50
REGISTRY_APP_CONTAINER_NAME ,
52
51
Configuration .getAppImage (),
@@ -55,7 +54,6 @@ public Deployment getDefaultAppDeployment(ApicurioRegistry3 primary) {
55
54
new ProbeBuilder ().withHttpGet (new HTTPGetActionBuilder ().withPath ("/health/live" ).withPort (new IntOrString (8080 )).withScheme ("HTTP" ).build ()).build (),
56
55
Map .of ("cpu" , new Quantity ("500m" ), "memory" , new Quantity ("512Mi" )),
57
56
Map .of ("cpu" , new Quantity ("1" ), "memory" , new Quantity ("1Gi" ))
58
- // spotless:on
59
57
);
60
58
addDefaultLabels (r .getMetadata ().getLabels (), primary , COMPONENT_APP );
61
59
addSelectorLabels (r .getSpec ().getSelector ().getMatchLabels (), primary , COMPONENT_APP );
@@ -71,7 +69,6 @@ public Deployment getDefaultUIDeployment(ApicurioRegistry3 primary) {
71
69
.map (UiSpec ::getPodTemplateSpec ).orElse (null )); // TODO:
72
70
// Replicas
73
71
mergeDeploymentPodTemplateSpec (
74
- // spotless:off
75
72
r .getSpec ().getTemplate (),
76
73
REGISTRY_UI_CONTAINER_NAME ,
77
74
Configuration .getUIImage (),
@@ -80,7 +77,6 @@ public Deployment getDefaultUIDeployment(ApicurioRegistry3 primary) {
80
77
new ProbeBuilder ().withHttpGet (new HTTPGetActionBuilder ().withPath ("/config.js" ).withPort (new IntOrString (8080 )).withScheme ("HTTP" ).build ()).build (),
81
78
Map .of ("cpu" , new Quantity ("100m" ), "memory" , new Quantity ("256Mi" )),
82
79
Map .of ("cpu" , new Quantity ("200m" ), "memory" , new Quantity ("512Mi" ))
83
- // spotless:on
84
80
);
85
81
addDefaultLabels (r .getMetadata ().getLabels (), primary , COMPONENT_UI );
86
82
addSelectorLabels (r .getSpec ().getSelector ().getMatchLabels (), primary , COMPONENT_UI );
@@ -96,7 +92,6 @@ public Deployment getDefaultStudioUIDeployment(ApicurioRegistry3 primary) {
96
92
.map (StudioUiSpec ::getPodTemplateSpec ).orElse (null )); // TODO:
97
93
// Replicas
98
94
mergeDeploymentPodTemplateSpec (
99
- // spotless:off
100
95
r .getSpec ().getTemplate (),
101
96
STUDIO_UI_CONTAINER_NAME ,
102
97
Configuration .getStudioUIImage (),
@@ -105,7 +100,6 @@ public Deployment getDefaultStudioUIDeployment(ApicurioRegistry3 primary) {
105
100
new ProbeBuilder ().withHttpGet (new HTTPGetActionBuilder ().withPath ("/config.js" ).withPort (new IntOrString (8080 )).withScheme ("HTTP" ).build ()).build (),
106
101
Map .of ("cpu" , new Quantity ("100m" ), "memory" , new Quantity ("256Mi" )),
107
102
Map .of ("cpu" , new Quantity ("200m" ), "memory" , new Quantity ("512Mi" ))
108
- // spotless:on
109
103
);
110
104
addDefaultLabels (r .getMetadata ().getLabels (), primary , COMPONENT_STUDIO_UI );
111
105
addSelectorLabels (r .getSpec ().getSelector ().getMatchLabels (), primary , COMPONENT_STUDIO_UI );
@@ -135,7 +129,6 @@ private static Deployment initDefaultDeployment(ApicurioRegistry3 primary, Strin
135
129
* Merge default values for a Deployment into the target PTS (from spec).
136
130
*/
137
131
private static void mergeDeploymentPodTemplateSpec (
138
- // spotless:off
139
132
PodTemplateSpec target ,
140
133
String containerName ,
141
134
String image ,
@@ -144,7 +137,6 @@ private static void mergeDeploymentPodTemplateSpec(
144
137
Probe livenessProbe ,
145
138
Map <String , Quantity > requests ,
146
139
Map <String , Quantity > limits
147
- // spotless:on
148
140
) {
149
141
if (target .getMetadata () == null ) {
150
142
target .setMetadata (new ObjectMeta ());
@@ -241,7 +233,6 @@ private <T extends HasMetadata> T getDefaultResource(ApicurioRegistry3 primary,
241
233
}
242
234
243
235
private void addDefaultLabels (Map <String , String > labels , ApicurioRegistry3 primary , String component ) {
244
- // spotless:off
245
236
labels .putAll (Map .of (
246
237
"app" , primary .getMetadata ().getName (),
247
238
"app.kubernetes.io/name" , "apicurio-registry" ,
@@ -251,19 +242,16 @@ private void addDefaultLabels(Map<String, String> labels, ApicurioRegistry3 prim
251
242
"app.kubernetes.io/part-of" , "apicurio-registry" ,
252
243
"app.kubernetes.io/managed-by" , "apicurio-registry-operator"
253
244
));
254
- // spotless:on
255
245
}
256
246
257
247
private void addSelectorLabels (Map <String , String > labels , ApicurioRegistry3 primary , String component ) {
258
- // spotless:off
259
248
labels .putAll (Map .of (
260
249
"app" , primary .getMetadata ().getName (),
261
250
"app.kubernetes.io/name" , "apicurio-registry" ,
262
251
"app.kubernetes.io/component" , component ,
263
252
"app.kubernetes.io/instance" , primary .getMetadata ().getName (),
264
253
"app.kubernetes.io/part-of" , "apicurio-registry"
265
254
));
266
- // spotless:on
267
255
}
268
256
269
257
public static <T > T deserialize (String path , Class <T > klass ) {
0 commit comments