Skip to content

Commit

Permalink
chore: update code style
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmoz committed Oct 16, 2024
1 parent 9c53890 commit ed9f9a5
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import io.fabric8.generator.annotation.Pattern
import io.fabric8.generator.annotation.Required

data class GitlabRunnerSpecTemplate(
@field: Required
@field:Required
val token: String,
val concurrency: Int = 1,
@field:Pattern(SEMVER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import io.fabric8.generator.annotation.Required
import io.fabric8.kubernetes.api.model.LocalObjectReference

data class GitlabRunnerSpec(
@field: Required
@field:Required
val token: String,
@field: Required
@field:Required
val gitlab: LocalObjectReference,
val concurrency: Int = 1,
@field:Pattern(SEMVER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ class KeycloakDeployment : CRUDKubernetesDependentResource<Deployment, Keycloak>
container {
name = Keycloak.APP_NAME
image = primary.appImage
ports = listOf(containerPort { containerPort = 8080; name = "http" })
ports = listOf(
containerPort {
containerPort = 8080
name = "http"
}
)
resources = primary.spec.resources
args = listOf("start")
env {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ class MatomoDeployment(private val configService: ConfigService) :
container {
name = Matomo.APP_NAME
image = primary.appImage
ports = listOf(containerPort { containerPort = 80; name = "http" })
ports = listOf(
containerPort {
containerPort = 80
name = "http"
}
)
resources = primary.spec.resources
envFrom {
secretRef(primary.databaseSecretName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ class MatomoService : CRUDKubernetesDependentResource<Service, Matomo>(Service::
}
spec {
selector = mapOf(MatomoReconciler.LABEL to primary.metadata.name)
ports = listOf(servicePort { port = 80; name = "http" })
ports = listOf(
servicePort {
port = 80
name = "http"
}
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ class OdooDeployment(private val configService: ConfigService) :
envVar("USER") { secretKeyRef(primary.postgresSecretName, "username") }
envVar("PASSWORD") { secretKeyRef(primary.postgresSecretName, "password") }
}
ports = listOf(containerPort { containerPort = 8069; name = "http" })
ports = listOf(
containerPort {
containerPort = 8069
name = "http"
}
)
volumeMounts {
volumeMount {
name = Odoo.volumeName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ class OdooService : CRUDKubernetesDependentResource<Service, Odoo>(Service::clas
}
spec {
selector = mapOf(OdooReconciler.LABEL to primary.metadata.name)
ports = listOf(servicePort { port = 8069; name = "http" })
ports = listOf(
servicePort {
port = 8069
name = "http"
}
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonInclude
import io.fabric8.kubernetes.api.model.SecretKeySelector

@JsonInclude(JsonInclude.Include.NON_NULL)

data class BarmanObjectStoreConfiguration(
val destinationPath: String,
val endpointURL: String? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package eu.glasskube.operator.webhook

data class WebhookPayload(val status: Status) {
enum class Status {
READY, NOT_READY;
READY,
NOT_READY;

companion object {
fun from(isReady: Boolean) = if (isReady) READY else NOT_READY
Expand Down

0 comments on commit ed9f9a5

Please sign in to comment.