Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getPodInfoAttrs (0.56 sec)

  1. pkg/volume/csi/csi_util.go

    	}
    	ctx := context.WithValue(context.Background(), additionalInfoKey, additionalInfo{Migrated: strconv.FormatBool(migrated)})
    	return context.WithTimeout(ctx, timeout)
    }
    
    // getPodInfoAttrs returns pod info for NodePublish
    func getPodInfoAttrs(pod *api.Pod, volumeMode storage.VolumeLifecycleMode) map[string]string {
    	attrs := map[string]string{
    		"csi.storage.k8s.io/pod.name":            pod.Name,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 28 17:14:00 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_block.go

    	if err != nil {
    		return "", errors.New(log("blockMapper.publishVolumeForBlock failed to get VolumeLifecycleMode: %v", err))
    	}
    	if podInfoEnabled {
    		volAttribs = mergeMap(volAttribs, getPodInfoAttrs(m.pod, volumeLifecycleMode))
    	}
    
    	nodePublishSecrets := map[string]string{}
    	if csiSource.NodePublishSecretRef != nil {
    		nodePublishSecrets, err = getCredentialsFromSecret(m.k8s, csiSource.NodePublishSecretRef)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_mounter.go

    	if err != nil {
    		return volumetypes.NewTransientOperationFailure(log("mounter.SetUpAt failed to assemble volume attributes: %v", err))
    	}
    	if podInfoEnabled {
    		volAttribs = mergeMap(volAttribs, getPodInfoAttrs(c.pod, c.volumeLifecycleMode))
    	}
    
    	// Inject pod service account token into volume attributes
    	serviceAccountTokenAttrs, err := c.podServiceAccountTokenAttrs()
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (1)
Back to top