-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
volumes: rename existing volume resources
Rename `nomad_volume` to `nomad_csi_volume_registration` and `nomad_external_volume` to `nomad_csi_volume` to better reflect their intended use. The deprecated top-level fields `access_mode` and `attachment_mode` were not moved to the new resource. The previous resources are now marked as deprecated.
- Loading branch information
Showing
12 changed files
with
1,481 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright (c) HashiCorp, Inc. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
package helper | ||
|
||
func ToMapStringString(m any) map[string]string { | ||
mss := map[string]string{} | ||
for k, v := range m.(map[string]any) { | ||
mss[k] = v.(string) | ||
} | ||
return mss | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.