Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for UnmarshalStrict (0.18 sec)

  1. operator/pkg/apis/istio/v1alpha1/deepcopy_test.go

    func TestIstioOperatorSpec_DeepCopy(t *testing.T) {
    	x := &v1alpha12.ResourceMetricSource{}
    	err := yaml.UnmarshalStrict([]byte("targetAverageValue: 100m"), x)
    	t.Log(x)
    	if err != nil {
    		t.Fatal(err)
    	}
    	y := &v1alpha12.MetricSpec{}
    	err = yaml.UnmarshalStrict([]byte(`
    type: Resource
    resource:
      targetAverageValue: 100m`), y)
    	t.Log(y)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 05 23:34:13 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce.go

    // throwing away fields which lead to errors.
    // If opts.ReturnedUnknownFields is true, it will UnmarshalStrict instead, returning the paths of any unknown fields
    // it encounters (i.e. paths returned as strict errs from UnmarshalStrict)
    func GetObjectMetaWithOptions(obj map[string]interface{}, opts ObjectMetaOptions) (*metav1.ObjectMeta, bool, []string, error) {
    	metadata, found := obj["metadata"]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 18 14:55:12 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  3. operator/pkg/apis/istio/common.go

    	if allowUnknownField {
    		if err := yaml.Unmarshal([]byte(iopYAML), iop); err != nil {
    			return nil, fmt.Errorf("could not unmarshal: %v", err)
    		}
    	} else {
    		if err := yaml.UnmarshalStrict([]byte(iopYAML), iop); err != nil {
    			return nil, fmt.Errorf("could not unmarshal: %v", err)
    		}
    	}
    	return iop, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 23 17:19:38 UTC 2022
    - 2K bytes
    - Viewed (0)
  4. cmd/batch-expire_test.go

      
      retry:
        attempts: 10 # number of retries for the job before giving up
        delay: 500ms # least amount of delay between each retry
    `
    	var job BatchJobRequest
    	err := yaml.UnmarshalStrict([]byte(expireYaml), &job)
    	if err != nil {
    		t.Fatal("Failed to parse batch-job-expire yaml", err)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. operator/pkg/helmreconciler/prune_test.go

    		// init two custom gateways with revision
    		gateways := [][]byte{iopTestGwData1, iopTestGwData2}
    		for i, data := range gateways {
    			iop := &v1alpha1.IstioOperator{}
    			err := yaml.UnmarshalStrict(data, iop)
    			assert.NoError(t, err)
    			h := &HelmReconciler{
    				client:     cl,
    				kubeClient: kube.NewFakeClientWithVersion("24"),
    				opts: &Options{
    					ProgressLog: progress.NewLog(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 15 12:13:37 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top