Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

chore: update CRDs to v1.2.0 #99

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions traefik-hub/crds/hub.traefik.io_apiaccesses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,14 @@ spec:
description: Name of the API.
maxLength: 253
type: string
namespace:
description: Namespace of the API.
maxLength: 63
type: string
required:
- name
type: object
maxItems: 100
type: array
x-kubernetes-validations:
- message: duplicated apis
rule: 'self.all(x, self.exists_one(y, x.name == y.name && (has(x.__namespace__)
&& x.__namespace__ != '''' ? x.__namespace__ : ''default'') ==
(has(y.__namespace__) && y.__namespace__ != '''' ? y.__namespace__
: ''default'')))'
rule: self.all(x, self.exists_one(y, x.name == y.name))
everyone:
description: Everyone indicates that all users will have access to
the selected APIs.
Expand Down
70 changes: 9 additions & 61 deletions traefik-hub/crds/hub.traefik.io_apiportals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,80 +42,33 @@ spec:
description:
description: Description of the APIPortal.
type: string
domains:
description: Domains are the domains under which the portal will be
exposed.
title:
description: Title is the public facing name of the APIPortal.
type: string
trustedDomains:
description: TrustedDomains are the domains that are trusted by the
OAuth 2.0 authorization server.
items:
description: Domain is the domain name under which an APIPortal
will be exposed.
maxLength: 253
type: string
x-kubernetes-validations:
- message: domain must be a valid domain name
rule: self.matches(r"""([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]""")
maxItems: 20
minItems: 1
type: array
x-kubernetes-validations:
- message: duplicate domains
rule: self.all(x, self.exists_one(y, y == x))
title:
description: Title is the public facing name of the APIPortal.
type: string
ui:
description: UI holds the UI customization options.
properties:
logoUrl:
description: LogoURL is the public URL of the logo.
type: string
service:
description: Service defines a Kubernetes Service exposing a custom
UI.
properties:
name:
description: Name of the Kubernetes Service resource.
type: string
namespace:
description: Namespace of the Kubernetes Service resource.
type: string
port:
description: Port of the referenced service. A port name or
port number is required.
properties:
name:
description: Name is the name of the port on the Service.
This is a mutually exclusive setting with "Number".
type: string
number:
description: Number is the numerical port number (e.g.
80) on the Service. This is a mutually exclusive setting
with "Name".
format: int32
type: integer
type: object
x-kubernetes-validations:
- message: name or number must be defined
rule: has(self.name) || has(self.number)
required:
- name
- port
type: object
type: object
required:
- trustedDomains
type: object
status:
description: The current status of this APIPortal.
properties:
domains:
description: Domains are the domains for accessing the exposed APIPortal.
items:
type: string
type: array
hash:
description: Hash is a hash representing the APIPortal.
type: string
hubDomain:
description: HubDomain is the hub generated domain of the APIPortal
WebUI.
type: string
oidc:
description: OIDC is the OIDC configuration for accessing the exposed
APIPortal WebUI.
Expand All @@ -136,13 +89,8 @@ spec:
syncedAt:
format: date-time
type: string
urls:
description: URLs are the URLs for accessing the APIPortal WebUI.
type: string
version:
type: string
required:
- urls
type: object
type: object
served: true
Expand Down
9 changes: 1 addition & 8 deletions traefik-hub/crds/hub.traefik.io_apiratelimits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,14 @@ spec:
description: Name of the API.
maxLength: 253
type: string
namespace:
description: Namespace of the API.
maxLength: 63
type: string
required:
- name
type: object
maxItems: 100
type: array
x-kubernetes-validations:
- message: duplicated apis
rule: 'self.all(x, self.exists_one(y, x.name == y.name && (has(x.__namespace__)
&& x.__namespace__ != '''' ? x.__namespace__ : ''default'') ==
(has(y.__namespace__) && y.__namespace__ != '''' ? y.__namespace__
: ''default'')))'
rule: self.all(x, self.exists_one(y, x.name == y.name))
everyone:
description: Everyone indicates that all users will, by default, be
rate limited with this configuration. If an APIRateLimit explicitly
Expand Down
2 changes: 2 additions & 0 deletions traefik-hub/crds/hub.traefik.io_apiversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ spec:
title:
description: Title is the public facing name of the APIVersion.
type: string
required:
- release
type: object
status:
description: The current status of this APIVersion.
Expand Down