Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use raw string for generated schema from oai and k8s crd #93

Merged
merged 2 commits into from
Aug 2, 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
38 changes: 0 additions & 38 deletions .github/workflows/cla.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ _regex_match = regex.match


schema ContainerizedWorkload:
"""
r"""
A ContainerizedWorkload is a workload that runs OCI containers.

Attributes
Expand Down Expand Up @@ -38,7 +38,7 @@ schema ContainerizedWorkload:


schema CoreOamDevV1alpha2ContainerizedWorkloadSpec:
"""
r"""
A ContainerizedWorkloadSpec defines the desired state of a ContainerizedWorkload.

Attributes
Expand All @@ -60,7 +60,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpec:


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0:
"""
r"""
A Container represents an Open Containers Initiative (OCI) container.

Attributes
Expand Down Expand Up @@ -114,7 +114,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0:


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ConfigItems0:
"""
r"""
A ContainerConfigFile specifies a configuration file that should be written within a container.

Attributes
Expand All @@ -132,7 +132,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ConfigItems0:


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0EnvItems0:
"""
r"""
A ContainerEnvVar specifies an environment variable that should be set within a container.

Attributes
Expand All @@ -154,7 +154,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0EnvItems0:


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbe:
"""
r"""
A LivenessProbe assesses whether this container is alive. Containers that fail liveness probes will be restarted.

Attributes
Expand Down Expand Up @@ -196,7 +196,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbe:


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeExec:
"""
r"""
Exec probes a container's health by executing a command.

Attributes
Expand All @@ -210,7 +210,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeE


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeHTTPGet:
"""
r"""
HTTPGet probes a container's health by sending an HTTP GET request.

Attributes
Expand All @@ -232,7 +232,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeH


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeHTTPGetHTTPHeadersItems0:
"""
r"""
A HTTPHeader to be passed when probing a container.

Attributes
Expand All @@ -250,7 +250,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeH


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeTCPSocket:
"""
r"""
TCPSocketProbe probes a container's health by connecting to a TCP socket.

Attributes
Expand All @@ -264,7 +264,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeT


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0PortsItems0:
"""
r"""
A ContainerPort specifies a port that is exposed by a container.

Attributes
Expand All @@ -290,7 +290,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0PortsItems0:


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbe:
"""
r"""
A ReadinessProbe assesses whether this container is ready to serve requests. Containers that fail readiness probes will be withdrawn from service.

Attributes
Expand Down Expand Up @@ -332,7 +332,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbe:


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeExec:
"""
r"""
Exec probes a container's health by executing a command.

Attributes
Expand All @@ -346,7 +346,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeE


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeHTTPGet:
"""
r"""
HTTPGet probes a container's health by sending an HTTP GET request.

Attributes
Expand All @@ -368,7 +368,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeH


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeHTTPGetHTTPHeadersItems0:
"""
r"""
A HTTPHeader to be passed when probing a container.

Attributes
Expand All @@ -386,7 +386,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeH


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeTCPSocket:
"""
r"""
TCPSocketProbe probes a container's health by connecting to a TCP socket.

Attributes
Expand All @@ -400,7 +400,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeT


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0Resources:
"""
r"""
Resources required by this container

Attributes
Expand Down Expand Up @@ -430,7 +430,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0Resources:


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesCPU:
"""
r"""
CPU required by this container.

Attributes
Expand All @@ -444,7 +444,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesCPU:


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesExtendedItems0:
"""
r"""
ExtendedResource required by a container.

Attributes
Expand All @@ -462,7 +462,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesExten


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesGpu:
"""
r"""
GPU required by this container.

Attributes
Expand All @@ -476,7 +476,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesGpu:


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesMemory:
"""
r"""
Memory required by this container.

Attributes
Expand All @@ -490,7 +490,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesMemor


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesVolumesItems0:
"""
r"""
VolumeResource required by a container.

Attributes
Expand Down Expand Up @@ -520,7 +520,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesVolum


schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesVolumesItems0Disk:
"""
r"""
Disk requirements of this volume.

Attributes
Expand All @@ -538,7 +538,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesVolum


schema CoreOamDevV1alpha2ContainerizedWorkloadStatus:
"""
r"""
A ContainerizedWorkloadStatus represents the observed state of a ContainerizedWorkload.

Attributes
Expand All @@ -556,7 +556,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadStatus:


schema CoreOamDevV1alpha2ContainerizedWorkloadStatusConditionsItems0:
"""
r"""
A Condition that may apply to a resource.

Attributes
Expand Down Expand Up @@ -586,7 +586,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadStatusConditionsItems0:


schema CoreOamDevV1alpha2ContainerizedWorkloadStatusResourcesItems0:
"""
r"""
A ResourceReference refers to an resource managed by an OAM resource.

Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c


schema ManagedFieldsEntry:
"""
r"""
ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.

Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c


schema ObjectMeta:
"""
r"""
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c


schema OwnerReference:
"""
r"""
OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.

Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c


schema ManagedFieldsEntry:
"""
r"""
ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.

Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c


schema ObjectMeta:
"""
r"""
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c


schema OwnerReference:
"""
r"""
OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.

Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import k8s.apimachinery.pkg.apis.meta.v1


schema CronTab:
"""
r"""
stable example com v1 cron tab

Attributes
Expand All @@ -32,7 +32,7 @@ schema CronTab:


schema StableExampleComV1CronTabSpec:
"""
r"""
stable example com v1 cron tab spec

Attributes
Expand Down
2 changes: 1 addition & 1 deletion examples/swagger/complex/composition/models/kennel.k
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c


schema Kennel:
"""
r"""
kennel

Attributes
Expand Down
2 changes: 1 addition & 1 deletion examples/swagger/complex/composition/models/pet.k
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c


schema Pet:
"""
r"""
pet

Attributes
Expand Down
2 changes: 1 addition & 1 deletion examples/swagger/complex/subtype/models/animal.k
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c


schema Animal:
"""
r"""
animal

Attributes
Expand Down
2 changes: 1 addition & 1 deletion examples/swagger/complex/subtype/models/dog.k
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c


schema Dog (Animal, Pet):
"""
r"""
A representation of a dog

Attributes
Expand Down
2 changes: 1 addition & 1 deletion examples/swagger/complex/subtype/models/pet.k
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c


schema Pet:
"""
r"""
pet

Attributes
Expand Down
2 changes: 1 addition & 1 deletion examples/swagger/simple/array/models/pet.k
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c


schema Pet:
"""
r"""
pet

Attributes
Expand Down
Loading
Loading