Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getImageUser (0.19 sec)

  1. pkg/kubelet/kuberuntime/helpers.go

    		State: kubecontainer.SandboxToContainerState(s.State),
    	}, nil
    }
    
    // getImageUser gets uid or user name that will run the command(s) from image. The function
    // guarantees that only one of them is set.
    func (m *kubeGenericRuntimeManager) getImageUser(ctx context.Context, image string) (*int64, string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/helpers_test.go

    	assert.NoError(t, err)
    
    	type image struct {
    		name     string
    		uid      *runtimeapi.Int64Value
    		username string
    	}
    
    	type imageUserValues struct {
    		// getImageUser can return (*int64)(nil) so comparing with *uid will break
    		// type cannot be *int64 as Golang does not allow to take the address of a numeric constant"
    		uid      interface{}
    		username string
    		err      error
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_container.go

    	opts, cleanupAction, err := m.runtimeHelper.GenerateRunContainerOptions(ctx, pod, container, podIP, podIPs)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	uid, username, err := m.getImageUser(ctx, container.Image)
    	if err != nil {
    		return nil, cleanupAction, err
    	}
    
    	// Verify RunAsNonRoot. Non-root verification only supports numeric user.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
Back to top