Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 106 for WithKind (0.2 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1/customresourcedefinition.go

    // apply.
    func CustomResourceDefinition(name string) *CustomResourceDefinitionApplyConfiguration {
    	b := &CustomResourceDefinitionApplyConfiguration{}
    	b.WithName(name)
    	b.WithKind("CustomResourceDefinition")
    	b.WithAPIVersion("apiextensions.k8s.io/v1")
    	return b
    }
    
    // WithKind sets the Kind field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 28 12:38:10 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/client-go/applyconfigurations/apps/v1beta2/scale.go

    // ScaleApplyConfiguration constructs an declarative configuration of the Scale type for use with
    // apply.
    func Scale() *ScaleApplyConfiguration {
    	b := &ScaleApplyConfiguration{}
    	b.WithKind("Scale")
    	b.WithAPIVersion("apps/v1beta2")
    	return b
    }
    
    // WithKind sets the Kind field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 23 17:59:55 UTC 2022
    - 9.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/client-go/applyconfigurations/autoscaling/v1/scale.go

    // ScaleApplyConfiguration constructs an declarative configuration of the Scale type for use with
    // apply.
    func Scale() *ScaleApplyConfiguration {
    	b := &ScaleApplyConfiguration{}
    	b.WithKind("Scale")
    	b.WithAPIVersion("autoscaling/v1")
    	return b
    }
    
    // WithKind sets the Kind field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 23 17:59:55 UTC 2022
    - 9.8K bytes
    - Viewed (0)
  4. pkg/registry/apps/deployment/storage/storage.go

    	case extensionsv1beta1.SchemeGroupVersion:
    		return extensionsv1beta1.SchemeGroupVersion.WithKind("Scale")
    	case appsv1beta1.SchemeGroupVersion:
    		return appsv1beta1.SchemeGroupVersion.WithKind("Scale")
    	case appsv1beta2.SchemeGroupVersion:
    		return appsv1beta2.SchemeGroupVersion.WithKind("Scale")
    	default:
    		return autoscalingv1.SchemeGroupVersion.WithKind("Scale")
    	}
    }
    
    // New creates a new Scale object
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/client-go/applyconfigurations/core/v1/event.go

    	if err != nil {
    		return nil, err
    	}
    	b.WithName(event.Name)
    	b.WithNamespace(event.Namespace)
    
    	b.WithKind("Event")
    	b.WithAPIVersion("v1")
    	return b, nil
    }
    
    // WithKind sets the Kind field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 23 17:59:55 UTC 2022
    - 17.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/schema/group_version.go

    		return GroupVersion{gv[:i], gv[i+1:]}, nil
    	default:
    		return GroupVersion{}, fmt.Errorf("unexpected GroupVersion string: %v", gv)
    	}
    }
    
    // WithKind creates a GroupVersionKind based on the method receiver's GroupVersion and the passed Kind.
    func (gv GroupVersion) WithKind(kind string) GroupVersionKind {
    	return GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: kind}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 30 09:08:59 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  7. pkg/registry/apps/statefulset/storage/storage.go

    	switch containingGV {
    	case appsv1beta1.SchemeGroupVersion:
    		return appsv1beta1.SchemeGroupVersion.WithKind("Scale")
    	case appsv1beta2.SchemeGroupVersion:
    		return appsv1beta2.SchemeGroupVersion.WithKind("Scale")
    	default:
    		return autoscalingv1.SchemeGroupVersion.WithKind("Scale")
    	}
    }
    
    // New creates a new Scale object
    func (r *ScaleREST) New() runtime.Object {
    	return &autoscaling.Scale{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/test/integration/conversion/webhook.go

    			http.Error(w, err.Error(), 400)
    			return
    		}
    
    		var response runtime.Object
    
    		switch typeMeta.GroupVersionKind() {
    		case apiextensionsv1.SchemeGroupVersion.WithKind("ConversionReview"):
    			review := &apiextensionsv1.ConversionReview{}
    			if err := json.Unmarshal(data, review); err != nil {
    				t.Errorf("Fail to deserialize object: %s with error: %v", string(data), err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 14 01:38:09 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  9. pkg/registry/core/replicationcontroller/storage/storage.go

    	switch containingGV {
    	case extensionsv1beta1.SchemeGroupVersion:
    		return extensionsv1beta1.SchemeGroupVersion.WithKind("Scale")
    	default:
    		return autoscalingv1.SchemeGroupVersion.WithKind("Scale")
    	}
    }
    
    // New creates a new Scale object
    func (r *ScaleREST) New() runtime.Object {
    	return &autoscaling.Scale{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 12K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response.go

    			}
    			// TODO: turn this into an internal type and do conversion in order to get object kind automatically set?
    			partial := meta.AsPartialObjectMetadata(m)
    			partial.GetObjectKind().SetGroupVersionKind(groupVersion.WithKind("PartialObjectMetadata"))
    			item.Object.Object = partial
    		case metav1.IncludeNone:
    			item.Object.Object = nil
    		default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 09:07:03 UTC 2023
    - 16.5K bytes
    - Viewed (0)
Back to top