This commit is contained in:
2024-04-22 13:09:15 +02:00
parent c73830a5c2
commit a3a4506638
2 changed files with 3 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ resource "kubernetes_secret" "ci-docker-config" {
"${data.kubernetes_ingress_v1.gitea.spec[0].rule[0].host}" = { "${data.kubernetes_ingress_v1.gitea.spec[0].rule[0].host}" = {
"username" = gitea_user.user-ci[0].username "username" = gitea_user.user-ci[0].username
"password" = random_password.password.result "password" = random_password.password.result
"email" = var.registry_email "email" = "auto-ci@${data.kubernetes_ingress_v1.gitea.spec[0].rule[0].host}"
"auth" = base64encode("${gitea_user.user-ci[0].username}:${random_password.password.result}") "auth" = base64encode("${gitea_user.user-ci[0].username}:${random_password.password.result}")
} }
} }

View File

@@ -47,7 +47,7 @@ resource "kubernetes_secret" "docker-config" {
count = var.haveGitea?length(local.sorted-stages):0 count = var.haveGitea?length(local.sorted-stages):0
metadata { metadata {
name = "gitea-docker" name = "gitea-docker"
namespace = "${local.sorted-datasets[count.index].namespace}" namespace = "${local.sorted-stages[count.index].namespace}"
} }
type = "kubernetes.io/dockerconfigjson" type = "kubernetes.io/dockerconfigjson"
data = { data = {
@@ -56,7 +56,7 @@ resource "kubernetes_secret" "docker-config" {
"${data.kubernetes_ingress_v1.gitea.spec[0].rule[0].host}" = { "${data.kubernetes_ingress_v1.gitea.spec[0].rule[0].host}" = {
"username" = gitea_user.user-ci[0].username "username" = gitea_user.user-ci[0].username
"password" = random_password.password.result "password" = random_password.password.result
"email" = var.registry_email "email" = "auto-ci@${data.kubernetes_ingress_v1.gitea.spec[0].rule[0].host}"
"auth" = base64encode("${gitea_user.user-ci[0].username}:${random_password.password.result}") "auth" = base64encode("${gitea_user.user-ci[0].username}:${random_password.password.result}")
} }
} }