Skip to content

Commit e902539

Browse files
authored
Merge pull request #509 from Kartik494/inclineddriver
Inclined get and describe CSI Driver with given yaml
2 parents e918142 + f680c68 commit e902539

File tree

1 file changed

+30
-10
lines changed

1 file changed

+30
-10
lines changed

book/src/csi-driver-object.md

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,28 +123,48 @@ Using the `CSIDriver` object, it is now possible to query Kubernetes to get a li
123123

124124
```
125125
$> kubectl get csidrivers.storage.k8s.io
126-
NAME CREATED AT
127-
hostpath.csi.k8s.io 2019-09-13T09:58:43Z
126+
NAME ATTACHREQUIRED PODINFOONMOUNT MODES AGE
127+
mycsidriver.example.com true true Persistent,Ephemeral 2m46s
128128
```
129129

130130
Or get a more detailed view of your registered driver with:
131131

132132
```
133133
$> kubectl describe csidrivers.storage.k8s.io
134-
Name: hostpath.csi.k8s.io
135-
Namespace:
134+
Name: mycsidriver.example.com
135+
Namespace:
136136
Labels: <none>
137-
Annotations: kubectl.kubernetes.io/last-applied-configuration:
138-
{"apiVersion":"storage.k8s.io/v1","kind":"CSIDriver","metadata":{"annotations":{},"name":"hostpath.csi.k8s.io"},"spec":{"podInfoOnMou...
137+
Annotations: <none>
139138
API Version: storage.k8s.io/v1
140139
Kind: CSIDriver
141140
Metadata:
142-
Creation Timestamp: 2019-09-13T09:58:43Z
143-
Resource Version: 341
144-
Self Link: /apis/storage.k8s.io/v1/csidrivers/hostpath.csi.k8s.io
145-
UID: 1860f2a1-85f8-4357-a933-c45e54f0c8e0
141+
Creation Timestamp: 2022-04-07T05:58:06Z
142+
Managed Fields:
143+
API Version: storage.k8s.io/v1
144+
Fields Type: FieldsV1
145+
fieldsV1:
146+
f:metadata:
147+
f:annotations:
148+
.:
149+
f:kubectl.kubernetes.io/last-applied-configuration:
150+
f:spec:
151+
f:attachRequired:
152+
f:fsGroupPolicy:
153+
f:podInfoOnMount:
154+
f:requiresRepublish:
155+
f:tokenRequests:
156+
f:volumeLifecycleModes:
157+
.:
158+
v:"Ephemeral":
159+
v:"Persistent":
160+
Manager: kubectl-client-side-apply
161+
Operation: Update
162+
Time: 2022-04-07T05:58:06Z
163+
Resource Version: 896
164+
UID: 6cc7d513-6d72-4203-87d3-730f83884f89
146165
Spec:
147166
Attach Required: true
167+
Fs Group Policy: File
148168
Pod Info On Mount: true
149169
Volume Lifecycle Modes:
150170
Persistent

0 commit comments

Comments
 (0)