dynamic host volumes: send register to client for fingerprint (#24802)

When we register a volume without a plugin, we need to send a client RPC so that
the node fingerprint can be updated. The registered volume also needs to be
written to client state so that we can restore the fingerprint after a restart.

Co-authored-by: Daniel Bennett <dbennett@hashicorp.com>
This commit is contained in:
Tim Gross
2025-01-08 16:58:58 -05:00
committed by GitHub
parent 2bfe817721
commit 4a65b21aab
16 changed files with 498 additions and 151 deletions

View File

@@ -48,7 +48,7 @@ type HostVolume struct {
// updated on the client
RequestedCapacityMinBytes int64 `mapstructure:"capacity_min" hcl:"capacity_min"`
RequestedCapacityMaxBytes int64 `mapstructure:"capacity_max" hcl:"capacity_max"`
CapacityBytes int64
CapacityBytes int64 `mapstructure:"capacity" hcl:"capacity"`
// RequestedCapabilities defines the options available to group.volume
// blocks. The scheduler checks against the listed capability blocks and