Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for InClusterConfig (0.37 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_test.go

    				field.NotSupported(field.NewPath("connectionInfo"), api.WebhookConnectionInfo{Type: "ExternalClusterConfig"}, []string{"InClusterConfig", "KubeConfigFile"}),
    			},
    			knownTypes:      sets.NewString(string("Webhook")),
    			repeatableTypes: sets.NewString(string("Webhook")),
    		},
    		{
    			name: "if connectionInfo=InClusterConfig, then kubeConfigFile should be nil",
    			configuration: api.AuthorizationConfiguration{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 87.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/webhook/authentication.go

    	if target == "kubernetes.default.svc:443" {
    		// if we can find an in-cluster-config use that.  If we can't, fall through.
    		inClusterConfig, err := rest.InClusterConfig()
    		if err == nil {
    			return setGlobalDefaults(inClusterConfig), nil
    		}
    	}
    
    	// star (default) match
    	if authConfig, ok := c.kubeconfig.AuthInfos["*"]; ok {
    		return restConfigFromKubeconfig(authConfig)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/options/coreapi.go

    		kubeconfig, err = loader.ClientConfig()
    		if err != nil {
    			return fmt.Errorf("failed to load kubeconfig at %q: %v", o.CoreAPIKubeconfigPath, err)
    		}
    	} else {
    		kubeconfig, err = rest.InClusterConfig()
    		if err != nil {
    			return err
    		}
    	}
    	if feature.DefaultFeatureGate.Enabled(features.APIServerTracing) {
    		kubeconfig.Wrap(tracing.WrapperFor(config.TracerProvider))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 16:55:02 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/apis/apiserver/types.go

    	AuthorizationWebhookConnectionInfoTypeKubeConfigFile string         = "KubeConfigFile"
    	AuthorizationWebhookConnectionInfoTypeInCluster      string         = "InClusterConfig"
    )
    
    type AuthorizerType string
    
    type AuthorizerConfiguration struct {
    	// Type refers to the type of the authorizer
    	// "Webhook" is supported in the generic API server
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 00:57:24 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. pkg/kube/util.go

    	}
    
    	return SetRestDefaults(restConfig), nil
    }
    
    // InClusterConfig returns the rest.Config for in cluster usage.
    // Typically, DefaultRestConfig is used and this is auto detected; usage directly allows explicitly overriding to use in-cluster.
    func InClusterConfig(fns ...func(*rest.Config)) (*rest.Config, error) {
    	config, err := rest.InClusterConfig()
    	if err != nil {
    		return nil, err
    	}
    
    	for _, fn := range fns {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/options/authorization.go

    	} else {
    		// without the remote kubeconfig file, try to use the in-cluster config.  Most addon API servers will
    		// use this path. If it is optional, ignore errors.
    		clientConfig, err = rest.InClusterConfig()
    		if err != nil && s.RemoteKubeConfigFileOptional {
    			if err != rest.ErrNotInCluster {
    				klog.Warningf("failed to read in-cluster kubeconfig for delegated authorization: %v", err)
    			}
    			return nil, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1beta1/types.go

    	AuthorizationWebhookConnectionInfoTypeKubeConfigFile string         = "KubeConfigFile"
    	AuthorizationWebhookConnectionInfoTypeInCluster      string         = "InClusterConfig"
    )
    
    type AuthorizerType string
    
    type AuthorizerConfiguration struct {
    	// Type refers to the type of the authorizer
    	// "Webhook" is supported in the generic API server
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 17:59:05 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1alpha1/types.go

    	AuthorizationWebhookConnectionInfoTypeKubeConfigFile string         = "KubeConfigFile"
    	AuthorizationWebhookConnectionInfoTypeInCluster      string         = "InClusterConfig"
    )
    
    type AuthorizerType string
    
    type AuthorizerConfiguration struct {
    	// Type refers to the type of the authorizer
    	// "Webhook" is supported in the generic API server
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 17:59:05 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  9. pkg/kube/multicluster/secretcontroller.go

    	// Istiod is running on the external cluster. Use the inCluster credentials to
    	// create a kubeclientset
    	if features.LocalClusterSecretWatcher && features.ExternalIstiod {
    		config, err := kube.InClusterConfig(configOverrides...)
    		if err != nil {
    			log.Errorf("Could not get istiod incluster configuration: %v", err)
    			return nil
    		}
    		log.Info("Successfully retrieved incluster config.")
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 02:13:10 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/authentication.go

    	} else {
    		// without the remote kubeconfig file, try to use the in-cluster config.  Most addon API servers will
    		// use this path. If it is optional, ignore errors.
    		clientConfig, err = rest.InClusterConfig()
    		if err != nil && s.RemoteKubeConfigFileOptional {
    			if err != rest.ErrNotInCluster {
    				klog.Warningf("failed to read in-cluster kubeconfig for delegated authentication: %v", err)
    			}
    			return nil, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 14:51:22 UTC 2023
    - 19.9K bytes
    - Viewed (0)
Back to top