Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getPublishContext (0.37 sec)

  1. pkg/volume/csi/csi_mounter.go

    			}
    		}
    
    		// search for attachment by VolumeAttachment.Spec.Source.PersistentVolumeName
    		if c.publishContext == nil {
    			nodeName := string(c.plugin.host.GetNodeName())
    			c.publishContext, err = c.plugin.getPublishContext(c.k8s, volumeHandle, string(driverName), nodeName)
    			if err != nil {
    				// we could have a transient error associated with fetching publish context
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_attacher.go

    	if err != nil {
    		return err
    	}
    
    	// Get secrets and publish context required for mountDevice
    	nodeName := string(c.plugin.host.GetNodeName())
    	publishContext, err := c.plugin.getPublishContext(c.k8s, csiSource.VolumeHandle, csiSource.Driver, nodeName)
    
    	if err != nil {
    		return volumetypes.NewTransientOperationFailure(err.Error())
    	}
    
    	nodeStageSecrets := map[string]string{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_plugin.go

    	if err != nil {
    		return "", err
    	}
    
    	if volSrc != nil {
    		return storage.VolumeLifecycleEphemeral, nil
    	}
    	return storage.VolumeLifecyclePersistent, nil
    }
    
    func (p *csiPlugin) getPublishContext(client clientset.Interface, handle, driver, nodeName string) (map[string]string, error) {
    	skip, err := p.skipAttach(driver)
    	if err != nil {
    		return nil, err
    	}
    	if skip {
    		return nil, nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
Back to top