Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 38 of 38 for Parse (0.12 sec)

  1. bin/update_ztunnel.sh

    # $1 = repo
    function getSha() {
      local dir result
      dir=$(mktemp -d)
      git clone --depth=1 "https://github.com/istio/${1}.git" -b "${UPDATE_BRANCH}" "${dir}"
    
      result="$(cd "${dir}" && git rev-parse HEAD)"
      rm -rf "${dir}"
    
      echo "${result}"
    }
    
    Shell Script
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 11 17:50:01 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  2. istioctl/pkg/install/k8sversion/version.go

    func extractKubernetesVersion(versionInfo *version.Info) (int, error) {
    	ver, err := goversion.NewVersion(versionInfo.String())
    	if err != nil {
    		return 0, fmt.Errorf("could not parse %v", err)
    	}
    	// Segments provide slice of int eg: v1.19.1 => [1, 19, 1]
    	num := ver.Segments()[1]
    	return num, nil
    }
    
    // IsK8VersionSupported checks minimum supported Kubernetes version for Istio.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 02:07:51 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  3. istioctl/pkg/multicluster/remote_secret_test.go

    	flags := pflag.NewFlagSet("test", pflag.ContinueOnError)
    	o.addFlags(flags)
    	g.Expect(flags.Parse([]string{
    		"--name",
    		"valid-name",
    	})).Should(Succeed())
    	g.Expect(o.prepare(ctx)).Should(Succeed())
    
    	o = RemoteSecretOptions{}
    	flags = pflag.NewFlagSet("test", pflag.ContinueOnError)
    	o.addFlags(flags)
    	g.Expect(flags.Parse([]string{
    		"--name",
    		"?-invalid-name",
    	})).Should(Succeed())
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  4. common/scripts/setup_env.sh

    # This function will properly handle any type of path including those with spaces using the
    # loading pattern specified by *kubectl config*.
    #
    # testcase: "a:b c:d"
    # testcase: "a b:c d:e f"
    # testcase: "a b:c:d e"
    parse_KUBECONFIG () {
    TMPDIR=""
    if [[ "$1" =~ ([^:]*):(.*) ]]; then
      while true; do
        rematch=${BASH_REMATCH[1]}
        add_KUBECONFIG_if_exists "$rematch"
        remainder="${BASH_REMATCH[2]}"
    Shell Script
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 16:31:40 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  5. istioctl/pkg/version/version.go

    				},
    			}, nil
    		}
    		cpID := xds.IstioControlPlaneInstance{}
    		err = json.Unmarshal([]byte(xdsResponse.ControlPlane.Identifier), &cpID)
    		if err != nil {
    			return nil, fmt.Errorf("could not parse CP Identifier: %w", err)
    		}
    		return &istioVersion.MeshInfo{
    			istioVersion.ServerInfo{
    				Component: cpID.Component,
    				Info:      cpID.Info,
    				Revision:  opts.Revision,
    			},
    		}, nil
    	}
    }
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/podcgroupns.go

    // if the regex needs to exclude certain substrings, the "mustnotmatch" group can be used
    // nolint: lll
    var cgroupREs = []*regexp.Regexp{
    	// the regex used to parse out the pod UID and container ID from a
    	// cgroup name. It assumes that any ".scope" suffix has been trimmed off
    	// beforehand.  CAUTION: we used to verify that the pod and container id were
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  7. istioctl/pkg/tag/generate.go

    	}
    
    	return tagWhYAML, nil
    }
    
    func fixWhConfig(client kube.Client, whConfig *tagWebhookConfig) (*tagWebhookConfig, error) {
    	if whConfig.URL != "" {
    		webhookURL, err := url.Parse(whConfig.URL)
    		if err == nil {
    			webhookURL.Path = "/validate"
    			whConfig.URL = webhookURL.String()
    		}
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/admissionregistration/v1alpha1/generated.proto

      // required.
      // +listType=atomic
      // +optional
      repeated Validation validations = 3;
    
      // failurePolicy defines how to handle failures for the admission policy. Failures can
      // occur from CEL expression parse errors, type check errors, runtime errors and invalid
      // or mis-configured policy definitions or bindings.
      //
      // A policy is invalid if spec.paramKind refers to a non-existent Kind.
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 25.7K bytes
    - Viewed (0)
Back to top