Skip to content

Commit 7d215bb

Browse files
committed
chore: update code style
1 parent 1bc2a35 commit 7d215bb

File tree

9 files changed

+35
-10
lines changed

9 files changed

+35
-10
lines changed

operator/src/main/kotlin/eu/glasskube/operator/apps/gitlab/GitlabRunnerSpecTemplate.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import io.fabric8.generator.annotation.Pattern
66
import io.fabric8.generator.annotation.Required
77

88
data class GitlabRunnerSpecTemplate(
9-
@field: Required
9+
@field:Required
1010
val token: String,
1111
val concurrency: Int = 1,
1212
@field:Pattern(SEMVER)

operator/src/main/kotlin/eu/glasskube/operator/apps/gitlab/runner/GitlabRunnerSpec.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import io.fabric8.generator.annotation.Required
66
import io.fabric8.kubernetes.api.model.LocalObjectReference
77

88
data class GitlabRunnerSpec(
9-
@field: Required
9+
@field:Required
1010
val token: String,
11-
@field: Required
11+
@field:Required
1212
val gitlab: LocalObjectReference,
1313
val concurrency: Int = 1,
1414
@field:Pattern(SEMVER)

operator/src/main/kotlin/eu/glasskube/operator/apps/keycloak/dependent/KeycloakDeployment.kt

+6-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ class KeycloakDeployment : CRUDKubernetesDependentResource<Deployment, Keycloak>
5555
container {
5656
name = Keycloak.APP_NAME
5757
image = primary.appImage
58-
ports = listOf(containerPort { containerPort = 8080; name = "http" })
58+
ports = listOf(
59+
containerPort {
60+
containerPort = 8080
61+
name = "http"
62+
}
63+
)
5964
resources = primary.spec.resources
6065
args = listOf("start")
6166
env {

operator/src/main/kotlin/eu/glasskube/operator/apps/matomo/dependent/MatomoDeployment.kt

+6-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,12 @@ class MatomoDeployment(private val configService: ConfigService) :
138138
container {
139139
name = Matomo.APP_NAME
140140
image = primary.appImage
141-
ports = listOf(containerPort { containerPort = 80; name = "http" })
141+
ports = listOf(
142+
containerPort {
143+
containerPort = 80
144+
name = "http"
145+
}
146+
)
142147
resources = primary.spec.resources
143148
envFrom {
144149
secretRef(primary.databaseSecretName)

operator/src/main/kotlin/eu/glasskube/operator/apps/matomo/dependent/MatomoService.kt

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ class MatomoService : CRUDKubernetesDependentResource<Service, Matomo>(Service::
2323
}
2424
spec {
2525
selector = mapOf(MatomoReconciler.LABEL to primary.metadata.name)
26-
ports = listOf(servicePort { port = 80; name = "http" })
26+
ports = listOf(
27+
servicePort {
28+
port = 80
29+
name = "http"
30+
}
31+
)
2732
}
2833
}
2934
}

operator/src/main/kotlin/eu/glasskube/operator/apps/odoo/dependent/OdooDeployment.kt

+6-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ class OdooDeployment(private val configService: ConfigService) :
6868
envVar("USER") { secretKeyRef(primary.postgresSecretName, "username") }
6969
envVar("PASSWORD") { secretKeyRef(primary.postgresSecretName, "password") }
7070
}
71-
ports = listOf(containerPort { containerPort = 8069; name = "http" })
71+
ports = listOf(
72+
containerPort {
73+
containerPort = 8069
74+
name = "http"
75+
}
76+
)
7277
volumeMounts {
7378
volumeMount {
7479
name = Odoo.volumeName

operator/src/main/kotlin/eu/glasskube/operator/apps/odoo/dependent/OdooService.kt

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ class OdooService : CRUDKubernetesDependentResource<Service, Odoo>(Service::clas
2323
}
2424
spec {
2525
selector = mapOf(OdooReconciler.LABEL to primary.metadata.name)
26-
ports = listOf(servicePort { port = 8069; name = "http" })
26+
ports = listOf(
27+
servicePort {
28+
port = 8069
29+
name = "http"
30+
}
31+
)
2732
}
2833
}
2934
}

operator/src/main/kotlin/eu/glasskube/operator/infra/postgres/BarmanObjectStoreConfiguration.kt

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonInclude
44
import io.fabric8.kubernetes.api.model.SecretKeySelector
55

66
@JsonInclude(JsonInclude.Include.NON_NULL)
7-
87
data class BarmanObjectStoreConfiguration(
98
val destinationPath: String,
109
val endpointURL: String? = null,

operator/src/main/kotlin/eu/glasskube/operator/webhook/WebhookPayload.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ package eu.glasskube.operator.webhook
22

33
data class WebhookPayload(val status: Status) {
44
enum class Status {
5-
READY, NOT_READY;
5+
READY,
6+
NOT_READY;
67

78
companion object {
89
fun from(isReady: Boolean) = if (isReady) READY else NOT_READY

0 commit comments

Comments
 (0)