Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 1,128 for Obj (0.02 sec)

  1. pkg/registry/apps/replicaset/strategy.go

    	rs := obj.(*apps.ReplicaSet)
    	rs.Status = apps.ReplicaSetStatus{}
    
    	rs.Generation = 1
    
    	pod.DropDisabledTemplateFields(&rs.Spec.Template, nil)
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (rsStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newRS := obj.(*apps.ReplicaSet)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:06:43 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/metaobject/CompositeDynamicObjectTest.groovy

        def obj = new CompositeDynamicObject() {
            @Override
            String getDisplayName() {
                return "<obj>"
            }
        }
    
        def "get property returns result from first delegate that has the property"() {
            def obj1 = Mock(DynamicObject)
            def obj2 = Mock(DynamicObject)
            def obj3 = Mock(DynamicObject)
            obj.setObjects(obj1, obj2, obj3)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. pkg/registry/apps/daemonset/strategy.go

    func (daemonSetStatusStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newDaemonSet := obj.(*apps.DaemonSet)
    	oldDaemonSet := old.(*apps.DaemonSet)
    	newDaemonSet.Spec = oldDaemonSet.Spec
    }
    
    func (daemonSetStatusStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	return validation.ValidateDaemonSetStatusUpdate(obj.(*apps.DaemonSet), old.(*apps.DaemonSet))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:52:02 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  4. pkg/registry/apps/deployment/strategy.go

    	deployment := obj.(*apps.Deployment)
    	deployment.Status = apps.DeploymentStatus{}
    	deployment.Generation = 1
    
    	pod.DropDisabledTemplateFields(&deployment.Spec.Template, nil)
    }
    
    // Validate validates a new deployment.
    func (deploymentStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	deployment := obj.(*apps.Deployment)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:07:13 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  5. src/go/types/alias.go

    // rhs must not be nil.
    func NewAlias(obj *TypeName, rhs Type) *Alias {
    	alias := (*Checker)(nil).newAlias(obj, rhs)
    	// Ensure that alias.actual is set (#65455).
    	alias.cleanup()
    	return alias
    }
    
    // Obj returns the type name for the declaration defining the alias type a.
    // For instantiated types, this is same as the type name of the origin type.
    func (a *Alias) Obj() *TypeName { return a.orig.obj }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/resource/scheme.go

    	obj, gvk, err := unstructured.UnstructuredJSONScheme.Decode(data, gvk, obj)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	if strings.EqualFold(gvk.Kind, "status") && gvk.Version == "v1" && (gvk.Group == "" || gvk.Group == "meta.k8s.io") {
    		if _, ok := obj.(*metav1.Status); !ok {
    			obj = &metav1.Status{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 21 15:58:15 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  7. pkg/apis/flowcontrol/v1beta2/zz_generated.defaults.go

    	scheme.AddTypeDefaultingFunc(&v1beta2.FlowSchema{}, func(obj interface{}) { SetObjectDefaults_FlowSchema(obj.(*v1beta2.FlowSchema)) })
    	scheme.AddTypeDefaultingFunc(&v1beta2.FlowSchemaList{}, func(obj interface{}) { SetObjectDefaults_FlowSchemaList(obj.(*v1beta2.FlowSchemaList)) })
    	scheme.AddTypeDefaultingFunc(&v1beta2.PriorityLevelConfiguration{}, func(obj interface{}) {
    		SetObjectDefaults_PriorityLevelConfiguration(obj.(*v1beta2.PriorityLevelConfiguration))
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 01:00:06 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. pkg/apis/flowcontrol/v1beta3/zz_generated.defaults.go

    	scheme.AddTypeDefaultingFunc(&v1beta3.FlowSchema{}, func(obj interface{}) { SetObjectDefaults_FlowSchema(obj.(*v1beta3.FlowSchema)) })
    	scheme.AddTypeDefaultingFunc(&v1beta3.FlowSchemaList{}, func(obj interface{}) { SetObjectDefaults_FlowSchemaList(obj.(*v1beta3.FlowSchemaList)) })
    	scheme.AddTypeDefaultingFunc(&v1beta3.PriorityLevelConfiguration{}, func(obj interface{}) {
    		SetObjectDefaults_PriorityLevelConfiguration(obj.(*v1beta3.PriorityLevelConfiguration))
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:41 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. pkg/registry/core/secret/strategy.go

    func (strategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	secret := obj.(*api.Secret)
    	dropDisabledFields(secret, nil)
    }
    
    func (strategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	return validation.ValidateSecret(obj.(*api.Secret))
    }
    
    // WarningsOnCreate returns warnings for the creation of the given object.
    func (strategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 20:38:11 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  10. pkg/registry/core/configmap/strategy.go

    func (strategy) NamespaceScoped() bool {
    	return true
    }
    
    func (strategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	configMap := obj.(*api.ConfigMap)
    	dropDisabledFields(configMap, nil)
    }
    
    func (strategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	cfg := obj.(*api.ConfigMap)
    
    	return validation.ValidateConfigMap(cfg)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 20:38:11 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top