ci: 💚 fix naming of kubernetes metadata
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
RaviAnand Mohabir 2025-03-25 18:24:48 +01:00
parent 612456241a
commit 93ef9edd15

View File

@ -73,7 +73,7 @@ resource "kubernetes_namespace" "customer_files_organizer" {
resource "kubernetes_deployment" "customer_files_organizer" { resource "kubernetes_deployment" "customer_files_organizer" {
metadata { metadata {
name = "customer_files_organizer" name = "customer-files-organizer"
namespace = kubernetes_namespace.customer_files_organizer.metadata.0.name namespace = kubernetes_namespace.customer_files_organizer.metadata.0.name
} }
spec { spec {
@ -94,7 +94,7 @@ resource "kubernetes_deployment" "customer_files_organizer" {
} }
container { container {
image = "${var.registry}/${var.image_repository}:${var.image_tag}" image = "${var.registry}/${var.image_repository}:${var.image_tag}"
name = "customer_files_organizer" name = "customer-files-organizer"
image_pull_policy = "Always" image_pull_policy = "Always"
port { port {
container_port = 3000 container_port = 3000
@ -108,7 +108,7 @@ resource "kubernetes_deployment" "customer_files_organizer" {
resource "kubernetes_service" "customer_files_organizer" { resource "kubernetes_service" "customer_files_organizer" {
metadata { metadata {
name = "customer_files_organizer" name = "customer-files-organizer"
namespace = kubernetes_namespace.customer_files_organizer.metadata.0.name namespace = kubernetes_namespace.customer_files_organizer.metadata.0.name
} }
spec { spec {
@ -123,7 +123,7 @@ resource "kubernetes_service" "customer_files_organizer" {
resource "kubernetes_ingress_v1" "customer_files_organizer" { resource "kubernetes_ingress_v1" "customer_files_organizer" {
metadata { metadata {
name = "customer_files_organizer" name = "customer-files-organizer"
namespace = kubernetes_namespace.customer_files_organizer.metadata.0.name namespace = kubernetes_namespace.customer_files_organizer.metadata.0.name
annotations = { annotations = {
"cert-manager.io/cluster-issuer" = var.cluster_issuer_name "cert-manager.io/cluster-issuer" = var.cluster_issuer_name