Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 86 for newobject (0.7 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/testing/helpers.go

    		if err != nil {
    			return err
    		}
    		if a.GetObject() != nil {
    			// keep a copy of the output for subsequent idempotency checking
    			outputs = append(outputs, a.GetObject().DeepCopyObject())
    			// replace a.GetObject() with a copy of itself to make sure admission is safe to reinvoke with a round-tripped copy (no pointer comparisons are done)
    			if deepCopyInto, ok := reflect.TypeOf(a.GetObject()).MethodByName("DeepCopyInto"); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. pkg/controller/statefulset/stateful_set_status_updater_test.go

    		update := action.(core.UpdateAction)
    		if !conflict {
    			conflict = true
    			return true, update.GetObject(), apierrors.NewConflict(action.GetResource().GroupResource(), set.Name, errors.New("object already exists"))
    		}
    		return true, update.GetObject(), nil
    
    	})
    	if err := updater.UpdateStatefulSetStatus(context.TODO(), set, &status); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 13 15:37:10 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/conversion.go

    	// Dirty indicates VersionedObject has been modified since being converted from Attributes.Object
    	Dirty bool
    }
    
    // GetObject overrides the Attributes.GetObject()
    func (v *VersionedAttributes) GetObject() runtime.Object {
    	if v.VersionedObject != nil {
    		return v.VersionedObject
    	}
    	return v.Attributes.GetObject()
    }
    
    // ConvertToGVK converts object to the desired gvk.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 16:56:12 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. platforms/ide/ide-native/src/main/java/org/gradle/ide/xcode/internal/xcodeproj/XcodeprojSerializer.java

     * limitations under the License.
     */
    
    package org.gradle.ide.xcode.internal.xcodeproj;
    
    import com.dd.plist.NSArray;
    import com.dd.plist.NSDictionary;
    import com.dd.plist.NSObject;
    import com.dd.plist.NSString;
    import org.gradle.api.logging.Logger;
    import org.gradle.api.logging.Logging;
    
    import javax.annotation.concurrent.NotThreadSafe;
    import java.util.List;
    
    /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/objective-cpp/groovy/src/main/headers/greeter.h

    #define __STDC_LIMIT_MACROS
    #import <stdint.h>
    #import <Foundation/Foundation.h>
    
    @interface Greeter : NSObject
        - (void)sayHello;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 139 bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/cacher/caching_object_test.go

    		t.Errorf("unexpected error: %v", err)
    	}
    	if a, e := buffer.String(), namespace; a != e {
    		t.Errorf("unexpected serialization: %s, expected: %s", a, e)
    	}
    
    	// GetObject should also set namespace.
    	buffer.Reset()
    	if err := encodeNamespace(object.GetObject(), buffer); err != nil {
    		t.Errorf("unexpected error: %v", err)
    	}
    	if a, e := buffer.String(), namespace; a != e {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 23 15:26:38 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  7. plugin/pkg/admission/storage/storageobjectinuseprotection/admission.go

    		return c.admitPVC(a)
    
    	default:
    		return nil
    	}
    }
    
    func (c *storageProtectionPlugin) admitPV(a admission.Attributes) error {
    	if len(a.GetSubresource()) != 0 {
    		return nil
    	}
    
    	pv, ok := a.GetObject().(*api.PersistentVolume)
    	// if we can't convert the obj to PV, just return
    	if !ok {
    		return nil
    	}
    	for _, f := range pv.Finalizers {
    		if f == volumeutil.PVProtectionFinalizer {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 02 21:13:50 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/native-binaries/objective-c/groovy/src/main/headers/greeter.h

    #import <Foundation/Foundation.h>
    
    @interface Greeter : NSObject
        - (void)sayHello;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 92 bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/JsonModelWriter.kt

            }
        }
    
        private
        inline fun jsonObject(body: () -> Unit) {
            beginObject()
            body()
            endObject()
        }
    
        private
        fun beginObject() {
            write('{')
        }
    
        private
        fun endObject() {
            write('}')
        }
    
        private
        inline fun <T> jsonList(list: Iterable<T>, body: (T) -> Unit) {
            beginArray()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. pkg/kubelet/configmap/configmap_manager.go

    type configMapManager struct {
    	manager manager.Manager
    }
    
    func (c *configMapManager) GetConfigMap(namespace, name string) (*v1.ConfigMap, error) {
    	object, err := c.manager.GetObject(namespace, name)
    	if err != nil {
    		return nil, err
    	}
    	if configmap, ok := object.(*v1.ConfigMap); ok {
    		return configmap, nil
    	}
    	return nil, fmt.Errorf("unexpected object type: %v", object)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top