Skupper CRD: accessgrants-skupper-io
Source: human/skupper/config/crd/bases/skupper_access_grant_crd.yaml
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: accessgrants.skupper.io
spec:
group: skupper.io
versions:
- name: v2alpha1
served: true
storage: true
schema:
openAPIV3Schema:
description: |-
Permission to redeem access tokens for links to the local site.
A remote site can use a token containing the grant URL and secret
code to obtain a certificate signed by the grant's certificate authority (CA),
within a certain expiration window and for a limited number of redemptions.
The code, url, and ca properties of the resource status are used to generate access tokens from the grant.
type: object
properties:
spec:
type: object
properties:
redemptionsAllowed:
description: |-
The maximum number of times an access token for this grant can be redeemed.
The default value is `1`.
type: integer
expirationWindow:
description: |-
The period of time in which an access token for this grant can be redeemed.
The default value is `15m`.
type: string
format: duration
code:
description: |-
Advanced. The secret code to use to authenticate access tokens submitted for redemption.
If not set, a value is generated and placed in the code status property.
type: string
issuer:
description: |-
Advanced. The name of a Kubernetes secret used to generate a certificate when redeeming a token for this grant.
If not set, `defaultIssuer` on the Site resource is used.
type: string
settings:
description: |-
Advanced. A map containing additional settings. Each map
entry has a string name and a string value.
**Note:** In general, we recommend not changing `settings`
from their default values.
type: object
additionalProperties:
type: string
status:
type: object
properties:
url:
description: |-
The URL of the token-redemption service for this grant.
type: string
code:
description: |-
The secret code used to authenticate access tokens submitted for redemption.
type: string
ca:
description: |-
The trusted server certificate of the token-redemption service for this grant.
type: string
redemptions:
description: |-
The number of times a token for this grant has been redeemed.
type: integer
expirationTime:
description: |-
The point in time when the grant expires.
type: string
format: date-time
status:
description: |-
The current state of the resource.
- `Pending`: The resource is being processed.
- `Error`: There was an error processing the resource. See `message` for more information.
- `Ready`: The resource is ready to use.
type: string
message:
description: |-
A human-readable status message. Error messages are reported here.
type: string
conditions:
description: |-
A set of named conditions describing the current state of the resource.
- `Processed`: The controller has accepted the grant.
- `Resolved`: The grant service is available to process tokens for this grant.
- `Ready`: The grant is ready to use. All other conditions are true.
type: array
items:
type: object
properties:
lastTransitionTime:
format: date-time
type: string
message:
maxLength: 32768
type: string
observedGeneration:
format: int64
minimum: 0
type: integer
reason:
maxLength: 1024
minLength: 1
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
type: string
status:
enum:
- "True"
- "False"
- Unknown
type: string
type:
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
required:
- lastTransitionTime
- message
- reason
- status
- type
subresources:
status: {}
additionalPrinterColumns:
- name: Redemptions Allowed
type: integer
description: The number of claims the grant is valid for
jsonPath: .spec.redemptionsAllowed
- name: Redemptions Made
type: integer
description: The number of times an access token originating from this grant has been redeemed
jsonPath: .status.redemptions
- name: Expiration
type: string
description: When the grant will expire
jsonPath: .status.expirationTime
- name: Status
type: string
description: The status of the grant
jsonPath: .status.status
- name: Message
type: string
description: Any human readable message relevant to the grant
jsonPath: .status.message
scope: Namespaced
names:
plural: accessgrants
singular: accessgrant
kind: AccessGrant
shortNames:
- grant
- gr