Skip to content

Commit 9980664

Browse files
authored
V0.0.5 (#5)
* Removed dependency on local sdk and switched to v1.41.0-alpha * Unsupported capabilities removed * node max cap changed to 10
1 parent e48c3a2 commit 9980664

502 files changed

Lines changed: 9 additions & 132745 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

charts/csi-hyperstack/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ name: csi-hyperstack
33
description: |
44
HELM chart for Hyperstack CSI drvier deployment
55
type: application
6-
version: 0.0.6
7-
appVersion: v0.0.4
6+
version: 0.0.7
7+
appVersion: v0.0.5

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.24.0
55
require (
66
github.com/NexGenCloud/hyperstack-sdk-go v1.41.0-alpha
77
github.com/container-storage-interface/spec v1.9.0
8+
github.com/golang/protobuf v1.5.4
89
github.com/kubernetes-csi/csi-lib-utils v0.17.0
910
github.com/spf13/cobra v1.8.0
1011
github.com/spf13/viper v1.19.0
@@ -34,7 +35,6 @@ require (
3435
github.com/go-openapi/jsonreference v0.20.2 // indirect
3536
github.com/go-openapi/swag v0.23.0 // indirect
3637
github.com/gogo/protobuf v1.3.2 // indirect
37-
github.com/golang/protobuf v1.5.4 // indirect
3838
github.com/google/gnostic-models v0.7.0 // indirect
3939
github.com/google/go-cmp v0.7.0 // indirect
4040
github.com/google/uuid v1.6.0 // indirect
@@ -89,5 +89,3 @@ require (
8989
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
9090
sigs.k8s.io/yaml v1.6.0 // indirect
9191
)
92-
93-
replace github.com/NexGenCloud/hyperstack-sdk-go => ./pkg/hyperstack/hyperstack-sdk-go

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
github.com/NexGenCloud/hyperstack-sdk-go v1.41.0-alpha h1:2YPzgffiqmmvnebcsMzWgOqgv2+BT4LmWbEYHHvkTpE=
2+
github.com/NexGenCloud/hyperstack-sdk-go v1.41.0-alpha/go.mod h1:BJezCpOGG8z1/k5IcWzlnFk1wrd9/CrdaxD0vMQkDeM=
13
github.com/RaveNoX/go-jsoncommentstrip v1.0.0/go.mod h1:78ihd09MekBnJnxpICcwzCMzGrKSKYe4AqU6PDYYpjk=
24
github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ=
35
github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk=

pkg/driver/controllerserver.go

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -285,22 +285,8 @@ func (cs *controllerServer) ListSnapshots(ctx context.Context, req *csi.ListSnap
285285
// ControllerGetCapabilities implements the default GRPC callout.
286286
// Default supports all capabilities
287287
func (cs *controllerServer) ControllerGetCapabilities(ctx context.Context, req *csi.ControllerGetCapabilitiesRequest) (*csi.ControllerGetCapabilitiesResponse, error) {
288-
caps := cs.driver.cscap
289-
for _, cap := range []csi.ControllerServiceCapability_RPC_Type{
290-
csi.ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME,
291-
csi.ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME,
292-
} {
293-
klog.Infof("ControllerGetCapabilities: %v", cap)
294-
caps = append(caps, &csi.ControllerServiceCapability{
295-
Type: &csi.ControllerServiceCapability_Rpc{
296-
Rpc: &csi.ControllerServiceCapability_RPC{
297-
Type: cap,
298-
},
299-
},
300-
})
301-
}
302288
return &csi.ControllerGetCapabilitiesResponse{
303-
Capabilities: caps,
289+
Capabilities: cs.driver.cscap,
304290
}, nil
305291
}
306292

pkg/driver/driver.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@ func NewDriver(opts *DriverOpts) *Driver {
8484
csi.ControllerServiceCapability_RPC_LIST_VOLUMES,
8585
csi.ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME,
8686
csi.ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME,
87-
csi.ControllerServiceCapability_RPC_CREATE_DELETE_SNAPSHOT,
88-
csi.ControllerServiceCapability_RPC_LIST_SNAPSHOTS,
89-
csi.ControllerServiceCapability_RPC_EXPAND_VOLUME,
90-
csi.ControllerServiceCapability_RPC_CLONE_VOLUME,
9187
csi.ControllerServiceCapability_RPC_LIST_VOLUMES_PUBLISHED_NODES,
9288
csi.ControllerServiceCapability_RPC_GET_VOLUME,
9389
})

pkg/driver/nodeserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (ns *nodeServer) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoReque
179179
klog.Infof("NodeGetInfo called with nodeID: %#v\n", nodeID)
180180
return &csi.NodeGetInfoResponse{
181181
NodeId: nodeID,
182-
MaxVolumesPerNode: 5,
182+
MaxVolumesPerNode: 10,
183183
AccessibleTopology: &csi.Topology{
184184
Segments: map[string]string{
185185
"hyperstack.cloud/instance-id": nodeID,

pkg/hyperstack/hyperstack-sdk-go/.env.example

Lines changed: 0 additions & 1 deletion
This file was deleted.

pkg/hyperstack/hyperstack-sdk-go/.github/workflows/go.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

pkg/hyperstack/hyperstack-sdk-go/.gitignore

Lines changed: 0 additions & 10 deletions
This file was deleted.

pkg/hyperstack/hyperstack-sdk-go/CustomTime.go

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)