- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 436 for unstructured (0.2 sec)
-
staging/src/k8s.io/apiextensions-apiserver/test/integration/objectmeta_test.go
original := fixtures.NewNoxuInstance("default", "foo") unstructured.SetNestedField(original.UnstructuredContent(), int64(42), "metadata", "unknown") unstructured.SetNestedField(original.UnstructuredContent(), nil, "metadata", "generation") unstructured.SetNestedField(original.UnstructuredContent(), map[string]interface{}{"foo": int64(42), "bar": "abc"}, "metadata", "annotations")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 05:32:34 UTC 2023 - 19K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/testing/types.go
// +k8s:deepcopy-gen=false type Unstructured struct { // Object is a JSON compatible map with string, float, int, bool, []interface{}, or // map[string]interface{} // children. Object map[string]interface{} } var _ runtime.Unstructured = &Unstructured{} func (obj *Unstructured) GetObjectKind() schema.ObjectKind { return obj } func (obj *Unstructured) IsList() bool { if obj.Object != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 28 03:26:35 UTC 2023 - 11.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/registry/dryrun_test.go
destroy() server.Terminate(t) } } func UnstructuredOrDie(j string) *unstructured.Unstructured { m := map[string]interface{}{} err := json.Unmarshal([]byte(j), &m) if err != nil { panic(fmt.Errorf("Failed to unmarshal into Unstructured: %v", err)) } return &unstructured.Unstructured{Object: m} } func TestDryRunCreateDoesntCreate(t *testing.T) { s, destroy := NewDryRunnableTestStorage(t)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 24 09:23:05 UTC 2023 - 9.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/etcd_test.go
} } func setSpecReplicas(u *unstructured.Unstructured, replicas int64) { setNestedField(u, replicas, "spec", "replicas") } func getSpecReplicas(u *unstructured.Unstructured) int64 { val, found, err := unstructured.NestedInt64(u.Object, "spec", "replicas") if !found || err != nil { return 0 } return val } func setStatusReplicas(u *unstructured.Unstructured, replicas int64) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 25.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go
uNew, ok := obj.(*unstructured.Unstructured) if !ok { return field.ErrorList{field.Invalid(field.NewPath(""), obj, fmt.Sprintf("has type %T. Must be a pointer to an Unstructured type", obj))} } uOld, ok := old.(*unstructured.Unstructured) if !ok { return field.ErrorList{field.Invalid(field.NewPath(""), old, fmt.Sprintf("has type %T. Must be a pointer to an Unstructured type", old))} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 21:22:34 UTC 2024 - 14.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/cel/mapper.go
func (m *mapper) EvalClaimMappings(ctx context.Context, claims *unstructured.Unstructured) ([]EvaluationResult, error) { return m.eval(ctx, map[string]interface{}{claimsVarName: claims.Object}) } // EvalUser evaluates the given user expressions and returns a list of EvaluationResult. func (m *mapper) EvalUser(ctx context.Context, userInfo *unstructured.Unstructured) ([]EvaluationResult, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 20:16:09 UTC 2023 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor.go
} } apiVersion, _ := content["apiVersion"].(string) kind, _ := content["kind"].(string) kind = strings.TrimSuffix(kind, "List") var unstructureds []unstructured.Unstructured if len(items) > 0 { unstructureds = make([]unstructured.Unstructured, len(items)) } for i := range items { object, cast := items[i].(map[string]interface{}) if !cast {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 13 14:57:12 UTC 2024 - 9.6K bytes - Viewed (0) -
operator/pkg/controller/istiocontrolplane/istiocontrolplane_controller.go
var ( ownedResourcePredicates = predicate.TypedFuncs[*unstructured.Unstructured]{ CreateFunc: func(_ event.TypedCreateEvent[*unstructured.Unstructured]) bool { // no action return false }, GenericFunc: func(_ event.TypedGenericEvent[*unstructured.Unstructured]) bool { // no action return false }, DeleteFunc: func(e event.TypedDeleteEvent[*unstructured.Unstructured]) bool { obj, err := meta.Accessor(e.Object)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 13:56:46 UTC 2024 - 19.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/fieldmanager_test.go
schema.FromAPIVersionAndKind("apps/v1", "Deployment")) newObj := &unstructured.Unstructured{ Object: map[string]interface{}{}, } appliedObj := &unstructured.Unstructured{ Object: map[string]interface{}{}, } // Convert YAML string inputs to unstructured instances if err := yaml.Unmarshal([]byte(`{ "apiVersion": "apps/v1", "kind": "Deployment", "metadata": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 16 20:03:48 UTC 2023 - 32.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/converter_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 16:02:13 UTC 2023 - 22.9K bytes - Viewed (0)