"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/volume/azure_file/azure_provision.go" between
kubernetes-1.18.14.tar.gz and kubernetes-1.18.15.tar.gz

About: Kubernetes is a platform for automating deployment, scaling, and operations of application containers across clusters of hosts (written in "Go"). 1.18.x series.

azure_provision.go  (kubernetes-1.18.14):azure_provision.go  (kubernetes-1.18.15)
skipping to change at line 74 skipping to change at line 74
} }
return plugin.newDeleterInternal(spec, &azureSvc{}, azure) return plugin.newDeleterInternal(spec, &azureSvc{}, azure)
} }
func (plugin *azureFilePlugin) newDeleterInternal(spec *volume.Spec, util azureU til, azure azureCloudProvider) (volume.Deleter, error) { func (plugin *azureFilePlugin) newDeleterInternal(spec *volume.Spec, util azureU til, azure azureCloudProvider) (volume.Deleter, error) {
if spec.PersistentVolume != nil && spec.PersistentVolume.Spec.AzureFile = = nil { if spec.PersistentVolume != nil && spec.PersistentVolume.Spec.AzureFile = = nil {
return nil, fmt.Errorf("invalid PV spec") return nil, fmt.Errorf("invalid PV spec")
} }
secretName, secretNamespace, err := getSecretNameAndNamespace(spec, spec. PersistentVolume.Spec.ClaimRef.Namespace) secretName, secretNamespace, err := getSecretNameAndNamespace(spec, defau ltSecretNamespace)
if err != nil { if err != nil {
return nil, err return nil, err
} }
shareName := spec.PersistentVolume.Spec.AzureFile.ShareName shareName := spec.PersistentVolume.Spec.AzureFile.ShareName
if accountName, accountKey, err := util.GetAzureCredentials(plugin.host, secretNamespace, secretName); err != nil { if accountName, accountKey, err := util.GetAzureCredentials(plugin.host, secretNamespace, secretName); err != nil {
return nil, err return nil, err
} else { } else {
return &azureFileDeleter{ return &azureFileDeleter{
azureFile: &azureFile{ azureFile: &azureFile{
volName: spec.Name(), volName: spec.Name(),
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)