Change from nomad_volume to nomad_csi_volume_registration
as the later is deprecated
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user