Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed Nov 15, 2024
1 parent b8b0ce6 commit 00aad22
Show file tree
Hide file tree
Showing 46 changed files with 769 additions and 840 deletions.
150 changes: 80 additions & 70 deletions config/commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@ options:
required: true
description: |
The name of the resource to be created.
create/timeout:
name: timeout
type: string
placeholder: duration
default: 60s
description: |
Raise an error if the operation does not complete in the given
period of time.
links:
- title: Kubernetes object names
url: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/
- title: Duration format
url: https://pkg.go.dev/time#ParseDuration
create/wait:
name: wait
type: string
Expand All @@ -22,26 +30,20 @@ options:
description: Configured
- name: ready
description: Ready
create/timeout:
update/name:
name: name
type: string
required: true
description: |
The name of the resource to be updated.
update/timeout:
name: timeout
type: string
placeholder: duration
default: 60s
description: |
Raise an error if the operation does not complete in the given
period of time.
links:
- title: Duration format
url: https://pkg.go.dev/time#ParseDuration
update/name:
name: name
type: string
required: true
description: |
The name of the resource to be updated.
links:
- title: Kubernetes object names
url: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/
update/wait:
name: wait
type: string
Expand All @@ -56,29 +58,12 @@ options:
description: Configured
- name: ready
description: Ready
update/timeout:
name: timeout
type: string
placeholder: duration
default: 60s
description: |
Raise an error if the operation does not complete in the given
period of time.
delete/name:
name: name
type: string
required: true
description: |
The name of the resource to be deleted.
links:
- title: Kubernetes object names
url: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/
delete/wait:
name: wait
type: boolean
default: true
description: |
Wait for deletion to complete before exiting.
delete/timeout:
name: timeout
type: string
Expand All @@ -87,6 +72,12 @@ options:
description: |
Raise an error if the operation does not complete in the given
period of time.
delete/wait:
name: wait
type: boolean
default: true
description: |
Wait for deletion to complete before exiting.
status/name:
name: name
type: string
Expand All @@ -95,9 +86,14 @@ options:
description: |
An optional resource name. If set, the status command reports
status for the named resource only.
links:
- title: Kubernetes object names
url: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/
status/timeout:
name: timeout
type: string
placeholder: duration
default: 60s
description: |
Raise an error if the operation does not complete in the given
period of time.
status/output:
name: output
type: string
Expand All @@ -110,14 +106,6 @@ options:
description: Produce JSON output
- name: yaml
description: Produce YAML output
status/timeout:
name: timeout
type: string
placeholder: duration
default: 60s
description: |
Raise an error if the operation does not complete in the given
period of time.
generate/name:
name: name
type: string
Expand Down Expand Up @@ -191,9 +179,6 @@ options:
required: true
description: |
The name of the Connector resource.
links:
- title: Kubernetes object names
url: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/
connector/port:
name: port
property: port
Expand Down Expand Up @@ -228,13 +213,29 @@ options:
required: false
property: host
default: _Value of name_
connector/include_not_ready:
name: include-not-ready
group: advanced
property: includeNotReady
connector/tls_credentials:
name: tls-credentials
group: advanced
property: tlsCredentials
# XXX Not inheriting links!
connector/include_not_ready:
name: include-not-ready
property: includeNotReady
connector/wait:
name: wait
type: string
placeholder: status
default: configured
description: |
Wait for the given status before exiting.
choices:
- name: pending
description: Pending
- name: configured
description: Configured
- name: ready
description: Ready
listener/port:
name: port
property: port
Expand All @@ -253,18 +254,22 @@ options:
default: _Value of name_
listener/tls_credentials:
name: tls-credentials
group: advanced
property: tlsCredentials
context/namespace:
name: namespace
group: global
listener/wait:
name: wait
type: string
placeholder: name
short_option: n
placeholder: status
default: configured
description: |
Set the namespace.
links:
- title: Kubernetes namespaces
url: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
Wait for the given status before exiting.
choices:
- name: pending
description: Pending
- name: configured
description: Configured
- name: ready
description: Ready
context/context:
name: context
group: global
Expand All @@ -287,6 +292,17 @@ options:
links:
- title: Kubernetes kubeconfigs
url: https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/
context/namespace:
name: namespace
group: global
type: string
placeholder: name
short_option: n
description: |
Set the namespace.
links:
- title: Kubernetes namespaces
url: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
global/platform:
name: platform
group: global
Expand Down Expand Up @@ -439,7 +455,6 @@ commands:
$ skupper site generate east > east.yaml
include_options: [generate/*, site/*, global/*]
- name: token
resource: Claim
related_concepts: ["access grant", "access token"]
related_resources: [AccessGrant, AccessToken]
description: |
Expand Down Expand Up @@ -502,6 +517,7 @@ commands:
- name: redemptions-allowed
property: redemptionsAllowed
- name: grant
group: advanced
type: string
placeholder: name
description: |
Expand All @@ -515,6 +531,7 @@ commands:
enable it.
# token.redeem
- name: redeem
resource: AccessToken
related_concepts: ["access grant", "access token"]
related_resources: [AccessGrant, AccessToken]
related_commands: [token/issue]
Expand All @@ -541,6 +558,8 @@ commands:
description: |
Raise an error if the operation does not complete in the given
period of time.
- name: link-cost
property: linkCost
- name: link
related_commands: [token]
description: |
Expand Down Expand Up @@ -672,13 +691,6 @@ commands:
- name: name
- name: port
required: true
- name: routing-key
- name: selector
- name: workload
- name: host
- name: wait
default: configured
- name: timeout
# connector.update
- name: update
wait: Configured
Expand Down Expand Up @@ -774,9 +786,6 @@ commands:
options:
- name: name
- name: port
- name: wait
default: configured
- name: timeout
# listener.update
- name: update
wait: Configured
Expand Down Expand Up @@ -926,7 +935,7 @@ commands:
images:
- name: quay.io/skupper/router:3.0.0
digest: sha256:dc5e27385a1e110dd2db1903ba7ec3e0d50b57f742aa02d7dd0a7b1b68c34394
- name: quay.io/skupper/kube-adaptor:2.0.0
- name: quay.io/skupper/router-agent:2.0.0
digest: sha256:4dc24bb3d605ed3fcec2f8ef7d45ca883d9d87b278bfedd5fcca74281d617a5e
network-observer:
version: 1.0.0
Expand All @@ -936,6 +945,7 @@ commands:
options:
- name: output
type: string
placeholder: format
short_option: o
description: |
Produce verbose structured output.
Expand Down
1 change: 1 addition & 0 deletions config/concepts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ concepts:
overview: |
- XXX what do they look like on each platform?
- Each site corresponds to one namespace
- It's a subdivision of a platform.
- name: link
links:
- title: Network concept
Expand Down
4 changes: 1 addition & 3 deletions config/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ properties:
required: true
description: |
The name of the resource.
links:
- title: Kubernetes object names
url: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/
metadata/namespace:
name: namespace
type: string
Expand Down Expand Up @@ -408,6 +405,7 @@ resources:
The secret code used to authenticate the token when
submitted for redemption.
- name: linkCost
type: integer # XXX This should come from the CRD
default: 1
description: |
The link cost to use when creating the link.
Expand Down
Loading

0 comments on commit 00aad22

Please sign in to comment.