Skip to content

Commit d49ecb5

Browse files
committed
Remove TODO comments
Signed-off-by: Prasad Ghangal <[email protected]>
1 parent 9821fd8 commit d49ecb5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmd/hostpathplugin/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ func main() {
5757

5858
flag.BoolVar(&cfg.EnableVolumeExpansion, "enable-volume-expansion", true, "Enables volume expansion feature.")
5959
flag.BoolVar(&cfg.EnableControllerModifyVolume, "enable-controller-modify-volume", false, "Enables Controller modify volume feature.")
60-
// TODO: Remove this feature flag and enable SnapshotMetadata service by default once external-snapshot-metadata alpha is released.
6160
flag.BoolVar(&cfg.EnableSnapshotMetadata, "enable-snapshot-metadata", false, "Enables Snapshot Metadata service.")
6261
snapshotMetadataBlockType := flag.String("snapshot-metadata-block-type", "FIXED_LENGTH", "Expected Snapshot Metadata block type in response. Allowed valid types are FIXED_LENGTH or VARIABLE_LENGTH. If not specified, FIXED_LENGTH is used by default.")
6362
flag.Var(&cfg.AcceptedMutableParameterNames, "accepted-mutable-parameter-names", "Comma separated list of parameter names that can be modified on a persistent volume. This is only used when enable-controller-modify-volume is true. If unset, all parameters are mutable.")

pkg/hostpath/hostpath.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ func NewHostPathDriver(cfg Config) (*hostPath, error) {
132132

133133
func (hp *hostPath) Run() error {
134134
s := NewNonBlockingGRPCServer()
135-
// hp itself implements ControllerServer, NodeServer, IdentityServer, and SnapshotMetadataServer.
136-
// TODO: Enable SnapshotMetadata service by default once external-snapshot-metadata alpha is released.
137135
var sms csi.SnapshotMetadataServer
138136
if hp.config.EnableSnapshotMetadata {
139137
sms = hp

pkg/hostpath/snapshotmetadata.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ import (
2626
"k8s.io/klog/v2"
2727
)
2828

29+
// NOTE: This implementation of SnapshotMetadata service is used for demo and CI testing purpose only.
30+
// This should not be used in production or as an example about how to write a real driver.
31+
2932
func (hp *hostPath) getAllocatedBlockMetadata(ctx context.Context, filePath string, startingOffset, blockSize int64, maxResult int32, allocBlocksChan chan<- []*csi.BlockMetadata) error {
3033
klog.V(4).Infof("finding allocated blocks in the file: %s", filePath)
3134
defer close(allocBlocksChan)

0 commit comments

Comments
 (0)