Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for CheckIstioOperatorSpec (0.32 sec)

  1. operator/pkg/validate/validate.go

    	if iop == nil {
    		return nil
    	}
    
    	errs := CheckIstioOperatorSpec(iop.Spec, checkRequiredFields)
    	return errs.ToError()
    }
    
    // CheckIstioOperatorSpec validates the values in the given Installer spec, using the field map DefaultValidations to
    // call the appropriate validation function. checkRequiredFields determines whether missing mandatory fields generate
    // errors.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 12 16:04:15 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  2. operator/pkg/helmreconciler/render.go

    	"istio.io/istio/operator/pkg/validate"
    )
    
    // RenderCharts renders charts for h.
    func (h *HelmReconciler) RenderCharts() (name.ManifestMap, error) {
    	iopSpec := h.iop.Spec
    	if err := validate.CheckIstioOperatorSpec(iopSpec, false); err != nil {
    		if !h.opts.Force {
    			return nil, err
    		}
    		h.opts.Log.PrintErr(fmt.Sprintf("spec invalid; continuing because of --force: %v\n", err))
    	}
    
    	t := translate.NewTranslator()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 23 02:26:59 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  3. tests/fuzz/misc_fuzzers.go

    	f := fuzz.NewConsumer(data)
    
    	ispec := &v1alpha1.IstioOperatorSpec{}
    	err := f.GenerateStruct(ispec)
    	if err != nil {
    		return 0
    	}
    	_ = validate.CheckIstioOperatorSpec(ispec, false)
    	_ = validate.CheckIstioOperatorSpec(ispec, true)
    	return 1
    }
    
    func FuzzV1Alpha1ValidateConfig(data []byte) int {
    	f := fuzz.NewConsumer(data)
    
    	iop := &v1alpha1.IstioOperatorSpec{}
    	err := f.GenerateStruct(iop)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 23 02:26:59 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  4. operator/pkg/apis/istio/common.go

    	if err := util.UnmarshalWithJSONPB(iopsYAML, iops, false); err != nil {
    		return nil, fmt.Errorf("could not unmarshal the merged YAML: %s\n\nYAML:\n%s", err, iopsYAML)
    	}
    	if errs := validate.CheckIstioOperatorSpec(iops, true); len(errs) != 0 {
    		return iops, fmt.Errorf(errs.Error())
    	}
    	return iops, nil
    }
    
    // UnmarshalIstioOperator unmarshals a string containing IstioOperator YAML.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 23 17:19:38 UTC 2022
    - 2K bytes
    - Viewed (0)
  5. operator/pkg/validate/validate_test.go

    			ispec := &v1alpha1.IstioOperatorSpec{}
    			err := util.UnmarshalWithJSONPB(tt.yamlStr, ispec, false)
    			if err != nil {
    				t.Fatalf("unmarshalWithJSONPB(%s): got error %s", tt.desc, err)
    			}
    
    			errs := CheckIstioOperatorSpec(ispec, false)
    			if gotErrs, wantErrs := errs, tt.wantErrs; !util.EqualErrors(gotErrs, wantErrs) {
    				t.Errorf("ProtoToValues(%s)(%v): gotErrs:%s, wantErrs:%s", tt.desc, tt.yamlStr, gotErrs, wantErrs)
    			}
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jun 25 11:44:31 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  6. operator/pkg/validate/common.go

    		return nil, fmt.Errorf("%s:\n\nYAML:\n%s", err, iopYAML)
    	}
    	return iop, nil
    }
    
    // ValidIOP validates the given IstioOperator object.
    func ValidIOP(iop *v1alpha1.IstioOperator) error {
    	errs := CheckIstioOperatorSpec(iop.Spec, false)
    	return errs.ToError()
    }
    
    // compose path for slice s with index i
    func indexPathForSlice(s string, i int) string {
    	return fmt.Sprintf("%s[%d]", s, i)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 11K bytes
    - Viewed (0)
  7. operator/pkg/manifest/shared.go

    	iop, err := istio.UnmarshalIstioOperator(iopsYAML, allowUnknownField)
    	if err != nil {
    		return nil, fmt.Errorf("could not unmarshal merged YAML: %s\n\nYAML:\n%s", err, iopsYAML)
    	}
    	if errs := validate.CheckIstioOperatorSpec(iop.Spec, true); len(errs) != 0 && !force {
    		l.LogAndError("Run the command with the --force flag if you want to ignore the validation error and proceed.")
    		return iop, fmt.Errorf(errs.Error())
    	}
    	return iop, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 03 06:27:07 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top