From f680c68c5eb316d93d5ee5ac7ffb7b4a6ac0b6c9 Mon Sep 17 00:00:00 2001 From: kartik494 Date: Thu, 7 Apr 2022 12:19:30 +0530 Subject: [PATCH] Inclined List and get CSI Driver with given yaml --- book/src/csi-driver-object.md | 40 ++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/book/src/csi-driver-object.md b/book/src/csi-driver-object.md index 46d256a3..e305542d 100644 --- a/book/src/csi-driver-object.md +++ b/book/src/csi-driver-object.md @@ -112,28 +112,48 @@ Using the `CSIDriver` object, it is now possible to query Kubernetes to get a li ``` $> kubectl get csidrivers.storage.k8s.io -NAME CREATED AT -hostpath.csi.k8s.io 2019-09-13T09:58:43Z +NAME ATTACHREQUIRED PODINFOONMOUNT MODES AGE +mycsidriver.example.com true true Persistent,Ephemeral 2m46s ``` Or get a more detailed view of your registered driver with: ``` $> kubectl describe csidrivers.storage.k8s.io -Name: hostpath.csi.k8s.io -Namespace: +Name: mycsidriver.example.com +Namespace: Labels: -Annotations: kubectl.kubernetes.io/last-applied-configuration: - {"apiVersion":"storage.k8s.io/v1","kind":"CSIDriver","metadata":{"annotations":{},"name":"hostpath.csi.k8s.io"},"spec":{"podInfoOnMou... +Annotations: API Version: storage.k8s.io/v1 Kind: CSIDriver Metadata: - Creation Timestamp: 2019-09-13T09:58:43Z - Resource Version: 341 - Self Link: /apis/storage.k8s.io/v1/csidrivers/hostpath.csi.k8s.io - UID: 1860f2a1-85f8-4357-a933-c45e54f0c8e0 + Creation Timestamp: 2022-04-07T05:58:06Z + Managed Fields: + API Version: storage.k8s.io/v1 + Fields Type: FieldsV1 + fieldsV1: + f:metadata: + f:annotations: + .: + f:kubectl.kubernetes.io/last-applied-configuration: + f:spec: + f:attachRequired: + f:fsGroupPolicy: + f:podInfoOnMount: + f:requiresRepublish: + f:tokenRequests: + f:volumeLifecycleModes: + .: + v:"Ephemeral": + v:"Persistent": + Manager: kubectl-client-side-apply + Operation: Update + Time: 2022-04-07T05:58:06Z + Resource Version: 896 + UID: 6cc7d513-6d72-4203-87d3-730f83884f89 Spec: Attach Required: true + Fs Group Policy: File Pod Info On Mount: true Volume Lifecycle Modes: Persistent