@@ -27,12 +27,12 @@ type SwiftContainerName string
2727// SwiftContainerMetadata defines a key-value pair to be set as a Swift
2828// container metadata header (X-Container-Meta-<key>: <value>).
2929type SwiftContainerMetadata struct {
30- // name is the name of the metadata item. It will be used as the suffix of
30+ // key is the key of the metadata item. It will be used as the suffix of
3131 // the X-Container-Meta-* header.
3232 // +kubebuilder:validation:MinLength:=1
3333 // +kubebuilder:validation:MaxLength:=255
3434 // +required
35- Name string `json:"name ,omitempty"`
35+ Key string `json:"key ,omitempty"`
3636
3737 // value is the value of the metadata item.
3838 // +kubebuilder:validation:MaxLength:=255
@@ -43,11 +43,11 @@ type SwiftContainerMetadata struct {
4343// SwiftContainerMetadataStatus represents an observed metadata key-value pair
4444// on a Swift container.
4545type SwiftContainerMetadataStatus struct {
46- // name is the name of the metadata item.
46+ // key is the key of the metadata item.
4747 // +kubebuilder:validation:MinLength:=1
4848 // +kubebuilder:validation:MaxLength:=255
4949 // +required
50- Name string `json:"name ,omitempty"`
50+ Key string `json:"key ,omitempty"`
5151
5252 // value is the value of the metadata item.
5353 // +kubebuilder:validation:MaxLength:=255
@@ -103,7 +103,7 @@ type SwiftContainerResourceSpec struct {
103103 // X-Container-Meta-* headers on the Swift container.
104104 // +kubebuilder:validation:MaxItems:=64
105105 // +listType=map
106- // +listMapKey=name
106+ // +listMapKey=key
107107 // +optional
108108 Metadata []SwiftContainerMetadata `json:"metadata,omitempty"`
109109
@@ -152,7 +152,7 @@ type SwiftContainerResourceStatus struct {
152152 // metadata is the list of observed metadata key-value pairs on the container.
153153 // +kubebuilder:validation:MaxItems:=64
154154 // +listType=map
155- // +listMapKey=name
155+ // +listMapKey=key
156156 // +optional
157157 Metadata []SwiftContainerMetadataStatus `json:"metadata,omitempty"`
158158
0 commit comments