From 2a811803b358d7e33735aa2e31e43f6712752498 Mon Sep 17 00:00:00 2001 From: Knative Automation Date: Tue, 27 Feb 2024 02:01:29 +0000 Subject: [PATCH] upgrade to latest dependencies bumping knative.dev/networking 54694f4...7391d20: > 7391d20 drop unused types (# 933) Signed-off-by: Knative Automation --- go.mod | 2 +- go.sum | 4 +- .../knative.dev/networking/config/domain.yaml | 194 --------------- .../knative.dev/networking/config/realm.yaml | 142 ----------- .../networking/v1alpha1/domain_defaults.go | 32 --- .../networking/v1alpha1/domain_lifecycle.go | 34 --- .../apis/networking/v1alpha1/domain_types.go | 160 ------------ .../networking/v1alpha1/domain_validation.go | 70 ------ .../networking/v1alpha1/realm_defaults.go | 32 --- .../networking/v1alpha1/realm_lifecycle.go | 34 --- .../apis/networking/v1alpha1/realm_types.go | 108 -------- .../networking/v1alpha1/realm_validation.go | 37 --- .../pkg/apis/networking/v1alpha1/register.go | 4 - .../v1alpha1/zz_generated.deepcopy.go | 230 ------------------ .../typed/networking/v1alpha1/domain.go | 184 -------------- .../networking/v1alpha1/fake/fake_domain.go | 132 ---------- .../v1alpha1/fake/fake_networking_client.go | 8 - .../networking/v1alpha1/fake/fake_realm.go | 132 ---------- .../v1alpha1/generated_expansion.go | 4 - .../networking/v1alpha1/networking_client.go | 10 - .../typed/networking/v1alpha1/realm.go | 184 -------------- .../informers/externalversions/generic.go | 4 - .../networking/v1alpha1/domain.go | 89 ------- .../networking/v1alpha1/interface.go | 14 -- .../networking/v1alpha1/realm.go | 89 ------- .../listers/networking/v1alpha1/domain.go | 68 ------ .../v1alpha1/expansion_generated.go | 8 - .../listers/networking/v1alpha1/realm.go | 68 ------ vendor/modules.txt | 2 +- 29 files changed, 4 insertions(+), 2075 deletions(-) delete mode 100644 vendor/knative.dev/networking/config/domain.yaml delete mode 100644 vendor/knative.dev/networking/config/realm.yaml delete mode 100644 vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_defaults.go delete mode 100644 vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_lifecycle.go delete mode 100644 vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_types.go delete mode 100644 vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_validation.go delete mode 100644 vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_defaults.go delete mode 100644 vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_lifecycle.go delete mode 100644 vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_types.go delete mode 100644 vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_validation.go delete mode 100644 vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/domain.go delete mode 100644 vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/fake/fake_domain.go delete mode 100644 vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/fake/fake_realm.go delete mode 100644 vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/realm.go delete mode 100644 vendor/knative.dev/networking/pkg/client/informers/externalversions/networking/v1alpha1/domain.go delete mode 100644 vendor/knative.dev/networking/pkg/client/informers/externalversions/networking/v1alpha1/realm.go delete mode 100644 vendor/knative.dev/networking/pkg/client/listers/networking/v1alpha1/domain.go delete mode 100644 vendor/knative.dev/networking/pkg/client/listers/networking/v1alpha1/realm.go diff --git a/go.mod b/go.mod index 583066ccb..e7ca21bb2 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( k8s.io/code-generator v0.29.2 k8s.io/utils v0.0.0-20240102154912-e7106e64919e knative.dev/hack v0.0.0-20240222141347-5f0998e65262 - knative.dev/networking v0.0.0-20240226132914-54694f49ea7e + knative.dev/networking v0.0.0-20240226140608-7391d203a132 knative.dev/pkg v0.0.0-20240226072014-32e13c4925ed sigs.k8s.io/gateway-api v0.8.1 sigs.k8s.io/yaml v1.4.0 diff --git a/go.sum b/go.sum index 340f4072b..e49f264c1 100644 --- a/go.sum +++ b/go.sum @@ -692,8 +692,8 @@ k8s.io/utils v0.0.0-20240102154912-e7106e64919e h1:eQ/4ljkx21sObifjzXwlPKpdGLrCf k8s.io/utils v0.0.0-20240102154912-e7106e64919e/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= knative.dev/hack v0.0.0-20240222141347-5f0998e65262 h1:QzYYQnuTjZAHamqbVLnaoxsa1bxfhpxM2AUhdfeL6qE= knative.dev/hack v0.0.0-20240222141347-5f0998e65262/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q= -knative.dev/networking v0.0.0-20240226132914-54694f49ea7e h1:KI8lKoG/8ZQgSQxWlPE0d2ies5SymQaJJLlxQ2FaYZk= -knative.dev/networking v0.0.0-20240226132914-54694f49ea7e/go.mod h1:5EmuLNHIdcdADZ4w7ZKupLIBvMsnjyuafMDTocFuNhQ= +knative.dev/networking v0.0.0-20240226140608-7391d203a132 h1:DCZjNSXHNOtmDFHkeZLcNtNO0CDv4Rm5P3v/aNzs6ug= +knative.dev/networking v0.0.0-20240226140608-7391d203a132/go.mod h1:5EmuLNHIdcdADZ4w7ZKupLIBvMsnjyuafMDTocFuNhQ= knative.dev/pkg v0.0.0-20240226072014-32e13c4925ed h1:qFYjYZ2qXXJsShVKW/6GAoYsQ3t8dV2DeRHl8/lFa84= knative.dev/pkg v0.0.0-20240226072014-32e13c4925ed/go.mod h1:02uFYWwWpfxrpWmI1vZqnXk1JZka/WVVw3kMLolAetw= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= diff --git a/vendor/knative.dev/networking/config/domain.yaml b/vendor/knative.dev/networking/config/domain.yaml deleted file mode 100644 index eac4000b4..000000000 --- a/vendor/knative.dev/networking/config/domain.yaml +++ /dev/null @@ -1,194 +0,0 @@ -# Copyright 2020 The Knative Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: domains.networking.internal.knative.dev - labels: - app.kubernetes.io/name: knative-serving - app.kubernetes.io/version: devel - app.kubernetes.io/component: networking - knative.dev/crd-install: "true" -spec: - group: networking.internal.knative.dev - versions: - - name: v1alpha1 - served: true - storage: true - subresources: - status: {} - schema: - openAPIV3Schema: - description: Domain is a cluster-scoped resource to configure a proxy pool for a given Route. - type: object - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: |- - Spec is the desired state of the Domain. - More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - type: object - required: - - ingressClass - - loadBalancers - properties: - configs: - description: Configs contains additional pieces of information to configure ingress proxies. - type: array - items: - description: |- - IngressConfig allows KIngress implementations to add additional information needed - for configuring the proxies associated with this Domain. - For examples, in our Istio-based Ingress this will contains all references of - Istio Gateways associated with this Domain. This could be a reference of a ConfigMap - owned by the implementation as well. - type: object - properties: - name: - description: Name of the Kingress implementation resource - type: string - namespace: - description: Namespace of the Kingress implementation resource - type: string - type: - description: Type of the Kingress implementation resource - type: string - ingressClass: - description: |- - IngressClass tells what Ingress class annotation to use for Routes associated - with this Realm. - type: string - loadBalancers: - description: |- - LoadBalancers provide addresses (IP addresses, domains) of the load balancers - associated with this Domain. This is used in automatic DNS provisioning like - configuration of magic DNS or creating ExternalName services for cluster-local - access. - type: array - items: - description: |- - LoadBalancerIngressSpec represents the spec of a load-balancer ingress point: - traffic intended for the service should be sent to an ingress point. - type: object - properties: - domain: - description: |- - Domain is set for load-balancer ingress points that are DNS based - (typically AWS load-balancers) - type: string - domainInternal: - description: |- - DomainInternal is set if there is a cluster-local DNS name to access the Ingress. - - - NOTE: This differs from K8s Ingress, since we also desire to have a cluster-local - DNS name to allow routing in case of not having a mesh. - type: string - ip: - description: |- - IP is set for load-balancer ingress points that are IP based - (typically GCE or OpenStack load-balancers) - type: string - meshOnly: - description: MeshOnly is set if the Ingress is only load-balanced through a Service mesh. - type: boolean - suffix: - description: |- - Suffix specifies the domain suffix to be used. This field replaces the - existing config-domain ConfigMap. Internal Domains can omit this, in - which case we will default to the cluster suffix. - type: string - status: - description: |- - Status is the current state of the Domain. - More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - type: object - properties: - annotations: - description: |- - Annotations is additional Status fields for the Resource to save some - additional State as well as convey more information to the user. This is - roughly akin to Annotations on any k8s resource, just the reconciler conveying - richer information outwards. - type: object - additionalProperties: - type: string - conditions: - description: Conditions the latest available observations of a resource's current state. - type: array - items: - description: |- - Condition defines a readiness condition for a Knative resource. - See: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties - type: object - required: - - status - - type - properties: - lastTransitionTime: - description: |- - LastTransitionTime is the last time the condition transitioned from one status to another. - We use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic - differences (all other things held constant). - type: string - message: - description: A human readable message indicating details about the transition. - type: string - reason: - description: The reason for the condition's last transition. - type: string - severity: - description: |- - Severity with which to treat failures of this type of condition. - When this is not specified, it defaults to Error. - type: string - status: - description: Status of the condition, one of True, False, Unknown. - type: string - type: - description: Type of condition. - type: string - observedGeneration: - description: |- - ObservedGeneration is the 'Generation' of the Service that - was last processed by the controller. - type: integer - format: int64 - names: - kind: Domain - plural: domains - singular: domain - categories: - - knative-internal - - networking - shortNames: - - dom - scope: Cluster diff --git a/vendor/knative.dev/networking/config/realm.yaml b/vendor/knative.dev/networking/config/realm.yaml deleted file mode 100644 index cb76ca14c..000000000 --- a/vendor/knative.dev/networking/config/realm.yaml +++ /dev/null @@ -1,142 +0,0 @@ -# Copyright 2020 The Knative Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: realms.networking.internal.knative.dev - labels: - app.kubernetes.io/name: knative-serving - app.kubernetes.io/component: networking - app.kubernetes.io/version: devel - knative.dev/crd-install: "true" -spec: - group: networking.internal.knative.dev - versions: - - name: v1alpha1 - served: true - storage: true - subresources: - status: {} - schema: - openAPIV3Schema: - description: Realm is a cluster-scoped resource that specifies a Route visibility. - type: object - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: |- - Spec is the desired state of the Realm. - More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - type: object - properties: - external: - description: |- - External contains the name of the Domain resource corresponding with traffic - originating from outside of the cluster. Could be omitted for a Realm without - external access. - type: string - internal: - description: |- - Internal contains the name of the Domain resource corresponding with traffic - originating from inside of the cluster. Could be omitted for a Realm without - internal access. - type: string - status: - description: |- - Status is the current state of the Realm. - More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - type: object - properties: - annotations: - description: |- - Annotations is additional Status fields for the Resource to save some - additional State as well as convey more information to the user. This is - roughly akin to Annotations on any k8s resource, just the reconciler conveying - richer information outwards. - type: object - additionalProperties: - type: string - conditions: - description: Conditions the latest available observations of a resource's current state. - type: array - items: - description: |- - Condition defines a readiness condition for a Knative resource. - See: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties - type: object - required: - - status - - type - properties: - lastTransitionTime: - description: |- - LastTransitionTime is the last time the condition transitioned from one status to another. - We use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic - differences (all other things held constant). - type: string - message: - description: A human readable message indicating details about the transition. - type: string - reason: - description: The reason for the condition's last transition. - type: string - severity: - description: |- - Severity with which to treat failures of this type of condition. - When this is not specified, it defaults to Error. - type: string - status: - description: Status of the condition, one of True, False, Unknown. - type: string - type: - description: Type of condition. - type: string - observedGeneration: - description: |- - ObservedGeneration is the 'Generation' of the Service that - was last processed by the controller. - type: integer - format: int64 - additionalPrinterColumns: - - name: Ready - type: string - jsonPath: ".status.conditions[?(@.type=='Ready')].status" - - name: Reason - type: string - jsonPath: ".status.conditions[?(@.type=='Ready')].reason" - names: - kind: Realm - plural: realms - singular: realm - categories: - - knative-internal - - networking - scope: Cluster diff --git a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_defaults.go b/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_defaults.go deleted file mode 100644 index 1d3ff93c8..000000000 --- a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_defaults.go +++ /dev/null @@ -1,32 +0,0 @@ -/* -Copyright 2020 The Knative Authors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - "context" - - "knative.dev/pkg/apis" -) - -// SetDefaults populates default values in Domain -func (d *Domain) SetDefaults(ctx context.Context) { - d.Spec.SetDefaults(apis.WithinSpec(ctx)) -} - -// SetDefaults populates default values in DomainSpec -func (*DomainSpec) SetDefaults(_ context.Context) { -} diff --git a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_lifecycle.go b/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_lifecycle.go deleted file mode 100644 index 95d16c141..000000000 --- a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_lifecycle.go +++ /dev/null @@ -1,34 +0,0 @@ -/* -Copyright 2020 The Knative Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - "k8s.io/apimachinery/pkg/runtime/schema" - "knative.dev/pkg/apis" -) - -var domainCondSet = apis.NewLivingConditionSet() - -// GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface. -func (*Domain) GetConditionSet() apis.ConditionSet { - return domainCondSet -} - -// GetGroupVersionKind returns SchemeGroupVersion of an Domain -func (*Domain) GetGroupVersionKind() schema.GroupVersionKind { - return SchemeGroupVersion.WithKind("Domain") -} diff --git a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_types.go b/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_types.go deleted file mode 100644 index 3296c12ab..000000000 --- a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_types.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -Copyright 2020 The Knative Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "knative.dev/pkg/apis" - duckv1 "knative.dev/pkg/apis/duck/v1" - "knative.dev/pkg/kmeta" -) - -// +genclient -// +genclient:nonNamespaced -// +genreconciler:krshapedlogic=true -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// Domain is a cluster-scoped resource to configure a proxy pool for a given Route. -type Domain struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty"` - - // Spec is the desired state of the Domain. - // More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec DomainSpec `json:"spec,omitempty"` - - // Status is the current state of the Domain. - // More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status DomainStatus `json:"status,omitempty"` -} - -// Verify that Domain adheres to the appropriate interfaces. -var ( - // Check that Domain may be validated and defaulted. - _ apis.Validatable = (*Domain)(nil) - _ apis.Defaultable = (*Domain)(nil) - - // Check that we can create OwnerReferences to a Domain. - _ kmeta.OwnerRefable = (*Domain)(nil) - - // Check that the type conforms to the duck Knative Resource shape. - _ duckv1.KRShaped = (*Domain)(nil) -) - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// DomainList is a collection of Domain objects. -type DomainList struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata. - // More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty"` - - // Items is the list of Domain objects. - Items []Domain `json:"items"` -} - -// DomainSpec describes the Ingress the user wishes to exist. -// -// In general this follows the same shape as K8s Ingress. -// Some notable differences: -// - Backends now can have namespace: -// - Traffic can be split across multiple backends. -// - Timeout & Retry can be configured. -// - Headers can be appended. -// DomainSpec contains the specification of the Domain CRD. -type DomainSpec struct { - // IngressClass tells what Ingress class annotation to use for Routes associated - // with this Realm. - IngressClass string `json:"ingressClass"` - - // Suffix specifies the domain suffix to be used. This field replaces the - // existing config-domain ConfigMap. Internal Domains can omit this, in - // which case we will default to the cluster suffix. - // +optional - Suffix string `json:"suffix,omitempty"` - - // LoadBalancers provide addresses (IP addresses, domains) of the load balancers - // associated with this Domain. This is used in automatic DNS provisioning like - // configuration of magic DNS or creating ExternalName services for cluster-local - // access. - LoadBalancers []LoadBalancerIngressSpec `json:"loadBalancers"` - - // Configs contains additional pieces of information to configure ingress proxies. - // +optional - Configs []IngressConfig `json:"configs,omitempty"` -} - -// IngressConfig allows KIngress implementations to add additional information needed -// for configuring the proxies associated with this Domain. -// For examples, in our Istio-based Ingress this will contains all references of -// Istio Gateways associated with this Domain. This could be a reference of a ConfigMap -// owned by the implementation as well. -type IngressConfig struct { - // Name of the Kingress implementation resource - // +optional - Name string `json:"name,omitempty"` - // Namespace of the Kingress implementation resource - // +optional - Namespace string `json:"namespace,omitempty"` - // Type of the Kingress implementation resource - // +optional - Type string `json:"type,omitempty"` -} - -// LoadBalancerIngressSpec represents the spec of a load-balancer ingress point: -// traffic intended for the service should be sent to an ingress point. -type LoadBalancerIngressSpec struct { - // IP is set for load-balancer ingress points that are IP based - // (typically GCE or OpenStack load-balancers) - // +optional - IP string `json:"ip,omitempty"` - - // Domain is set for load-balancer ingress points that are DNS based - // (typically AWS load-balancers) - // +optional - Domain string `json:"domain,omitempty"` - - // DomainInternal is set if there is a cluster-local DNS name to access the Ingress. - // - // NOTE: This differs from K8s Ingress, since we also desire to have a cluster-local - // DNS name to allow routing in case of not having a mesh. - // - // +optional - DomainInternal string `json:"domainInternal,omitempty"` - - // MeshOnly is set if the Ingress is only load-balanced through a Service mesh. - // +optional - MeshOnly bool `json:"meshOnly,omitempty"` -} - -// DomainStatus will reflect Ready=True if the implementation accepts the Domain data -// as valid. -type DomainStatus struct { - duckv1.Status `json:",inline"` -} - -// GetStatus retrieves the status of the Domain. Implements the KRShaped interface. -func (d *Domain) GetStatus() *duckv1.Status { - return &d.Status.Status -} diff --git a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_validation.go b/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_validation.go deleted file mode 100644 index 85d556972..000000000 --- a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/domain_validation.go +++ /dev/null @@ -1,70 +0,0 @@ -/* -Copyright 2020 The Knative Authors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - "context" - - "k8s.io/apimachinery/pkg/api/equality" - "knative.dev/pkg/apis" -) - -// Validate inspects and validates Domain object. -func (d *Domain) Validate(ctx context.Context) *apis.FieldError { - return d.Spec.Validate(apis.WithinSpec(ctx)).ViaField("spec") -} - -// Validate inspects and validates DomainSpec object. -func (ds *DomainSpec) Validate(ctx context.Context) *apis.FieldError { - // Spec must not be empty. - if equality.Semantic.DeepEqual(ds, &DomainSpec{}) { - return apis.ErrMissingField(apis.CurrentField) - } - var all *apis.FieldError - if ds.IngressClass == "" { - all = all.Also(apis.ErrMissingField("ingressClass")) - } - if len(ds.LoadBalancers) == 0 { - all = all.Also(apis.ErrMissingField("loadBalancers")) - } - for idx, lbSpec := range ds.LoadBalancers { - all = all.Also(lbSpec.Validate(ctx).ViaFieldIndex("loadBalancers", idx)) - } - for idx, cfg := range ds.Configs { - all = all.Also(cfg.Validate(ctx).ViaFieldIndex("configs", idx)) - } - return all -} - -func (lb *LoadBalancerIngressSpec) Validate(_ context.Context) *apis.FieldError { - var all *apis.FieldError - if lb.Domain == "" && lb.DomainInternal == "" && lb.IP == "" && !lb.MeshOnly { - return all.Also(apis.ErrMissingOneOf("domain", "domainInternal", "ip", "meshOnly")) - } - return all -} - -func (cfg *IngressConfig) Validate(_ context.Context) *apis.FieldError { - var all *apis.FieldError - if cfg.Name == "" { - all = all.Also(apis.ErrMissingField("name")) - } - if cfg.Type == "" { - all = all.Also(apis.ErrMissingField("type")) - } - return all -} diff --git a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_defaults.go b/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_defaults.go deleted file mode 100644 index 5614104be..000000000 --- a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_defaults.go +++ /dev/null @@ -1,32 +0,0 @@ -/* -Copyright 2020 The Knative Authors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - "context" - - "knative.dev/pkg/apis" -) - -// SetDefaults populates default values in Realm -func (r *Realm) SetDefaults(ctx context.Context) { - r.Spec.SetDefaults(apis.WithinSpec(ctx)) -} - -// SetDefaults populates default values in RealmSpec -func (*RealmSpec) SetDefaults(_ context.Context) { -} diff --git a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_lifecycle.go b/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_lifecycle.go deleted file mode 100644 index e53df392c..000000000 --- a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_lifecycle.go +++ /dev/null @@ -1,34 +0,0 @@ -/* -Copyright 2020 The Knative Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - "k8s.io/apimachinery/pkg/runtime/schema" - "knative.dev/pkg/apis" -) - -var realmCondSet = apis.NewLivingConditionSet() - -// GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface. -func (*Realm) GetConditionSet() apis.ConditionSet { - return realmCondSet -} - -// GetGroupVersionKind returns SchemeGroupVersion of an Realm -func (*Realm) GetGroupVersionKind() schema.GroupVersionKind { - return SchemeGroupVersion.WithKind("Realm") -} diff --git a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_types.go b/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_types.go deleted file mode 100644 index bfb2df920..000000000 --- a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_types.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Copyright 2020 The Knative Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "knative.dev/pkg/apis" - duckv1 "knative.dev/pkg/apis/duck/v1" - "knative.dev/pkg/kmeta" -) - -// +genclient -// +genclient:nonNamespaced -// +genreconciler:krshapedlogic=true -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// Realm is a cluster-scoped resource that specifies a Route visibility. -type Realm struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty"` - - // Spec is the desired state of the Realm. - // More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec RealmSpec `json:"spec,omitempty"` - - // Status is the current state of the Realm. - // More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status RealmStatus `json:"status,omitempty"` -} - -// Verify that Realm adheres to the appropriate interfaces. -var ( - // Check that Realm may be validated and defaulted. - _ apis.Validatable = (*Realm)(nil) - _ apis.Defaultable = (*Realm)(nil) - - // Check that we can create OwnerReferences to a Realm. - _ kmeta.OwnerRefable = (*Realm)(nil) - - // Check that the type conforms to the duck Knative Resource shape. - _ duckv1.KRShaped = (*Realm)(nil) -) - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// RealmList is a collection of Realm objects. -type RealmList struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata. - // More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty"` - - // Items is the list of Realm objects. - Items []Realm `json:"items"` -} - -// RealmSpec defines the specifications of a Realm. -// Realms specify an internal and external Domain, but disallow arbitrary combinations. -// Operators can create combinations of Domains that makes sense for their clusters, -// and developers can only switch between these predefined Realms. -// -// Conditions: Currently each Realm can have only two Domains. -// That fits well with the way we assign Route.Status.URL and Route.Status.Domain. -// All Domains in the same Realm must share the same ingress class annotation. -type RealmSpec struct { - // External contains the name of the Domain resource corresponding with traffic - // originating from outside of the cluster. Could be omitted for a Realm without - // external access. - // +optional - External string `json:"external,omitempty"` - - // Internal contains the name of the Domain resource corresponding with traffic - // originating from inside of the cluster. Could be omitted for a Realm without - // internal access. - // +optional - Internal string `json:"internal,omitempty"` -} - -// RealmStatus will reflect Ready=True if the implementation accepts the Realm data -// as valid. -type RealmStatus struct { - duckv1.Status `json:",inline"` -} - -// GetStatus retrieves the status of the Realm. Implements the KRShaped interface. -func (r *Realm) GetStatus() *duckv1.Status { - return &r.Status.Status -} diff --git a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_validation.go b/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_validation.go deleted file mode 100644 index 93caf7016..000000000 --- a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/realm_validation.go +++ /dev/null @@ -1,37 +0,0 @@ -/* -Copyright 2020 The Knative Authors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - "context" - - "knative.dev/pkg/apis" -) - -// Validate inspects and validates Realm object. -func (r *Realm) Validate(ctx context.Context) *apis.FieldError { - return r.Spec.Validate(apis.WithinSpec(ctx)).ViaField("spec") -} - -// Validate inspects and validates RealmSpec object. -func (rs *RealmSpec) Validate(_ context.Context) *apis.FieldError { - var all *apis.FieldError - if rs.External == "" && rs.Internal == "" { - all = all.Also(apis.ErrMissingOneOf("external", "internal")) - } - return all -} diff --git a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/register.go b/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/register.go index 19a1b907f..6d54c4e6a 100644 --- a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/register.go +++ b/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/register.go @@ -46,12 +46,8 @@ var ( // Adds the list of known types to Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, - &Domain{}, - &DomainList{}, &Ingress{}, &IngressList{}, - &Realm{}, - &RealmList{}, &ServerlessService{}, &ServerlessServiceList{}, &Certificate{}, diff --git a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/zz_generated.deepcopy.go b/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/zz_generated.deepcopy.go index 7f93cd337..64bf6351b 100644 --- a/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/knative.dev/networking/pkg/apis/networking/v1alpha1/zz_generated.deepcopy.go @@ -213,110 +213,6 @@ func (in *ClusterDomainClaimSpec) DeepCopy() *ClusterDomainClaimSpec { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Domain) DeepCopyInto(out *Domain) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Domain. -func (in *Domain) DeepCopy() *Domain { - if in == nil { - return nil - } - out := new(Domain) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Domain) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DomainList) DeepCopyInto(out *DomainList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Domain, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DomainList. -func (in *DomainList) DeepCopy() *DomainList { - if in == nil { - return nil - } - out := new(DomainList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DomainList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DomainSpec) DeepCopyInto(out *DomainSpec) { - *out = *in - if in.LoadBalancers != nil { - in, out := &in.LoadBalancers, &out.LoadBalancers - *out = make([]LoadBalancerIngressSpec, len(*in)) - copy(*out, *in) - } - if in.Configs != nil { - in, out := &in.Configs, &out.Configs - *out = make([]IngressConfig, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DomainSpec. -func (in *DomainSpec) DeepCopy() *DomainSpec { - if in == nil { - return nil - } - out := new(DomainSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DomainStatus) DeepCopyInto(out *DomainStatus) { - *out = *in - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DomainStatus. -func (in *DomainStatus) DeepCopy() *DomainStatus { - if in == nil { - return nil - } - out := new(DomainStatus) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *HTTP01Challenge) DeepCopyInto(out *HTTP01Challenge) { *out = *in @@ -505,22 +401,6 @@ func (in *IngressBackendSplit) DeepCopy() *IngressBackendSplit { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressConfig) DeepCopyInto(out *IngressConfig) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressConfig. -func (in *IngressConfig) DeepCopy() *IngressConfig { - if in == nil { - return nil - } - out := new(IngressConfig) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IngressList) DeepCopyInto(out *IngressList) { *out = *in @@ -658,22 +538,6 @@ func (in *IngressTLS) DeepCopy() *IngressTLS { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerIngressSpec) DeepCopyInto(out *LoadBalancerIngressSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerIngressSpec. -func (in *LoadBalancerIngressSpec) DeepCopy() *LoadBalancerIngressSpec { - if in == nil { - return nil - } - out := new(LoadBalancerIngressSpec) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LoadBalancerIngressStatus) DeepCopyInto(out *LoadBalancerIngressStatus) { *out = *in @@ -711,100 +575,6 @@ func (in *LoadBalancerStatus) DeepCopy() *LoadBalancerStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Realm) DeepCopyInto(out *Realm) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Realm. -func (in *Realm) DeepCopy() *Realm { - if in == nil { - return nil - } - out := new(Realm) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Realm) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RealmList) DeepCopyInto(out *RealmList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Realm, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RealmList. -func (in *RealmList) DeepCopy() *RealmList { - if in == nil { - return nil - } - out := new(RealmList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RealmList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RealmSpec) DeepCopyInto(out *RealmSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RealmSpec. -func (in *RealmSpec) DeepCopy() *RealmSpec { - if in == nil { - return nil - } - out := new(RealmSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RealmStatus) DeepCopyInto(out *RealmStatus) { - *out = *in - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RealmStatus. -func (in *RealmStatus) DeepCopy() *RealmStatus { - if in == nil { - return nil - } - out := new(RealmStatus) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServerlessService) DeepCopyInto(out *ServerlessService) { *out = *in diff --git a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/domain.go b/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/domain.go deleted file mode 100644 index 3ad1e79ed..000000000 --- a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/domain.go +++ /dev/null @@ -1,184 +0,0 @@ -/* -Copyright 2020 The Knative Authors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" - v1alpha1 "knative.dev/networking/pkg/apis/networking/v1alpha1" - scheme "knative.dev/networking/pkg/client/clientset/versioned/scheme" -) - -// DomainsGetter has a method to return a DomainInterface. -// A group's client should implement this interface. -type DomainsGetter interface { - Domains() DomainInterface -} - -// DomainInterface has methods to work with Domain resources. -type DomainInterface interface { - Create(ctx context.Context, domain *v1alpha1.Domain, opts v1.CreateOptions) (*v1alpha1.Domain, error) - Update(ctx context.Context, domain *v1alpha1.Domain, opts v1.UpdateOptions) (*v1alpha1.Domain, error) - UpdateStatus(ctx context.Context, domain *v1alpha1.Domain, opts v1.UpdateOptions) (*v1alpha1.Domain, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Domain, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.DomainList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Domain, err error) - DomainExpansion -} - -// domains implements DomainInterface -type domains struct { - client rest.Interface -} - -// newDomains returns a Domains -func newDomains(c *NetworkingV1alpha1Client) *domains { - return &domains{ - client: c.RESTClient(), - } -} - -// Get takes name of the domain, and returns the corresponding domain object, and an error if there is any. -func (c *domains) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Domain, err error) { - result = &v1alpha1.Domain{} - err = c.client.Get(). - Resource("domains"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Domains that match those selectors. -func (c *domains) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DomainList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.DomainList{} - err = c.client.Get(). - Resource("domains"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested domains. -func (c *domains) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("domains"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a domain and creates it. Returns the server's representation of the domain, and an error, if there is any. -func (c *domains) Create(ctx context.Context, domain *v1alpha1.Domain, opts v1.CreateOptions) (result *v1alpha1.Domain, err error) { - result = &v1alpha1.Domain{} - err = c.client.Post(). - Resource("domains"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(domain). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a domain and updates it. Returns the server's representation of the domain, and an error, if there is any. -func (c *domains) Update(ctx context.Context, domain *v1alpha1.Domain, opts v1.UpdateOptions) (result *v1alpha1.Domain, err error) { - result = &v1alpha1.Domain{} - err = c.client.Put(). - Resource("domains"). - Name(domain.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(domain). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *domains) UpdateStatus(ctx context.Context, domain *v1alpha1.Domain, opts v1.UpdateOptions) (result *v1alpha1.Domain, err error) { - result = &v1alpha1.Domain{} - err = c.client.Put(). - Resource("domains"). - Name(domain.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(domain). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the domain and deletes it. Returns an error if one occurs. -func (c *domains) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("domains"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *domains) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("domains"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched domain. -func (c *domains) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Domain, err error) { - result = &v1alpha1.Domain{} - err = c.client.Patch(pt). - Resource("domains"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/fake/fake_domain.go b/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/fake/fake_domain.go deleted file mode 100644 index e51f59545..000000000 --- a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/fake/fake_domain.go +++ /dev/null @@ -1,132 +0,0 @@ -/* -Copyright 2020 The Knative Authors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" - v1alpha1 "knative.dev/networking/pkg/apis/networking/v1alpha1" -) - -// FakeDomains implements DomainInterface -type FakeDomains struct { - Fake *FakeNetworkingV1alpha1 -} - -var domainsResource = v1alpha1.SchemeGroupVersion.WithResource("domains") - -var domainsKind = v1alpha1.SchemeGroupVersion.WithKind("Domain") - -// Get takes name of the domain, and returns the corresponding domain object, and an error if there is any. -func (c *FakeDomains) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Domain, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(domainsResource, name), &v1alpha1.Domain{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Domain), err -} - -// List takes label and field selectors, and returns the list of Domains that match those selectors. -func (c *FakeDomains) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DomainList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(domainsResource, domainsKind, opts), &v1alpha1.DomainList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.DomainList{ListMeta: obj.(*v1alpha1.DomainList).ListMeta} - for _, item := range obj.(*v1alpha1.DomainList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested domains. -func (c *FakeDomains) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(domainsResource, opts)) -} - -// Create takes the representation of a domain and creates it. Returns the server's representation of the domain, and an error, if there is any. -func (c *FakeDomains) Create(ctx context.Context, domain *v1alpha1.Domain, opts v1.CreateOptions) (result *v1alpha1.Domain, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(domainsResource, domain), &v1alpha1.Domain{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Domain), err -} - -// Update takes the representation of a domain and updates it. Returns the server's representation of the domain, and an error, if there is any. -func (c *FakeDomains) Update(ctx context.Context, domain *v1alpha1.Domain, opts v1.UpdateOptions) (result *v1alpha1.Domain, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(domainsResource, domain), &v1alpha1.Domain{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Domain), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeDomains) UpdateStatus(ctx context.Context, domain *v1alpha1.Domain, opts v1.UpdateOptions) (*v1alpha1.Domain, error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceAction(domainsResource, "status", domain), &v1alpha1.Domain{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Domain), err -} - -// Delete takes name of the domain and deletes it. Returns an error if one occurs. -func (c *FakeDomains) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(domainsResource, name, opts), &v1alpha1.Domain{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDomains) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(domainsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.DomainList{}) - return err -} - -// Patch applies the patch and returns the patched domain. -func (c *FakeDomains) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Domain, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(domainsResource, name, pt, data, subresources...), &v1alpha1.Domain{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Domain), err -} diff --git a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/fake/fake_networking_client.go b/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/fake/fake_networking_client.go index 88f0cd5cd..9e395456f 100644 --- a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/fake/fake_networking_client.go +++ b/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/fake/fake_networking_client.go @@ -36,18 +36,10 @@ func (c *FakeNetworkingV1alpha1) ClusterDomainClaims() v1alpha1.ClusterDomainCla return &FakeClusterDomainClaims{c} } -func (c *FakeNetworkingV1alpha1) Domains() v1alpha1.DomainInterface { - return &FakeDomains{c} -} - func (c *FakeNetworkingV1alpha1) Ingresses(namespace string) v1alpha1.IngressInterface { return &FakeIngresses{c, namespace} } -func (c *FakeNetworkingV1alpha1) Realms() v1alpha1.RealmInterface { - return &FakeRealms{c} -} - func (c *FakeNetworkingV1alpha1) ServerlessServices(namespace string) v1alpha1.ServerlessServiceInterface { return &FakeServerlessServices{c, namespace} } diff --git a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/fake/fake_realm.go b/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/fake/fake_realm.go deleted file mode 100644 index 69fcb1479..000000000 --- a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/fake/fake_realm.go +++ /dev/null @@ -1,132 +0,0 @@ -/* -Copyright 2020 The Knative Authors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" - v1alpha1 "knative.dev/networking/pkg/apis/networking/v1alpha1" -) - -// FakeRealms implements RealmInterface -type FakeRealms struct { - Fake *FakeNetworkingV1alpha1 -} - -var realmsResource = v1alpha1.SchemeGroupVersion.WithResource("realms") - -var realmsKind = v1alpha1.SchemeGroupVersion.WithKind("Realm") - -// Get takes name of the realm, and returns the corresponding realm object, and an error if there is any. -func (c *FakeRealms) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Realm, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(realmsResource, name), &v1alpha1.Realm{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Realm), err -} - -// List takes label and field selectors, and returns the list of Realms that match those selectors. -func (c *FakeRealms) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RealmList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(realmsResource, realmsKind, opts), &v1alpha1.RealmList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.RealmList{ListMeta: obj.(*v1alpha1.RealmList).ListMeta} - for _, item := range obj.(*v1alpha1.RealmList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested realms. -func (c *FakeRealms) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(realmsResource, opts)) -} - -// Create takes the representation of a realm and creates it. Returns the server's representation of the realm, and an error, if there is any. -func (c *FakeRealms) Create(ctx context.Context, realm *v1alpha1.Realm, opts v1.CreateOptions) (result *v1alpha1.Realm, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(realmsResource, realm), &v1alpha1.Realm{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Realm), err -} - -// Update takes the representation of a realm and updates it. Returns the server's representation of the realm, and an error, if there is any. -func (c *FakeRealms) Update(ctx context.Context, realm *v1alpha1.Realm, opts v1.UpdateOptions) (result *v1alpha1.Realm, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(realmsResource, realm), &v1alpha1.Realm{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Realm), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRealms) UpdateStatus(ctx context.Context, realm *v1alpha1.Realm, opts v1.UpdateOptions) (*v1alpha1.Realm, error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceAction(realmsResource, "status", realm), &v1alpha1.Realm{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Realm), err -} - -// Delete takes name of the realm and deletes it. Returns an error if one occurs. -func (c *FakeRealms) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(realmsResource, name, opts), &v1alpha1.Realm{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRealms) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(realmsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.RealmList{}) - return err -} - -// Patch applies the patch and returns the patched realm. -func (c *FakeRealms) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Realm, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(realmsResource, name, pt, data, subresources...), &v1alpha1.Realm{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Realm), err -} diff --git a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/generated_expansion.go b/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/generated_expansion.go index 3bd2cbaa4..5fcaeb63a 100644 --- a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/generated_expansion.go +++ b/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/generated_expansion.go @@ -22,10 +22,6 @@ type CertificateExpansion interface{} type ClusterDomainClaimExpansion interface{} -type DomainExpansion interface{} - type IngressExpansion interface{} -type RealmExpansion interface{} - type ServerlessServiceExpansion interface{} diff --git a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/networking_client.go b/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/networking_client.go index 334a0a8cc..ab3f56ad8 100644 --- a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/networking_client.go +++ b/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/networking_client.go @@ -30,9 +30,7 @@ type NetworkingV1alpha1Interface interface { RESTClient() rest.Interface CertificatesGetter ClusterDomainClaimsGetter - DomainsGetter IngressesGetter - RealmsGetter ServerlessServicesGetter } @@ -49,18 +47,10 @@ func (c *NetworkingV1alpha1Client) ClusterDomainClaims() ClusterDomainClaimInter return newClusterDomainClaims(c) } -func (c *NetworkingV1alpha1Client) Domains() DomainInterface { - return newDomains(c) -} - func (c *NetworkingV1alpha1Client) Ingresses(namespace string) IngressInterface { return newIngresses(c, namespace) } -func (c *NetworkingV1alpha1Client) Realms() RealmInterface { - return newRealms(c) -} - func (c *NetworkingV1alpha1Client) ServerlessServices(namespace string) ServerlessServiceInterface { return newServerlessServices(c, namespace) } diff --git a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/realm.go b/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/realm.go deleted file mode 100644 index b1abbea4c..000000000 --- a/vendor/knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/realm.go +++ /dev/null @@ -1,184 +0,0 @@ -/* -Copyright 2020 The Knative Authors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" - v1alpha1 "knative.dev/networking/pkg/apis/networking/v1alpha1" - scheme "knative.dev/networking/pkg/client/clientset/versioned/scheme" -) - -// RealmsGetter has a method to return a RealmInterface. -// A group's client should implement this interface. -type RealmsGetter interface { - Realms() RealmInterface -} - -// RealmInterface has methods to work with Realm resources. -type RealmInterface interface { - Create(ctx context.Context, realm *v1alpha1.Realm, opts v1.CreateOptions) (*v1alpha1.Realm, error) - Update(ctx context.Context, realm *v1alpha1.Realm, opts v1.UpdateOptions) (*v1alpha1.Realm, error) - UpdateStatus(ctx context.Context, realm *v1alpha1.Realm, opts v1.UpdateOptions) (*v1alpha1.Realm, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Realm, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.RealmList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Realm, err error) - RealmExpansion -} - -// realms implements RealmInterface -type realms struct { - client rest.Interface -} - -// newRealms returns a Realms -func newRealms(c *NetworkingV1alpha1Client) *realms { - return &realms{ - client: c.RESTClient(), - } -} - -// Get takes name of the realm, and returns the corresponding realm object, and an error if there is any. -func (c *realms) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Realm, err error) { - result = &v1alpha1.Realm{} - err = c.client.Get(). - Resource("realms"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Realms that match those selectors. -func (c *realms) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RealmList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.RealmList{} - err = c.client.Get(). - Resource("realms"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested realms. -func (c *realms) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("realms"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a realm and creates it. Returns the server's representation of the realm, and an error, if there is any. -func (c *realms) Create(ctx context.Context, realm *v1alpha1.Realm, opts v1.CreateOptions) (result *v1alpha1.Realm, err error) { - result = &v1alpha1.Realm{} - err = c.client.Post(). - Resource("realms"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(realm). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a realm and updates it. Returns the server's representation of the realm, and an error, if there is any. -func (c *realms) Update(ctx context.Context, realm *v1alpha1.Realm, opts v1.UpdateOptions) (result *v1alpha1.Realm, err error) { - result = &v1alpha1.Realm{} - err = c.client.Put(). - Resource("realms"). - Name(realm.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(realm). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *realms) UpdateStatus(ctx context.Context, realm *v1alpha1.Realm, opts v1.UpdateOptions) (result *v1alpha1.Realm, err error) { - result = &v1alpha1.Realm{} - err = c.client.Put(). - Resource("realms"). - Name(realm.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(realm). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the realm and deletes it. Returns an error if one occurs. -func (c *realms) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("realms"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *realms) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("realms"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched realm. -func (c *realms) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Realm, err error) { - result = &v1alpha1.Realm{} - err = c.client.Patch(pt). - Resource("realms"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/vendor/knative.dev/networking/pkg/client/informers/externalversions/generic.go b/vendor/knative.dev/networking/pkg/client/informers/externalversions/generic.go index 90c50f3a4..44cfc2992 100644 --- a/vendor/knative.dev/networking/pkg/client/informers/externalversions/generic.go +++ b/vendor/knative.dev/networking/pkg/client/informers/externalversions/generic.go @@ -57,12 +57,8 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().V1alpha1().Certificates().Informer()}, nil case v1alpha1.SchemeGroupVersion.WithResource("clusterdomainclaims"): return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().V1alpha1().ClusterDomainClaims().Informer()}, nil - case v1alpha1.SchemeGroupVersion.WithResource("domains"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().V1alpha1().Domains().Informer()}, nil case v1alpha1.SchemeGroupVersion.WithResource("ingresses"): return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().V1alpha1().Ingresses().Informer()}, nil - case v1alpha1.SchemeGroupVersion.WithResource("realms"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().V1alpha1().Realms().Informer()}, nil case v1alpha1.SchemeGroupVersion.WithResource("serverlessservices"): return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().V1alpha1().ServerlessServices().Informer()}, nil diff --git a/vendor/knative.dev/networking/pkg/client/informers/externalversions/networking/v1alpha1/domain.go b/vendor/knative.dev/networking/pkg/client/informers/externalversions/networking/v1alpha1/domain.go deleted file mode 100644 index 7b477de94..000000000 --- a/vendor/knative.dev/networking/pkg/client/informers/externalversions/networking/v1alpha1/domain.go +++ /dev/null @@ -1,89 +0,0 @@ -/* -Copyright 2020 The Knative Authors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by informer-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - time "time" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" - networkingv1alpha1 "knative.dev/networking/pkg/apis/networking/v1alpha1" - versioned "knative.dev/networking/pkg/client/clientset/versioned" - internalinterfaces "knative.dev/networking/pkg/client/informers/externalversions/internalinterfaces" - v1alpha1 "knative.dev/networking/pkg/client/listers/networking/v1alpha1" -) - -// DomainInformer provides access to a shared informer and lister for -// Domains. -type DomainInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1alpha1.DomainLister -} - -type domainInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDomainInformer constructs a new informer for Domain type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDomainInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDomainInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDomainInformer constructs a new informer for Domain type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDomainInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.NetworkingV1alpha1().Domains().List(context.TODO(), options) - }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.NetworkingV1alpha1().Domains().Watch(context.TODO(), options) - }, - }, - &networkingv1alpha1.Domain{}, - resyncPeriod, - indexers, - ) -} - -func (f *domainInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDomainInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *domainInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&networkingv1alpha1.Domain{}, f.defaultInformer) -} - -func (f *domainInformer) Lister() v1alpha1.DomainLister { - return v1alpha1.NewDomainLister(f.Informer().GetIndexer()) -} diff --git a/vendor/knative.dev/networking/pkg/client/informers/externalversions/networking/v1alpha1/interface.go b/vendor/knative.dev/networking/pkg/client/informers/externalversions/networking/v1alpha1/interface.go index fba5f09bc..240f43c25 100644 --- a/vendor/knative.dev/networking/pkg/client/informers/externalversions/networking/v1alpha1/interface.go +++ b/vendor/knative.dev/networking/pkg/client/informers/externalversions/networking/v1alpha1/interface.go @@ -28,12 +28,8 @@ type Interface interface { Certificates() CertificateInformer // ClusterDomainClaims returns a ClusterDomainClaimInformer. ClusterDomainClaims() ClusterDomainClaimInformer - // Domains returns a DomainInformer. - Domains() DomainInformer // Ingresses returns a IngressInformer. Ingresses() IngressInformer - // Realms returns a RealmInformer. - Realms() RealmInformer // ServerlessServices returns a ServerlessServiceInformer. ServerlessServices() ServerlessServiceInformer } @@ -59,21 +55,11 @@ func (v *version) ClusterDomainClaims() ClusterDomainClaimInformer { return &clusterDomainClaimInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// Domains returns a DomainInformer. -func (v *version) Domains() DomainInformer { - return &domainInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - // Ingresses returns a IngressInformer. func (v *version) Ingresses() IngressInformer { return &ingressInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } -// Realms returns a RealmInformer. -func (v *version) Realms() RealmInformer { - return &realmInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - // ServerlessServices returns a ServerlessServiceInformer. func (v *version) ServerlessServices() ServerlessServiceInformer { return &serverlessServiceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} diff --git a/vendor/knative.dev/networking/pkg/client/informers/externalversions/networking/v1alpha1/realm.go b/vendor/knative.dev/networking/pkg/client/informers/externalversions/networking/v1alpha1/realm.go deleted file mode 100644 index 313cb6cad..000000000 --- a/vendor/knative.dev/networking/pkg/client/informers/externalversions/networking/v1alpha1/realm.go +++ /dev/null @@ -1,89 +0,0 @@ -/* -Copyright 2020 The Knative Authors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by informer-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - time "time" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" - networkingv1alpha1 "knative.dev/networking/pkg/apis/networking/v1alpha1" - versioned "knative.dev/networking/pkg/client/clientset/versioned" - internalinterfaces "knative.dev/networking/pkg/client/informers/externalversions/internalinterfaces" - v1alpha1 "knative.dev/networking/pkg/client/listers/networking/v1alpha1" -) - -// RealmInformer provides access to a shared informer and lister for -// Realms. -type RealmInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1alpha1.RealmLister -} - -type realmInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewRealmInformer constructs a new informer for Realm type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewRealmInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredRealmInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredRealmInformer constructs a new informer for Realm type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredRealmInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.NetworkingV1alpha1().Realms().List(context.TODO(), options) - }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.NetworkingV1alpha1().Realms().Watch(context.TODO(), options) - }, - }, - &networkingv1alpha1.Realm{}, - resyncPeriod, - indexers, - ) -} - -func (f *realmInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredRealmInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *realmInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&networkingv1alpha1.Realm{}, f.defaultInformer) -} - -func (f *realmInformer) Lister() v1alpha1.RealmLister { - return v1alpha1.NewRealmLister(f.Informer().GetIndexer()) -} diff --git a/vendor/knative.dev/networking/pkg/client/listers/networking/v1alpha1/domain.go b/vendor/knative.dev/networking/pkg/client/listers/networking/v1alpha1/domain.go deleted file mode 100644 index 8a25beb0c..000000000 --- a/vendor/knative.dev/networking/pkg/client/listers/networking/v1alpha1/domain.go +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright 2020 The Knative Authors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by lister-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" - v1alpha1 "knative.dev/networking/pkg/apis/networking/v1alpha1" -) - -// DomainLister helps list Domains. -// All objects returned here must be treated as read-only. -type DomainLister interface { - // List lists all Domains in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Domain, err error) - // Get retrieves the Domain from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.Domain, error) - DomainListerExpansion -} - -// domainLister implements the DomainLister interface. -type domainLister struct { - indexer cache.Indexer -} - -// NewDomainLister returns a new DomainLister. -func NewDomainLister(indexer cache.Indexer) DomainLister { - return &domainLister{indexer: indexer} -} - -// List lists all Domains in the indexer. -func (s *domainLister) List(selector labels.Selector) (ret []*v1alpha1.Domain, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha1.Domain)) - }) - return ret, err -} - -// Get retrieves the Domain from the index for a given name. -func (s *domainLister) Get(name string) (*v1alpha1.Domain, error) { - obj, exists, err := s.indexer.GetByKey(name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v1alpha1.Resource("domain"), name) - } - return obj.(*v1alpha1.Domain), nil -} diff --git a/vendor/knative.dev/networking/pkg/client/listers/networking/v1alpha1/expansion_generated.go b/vendor/knative.dev/networking/pkg/client/listers/networking/v1alpha1/expansion_generated.go index 5faa077ad..739b7b43c 100644 --- a/vendor/knative.dev/networking/pkg/client/listers/networking/v1alpha1/expansion_generated.go +++ b/vendor/knative.dev/networking/pkg/client/listers/networking/v1alpha1/expansion_generated.go @@ -30,10 +30,6 @@ type CertificateNamespaceListerExpansion interface{} // ClusterDomainClaimLister. type ClusterDomainClaimListerExpansion interface{} -// DomainListerExpansion allows custom methods to be added to -// DomainLister. -type DomainListerExpansion interface{} - // IngressListerExpansion allows custom methods to be added to // IngressLister. type IngressListerExpansion interface{} @@ -42,10 +38,6 @@ type IngressListerExpansion interface{} // IngressNamespaceLister. type IngressNamespaceListerExpansion interface{} -// RealmListerExpansion allows custom methods to be added to -// RealmLister. -type RealmListerExpansion interface{} - // ServerlessServiceListerExpansion allows custom methods to be added to // ServerlessServiceLister. type ServerlessServiceListerExpansion interface{} diff --git a/vendor/knative.dev/networking/pkg/client/listers/networking/v1alpha1/realm.go b/vendor/knative.dev/networking/pkg/client/listers/networking/v1alpha1/realm.go deleted file mode 100644 index 88da2c86d..000000000 --- a/vendor/knative.dev/networking/pkg/client/listers/networking/v1alpha1/realm.go +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright 2020 The Knative Authors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by lister-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" - v1alpha1 "knative.dev/networking/pkg/apis/networking/v1alpha1" -) - -// RealmLister helps list Realms. -// All objects returned here must be treated as read-only. -type RealmLister interface { - // List lists all Realms in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Realm, err error) - // Get retrieves the Realm from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.Realm, error) - RealmListerExpansion -} - -// realmLister implements the RealmLister interface. -type realmLister struct { - indexer cache.Indexer -} - -// NewRealmLister returns a new RealmLister. -func NewRealmLister(indexer cache.Indexer) RealmLister { - return &realmLister{indexer: indexer} -} - -// List lists all Realms in the indexer. -func (s *realmLister) List(selector labels.Selector) (ret []*v1alpha1.Realm, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha1.Realm)) - }) - return ret, err -} - -// Get retrieves the Realm from the index for a given name. -func (s *realmLister) Get(name string) (*v1alpha1.Realm, error) { - obj, exists, err := s.indexer.GetByKey(name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v1alpha1.Resource("realm"), name) - } - return obj.(*v1alpha1.Realm), nil -} diff --git a/vendor/modules.txt b/vendor/modules.txt index 86387896e..97714eeff 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -896,7 +896,7 @@ k8s.io/utils/trace # knative.dev/hack v0.0.0-20240222141347-5f0998e65262 ## explicit; go 1.18 knative.dev/hack -# knative.dev/networking v0.0.0-20240226132914-54694f49ea7e +# knative.dev/networking v0.0.0-20240226140608-7391d203a132 ## explicit; go 1.21 knative.dev/networking/config knative.dev/networking/pkg