-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: huiwq1990 <huiwq1990@163.com>
- Loading branch information
Showing
12 changed files
with
1,328 additions
and
1,260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
170 changes: 170 additions & 0 deletions
170
...urt/crds/apiextensions.k8s.io_v1_customresourcedefinition_gateways.raven.openyurt.io.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.7.0 | ||
creationTimestamp: null | ||
name: gateways.raven.openyurt.io | ||
spec: | ||
group: raven.openyurt.io | ||
names: | ||
categories: | ||
- all | ||
kind: Gateway | ||
listKind: GatewayList | ||
plural: gateways | ||
shortNames: | ||
- gw | ||
singular: gateway | ||
scope: Cluster | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .status.activeEndpoint.nodeName | ||
name: ActiveEndpoint | ||
type: string | ||
name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: Gateway is the Schema for the gateways API | ||
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: GatewaySpec defines the desired state of Gateway | ||
properties: | ||
endpoints: | ||
description: TODO add a field to configure using vxlan or host-gw | ||
for inner gateway communication? Endpoints is a list of available | ||
Endpoint. | ||
items: | ||
description: Endpoint stores all essential data for establishing | ||
the VPN tunnel. TODO add priority field? | ||
properties: | ||
config: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
nodeName: | ||
description: NodeName is the Node hosting this endpoint. | ||
type: string | ||
publicIP: | ||
type: string | ||
underNAT: | ||
type: boolean | ||
required: | ||
- nodeName | ||
type: object | ||
type: array | ||
exposeType: | ||
description: ExposeType determines how the Gateway is exposed. | ||
type: string | ||
nodeSelector: | ||
description: NodeSelector is a label query over nodes that managed | ||
by the gateway. The nodes in the same gateway should share same | ||
layer 3 network. | ||
properties: | ||
matchExpressions: | ||
description: matchExpressions is a list of label selector requirements. | ||
The requirements are ANDed. | ||
items: | ||
description: A label selector requirement is a selector that | ||
contains values, a key, and an operator that relates the key | ||
and values. | ||
properties: | ||
key: | ||
description: key is the label key that the selector applies | ||
to. | ||
type: string | ||
operator: | ||
description: operator represents a key's relationship to | ||
a set of values. Valid operators are In, NotIn, Exists | ||
and DoesNotExist. | ||
type: string | ||
values: | ||
description: values is an array of string values. If the | ||
operator is In or NotIn, the values array must be non-empty. | ||
If the operator is Exists or DoesNotExist, the values | ||
array must be empty. This array is replaced during a strategic | ||
merge patch. | ||
items: | ||
type: string | ||
type: array | ||
required: | ||
- key | ||
- operator | ||
type: object | ||
type: array | ||
matchLabels: | ||
additionalProperties: | ||
type: string | ||
description: matchLabels is a map of {key,value} pairs. A single | ||
{key,value} in the matchLabels map is equivalent to an element | ||
of matchExpressions, whose key field is "key", the operator | ||
is "In", and the values array contains only "value". The requirements | ||
are ANDed. | ||
type: object | ||
type: object | ||
required: | ||
- endpoints | ||
type: object | ||
status: | ||
description: GatewayStatus defines the observed state of Gateway | ||
properties: | ||
activeEndpoint: | ||
description: ActiveEndpoint is the reference of the active endpoint. | ||
properties: | ||
config: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
nodeName: | ||
description: NodeName is the Node hosting this endpoint. | ||
type: string | ||
publicIP: | ||
type: string | ||
underNAT: | ||
type: boolean | ||
required: | ||
- nodeName | ||
type: object | ||
nodes: | ||
description: Nodes contains all information of nodes managed by Gateway. | ||
items: | ||
description: NodeInfo stores information of node managed by Gateway. | ||
properties: | ||
nodeName: | ||
type: string | ||
privateIP: | ||
type: string | ||
subnets: | ||
items: | ||
type: string | ||
type: array | ||
required: | ||
- nodeName | ||
- privateIP | ||
- subnets | ||
type: object | ||
type: array | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
Oops, something went wrong.