Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for dockerConfig (0.23 sec)

  1. hack/testdata/dockerconfig.json

    zhouya0 <******@****.***> 1589166337 +0800
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 15 04:14:03 UTC 2020
    - 311 bytes
    - Viewed (0)
  2. pkg/credentialprovider/config.go

    type DockerConfigJSON struct {
    	Auths DockerConfig `json:"auths"`
    	// +optional
    	HTTPHeaders map[string]string `json:"HttpHeaders,omitempty"`
    }
    
    // DockerConfig represents the config file used by the docker CLI.
    // This config that represents the credentials that should be used
    // when pulling images from specific image repositories.
    type DockerConfig map[string]DockerConfigEntry
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 19 15:11:57 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  3. pkg/credentialprovider/provider.go

    // with another DockerConfigProvider and caching the DockerConfig it provides
    // for a pre-specified lifetime.
    type CachingDockerConfigProvider struct {
    	Provider DockerConfigProvider
    	Lifetime time.Duration
    
    	// ShouldCache is an optional function that returns true if the specific config should be cached.
    	// If nil, all configs are treated as cacheable.
    	ShouldCache func(DockerConfig) bool
    
    	// cache fields
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 02 00:08:54 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  4. pkg/credentialprovider/plugin/plugin_test.go

    				t.Logf("actual docker config: %v", dockerconfig)
    				t.Logf("expected docker config: %v", testcase.dockerconfig)
    				t.Error("unexpected docker config")
    			}
    		})
    	}
    }
    
    // This test calls Provide in parallel for different registries and images
    // The purpose of this is to detect any race conditions while cache rw.
    func Test_ProvideParallel(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 09 06:11:06 UTC 2022
    - 26.5K bytes
    - Viewed (0)
  5. pkg/credentialprovider/secrets/secrets_test.go

    					},
    				},
    			},
    			authConfigs: []credentialprovider.AuthConfig{
    				{
    					Username: "user",
    					Password: "password",
    				},
    			},
    			found: true,
    		},
    		{
    			name:           "with .dockerconfig and auth field",
    			image:          "test.registry.io",
    			defaultKeyring: &fakeKeyring{},
    			pullSecrets: []v1.Secret{
    				{
    					Type: v1.SecretTypeDockercfg,
    					Data: map[string][]byte{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 23 18:11:10 UTC 2020
    - 7.3K bytes
    - Viewed (0)
  6. pkg/credentialprovider/plugin/plugin.go

    	default:
    		klog.Errorf("credential provider plugin did not return a valid cacheKeyType: %q", cacheKeyType)
    		return credentialprovider.DockerConfig{}
    	}
    
    	dockerConfig := make(credentialprovider.DockerConfig, len(response.Auth))
    	for matchImage, authConfig := range response.Auth {
    		dockerConfig[matchImage] = credentialprovider.DockerConfigEntry{
    			Username: authConfig.Username,
    			Password: authConfig.Password,
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 05:07:28 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. pkg/credentialprovider/secrets/secrets.go

    // then a DockerKeyring is built based on every hit and unioned with the defaultKeyring.
    // If they do not, then the default keyring is returned
    func MakeDockerKeyring(passedSecrets []v1.Secret, defaultKeyring credentialprovider.DockerKeyring) (credentialprovider.DockerKeyring, error) {
    	passedCredentials := []credentialprovider.DockerConfig{}
    	for _, passedSecret := range passedSecrets {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 02 00:08:54 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  8. pkg/credentialprovider/config_test.go

    	expect := DockerConfig(map[string]DockerConfigEntry{
    		"http://foo.example.com": {
    			Username: "foo",
    			Password: "bar",
    			Email:    "******@****.***",
    		},
    		"http://bar.example.com": {
    			Username: "bar",
    			Password: "baz",
    			Email:    "******@****.***",
    		},
    	})
    
    	var output DockerConfig
    	err := json.Unmarshal(input, &output)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 19 15:11:57 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/kuberuntime_image_test.go

    		builtInDockerConfig credentialprovider.DockerConfig
    		expectedAuth        *runtimeapi.AuthConfig
    	}{
    		"no matching secrets": {
    			"ubuntu",
    			[]v1.Secret{},
    			credentialprovider.DockerConfig(map[string]credentialprovider.DockerConfigEntry{}),
    			nil,
    		},
    		"default keyring secrets": {
    			"ubuntu",
    			[]v1.Secret{},
    			credentialprovider.DockerConfig(map[string]credentialprovider.DockerConfigEntry{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. pkg/credentialprovider/provider_test.go

    }
    
    // Enabled implements dockerConfigProvider
    func (d *testProvider) Enabled() bool {
    	return true
    }
    
    // Provide implements dockerConfigProvider
    func (d *testProvider) Provide(image string) DockerConfig {
    	d.Count++
    	return DockerConfig{}
    }
    
    func TestCachingProvider(t *testing.T) {
    	provider := &testProvider{
    		Count: 0,
    	}
    
    	cache := &CachingDockerConfigProvider{
    		Provider: provider,
    		Lifetime: 1 * time.Second,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 02 00:08:54 UTC 2021
    - 1.8K bytes
    - Viewed (0)
Back to top