ofek / csi-gcs

Kubernetes CSI driver for Google Cloud Storage
https://ofek.dev/csi-gcs/
Apache License 2.0
152 stars 39 forks source link

Question about "csi" directive in PersistentVolume #154

Closed vsoch closed 1 year ago

vsoch commented 1 year ago

Hiya! I'm new to setting this up, so I apologize in advance for the silly question. I have my storage set up, the secret created, and now I'm adding the logic for my operator to create the same as the pv.yaml and pvc.yaml. But I'm looking at the section here:

https://github.com/ofek/csi-gcs/blob/4cf1cb5580cf9e4c4246cbb66cb5dba218162109/examples/static/pv.yaml#L12C7-L17

And I don't see how this csi: section maps to the PeristentVolume spec: https://github.com/kubernetes/api/blob/9fe8a5d4bed864fd0d2f4486dc5a08889cfb007c/core/v1/types.go#L323-L366

Am I looking in the wrong place?

vsoch commented 1 year ago

Oh wait I think I just found it - this one? https://github.com/kubernetes/api/blob/9fe8a5d4bed864fd0d2f4486dc5a08889cfb007c/core/v1/types.go#L156 So in the yaml it's flattened out to the spec level, but it's actually a type of volume source?

vsoch commented 1 year ago

Sorry for the noise!