Skip to content

Commit 417b852

Browse files
authored
Use local type for CnsOperatorEntityReference to ensure correct deserialization (#3191)
Signed-off-by: Deepak Kinni <[email protected]>
1 parent eecac24 commit 417b852

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/apis/cnsoperator/cnsvolumemetadata/v1alpha1/cnsvolumemetadata_types.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,12 @@ const (
131131
CnsOperatorEntityTypePOD = CnsOperatorEntityType(cnstypes.CnsKubernetesEntityTypePOD)
132132
)
133133

134-
type CnsOperatorEntityReference cnstypes.CnsKubernetesEntityReference
134+
type CnsOperatorEntityReference struct {
135+
EntityType string
136+
EntityName string
137+
Namespace string
138+
ClusterID string
139+
}
135140

136141
// CreateCnsVolumeMetadataSpec returns a cnsvolumemetadata object from the
137142
// input parameters.

0 commit comments

Comments
 (0)