Change from nomad_volume to nomad_csi_volume_registration

as the later is deprecated
This commit is contained in:
2025-05-04 17:35:35 +10:00
parent 1df01e6c76
commit 66306e2428
4 changed files with 158 additions and 150 deletions

View File

@@ -32,11 +32,12 @@ data "nomad_plugin" "smb" {
wait_for_healthy = true
}
resource "nomad_volume" "unraid_transfer" {
resource "nomad_csi_volume_registration" "unraid_transfer" {
#Note: Before chaning the definition of this volume you need to stop the jobs that are using it
depends_on = [data.nomad_plugin.smb]
plugin_id = "smb"
type = "csi"
volume_id = "unraid_transfer_id5"
volume_id = "unraid_transfer"
name = "unraid_transfer_name"
external_id = "unraid_transfer_ext"
@@ -51,7 +52,6 @@ resource "nomad_volume" "unraid_transfer" {
}
parameters = {
source = "//192.168.1.192/transfer"
"csi.storage.k8s.io/node-stage-secret-name" = "smbcreds"
"csi.storage.k8s.io/node-stage-secret-namespace" = "default"
}