Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed May 14, 2024
1 parent ed2b71c commit cf3b95f
Show file tree
Hide file tree
Showing 8 changed files with 316 additions and 321 deletions.
21 changes: 17 additions & 4 deletions config/commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ groups:
Site "<name>" is ready
arguments:
- name: name
variable: string
description: |
The name of the site resource.
A name of your choice for the Skupper site. This name is
displayed in the console and CLI output.
- property: enableLinkAccess
- property: linkAccessType
- property: linkAccessHost
Expand All @@ -64,6 +66,7 @@ groups:
Site "<name>" is updated
arguments:
- name: name
variable: string
description: |
The name of the site resource.
- property: enableLinkAccess
Expand All @@ -83,6 +86,7 @@ groups:
Site "<name>" is deleted
arguments:
- name: name
variable: string
description: |
The name of the site resource.
errors:
Expand Down Expand Up @@ -117,6 +121,7 @@ groups:
The token expires after 1 use or after 15 minutes
arguments:
- name: file
variable: string
description: |
The name of the token file.
- property: validFor
Expand All @@ -133,6 +138,8 @@ groups:
title: skupper link create
description: |
Create a link.
@resource_description@
usage: skupper link create <file> [options]
output: |
Waiting for status...
Expand Down Expand Up @@ -163,6 +170,8 @@ groups:
title: skupper connector create
description: |
Create a connector.
@resource_description@
usage: skupper connector create <name> [options]
examples: |
# Create a connector for a database
Expand All @@ -172,10 +181,11 @@ groups:
Connector "<name>" is ready
arguments:
- name: name
variable: string
description: |
The name of the connector resource.
- property: routingKey
default: _value of name_
default: _Value of name_
- name: --workload
variable: string
- property: port
Expand All @@ -193,6 +203,7 @@ groups:
Connector "<name>" is deleted
arguments:
- name: name
variable: string
description: |
The name of the connector resource.
- title: skupper connector status
Expand Down Expand Up @@ -221,10 +232,11 @@ groups:
Listener "<name>" is ready
arguments:
- name: name
variable: string
description: |
The name of the listener resource.
- property: routingKey
default: _value of name_
default: _Value of name_
- property: host
- property: port
- property: tlsCredentials
Expand All @@ -238,6 +250,7 @@ groups:
Listener "<name>" is deleted
arguments:
- name: name
variable: string
description: |
The name of the listener resource.
- title: skupper listener status
Expand All @@ -264,7 +277,7 @@ groups:
- title: skupper debug dump
description: |
Generate a debug dump file.
usage: skupper debug dump [FILE]
usage: skupper debug dump [file]
output: |
Debug dump file generated at <file>
- title: Other operations
Expand Down
23 changes: 6 additions & 17 deletions config/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ resources:
There can be only one site definition per namespace.
[site]: concepts.md#site
[network]: concepts.md#network
[site]: concepts.html#site
[network]: concepts.html#network
examples:
- description: A minimal site definition
yaml: |
Expand All @@ -48,10 +48,6 @@ resources:
name: east
namespace: hello-world-east
properties:
name:
description: |
A name of your choice for the Skupper site. This name is
displayed in the console and CLI output.
enableLinkAccess:
type: boolean
description: |
Expand All @@ -60,28 +56,21 @@ resources:
type: string
description: |
Select the means of opening external access.
The default is `route` on OpenShift and `loadbalancer`
otherwise.
default: |
`route` if the environment is OpenShift, otherwise
`loadbalancer`
choices: [route, loadbalancer, nodeport, ingress]
linkAccessHost:
type: string
description: |
The host or IP used to expose link access.
The host or IP address at which to expose link access.
Link:
group: site-linking
description: |
A [link][link] is a site-to-site communication channel. Links
serve as a transport for application connections and requests.
XXX
The Link would has the details from its associated LinkAccess.
[link]: concepts.md#link
[link]: concepts.html#link
examples:
- description: A typical link definition
yaml: |
Expand Down Expand Up @@ -204,7 +193,7 @@ resources:
Each namespace can contain multiple connector definitions.
[connector]: concepts.md#connector
[connector]: concepts.html#connector
examples:
- description: |
A connector in site East for the Hello World backend service
Expand Down Expand Up @@ -255,7 +244,7 @@ resources:
Each namespace can contain multiple listener definitions.
[listener]: concepts.md#listener
[listener]: concepts.html#listener
examples:
- description: |
A listener in site West for the Hello World backend service
Expand Down
61 changes: 38 additions & 23 deletions input/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ running. Sites are linked to form application

There can be only one site definition per namespace.

[site]: concepts.md#site
[network]: concepts.md#network
[site]: concepts.html#site
[network]: concepts.html#network



Expand All @@ -95,13 +95,16 @@ skupper site create west --enable-link-access

#### Arguments

- **name**
- **name** _string_

The name of the site resource.
A name of your choice for the Skupper site. This name is
displayed in the console and CLI output.


- **--enable-link-access** _boolean_

_Default:_ false

Enable external access for links from remote sites.


Expand All @@ -113,13 +116,10 @@ skupper site create west --enable-link-access

Select the means of opening external access.

The default is `route` on OpenShift and `loadbalancer`
otherwise.


- **--link-access-host** _string_

The host or IP used to expose link access.
The host or IP address at which to expose link access.


- **--service-account** _string_
Expand Down Expand Up @@ -156,13 +156,15 @@ skupper site update west --enable-link-access --link-access-type loadbalancer

#### Arguments

- **name**
- **name** _string_

The name of the site resource.


- **--enable-link-access** _boolean_

_Default:_ false

Enable external access for links from remote sites.


Expand All @@ -174,13 +176,10 @@ skupper site update west --enable-link-access --link-access-type loadbalancer

Select the means of opening external access.

The default is `route` on OpenShift and `loadbalancer`
otherwise.


- **--link-access-host** _string_

The host or IP used to expose link access.
The host or IP address at which to expose link access.


- **--service-account** _string_
Expand All @@ -207,7 +206,7 @@ Site "<name>" is deleted

#### Arguments

- **name**
- **name** _string_

The name of the site resource.

Expand Down Expand Up @@ -262,7 +261,7 @@ The token expires after 1 use or after 15 minutes

#### Arguments

- **file**
- **file** _string_

The name of the token file.

Expand All @@ -284,6 +283,12 @@ Display help for link commands and exit.

Create a link.

A [link][link] is a site-to-site communication channel. Links
serve as a transport for application connections and requests.

[link]: concepts.html#link



#### Usage

Expand Down Expand Up @@ -326,6 +331,14 @@ Display help for connector commands and exit.

Create a connector.

A [connector][connector] binds local servers to listeners in
remote sites.

Each namespace can contain multiple connector definitions.

[connector]: concepts.html#connector



#### Usage

Expand All @@ -344,14 +357,14 @@ skupper connector create database --workload deployment/postgresql --port 5432

#### Arguments

- **name**
- **name** _string_

The name of the connector resource.


- **--routing-key** _string_

_Default:_ _value of name_
_Default:_ _Value of name_

The identifier used to route traffic from listeners to
connectors. To connect to a service at a remote site, the
Expand Down Expand Up @@ -396,6 +409,8 @@ skupper connector create database --workload deployment/postgresql --port 5432

- **--include-not-ready** _boolean_

_Default:_ false

### skupper connector delete

Delete a connector.
Expand All @@ -411,7 +426,7 @@ Connector "<name>" is deleted

#### Arguments

- **name**
- **name** _string_

The name of the connector resource.

Expand Down Expand Up @@ -444,7 +459,7 @@ servers in remote sites.

Each namespace can contain multiple listener definitions.

[listener]: concepts.md#listener
[listener]: concepts.html#listener



Expand All @@ -465,14 +480,14 @@ skupper listener create database --host database --port 5432

#### Arguments

- **name**
- **name** _string_

The name of the listener resource.


- **--routing-key** _string_

_Default:_ _value of name_
_Default:_ _Value of name_

The identifier used to route traffic from listeners to
connectors. To connect to a service at a remote site, the
Expand Down Expand Up @@ -522,7 +537,7 @@ Listener "<name>" is deleted

#### Arguments

- **name**
- **name** _string_

The name of the listener resource.

Expand Down Expand Up @@ -556,7 +571,7 @@ Generate a debug dump file.
#### Usage

~~~ shell
$ skupper debug dump [FILE]
$ skupper debug dump [file]
Debug dump file generated at <file>
~~~

Expand Down
Loading

0 comments on commit cf3b95f

Please sign in to comment.