Chore: Update k8s.io to v0.33.1 (#105307)

This commit is contained in:
Ryan McKinley
2025-05-28 00:13:18 +03:00
committed by GitHub
parent b11be2f37d
commit d4c446f42c
63 changed files with 689 additions and 524 deletions
@@ -14,7 +14,6 @@ package dataquery
import (
json "encoding/json"
errors "errors"
fmt "fmt"
)
type MetricStat struct {
@@ -430,7 +429,7 @@ func (resource StringOrArrayOfString) MarshalJSON() ([]byte, error) {
return json.Marshal(resource.ArrayOfString)
}
return nil, fmt.Errorf("no value for disjunction of scalars")
return []byte("null"), nil
}
// UnmarshalJSON implements a custom JSON unmarshalling logic to decode `StringOrArrayOfString` from JSON.
@@ -482,7 +481,8 @@ func (resource QueryEditorPropertyExpressionOrQueryEditorFunctionExpression) Mar
if resource.QueryEditorFunctionExpression != nil {
return json.Marshal(resource.QueryEditorFunctionExpression)
}
return nil, fmt.Errorf("no value for disjunction of refs")
return []byte("null"), nil
}
// UnmarshalJSON implements a custom JSON unmarshalling logic to decode `QueryEditorPropertyExpressionOrQueryEditorFunctionExpression` from JSON.
@@ -499,7 +499,7 @@ func (resource *QueryEditorPropertyExpressionOrQueryEditorFunctionExpression) Un
discriminator, found := parsedAsMap["type"]
if !found {
return errors.New("discriminator field 'type' not found in payload")
return nil
}
switch discriminator {
@@ -521,7 +521,7 @@ func (resource *QueryEditorPropertyExpressionOrQueryEditorFunctionExpression) Un
return nil
}
return fmt.Errorf("could not unmarshal resource with `type = %v`", discriminator)
return nil
}
type ArrayOfQueryEditorExpressionOrArrayOfQueryEditorArrayExpression struct {
@@ -544,7 +544,7 @@ func (resource ArrayOfQueryEditorExpressionOrArrayOfQueryEditorArrayExpression)
return json.Marshal(resource.ArrayOfQueryEditorArrayExpression)
}
return nil, fmt.Errorf("no value for disjunction of scalars")
return []byte("null"), nil
}
// UnmarshalJSON implements a custom JSON unmarshalling logic to decode `ArrayOfQueryEditorExpressionOrArrayOfQueryEditorArrayExpression` from JSON.
@@ -608,7 +608,7 @@ func (resource StringOrBoolOrInt64OrArrayOfQueryEditorOperatorType) MarshalJSON(
return json.Marshal(resource.ArrayOfQueryEditorOperatorType)
}
return nil, fmt.Errorf("no value for disjunction of scalars")
return []byte("null"), nil
}
// UnmarshalJSON implements a custom JSON unmarshalling logic to decode `StringOrBoolOrInt64OrArrayOfQueryEditorOperatorType` from JSON.
@@ -687,7 +687,7 @@ func (resource StringOrBoolOrInt64) MarshalJSON() ([]byte, error) {
return json.Marshal(resource.Int64)
}
return nil, fmt.Errorf("no value for disjunction of scalars")
return []byte("null"), nil
}
// UnmarshalJSON implements a custom JSON unmarshalling logic to decode `StringOrBoolOrInt64` from JSON.