Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 133 for KubeConfig (0.26 sec)

  1. cmd/kubeadm/app/phases/certs/renewal/readwriter.go

    	// get current context
    	if _, ok := kubeConfig.Contexts[kubeConfig.CurrentContext]; !ok {
    		return nil, errors.Errorf("invalid kubeConfig file %s: missing context %s", rw.kubeConfigFilePath, kubeConfig.CurrentContext)
    	}
    
    	// get cluster info for current context and ensure a server certificate is embedded in it
    	clusterName := kubeConfig.Contexts[kubeConfig.CurrentContext].Cluster
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 01 03:09:53 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. pkg/test/helm/helm.go

    	"istio.io/istio/pkg/test/shell"
    )
    
    // Helm allows clients to interact with helm commands in their cluster
    type Helm struct {
    	kubeConfig string
    }
    
    // New returns a new instance of a helm object.
    func New(kubeConfig string) *Helm {
    	return &Helm{
    		kubeConfig: kubeConfig,
    	}
    }
    
    // InstallChartWithValues installs the specified chart with its given name to the given namespace
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 23 19:25:43 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. istioctl/pkg/cli/option.go

    }
    
    func (r *RootFlags) configureDefaultNamespace() {
    	configAccess := clientcmd.NewDefaultPathOptions()
    
    	kubeconfig := *r.kubeconfig
    	if kubeconfig != "" {
    		// use specified kubeconfig file for the location of the
    		// config to read
    		configAccess.GlobalFile = kubeconfig
    	}
    
    	// gets existing kubeconfig or returns new empty config
    	config, err := configAccess.GetStartingConfig()
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 18:01:27 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. cmd/kubeadm/test/kubeconfig/util.go

    limitations under the License.
    */
    
    package kubeconfig
    
    import (
    	"crypto/x509"
    	"encoding/pem"
    	"testing"
    	"time"
    
    	clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
    
    	certstestutil "k8s.io/kubernetes/cmd/kubeadm/app/util/certs"
    )
    
    // AssertKubeConfigCurrentCluster is a utility function for kubeadm testing that asserts if the CurrentCluster in
    // the given KubeConfig object contains refers to a specific cluster
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/webhook/authentication_test.go

    )
    
    func TestAuthenticationDetection(t *testing.T) {
    	tests := []struct {
    		name       string
    		kubeconfig clientcmdapi.Config
    		serverName string
    		expected   rest.Config
    	}{
    		{
    			name:       "empty",
    			serverName: "foo.com",
    		},
    		{
    			name:       "fallback to current context",
    			serverName: "foo.com",
    			kubeconfig: clientcmdapi.Config{
    				AuthInfos: map[string]*clientcmdapi.AuthInfo{
    					"bar.com": {Token: "bar"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  6. pkg/test/framework/components/environment/kube/settings.go

    	}
    	scopes.Framework.Infof("Using KubeConfigs: %v.", s.KubeConfig)
    	if err := s.validateTopologyFlags(len(s.KubeConfig)); err != nil {
    		return nil, err
    	}
    	var configs []cluster.Config
    	for i, kc := range s.KubeConfig {
    		ci := clusterIndex(i)
    		cfg := cluster.Config{
    			Name:    fmt.Sprintf("cluster-%d", i),
    			Network: s.networkTopology[ci],
    			Meta:    config.Map{"kubeconfig": kc},
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. 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)
  8. cni/test/testdata/expected/10-calico.conflist-istioconfig

      "name": "k8s-pod-network",
      "plugins": [
        {
          "etcd_endpoints": "http://10.110.0.136:6666",
          "ipam": {
            "type": "calico-ipam"
          },
          "kubernetes": {
            "kubeconfig": "/etc/cni/net.d/calico-kubeconfig"
          },
          "mtu": 1500,
          "plugin_log_level": "info",
          "policy": {
            "type": "k8s"
          },
          "type": "calico"
        },
        {
          "capabilities": {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 935 bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/webhook/authentication.go

    	// star (default) match
    	if authConfig, ok := c.kubeconfig.AuthInfos["*"]; ok {
    		return restConfigFromKubeconfig(authConfig)
    	}
    
    	// use the current context from the kubeconfig if possible
    	if len(c.kubeconfig.CurrentContext) > 0 {
    		if currContext, ok := c.kubeconfig.Contexts[c.kubeconfig.CurrentContext]; ok {
    			if len(currContext.AuthInfo) > 0 {
    				if currAuth, ok := c.kubeconfig.AuthInfos[currContext.AuthInfo]; 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)
  10. cni/pkg/install/kubeconfig_test.go

    				}
    				// Successful test case expecting failure
    				return
    			} else if c.expectedFailure {
    				t.Fatalf("expected failure")
    			}
    
    			goldenFilepath := "testdata/kubeconfig-tls"
    			if c.skipTLSVerify {
    				goldenFilepath = "testdata/kubeconfig-skip-tls"
    			}
    
    			testutils.CompareContent(t, []byte(result.Full), goldenFilepath)
    		})
    	}
    }
    
    func TestReplaceInvalidKubeconfigFile(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:29 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top