Skip to content

Commit

Permalink
fix(Gitea): tls support (#88)
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Miglinci <[email protected]>
  • Loading branch information
pmig committed Mar 6, 2023
1 parent c6cb663 commit 96c8547
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ val Gitea.dbClusterName get() = "$genericResourceName-db"
val Gitea.redisName get() = "$genericResourceName-redis"
val Gitea.httpServiceName get() = "$genericResourceName-http"
val Gitea.sshServiceName get() = "$genericResourceName-ssh"
val Gitea.ingressTlsCertName get() = "$genericResourceName-cert"
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import eu.glasskube.operator.gitea.Gitea
import eu.glasskube.operator.gitea.GiteaReconciler
import eu.glasskube.operator.gitea.genericResourceName
import eu.glasskube.operator.gitea.httpServiceName
import eu.glasskube.operator.gitea.ingressTlsCertName
import eu.glasskube.operator.gitea.resourceLabels
import io.fabric8.kubernetes.api.model.networking.v1.IngressTLS
import io.javaoperatorsdk.operator.api.reconciler.Context
import io.javaoperatorsdk.operator.processing.dependent.kubernetes.KubernetesDependent

Expand All @@ -40,6 +42,9 @@ class GiteaIngress(configService: ConfigService) : DependentIngress<Gitea>(confi
)
}
)
tls = listOf(
IngressTLS(listOf(primary.spec.host), primary.ingressTlsCertName)
)
}
}
}

0 comments on commit 96c8547

Please sign in to comment.