From 544df59f58fbbade440bc4bfee3d3cdc24b6a387 Mon Sep 17 00:00:00 2001 From: "haining.cao" Date: Wed, 21 Dec 2022 18:54:45 +0800 Subject: [PATCH] fix json serialize name Signed-off-by: haining.cao --- pkg/volume/snapshot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/volume/snapshot.go b/pkg/volume/snapshot.go index eb115e8cb..747440114 100644 --- a/pkg/volume/snapshot.go +++ b/pkg/volume/snapshot.go @@ -37,7 +37,7 @@ type SnapshotSpec struct { Location string `json:"location"` // PersistentVolumeName is the Kubernetes name for the volume. - PersistentVolumeName string `json:persistentVolumeName` + PersistentVolumeName string `json:"persistentVolumeName"` // ProviderVolumeID is the provider's ID for the volume. ProviderVolumeID string `json:"providerVolumeID"`