Skip to content

Commit 943a1be

Browse files
authored
feat: adding invite resource to core APIExport (#71)
1 parent 8aee01b commit 943a1be

File tree

2 files changed

+111
-0
lines changed

2 files changed

+111
-0
lines changed

manifests/kcp/01-platform-mesh-system/apiexport-core.platform-mesh.io.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ spec:
1111
- v250725-732d200.providermetadatas.ui.platform-mesh.io
1212
- v250718-a64f278.authorizationmodels.core.platform-mesh.io
1313
- v250718-a64f278.stores.core.platform-mesh.io
14+
- v251007-1d3512f.invites.core.platform-mesh.io
1415
permissionClaims:
1516
- all: true
1617
group: tenancy.kcp.io
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
apiVersion: apis.kcp.io/v1alpha1
2+
kind: APIResourceSchema
3+
metadata:
4+
creationTimestamp: null
5+
name: v251007-1d3512f.invites.core.platform-mesh.io
6+
spec:
7+
group: core.platform-mesh.io
8+
names:
9+
kind: Invite
10+
listKind: InviteList
11+
plural: invites
12+
singular: invite
13+
scope: Cluster
14+
versions:
15+
- name: v1alpha1
16+
schema:
17+
description: Invite is the Schema for the invites API
18+
properties:
19+
apiVersion:
20+
description: |-
21+
APIVersion defines the versioned schema of this representation of an object.
22+
Servers should convert recognized schemas to the latest internal value, and
23+
may reject unrecognized values.
24+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
25+
type: string
26+
kind:
27+
description: |-
28+
Kind is a string value representing the REST resource this object represents.
29+
Servers may infer this from the endpoint the client submits requests to.
30+
Cannot be updated.
31+
In CamelCase.
32+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
33+
type: string
34+
metadata:
35+
type: object
36+
spec:
37+
description: spec defines the desired state of Invite
38+
properties:
39+
email:
40+
type: string
41+
required:
42+
- email
43+
type: object
44+
status:
45+
description: status defines the observed state of Invite
46+
properties:
47+
conditions:
48+
items:
49+
description: Condition contains details for one aspect of the current
50+
state of this API Resource.
51+
properties:
52+
lastTransitionTime:
53+
description: |-
54+
lastTransitionTime is the last time the condition transitioned from one status to another.
55+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
56+
format: date-time
57+
type: string
58+
message:
59+
description: |-
60+
message is a human readable message indicating details about the transition.
61+
This may be an empty string.
62+
maxLength: 32768
63+
type: string
64+
observedGeneration:
65+
description: |-
66+
observedGeneration represents the .metadata.generation that the condition was set based upon.
67+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
68+
with respect to the current state of the instance.
69+
format: int64
70+
minimum: 0
71+
type: integer
72+
reason:
73+
description: |-
74+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
75+
Producers of specific condition types may define expected values and meanings for this field,
76+
and whether the values are considered a guaranteed API.
77+
The value should be a CamelCase string.
78+
This field may not be empty.
79+
maxLength: 1024
80+
minLength: 1
81+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
82+
type: string
83+
status:
84+
description: status of the condition, one of True, False, Unknown.
85+
enum:
86+
- "True"
87+
- "False"
88+
- Unknown
89+
type: string
90+
type:
91+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
92+
maxLength: 316
93+
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])$
94+
type: string
95+
required:
96+
- lastTransitionTime
97+
- message
98+
- reason
99+
- status
100+
- type
101+
type: object
102+
type: array
103+
type: object
104+
required:
105+
- spec
106+
type: object
107+
served: true
108+
storage: true
109+
subresources:
110+
status: {}

0 commit comments

Comments
 (0)