Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 152 for parentRef (0.77 sec)

  1. pkg/registry/networking/ipaddress/strategy_test.go

    func newIPAddress() networking.IPAddress {
    	return networking.IPAddress{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:            "192.168.1.1",
    			ResourceVersion: "1",
    		},
    		Spec: networking.IPAddressSpec{
    			ParentRef: &networking.ParentReference{
    				Group:     "",
    				Resource:  "services",
    				Name:      "foo",
    				Namespace: "bar",
    			},
    		},
    	}
    }
    
    func TestIPAddressStrategy(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 19 02:12:34 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. pkg/apis/networking/validation/validation_test.go

    			out := old.DeepCopy()
    			return out
    		},
    		expectErr: false,
    	},
    
    		{
    			name: "Failed update, update spec.ParentRef",
    			new: func(svc *networking.IPAddress) *networking.IPAddress {
    				out := svc.DeepCopy()
    				out.Spec.ParentRef = &networking.ParentReference{
    					Group:     "custom.resource.com",
    					Resource:  "Gateway",
    					Name:      "foo",
    					Namespace: "bar",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 73.3K bytes
    - Viewed (0)
  3. tests/integration/pilot/testdata/gateway-api-crd.yaml

    
                      * If one ParentRef sets `sectionName`, all ParentRefs referencing the
                        same object must also set `sectionName`.
                      * If one ParentRef sets `port`, all ParentRefs referencing the same
                        object must also set `port`.
                      * If one ParentRef sets `sectionName` and `port`, all ParentRefs
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 02:01:51 UTC 2024
    - 912.2K bytes
    - Viewed (0)
  4. pkg/apis/networking/validation/validation.go

    	allErrs = append(allErrs, apivalidation.ValidateObjectMetaUpdate(&update.ObjectMeta, &old.ObjectMeta, field.NewPath("metadata"))...)
    	allErrs = append(allErrs, apivalidation.ValidateImmutableField(update.Spec.ParentRef, old.Spec.ParentRef, field.NewPath("spec").Child("parentRef"))...)
    	return allErrs
    }
    
    var ValidateServiceCIDRName = apimachineryvalidation.NameIsDNSSubdomain
    
    func ValidateServiceCIDR(cidrConfig *networking.ServiceCIDR) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 07 14:48:01 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  5. pilot/pkg/config/kube/gateway/testdata/invalid.yaml

      name: no-backend
      namespace: default
    spec:
      parentRefs:
      - group: ""
        kind: Service
        name: httpbin
      rules:
      - filters:
        - type: RequestMirror
          requestMirror:
            backendRef:
              name: httpbin
              port: 80
    ---
    apiVersion: gateway.networking.k8s.io/v1beta1
    kind: HTTPRoute
    metadata:
      name: invalid-parentRef-port
      namespace: default
    spec:
      parentRefs:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 18 22:43:39 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  6. pkg/apis/networking/zz_generated.deepcopy.go

    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    func (in *IPAddressSpec) DeepCopyInto(out *IPAddressSpec) {
    	*out = *in
    	if in.ParentRef != nil {
    		in, out := &in.ParentRef, &out.ParentRef
    		*out = new(ParentReference)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressSpec.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:58 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/crds/standard-install.yaml

                      ParentRef that selects the same object must set the same set of
                      optional fields to different values. If one ParentRef sets a combination
                      of optional fields, all must set the same combination. \n Some examples:
                      \n * If one ParentRef sets `sectionName`, all ParentRefs referencing
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 17:15:18 UTC 2023
    - 458.3K bytes
    - Viewed (0)
  8. pkg/printers/internalversion/printers.go

    	parentRefName := "<none>"
    	if obj.Spec.ParentRef != nil {
    		gr := schema.GroupResource{
    			Group:    obj.Spec.ParentRef.Group,
    			Resource: obj.Spec.ParentRef.Resource,
    		}
    		parentRefName = strings.ToLower(gr.String())
    		if obj.Spec.ParentRef.Namespace != "" {
    			parentRefName += "/" + obj.Spec.ParentRef.Namespace
    		}
    		parentRefName += "/" + obj.Spec.ParentRef.Name
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  9. pkg/apis/networking/types.go

    	// +optional
    	Spec IPAddressSpec
    }
    
    // IPAddressSpec describe the attributes in an IP Address,
    type IPAddressSpec struct {
    	// ParentRef references the resource that an IPAddress is attached to.
    	// An IPAddress must reference a parent object.
    	// +required
    	ParentRef *ParentReference
    }
    type ParentReference struct {
    	// Group is the group of the object being referenced.
    	Group string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 27.7K bytes
    - Viewed (0)
  10. pkg/registry/core/service/ipallocator/ipallocator.go

    			Labels: map[string]string{
    				networkingv1alpha1.LabelIPAddressFamily: string(a.IPFamily()),
    				networkingv1alpha1.LabelManagedBy:       ControllerName,
    			},
    		},
    		Spec: networkingv1alpha1.IPAddressSpec{
    			ParentRef: serviceToRef(svc),
    		},
    	}
    	_, err := a.client.IPAddresses().Create(context.Background(), &ipAddress, metav1.CreateOptions{})
    	if err != nil {
    		// update metrics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17K bytes
    - Viewed (0)
Back to top