Skip to content

Commit 7aa0cfd

Browse files
Merge pull request #262998 from andyzhangx/patch-92
Update csi-migrate-in-tree-volumes.md
2 parents 6c00115 + 41b2337 commit 7aa0cfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/aks/csi-migrate-in-tree-volumes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Migrate from in-tree storage class to CSI drivers on Azure Kubernetes Service (AKS)
33
description: Learn how to migrate from in-tree persistent volume to the Container Storage Interface (CSI) driver in an Azure Kubernetes Service (AKS) cluster.
44
ms.topic: article
5-
ms.date: 07/26/2023
5+
ms.date: 01/11/2024
66
author: mgoedtel
77

88
---
@@ -110,7 +110,7 @@ The following are important considerations to evaluate:
110110
i=$((i + 1))
111111
else
112112
PVC_CREATION_TIME=$(kubectl get pvc $PVC -n $NAMESPACE -o jsonpath='{.metadata.creationTimestamp}')
113-
if [[ $PVC_CREATION_TIME > $STARTTIMESTAMP ]]; then
113+
if [[ $PVC_CREATION_TIME >= $STARTTIMESTAMP ]]; then
114114
if [[ $ENDTIMESTAMP > $PVC_CREATION_TIME ]]; then
115115
PV="$(kubectl get pvc $PVC -n $NAMESPACE -o jsonpath='{.spec.volumeName}')"
116116
RECLAIM_POLICY="$(kubectl get pv $PV -n $NAMESPACE -o jsonpath='{.spec.persistentVolumeReclaimPolicy}')"
@@ -183,7 +183,7 @@ The following are important considerations to evaluate:
183183
* `namespace` - The cluster namespace
184184
* `sourceStorageClass` - The in-tree storage driver-based StorageClass
185185
* `targetCSIStorageClass` - The CSI storage driver-based StorageClass, which can be either one of the default storage classes that have the provisioner set to **disk.csi.azure.com** or **file.csi.azure.com**. Or you can create a custom storage class as long as it is set to either one of those two provisioners.
186-
* `startTimeStamp` - Provide a start time in the format **yyyy-mm-ddthh:mm:ssz**.
186+
* `startTimeStamp` - Provide a start time **before** PVC creation time in the format **yyyy-mm-ddthh:mm:ssz**
187187
* `endTimeStamp` - Provide an end time in the format **yyyy-mm-ddthh:mm:ssz**.
188188
189189
```bash

0 commit comments

Comments
 (0)