Update all CRDs to v1 CRDs

... and drop the obsolete Lighthouse CRDs.

Fixes: #186
Signed-off-by: Stephen Kitt <skitt@redhat.com>
This commit is contained in:
Stephen Kitt
2021-12-08 15:37:07 -05:00
committed by Daniel Farrell
parent 42a2af008a
commit 2cfbd5c394
2 changed files with 1187 additions and 824 deletions
+297 -61
View File
@@ -1,97 +1,333 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clusters.submariner.io
spec:
group: submariner.io
version: v1
names:
kind: Cluster
listKind: ClusterList
plural: clusters
singular: cluster
scope: Namespaced
versions:
- name: v1
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:
properties:
cluster_cidr:
items:
type: string
type: array
cluster_id:
type: string
color_codes:
items:
type: string
type: array
global_cidr:
items:
type: string
type: array
service_cidr:
items:
type: string
type: array
required:
- cluster_cidr
- cluster_id
- color_codes
- global_cidr
- service_cidr
type: object
required:
- spec
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: endpoints.submariner.io
spec:
group: submariner.io
version: v1
names:
kind: Endpoint
listKind: EndpointList
plural: endpoints
singular: endpoint
scope: Namespaced
versions:
- name: v1
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:
properties:
backend:
type: string
backend_config:
additionalProperties:
type: string
type: object
cable_name:
type: string
cluster_id:
type: string
healthCheckIP:
type: string
hostname:
type: string
nat_enabled:
type: boolean
private_ip:
type: string
public_ip:
type: string
subnets:
items:
type: string
type: array
required:
- backend
- cable_name
- cluster_id
- hostname
- nat_enabled
- private_ip
- public_ip
- subnets
type: object
required:
- spec
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: gateways.submariner.io
spec:
group: submariner.io
version: v1
names:
kind: Gateway
listKind: GatewayList
plural: gateways
singular: gateway
scope: Namespaced
additionalPrinterColumns:
- name: ha-status
versions:
- additionalPrinterColumns:
- description: High availability status of the Gateway
jsonPath: .status.haStatus
name: HA Status
type: string
description: High Availability Status of the Gateway
JSONPath: .status.haStatus
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: multiclusterservices.lighthouse.submariner.io
spec:
group: lighthouse.submariner.io
version: v1
names:
kind: MultiClusterService
plural: multiclusterservices
singular: multiclusterservice
scope: Namespaced
validation:
name: v1
schema:
openAPIV3Schema:
properties:
spec:
properties:
clusterServiceInfo:
properties:
clusterID:
type: "string"
clusterDomain:
type: "string"
serviceIP:
type: "string"
port:
type: "integer"
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
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:
name: serviceexports.lighthouse.submariner.io
spec:
group: lighthouse.submariner.io
version: v2alpha1
names:
kind: ServiceExport
plural: serviceexports
singular: serviceexport
scope: Namespaced
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: serviceimports.lighthouse.submariner.io
spec:
group: lighthouse.submariner.io
version: v2alpha1
names:
kind: ServiceImport
plural: serviceimports
singular: serviceimport
scope: Namespaced
type: object
status:
properties:
connections:
items:
properties:
endpoint:
properties:
backend:
type: string
backend_config:
additionalProperties:
type: string
type: object
cable_name:
type: string
cluster_id:
type: string
healthCheckIP:
type: string
hostname:
type: string
nat_enabled:
type: boolean
private_ip:
type: string
public_ip:
type: string
subnets:
items:
type: string
type: array
required:
- backend
- cable_name
- cluster_id
- hostname
- nat_enabled
- private_ip
- public_ip
- subnets
type: object
latency:
description: LatencySpec describes the round trip time information
in nanoseconds for a packet between the gateway pods of two
clusters.
properties:
averageRTT:
format: int64
type: integer
lastRTT:
description: TODO This shall be deleted once the operator
is using the latest. Using Optional to avoid validation
errors when this field is not used.
format: int64
type: integer
maxRTT:
format: int64
type: integer
minRTT:
format: int64
type: integer
stddevRTT:
format: int64
type: integer
type: object
latencyRTT:
description: LatencySpec describes the round trip time information
for a packet between the gateway pods of two clusters.
properties:
average:
type: string
last:
type: string
max:
type: string
min:
type: string
stdDev:
type: string
type: object
status:
type: string
statusMessage:
type: string
required:
- endpoint
- status
- statusMessage
type: object
type: array
haStatus:
type: string
localEndpoint:
properties:
backend:
type: string
backend_config:
additionalProperties:
type: string
type: object
cable_name:
type: string
cluster_id:
type: string
healthCheckIP:
type: string
hostname:
type: string
nat_enabled:
type: boolean
private_ip:
type: string
public_ip:
type: string
subnets:
items:
type: string
type: array
required:
- backend
- cable_name
- cluster_id
- hostname
- nat_enabled
- private_ip
- public_ip
- subnets
type: object
statusFailure:
type: string
version:
type: string
required:
- connections
- haStatus
- localEndpoint
- statusFailure
- version
type: object
required:
- status
type: object
served: true
storage: true
subresources: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
+185 -58
View File
@@ -1,10 +1,11 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: submariners.submariner.io
annotations:
controller-gen.kubebuilder.io/version: v0.3.0
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: submariners.submariner.io
spec:
group: submariner.io
names:
@@ -13,9 +14,9 @@ spec:
plural: submariners
singular: submariner
scope: Namespaced
subresources:
status: {}
validation:
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Submariner is the Schema for the submariners API
properties:
@@ -42,24 +43,51 @@ spec:
type: string
brokerK8sCA:
type: string
brokerK8sInsecure:
type: boolean
brokerK8sRemoteNamespace:
type: string
cableDriver:
type: string
ceIPSecDebug:
type: boolean
ceIPSecForceUDPEncaps:
type: boolean
ceIPSecIKEPort:
type: integer
ceIPSecNATTPort:
type: integer
ceIPSecPSK:
type: string
ceIPSecPreferredServer:
type: boolean
clusterCIDR:
type: string
clusterID:
type: string
colorCodes:
type: string
connectionHealthCheck:
properties:
enabled:
type: boolean
intervalSeconds:
description: The interval at which health check pings are sent.
format: int64
type: integer
maxPacketLossCount:
description: The maximum number of packets lost at which the health
checker will mark the connection as down.
format: int64
type: integer
type: object
coreDNSCustomConfig:
properties:
configMapName:
type: string
namespace:
type: string
type: object
customDomains:
items:
type: string
@@ -69,6 +97,12 @@ spec:
type: boolean
globalCIDR:
type: string
imageOverrides:
additionalProperties:
type: string
type: object
loadBalancerEnabled:
type: boolean
namespace:
type: string
natEnabled:
@@ -105,6 +139,17 @@ spec:
type: string
colorCodes:
type: string
deploymentInfo:
properties:
cloudProvider:
type: string
kubernetesType:
type: string
kubernetesTypeVersion:
type: string
kubernetesVersion:
type: string
type: object
gatewayDaemonSetStatus:
properties:
lastResourceVersion:
@@ -114,8 +159,8 @@ spec:
nonReadyContainerStates:
items:
description: ContainerState holds a possible state of container.
Only one of its members may be specified. If none of them is
specified, the default one is ContainerStateWaiting.
Only one of its members may be specified. If none of them
is specified, the default one is ContainerStateWaiting.
properties:
running:
description: Details about a running container
@@ -141,20 +186,21 @@ spec:
format: date-time
type: string
message:
description: Message regarding the last termination of
the container
description: Message regarding the last termination
of the container
type: string
reason:
description: (brief) reason from the last termination
of the container
type: string
signal:
description: Signal from the last termination of the container
description: Signal from the last termination of the
container
format: int32
type: integer
startedAt:
description: Time at which previous execution of the container
started
description: Time at which previous execution of the
container started
format: date-time
type: string
required:
@@ -164,18 +210,19 @@ spec:
description: Details about a waiting container
properties:
message:
description: Message regarding why the container is not
yet running.
description: Message regarding why the container is
not yet running.
type: string
reason:
description: (brief) reason the container is not yet running.
description: (brief) reason the container is not yet
running.
type: string
type: object
type: object
type: array
status:
description: DaemonSetStatus represents the current status of a
daemon set.
description: DaemonSetStatus represents the current status of
a daemon set.
properties:
collisionCount:
description: Count of hash collisions for the DaemonSet. The
@@ -185,11 +232,11 @@ spec:
format: int32
type: integer
conditions:
description: Represents the latest available observations of
a DaemonSet's current state.
description: Represents the latest available observations
of a DaemonSet's current state.
items:
description: DaemonSetCondition describes the state of a DaemonSet
at a certain point.
description: DaemonSetCondition describes the state of a
DaemonSet at a certain point.
properties:
lastTransitionTime:
description: Last time the condition transitioned from
@@ -287,6 +334,10 @@ spec:
cable_name:
type: string
cluster_id:
maxLength: 63
minLength: 1
type: string
healthCheckIP:
type: string
hostname:
type: string
@@ -310,10 +361,30 @@ spec:
- public_ip
- subnets
type: object
latencyRTT:
description: LatencySpec describes the round trip time
information for a packet between the gateway pods of
two clusters.
properties:
average:
type: string
last:
type: string
max:
type: string
min:
type: string
stdDev:
type: string
type: object
status:
type: string
statusMessage:
type: string
usingIP:
type: string
usingNAT:
type: boolean
required:
- endpoint
- status
@@ -333,6 +404,10 @@ spec:
cable_name:
type: string
cluster_id:
maxLength: 63
minLength: 1
type: string
healthCheckIP:
type: string
hostname:
type: string
@@ -379,8 +454,8 @@ spec:
nonReadyContainerStates:
items:
description: ContainerState holds a possible state of container.
Only one of its members may be specified. If none of them is
specified, the default one is ContainerStateWaiting.
Only one of its members may be specified. If none of them
is specified, the default one is ContainerStateWaiting.
properties:
running:
description: Details about a running container
@@ -406,20 +481,21 @@ spec:
format: date-time
type: string
message:
description: Message regarding the last termination of
the container
description: Message regarding the last termination
of the container
type: string
reason:
description: (brief) reason from the last termination
of the container
type: string
signal:
description: Signal from the last termination of the container
description: Signal from the last termination of the
container
format: int32
type: integer
startedAt:
description: Time at which previous execution of the container
started
description: Time at which previous execution of the
container started
format: date-time
type: string
required:
@@ -429,18 +505,19 @@ spec:
description: Details about a waiting container
properties:
message:
description: Message regarding why the container is not
yet running.
description: Message regarding why the container is
not yet running.
type: string
reason:
description: (brief) reason the container is not yet running.
description: (brief) reason the container is not yet
running.
type: string
type: object
type: object
type: array
status:
description: DaemonSetStatus represents the current status of a
daemon set.
description: DaemonSetStatus represents the current status of
a daemon set.
properties:
collisionCount:
description: Count of hash collisions for the DaemonSet. The
@@ -450,11 +527,11 @@ spec:
format: int32
type: integer
conditions:
description: Represents the latest available observations of
a DaemonSet's current state.
description: Represents the latest available observations
of a DaemonSet's current state.
items:
description: DaemonSetCondition describes the state of a DaemonSet
at a certain point.
description: DaemonSetCondition describes the state of a
DaemonSet at a certain point.
properties:
lastTransitionTime:
description: Last time the condition transitioned from
@@ -535,8 +612,36 @@ spec:
required:
- mismatchedContainerImages
type: object
loadBalancerStatus:
properties:
status:
description: LoadBalancerStatus represents the status of a load-balancer.
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
type: object
type: array
type: object
type: object
natEnabled:
type: boolean
networkPlugin:
type: string
routeAgentDaemonSetStatus:
properties:
lastResourceVersion:
@@ -546,8 +651,8 @@ spec:
nonReadyContainerStates:
items:
description: ContainerState holds a possible state of container.
Only one of its members may be specified. If none of them is
specified, the default one is ContainerStateWaiting.
Only one of its members may be specified. If none of them
is specified, the default one is ContainerStateWaiting.
properties:
running:
description: Details about a running container
@@ -573,20 +678,21 @@ spec:
format: date-time
type: string
message:
description: Message regarding the last termination of
the container
description: Message regarding the last termination
of the container
type: string
reason:
description: (brief) reason from the last termination
of the container
type: string
signal:
description: Signal from the last termination of the container
description: Signal from the last termination of the
container
format: int32
type: integer
startedAt:
description: Time at which previous execution of the container
started
description: Time at which previous execution of the
container started
format: date-time
type: string
required:
@@ -596,18 +702,19 @@ spec:
description: Details about a waiting container
properties:
message:
description: Message regarding why the container is not
yet running.
description: Message regarding why the container is
not yet running.
type: string
reason:
description: (brief) reason the container is not yet running.
description: (brief) reason the container is not yet
running.
type: string
type: object
type: object
type: array
status:
description: DaemonSetStatus represents the current status of a
daemon set.
description: DaemonSetStatus represents the current status of
a daemon set.
properties:
collisionCount:
description: Count of hash collisions for the DaemonSet. The
@@ -617,11 +724,11 @@ spec:
format: int32
type: integer
conditions:
description: Represents the latest available observations of
a DaemonSet's current state.
description: Represents the latest available observations
of a DaemonSet's current state.
items:
description: DaemonSetCondition describes the state of a DaemonSet
at a certain point.
description: DaemonSetCondition describes the state of a
DaemonSet at a certain point.
properties:
lastTransitionTime:
description: Last time the condition transitioned from
@@ -709,11 +816,10 @@ spec:
- natEnabled
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
@@ -725,7 +831,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.3.0
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: servicediscoveries.submariner.io
spec:
@@ -763,10 +869,19 @@ spec:
type: string
brokerK8sCA:
type: string
brokerK8sInsecure:
type: boolean
brokerK8sRemoteNamespace:
type: string
clusterID:
type: string
coreDNSCustomConfig:
properties:
configMapName:
type: string
namespace:
type: string
type: object
customDomains:
items:
type: string
@@ -797,6 +912,18 @@ spec:
type: object
status:
description: ServiceDiscoveryStatus defines the observed state of ServiceDiscovery
properties:
deploymentInfo:
properties:
cloudProvider:
type: string
kubernetesType:
type: string
kubernetesTypeVersion:
type: string
kubernetesVersion:
type: string
type: object
type: object
type: object
served: true