You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When looking for datasets the the CSI Driver has created, it scans the output of pool/dataset (see docs & example) which retrieves all of the datasets in TrueNAS.
Instead, these on_get methods should scope the datasets to parameters.root path given in the StorageClass.
At first look, it doesn't appear this parameter is passed down in the request (see spec) so will most likely needed to be loaded from the Secret as an env var (DEFAULT_ROOT ?). Given the above, the req paths go from pool/dataset to pool/dataset?id=${DEFAULT_ROOT}.
Example curl command: curl -X GET "https://freenas.host/api/v2.0/pool/dataset?id=tank/k8s-iscsi" -H "accept: */*" -su 'root'
The text was updated successfully, but these errors were encountered:
maxirus
added a commit
to maxirus/truenas-csp
that referenced
this issue
Mar 2, 2021
# This is the 1st commit message:
ebasing to upstream
# This is the commit message hpe-storage#2:
Fixing log message
# This is the commit message hpe-storage#3:
Testing basic auth
# This is the commit message hpe-storage#4:
Fixing missing var error
# This is the commit message hpe-storage#5:
Fixing username
# This is the commit message hpe-storage#6:
Fixing username scope
# This is the commit message hpe-storage#7:
Printing headers
# This is the commit message hpe-storage#8:
Pulling credentials from ENV var
# This is the commit message hpe-storage#9:
Fixing Syntax error :(
# This is the commit message hpe-storage#10:
Removing comments
# This is the commit message hpe-storage#11:
Adding username/password vars
# This is the commit message hpe-storage#12:
Updating Docs
# This is the commit message hpe-storage#13:
testing getting root path
# This is the commit message hpe-storage#14:
Testing root in Volume method
# This is the commit message hpe-storage#15:
adding more debug statements
# This is the commit message hpe-storage#16:
Whoops
# This is the commit message hpe-storage#17:
req.media is None
# This is the commit message hpe-storage#18:
reverting Deployment
# This is the commit message hpe-storage#19:
Using token parsing instead of ENV Var to set creds
# This is the commit message hpe-storage#20:
Removing debug lines
# This is the commit message hpe-storage#21:
Updating Docs
# This is the commit message hpe-storage#22:
Putting needed token var back
# This is the commit message hpe-storage#23:
Upstream
# This is the commit message hpe-storage#24:
Adding back newline
When looking for datasets the the CSI Driver has created, it scans the output of
pool/dataset
(see docs & example) which retrieves all of the datasets in TrueNAS.Instead, these
on_get
methods should scope the datasets toparameters.root
path given in the StorageClass.At first look, it doesn't appear this parameter is passed down in the request (see spec) so will most likely needed to be loaded from the Secret as an env var (DEFAULT_ROOT ?). Given the above, the req paths go from
pool/dataset
topool/dataset?id=${DEFAULT_ROOT}
.Example curl command:
curl -X GET "https://freenas.host/api/v2.0/pool/dataset?id=tank/k8s-iscsi" -H "accept: */*" -su 'root'
The text was updated successfully, but these errors were encountered: