feat(volume) change the way portainer creates NFS4 volumes (#4729) (#4735)

Co-authored-by: Simon Meng <simon.meng@portainer.io>
pull/4868/head
cong meng 4 years ago committed by GitHub
parent 56344ca7d9
commit c705c04d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -70,9 +70,12 @@ angular.module('portainer.docker').controller('CreateVolumeController', [
function prepareNFSConfiguration(driverOptions) {
var data = $scope.formValues.NFSData;
driverOptions.push({ name: 'type', value: data.version.toLowerCase() });
driverOptions.push({ name: 'type', value: 'nfs' });
var options = 'addr=' + data.serverAddress + ',' + data.options;
if (data.version === 'NFS4') {
options = options + ',nfsvers=4';
}
driverOptions.push({ name: 'o', value: options });
var mountPoint = data.mountPoint[0] === ':' ? data.mountPoint : ':' + data.mountPoint;

Loading…
Cancel
Save