Skip to content

Commit

Permalink
Merge pull request #2 from montblu/fix-volumes-names
Browse files Browse the repository at this point in the history
main.tf: Respect RFC 1123 on volume names
  • Loading branch information
DFurt authored Nov 15, 2023
2 parents 8069f09 + 1b07ee4 commit fb752e2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ resource "kubernetes_deployment" "main" {
}

volume {
name = "authorized_keys"
name = "authorized-keys"

config_map {
name = local.resource_name
Expand All @@ -94,7 +94,7 @@ resource "kubernetes_deployment" "main" {
}

volume {
name = "sshd_config"
name = "sshd-config"

config_map {
name = local.resource_name
Expand All @@ -107,7 +107,7 @@ resource "kubernetes_deployment" "main" {
}

volume {
name = "ssh_host_rsa_key"
name = "ssh-host-rsa-key"

secret {
secret_name = local.resource_name
Expand All @@ -120,7 +120,7 @@ resource "kubernetes_deployment" "main" {
}

volume {
name = "ssh_host_rsa_key_public"
name = "ssh-host-rsa-key-public"

secret {
secret_name = local.resource_name
Expand Down Expand Up @@ -148,25 +148,25 @@ resource "kubernetes_deployment" "main" {
}

volume_mount {
name = "authorized_keys"
name = "authorized-keys"
mount_path = "/config/.ssh/authorized_keys"
sub_path = "authorized_keys"
}

volume_mount {
name = "sshd_config"
name = "sshd-config"
mount_path = "/config/ssh_host_keys/sshd_config"
sub_path = "sshd_config"
}

volume_mount {
name = "ssh_host_rsa_key"
name = "ssh-host-rsa-key"
mount_path = "/config/ssh_host_keys/ssh_host_rsa_key"
sub_path = "ssh_host_rsa_key"
}

volume_mount {
name = "ssh_host_rsa_key_public"
name = "ssh-host-rsa-key-public"
mount_path = "/config/ssh_host_keys/ssh_host_rsa_key_public"
sub_path = "ssh_host_rsa_key_public"
}
Expand Down

0 comments on commit fb752e2

Please sign in to comment.