• Lang Martin's avatar
    csi: volume ids are only unique per namespace (#7358) · 9c9a0c5e
    Lang Martin authored
    * nomad/state/schema: use the namespace compound index
    
    * scheduler/scheduler: CSIVolumeByID interface signature namespace
    
    * scheduler/stack: SetJob on CSIVolumeChecker to capture namespace
    
    * scheduler/feasible: pass the captured namespace to CSIVolumeByID
    
    * nomad/state/state_store: use namespace in csi_volume index
    
    * nomad/fsm: pass namespace to CSIVolumeDeregister & Claim
    
    * nomad/core_sched: pass the namespace in volumeClaimReap
    
    * nomad/node_endpoint_test: namespaces in Claim testing
    
    * nomad/csi_endpoint: pass RequestNamespace to state.*
    
    * nomad/csi_endpoint_test: appropriately failed test
    
    * command/alloc_status_test: appropriately failed test
    
    * node_endpoint_test: avoid notTheNamespace for the job
    
    * scheduler/feasible_test: call SetJob to capture the namespace
    
    * nomad/csi_endpoint: ACL check the req namespace, query by namespace
    
    * nomad/state/state_store: remove deregister namespace check
    
    * nomad/state/state_store: remove unused CSIVolumes
    
    * scheduler/feasible: CSIVolumeChecker SetJob -> SetNamespace
    
    * nomad/csi_endpoint: ACL check
    
    * nomad/state/state_store_test: remove call to state.CSIVolumes
    
    * nomad/core_sched_test: job namespace match so claim gc works
    9c9a0c5e