From 908d6584cf9e7900b9a4964579826f6f3e20c498 Mon Sep 17 00:00:00 2001 From: Hector Fernandez Date: Sun, 21 Feb 2021 11:00:38 +0100 Subject: [PATCH] chore: clean crds of multiclusterdns Signed-off-by: Hector Fernandez --- .../charts/controllermanager/crds/crds.yaml | 433 ------------------ test/common/util.go | 2 - 2 files changed, 435 deletions(-) diff --git a/charts/kubefed/charts/controllermanager/crds/crds.yaml b/charts/kubefed/charts/controllermanager/crds/crds.yaml index b271a4919e..9c77a3ac46 100644 --- a/charts/kubefed/charts/controllermanager/crds/crds.yaml +++ b/charts/kubefed/charts/controllermanager/crds/crds.yaml @@ -791,439 +791,6 @@ status: conditions: [] storedVersions: [] ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - creationTimestamp: null - name: dnsendpoints.multiclusterdns.kubefed.io -spec: - group: multiclusterdns.kubefed.io - names: - kind: DNSEndpoint - listKind: DNSEndpointList - plural: dnsendpoints - singular: dnsendpoint - scope: Namespaced - versions: - - name: v1alpha1 - schema: - openAPIV3Schema: - description: DNSEndpoint is the CRD wrapper for Endpoint which is designed - to act as a source of truth for external-dns. - 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: DNSEndpointSpec defines the desired state of DNSEndpoint - properties: - endpoints: - items: - description: Endpoint is a high-level association between a service - and an IP. - properties: - dnsName: - description: The FQDN of the DNS record. - type: string - labels: - additionalProperties: - type: string - description: Labels stores labels defined for the Endpoint. - type: object - recordTTL: - description: TTL for the record in seconds. - format: int64 - type: integer - recordType: - description: RecordType type of record, e.g. CNAME, A, SRV, - TXT etc. - type: string - targets: - description: The targets that the DNS record points to. - items: - type: string - type: array - type: object - type: array - type: object - status: - description: DNSEndpointStatus defines the observed state of DNSEndpoint - properties: - observedGeneration: - description: ObservedGeneration is the generation as observed by the - controller consuming the DNSEndpoint. - format: int64 - type: integer - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - creationTimestamp: null - name: domains.multiclusterdns.kubefed.io -spec: - group: multiclusterdns.kubefed.io - names: - kind: Domain - listKind: DomainList - plural: domains - singular: domain - scope: Namespaced - versions: - - name: v1alpha1 - schema: - openAPIV3Schema: - 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 - domain: - description: Domain is the DNS zone associated with the KubeFed control - plane - 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 - nameServer: - description: NameServer is the authoritative DNS name server for the KubeFed - domain - type: string - required: - - domain - type: object - served: true - storage: true -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - creationTimestamp: null - name: ingressdnsrecords.multiclusterdns.kubefed.io -spec: - group: multiclusterdns.kubefed.io - names: - kind: IngressDNSRecord - listKind: IngressDNSRecordList - plural: ingressdnsrecords - singular: ingressdnsrecord - scope: Namespaced - versions: - - name: v1alpha1 - schema: - openAPIV3Schema: - 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: IngressDNSRecordSpec defines the desired state of IngressDNSRecord - properties: - hosts: - description: Host from the IngressRule in Cluster Ingress Spec - items: - type: string - type: array - recordTTL: - description: RecordTTL is the TTL in seconds for DNS records created - for the Ingress, if omitted a default would be used - format: int64 - type: integer - type: object - status: - description: IngressDNSRecordStatus defines the observed state of IngressDNSRecord - properties: - dns: - description: Array of Ingress Controller LoadBalancers - items: - description: ClusterIngressDNS defines the observed status of Ingress - within a cluster. - properties: - cluster: - description: Cluster name - type: string - loadBalancer: - description: LoadBalancer for the corresponding ingress controller - properties: - ingress: - description: Ingress is a list containing ingress points - for the load-balancer. Traffic intended for the service - should be sent to these ingress points. - items: - description: 'LoadBalancerIngress represents the status - of a load-balancer ingress point: traffic intended for - the service should be sent to an ingress point.' - properties: - hostname: - description: Hostname is set for load-balancer ingress - points that are DNS based (typically AWS load-balancers) - type: string - ip: - description: IP is set for load-balancer ingress points - that are IP based (typically GCE or OpenStack load-balancers) - type: string - ports: - description: Ports is a list of records of service - ports If used, every port defined in the service - should have an entry in it - items: - properties: - error: - description: 'Error is to record the problem - with the service port The format of the error - shall comply with the following rules: - built-in - error values shall be specified in this file - and those shall use CamelCase names - cloud - provider specific error values must have names - that comply with the format foo.example.com/CamelCase. - --- The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)' - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - port: - description: Port is the port number of the - service port of which status is recorded here - format: int32 - type: integer - protocol: - description: 'Protocol is the protocol of the - service port of which status is recorded here - The supported values are: "TCP", "UDP", "SCTP"' - type: string - required: - - port - - protocol - type: object - type: array - x-kubernetes-list-type: atomic - type: object - type: array - type: object - type: object - type: array - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - creationTimestamp: null - name: servicednsrecords.multiclusterdns.kubefed.io -spec: - group: multiclusterdns.kubefed.io - names: - kind: ServiceDNSRecord - listKind: ServiceDNSRecordList - plural: servicednsrecords - singular: servicednsrecord - scope: Namespaced - versions: - - name: v1alpha1 - schema: - openAPIV3Schema: - description: "ServiceDNSRecord defines a scheme of DNS name and subdomains - that should be programmed with endpoint information about a Service deployed - in multiple Kubernetes clusters. ServiceDNSRecord is name-associated with - the Services it programs endpoint information for, meaning that a ServiceDNSRecord - expresses the intent to program DNS with information about endpoints for - the Kubernetes Service resources with the same name and namespace in different - clusters. \n For the example, given the following values: \n metadata.name: - test-service metadata.namespace: test-namespace spec.federationName: test-federation - \n the following set of DNS names will be programmed: \n Global Level: test-service.test-namespace.test-federation.svc. - Region Level: test-service.test-namespace.test-federation.svc.(status.DNS[*].region). - Zone Level : test-service.test-namespace.test-federation.svc.(status.DNS[*].zone).(status.DNS[*].region). - \n Optionally, when DNSPrefix is specified, another DNS name will be programmed - which would be a CNAME record pointing to DNS name at global level as below: - . --> test-service.test-namespace.test-federation.svc." - 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: ServiceDNSRecordSpec defines the desired state of ServiceDNSRecord. - properties: - allowServiceWithoutEndpoints: - description: AllowServiceWithoutEndpoints allows DNS records to be - written for Service shards without endpoints - type: boolean - dnsPrefix: - description: DNSPrefix when specified, an additional DNS record would - be created with . - type: string - domainRef: - description: DomainRef is the name of the domain object to which the - corresponding federated service belongs - type: string - externalName: - description: ExternalName when specified, replaces the service name - portion of a resource record with the value of ExternalName. - type: string - recordTTL: - description: RecordTTL is the TTL in seconds for DNS records created - for this Service, if omitted a default would be used - format: int64 - type: integer - required: - - domainRef - type: object - status: - description: ServiceDNSRecordStatus defines the observed state of ServiceDNSRecord. - properties: - dns: - items: - description: ClusterDNS defines the observed status of LoadBalancer - within a cluster. - properties: - cluster: - description: Cluster name - type: string - loadBalancer: - description: LoadBalancer for the corresponding service - properties: - ingress: - description: Ingress is a list containing ingress points - for the load-balancer. Traffic intended for the service - should be sent to these ingress points. - items: - description: 'LoadBalancerIngress represents the status - of a load-balancer ingress point: traffic intended for - the service should be sent to an ingress point.' - properties: - hostname: - description: Hostname is set for load-balancer ingress - points that are DNS based (typically AWS load-balancers) - type: string - ip: - description: IP is set for load-balancer ingress points - that are IP based (typically GCE or OpenStack load-balancers) - type: string - ports: - description: Ports is a list of records of service - ports If used, every port defined in the service - should have an entry in it - items: - properties: - error: - description: 'Error is to record the problem - with the service port The format of the error - shall comply with the following rules: - built-in - error values shall be specified in this file - and those shall use CamelCase names - cloud - provider specific error values must have names - that comply with the format foo.example.com/CamelCase. - --- The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)' - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - port: - description: Port is the port number of the - service port of which status is recorded here - format: int32 - type: integer - protocol: - description: 'Protocol is the protocol of the - service port of which status is recorded here - The supported values are: "TCP", "UDP", "SCTP"' - type: string - required: - - port - - protocol - type: object - type: array - x-kubernetes-list-type: atomic - type: object - type: array - type: object - region: - description: Region to which the cluster belongs - type: string - zones: - description: Zones to which the cluster belongs - items: - type: string - type: array - type: object - type: array - domain: - description: Domain is the DNS domain of the KubeFed control plane - as in Domain API - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/test/common/util.go b/test/common/util.go index 63da46360c..4da3a3e27f 100644 --- a/test/common/util.go +++ b/test/common/util.go @@ -21,8 +21,6 @@ import ( "reflect" "time" - apiv1 "k8s.io/api/core/v1" - extv1b1 "k8s.io/api/extensions/v1beta1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" pkgruntime "k8s.io/apimachinery/pkg/runtime"