Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for authConfigs (0.19 sec)

  1. pkg/credentialprovider/secrets/secrets_test.go

    			}
    
    			authConfigs, found := keyring.Lookup(testcase.image)
    			if found != testcase.found {
    				t.Logf("actual lookup status: %v", found)
    				t.Logf("expected lookup status: %v", testcase.found)
    				t.Errorf("unexpected lookup for image: %s", testcase.image)
    			}
    
    			if !reflect.DeepEqual(authConfigs, testcase.authConfigs) {
    				t.Logf("actual auth configs: %#v", authConfigs)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 23 18:11:10 UTC 2020
    - 7.3K bytes
    - Viewed (0)
  2. pkg/credentialprovider/keyring.go

    // return each credentials
    func (k UnionDockerKeyring) Lookup(image string) ([]AuthConfig, bool) {
    	authConfigs := []AuthConfig{}
    	for _, subKeyring := range k {
    		if subKeyring == nil {
    			continue
    		}
    
    		currAuthResults, _ := subKeyring.Lookup(image)
    		authConfigs = append(authConfigs, currAuthResults...)
    	}
    
    	return authConfigs, (len(authConfigs) > 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 9.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/webhook/authentication.go

    	// exact match
    	if authConfig, ok := c.kubeconfig.AuthInfos[target]; ok {
    		return restConfigFromKubeconfig(authConfig)
    	}
    
    	// star prefixed match
    	serverSteps := strings.Split(target, ".")
    	for i := 1; i < len(serverSteps); i++ {
    		nickName := "*." + strings.Join(serverSteps[i:], ".")
    		if authConfig, ok := c.kubeconfig.AuthInfos[nickName]; ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  4. pkg/credentialprovider/keyring_test.go

    	})
    
    	tests := []struct {
    		image string
    		match []AuthConfig
    		ok    bool
    	}{
    		// direct match
    		{"bar.example.com", []AuthConfig{ada}, true},
    
    		// direct match deeper than other possible matches
    		{"bar.example.com/pong", []AuthConfig{grace, ada}, true},
    
    		// no direct match, deeper path ignored
    		{"bar.example.com/ping", []AuthConfig{ada}, true},
    
    		// match first part of path token
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 15 10:47:22 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  5. pkg/credentialprovider/plugin/plugin_test.go

    	testingclock "k8s.io/utils/clock/testing"
    )
    
    type fakeExecPlugin struct {
    	cacheKeyType  credentialproviderapi.PluginCacheKeyType
    	cacheDuration time.Duration
    
    	auth map[string]credentialproviderapi.AuthConfig
    }
    
    func (f *fakeExecPlugin) ExecPlugin(ctx context.Context, image string) (*credentialproviderapi.CredentialProviderResponse, error) {
    	return &credentialproviderapi.CredentialProviderResponse{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 09 06:11:06 UTC 2022
    - 26.5K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_image_test.go

    	}
    
    	tests := map[string]struct {
    		imageName           string
    		passedSecrets       []v1.Secret
    		builtInDockerConfig credentialprovider.DockerConfig
    		expectedAuth        *runtimeapi.AuthConfig
    	}{
    		"no matching secrets": {
    			"ubuntu",
    			[]v1.Secret{},
    			credentialprovider.DockerConfig(map[string]credentialprovider.DockerConfigEntry{}),
    			nil,
    		},
    		"default keyring secrets": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/runtime/impl.go

    	RemovePodSandbox(ctx context.Context, runtimeService criapi.RuntimeService, podSandboxID string) error
    	PullImage(ctx context.Context, imageService criapi.ImageManagerService, image *runtimeapi.ImageSpec, auth *runtimeapi.AuthConfig, podSandboxConfig *runtimeapi.PodSandboxConfig) (string, error)
    	ImageStatus(ctx context.Context, imageService criapi.ImageManagerService, image *runtimeapi.ImageSpec, verbose bool) (*runtimeapi.ImageStatusResponse, error)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ParallelDownloadsIntegrationTest.groovy

            def m4 = mavenRepo.module('test', 'test4', '1.0').publish()
    
            buildFile << """
                repositories {
                    maven {
                        url = uri('$blockingServer.uri')
                        $authConfig
                    }
                }
                configurations { compile }
                dependencies {
                    compile 'test:test1:1.0'
                    compile 'test:test2:1.0'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 17:10:15 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. pkg/credentialprovider/plugin/config_test.go

    				t.Fatal(err)
    			}
    
    			authConfig, err := readCredentialProviderConfigFile(file.Name())
    			if err != nil && !testcase.expectErr {
    				t.Fatal(err)
    			}
    
    			if err == nil && testcase.expectErr {
    				t.Error("expected error but got none")
    			}
    
    			if !reflect.DeepEqual(authConfig, testcase.config) {
    				t.Logf("actual auth config: %#v", authConfig)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  10. pkg/wasm/imagefetcher.go

    		return nil, err
    	}
    
    	empty := dtypes.AuthConfig{}
    	if cfg == empty {
    		return authn.Anonymous, nil
    	}
    	authConfig := authn.AuthConfig{
    		Username:      cfg.Username,
    		Password:      cfg.Password,
    		Auth:          cfg.Auth,
    		IdentityToken: cfg.IdentityToken,
    		RegistryToken: cfg.RegistryToken,
    	}
    	return authn.FromConfig(authConfig), nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Dec 10 05:44:51 UTC 2023
    - 12K bytes
    - Viewed (0)
Back to top