- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ToYAMLGeneric (0.19 sec)
-
operator/pkg/validate/validate_values.go
func CheckValues(root any) util.Errors { v := reflect.ValueOf(root) if root == nil || (v.Kind() == reflect.Ptr && v.IsNil()) { return nil } vs, err := util.ToYAMLGeneric(root) if err != nil { return util.Errors{err} } val := &v1alpha1.Values{} if err := util.UnmarshalWithJSONPB(string(vs), val, false); err != nil { return util.Errors{err} }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 2.3K bytes - Viewed (0) -
operator/pkg/validate/validate.go
scope.Debug(msg) // No validation defined. return nil } scope.Debug(msg) return vf(path, val) } func validateMeshConfig(path util.Path, root any) util.Errors { vs, err := util.ToYAMLGeneric(root) if err != nil { return util.Errors{err} } // ApplyMeshConfigDefaults allows unknown fields, so we first check for unknown fields
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jan 12 16:04:15 UTC 2023 - 7.7K bytes - Viewed (0) -
operator/pkg/util/yaml.go
"github.com/kylelemons/godebug/diff" "google.golang.org/protobuf/proto" yaml3 "k8s.io/apimachinery/pkg/util/yaml" "sigs.k8s.io/yaml" "istio.io/istio/pkg/util/protomarshal" ) func ToYAMLGeneric(root any) ([]byte, error) { var vs []byte if proto, ok := root.(proto.Message); ok { v, err := protomarshal.ToYAML(proto) if err != nil { return nil, err } vs = []byte(v) } else {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jan 14 02:41:27 UTC 2023 - 7.2K bytes - Viewed (0)