-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: peefy <[email protected]>
- Loading branch information
Showing
7 changed files
with
107 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,5 @@ kcl run | |
## Test | ||
|
||
```shell | ||
kcl test | ||
kcl test ./... | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# flask_manifests | ||
|
||
## Index | ||
|
||
- app | ||
- [App](#app) | ||
- [Container](#container) | ||
- [ContainerPort](#containerport) | ||
- [Env](#env) | ||
- [Port](#port) | ||
- [Resource](#resource) | ||
- [Service](#service) | ||
- [Volume](#volume) | ||
|
||
## Schemas | ||
|
||
### App | ||
|
||
The application model. | ||
|
||
#### Attributes | ||
|
||
| name | type | description | default value | | ||
| --- | --- | --- | --- | | ||
|**containers**|{str:[Container](#container)}||| | ||
|**labels**|{str:str}||{app = name}| | ||
|**name** `required`|str||| | ||
|**replicas** `required`|int||1| | ||
|**service**|[Service](#service)||| | ||
### Container | ||
|
||
The container model. | ||
|
||
#### Attributes | ||
|
||
| name | type | description | default value | | ||
| --- | --- | --- | --- | | ||
|**args**|[str]||| | ||
|**command**|[str]||| | ||
|**env**|[[Env](#env)]||| | ||
|**image** `required`|str||| | ||
|**ports** `required`|[[ContainerPort](#containerport)]||| | ||
|**resources**|[Resource](#resource)||| | ||
|**volumes**|[[Volume](#volume)]||| | ||
### ContainerPort | ||
|
||
The container port model. | ||
|
||
#### Attributes | ||
|
||
| name | type | description | default value | | ||
| --- | --- | --- | --- | | ||
|**containerPort** `required`|int||| | ||
|**name**|str||| | ||
|**protocol** `required`|"TCP" | "UDP" | "SCTP"||"TCP"| | ||
### Env | ||
|
||
#### Attributes | ||
|
||
| name | type | description | default value | | ||
| --- | --- | --- | --- | | ||
|**name** `required`|str||| | ||
|**value** `required`|str||| | ||
### Port | ||
|
||
The port model. | ||
|
||
#### Attributes | ||
|
||
| name | type | description | default value | | ||
| --- | --- | --- | --- | | ||
|**port** `required`|int||| | ||
|**protocol** `required`|"TCP" | "UDP" | "SCTP"||"TCP"| | ||
|**targetPort**|int | str||| | ||
### Resource | ||
|
||
#### Attributes | ||
|
||
| name | type | description | default value | | ||
| --- | --- | --- | --- | | ||
|**limits**|{str:}||| | ||
|**requests**|{str:}||| | ||
### Service | ||
|
||
The service model. | ||
|
||
#### Attributes | ||
|
||
| name | type | description | default value | | ||
| --- | --- | --- | --- | | ||
|**ports** `required`|[[Port](#port)]||| | ||
|**type**|str||| | ||
### Volume | ||
|
||
#### Attributes | ||
|
||
| name | type | description | default value | | ||
| --- | --- | --- | --- | | ||
|**path** `required`|str||| | ||
|**readOnly**|bool||False| | ||
|**source** `required`|str||| | ||
|**target** `required`|str||| | ||
<!-- Auto generated by kcl-doc tool, please do not edit. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
kubernetes_render_test.k → render/k8s/kubernetes_render_test.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import manifests | ||
|
||
import app | ||
|
||
# Convert the `App` model into Kubernetes Deployment and Service Manifests | ||
|