• Tim Gross's avatar
    CSI: allow updates to volumes on re-registration (#12167) · 7d0f87b9
    Tim Gross authored
    CSI `CreateVolume` RPC is idempotent given that the topology,
    capabilities, and parameters are unchanged. CSI volumes have many
    user-defined fields that are immutable once set, and many fields that
    are not user-settable.
    
    Update the `Register` RPC so that updating a volume via the API merges
    onto any existing volume without touching Nomad-controlled fields,
    while validating it with the same strict requirements expected for
    idempotent `CreateVolume` RPCs.
    
    Also, clarify that this state store method is used for everything, not just
    for the `Register` RPC.
    7d0f87b9