Skip to content

Commit d483c89

Browse files
author
Maksym Trofimenko
committed
adds new CRDs
1 parent 7a3366a commit d483c89

File tree

17 files changed

+479
-32
lines changed

17 files changed

+479
-32
lines changed

PROJECT

+16
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,20 @@ resources:
4444
kind: TinySignal
4545
path: github.com/tiny-systems/module/api/v1alpha1
4646
version: v1alpha1
47+
- api:
48+
crdVersion: v1
49+
namespaced: true
50+
domain: tinysystems.io
51+
group: operator
52+
kind: TinyFlow
53+
path: github.com/tiny-systems/module/api/v1alpha1
54+
version: v1alpha1
55+
- api:
56+
crdVersion: v1
57+
namespaced: true
58+
domain: tinysystems.io
59+
group: operator
60+
kind: TinyProject
61+
path: github.com/tiny-systems/module/api/v1alpha1
62+
version: v1alpha1
4763
version: "3"

api-docs.md

+124
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group
1010

1111
### Resource Types
12+
- [TinyFlow](#tinyflow)
13+
- [TinyFlowList](#tinyflowlist)
1214
- [TinyModule](#tinymodule)
1315
- [TinyModuleList](#tinymodulelist)
1416
- [TinyNode](#tinynode)
1517
- [TinyNodeList](#tinynodelist)
18+
- [TinyProject](#tinyproject)
19+
- [TinyProjectList](#tinyprojectlist)
1620
- [TinySignal](#tinysignal)
1721
- [TinySignalList](#tinysignallist)
1822
- [TinyTracker](#tinytracker)
@@ -31,6 +35,66 @@ _Appears in:_
3135

3236

3337

38+
#### TinyFlow
39+
40+
41+
42+
TinyFlow is the Schema for the tinyflows API
43+
44+
_Appears in:_
45+
- [TinyFlowList](#tinyflowlist)
46+
47+
| Field | Description |
48+
| --- | --- |
49+
| `apiVersion` _string_ | `operator.tinysystems.io/v1alpha1`
50+
| `kind` _string_ | `TinyFlow`
51+
| `kind` _string_ | Kind is a string value representing the REST resource this object represents.<br /><br />Servers may infer this from the endpoint the client submits requests to.<br /><br />Cannot be updated.<br /><br />In CamelCase.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
52+
| `apiVersion` _string_ | APIVersion defines the versioned schema of this representation of an object.<br /><br />Servers should convert recognized schemas to the latest internal value, and<br /><br />may reject unrecognized values.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
53+
| `metadata` _[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#objectmeta-v1-meta)_ | Refer to Kubernetes API documentation for fields of `metadata`. |
54+
| `spec` _[TinyFlowSpec](#tinyflowspec)_ | |
55+
| `status` _[TinyFlowStatus](#tinyflowstatus)_ | |
56+
57+
58+
#### TinyFlowList
59+
60+
61+
62+
TinyFlowList contains a list of TinyFlow
63+
64+
65+
66+
| Field | Description |
67+
| --- | --- |
68+
| `apiVersion` _string_ | `operator.tinysystems.io/v1alpha1`
69+
| `kind` _string_ | `TinyFlowList`
70+
| `kind` _string_ | Kind is a string value representing the REST resource this object represents.<br /><br />Servers may infer this from the endpoint the client submits requests to.<br /><br />Cannot be updated.<br /><br />In CamelCase.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
71+
| `apiVersion` _string_ | APIVersion defines the versioned schema of this representation of an object.<br /><br />Servers should convert recognized schemas to the latest internal value, and<br /><br />may reject unrecognized values.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
72+
| `metadata` _[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#listmeta-v1-meta)_ | Refer to Kubernetes API documentation for fields of `metadata`. |
73+
| `items` _[TinyFlow](#tinyflow) array_ | |
74+
75+
76+
#### TinyFlowSpec
77+
78+
79+
80+
TinyFlowSpec defines the desired state of TinyFlow
81+
82+
_Appears in:_
83+
- [TinyFlow](#tinyflow)
84+
85+
86+
87+
#### TinyFlowStatus
88+
89+
90+
91+
TinyFlowStatus defines the observed state of TinyFlow
92+
93+
_Appears in:_
94+
- [TinyFlow](#tinyflow)
95+
96+
97+
3498
#### TinyModule
3599

36100

@@ -277,6 +341,66 @@ _Appears in:_
277341
| `lastUpdateTime` _[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#time-v1-meta)_ | |
278342

279343

344+
#### TinyProject
345+
346+
347+
348+
TinyProject is the Schema for the tinyprojects API
349+
350+
_Appears in:_
351+
- [TinyProjectList](#tinyprojectlist)
352+
353+
| Field | Description |
354+
| --- | --- |
355+
| `apiVersion` _string_ | `operator.tinysystems.io/v1alpha1`
356+
| `kind` _string_ | `TinyProject`
357+
| `kind` _string_ | Kind is a string value representing the REST resource this object represents.<br /><br />Servers may infer this from the endpoint the client submits requests to.<br /><br />Cannot be updated.<br /><br />In CamelCase.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
358+
| `apiVersion` _string_ | APIVersion defines the versioned schema of this representation of an object.<br /><br />Servers should convert recognized schemas to the latest internal value, and<br /><br />may reject unrecognized values.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
359+
| `metadata` _[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#objectmeta-v1-meta)_ | Refer to Kubernetes API documentation for fields of `metadata`. |
360+
| `spec` _[TinyProjectSpec](#tinyprojectspec)_ | |
361+
| `status` _[TinyProjectStatus](#tinyprojectstatus)_ | |
362+
363+
364+
#### TinyProjectList
365+
366+
367+
368+
TinyProjectList contains a list of TinyProject
369+
370+
371+
372+
| Field | Description |
373+
| --- | --- |
374+
| `apiVersion` _string_ | `operator.tinysystems.io/v1alpha1`
375+
| `kind` _string_ | `TinyProjectList`
376+
| `kind` _string_ | Kind is a string value representing the REST resource this object represents.<br /><br />Servers may infer this from the endpoint the client submits requests to.<br /><br />Cannot be updated.<br /><br />In CamelCase.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
377+
| `apiVersion` _string_ | APIVersion defines the versioned schema of this representation of an object.<br /><br />Servers should convert recognized schemas to the latest internal value, and<br /><br />may reject unrecognized values.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
378+
| `metadata` _[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#listmeta-v1-meta)_ | Refer to Kubernetes API documentation for fields of `metadata`. |
379+
| `items` _[TinyProject](#tinyproject) array_ | |
380+
381+
382+
#### TinyProjectSpec
383+
384+
385+
386+
TinyProjectSpec defines the desired state of TinyProject
387+
388+
_Appears in:_
389+
- [TinyProject](#tinyproject)
390+
391+
392+
393+
#### TinyProjectStatus
394+
395+
396+
397+
TinyProjectStatus defines the observed state of TinyProject
398+
399+
_Appears in:_
400+
- [TinyProject](#tinyproject)
401+
402+
403+
280404
#### TinySignal
281405

282406

api/v1alpha1/tinyflow_types.go

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/*
2+
Copyright 2023.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package v1alpha1
18+
19+
import (
20+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21+
)
22+
23+
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
24+
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
25+
26+
// TinyFlowSpec defines the desired state of TinyFlow
27+
type TinyFlowSpec struct {
28+
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
29+
// Important: Run "make" to regenerate code after modifying this file
30+
}
31+
32+
// TinyFlowStatus defines the observed state of TinyFlow
33+
type TinyFlowStatus struct {
34+
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
35+
// Important: Run "make" to regenerate code after modifying this file
36+
}
37+
38+
// +kubebuilder:object:root=true
39+
// +kubebuilder:subresource:status
40+
41+
// TinyFlow is the Schema for the tinyflows API
42+
type TinyFlow struct {
43+
metav1.TypeMeta `json:",inline"`
44+
metav1.ObjectMeta `json:"metadata,omitempty"`
45+
46+
Spec TinyFlowSpec `json:"spec,omitempty"`
47+
Status TinyFlowStatus `json:"status,omitempty"`
48+
}
49+
50+
// +kubebuilder:object:root=true
51+
52+
// TinyFlowList contains a list of TinyFlow
53+
type TinyFlowList struct {
54+
metav1.TypeMeta `json:",inline"`
55+
metav1.ListMeta `json:"metadata,omitempty"`
56+
Items []TinyFlow `json:"items"`
57+
}
58+
59+
func init() {
60+
SchemeBuilder.Register(&TinyFlow{}, &TinyFlowList{})
61+
}

api/v1alpha1/tinyproject_types.go

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/*
2+
Copyright 2023.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package v1alpha1
18+
19+
import (
20+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21+
)
22+
23+
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
24+
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
25+
26+
// TinyProjectSpec defines the desired state of TinyProject
27+
type TinyProjectSpec struct {
28+
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
29+
// Important: Run "make" to regenerate code after modifying this file
30+
}
31+
32+
// TinyProjectStatus defines the observed state of TinyProject
33+
type TinyProjectStatus struct {
34+
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
35+
// Important: Run "make" to regenerate code after modifying this file
36+
}
37+
38+
// +kubebuilder:object:root=true
39+
// +kubebuilder:subresource:status
40+
41+
// TinyProject is the Schema for the tinyprojects API
42+
type TinyProject struct {
43+
metav1.TypeMeta `json:",inline"`
44+
metav1.ObjectMeta `json:"metadata,omitempty"`
45+
46+
Spec TinyProjectSpec `json:"spec,omitempty"`
47+
Status TinyProjectStatus `json:"status,omitempty"`
48+
}
49+
50+
// +kubebuilder:object:root=true
51+
52+
// TinyProjectList contains a list of TinyProject
53+
type TinyProjectList struct {
54+
metav1.TypeMeta `json:",inline"`
55+
metav1.ListMeta `json:"metadata,omitempty"`
56+
Items []TinyProject `json:"items"`
57+
}
58+
59+
func init() {
60+
SchemeBuilder.Register(&TinyProject{}, &TinyProjectList{})
61+
}

0 commit comments

Comments
 (0)