diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml deleted file mode 100644 index f0b5904..0000000 --- a/.github/workflows/cla.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: "CLA Assistant" -on: - issue_comment: - types: [created] - pull_request_target: - types: [opened,closed,synchronize] -jobs: - CLAssistant: - runs-on: ubuntu-latest - steps: - - name: "CLA Assistant" - if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' - uses: contributor-assistant/github-action@v2.3.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # the below token should have repo scope and must be manually added by you in the repository's secret - PERSONAL_ACCESS_TOKEN : ${{ secrets.DEPLOY_ACCESS_TOKEN }} - with: - path-to-document: 'https://github.com/kcl-lang/.github/blob/main/CLA.md' # e.g. a CLA or a DCO document - - # branch should not be protected - lock-pullrequest-aftermerge: false - path-to-signatures: 'signatures/version1/cla.json' - remote-organization-name: kcl-lang - remote-repository-name: cla.db - branch: 'main' - allowlist: bot* - - #below are the optional inputs - If the optional inputs are not given, then default values will be taken - #remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository) - #remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository) - #create-file-commit-message: 'For example: Creating file for storing CLA Signatures' - #signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo' - #custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign' - #custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA' - #custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.' - #lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true) - #use-dco-flag: true - If you are using DCO instead of CLA diff --git a/examples/kube_resource/complex/muti_models/models/core_oam_dev_v1alpha2_containerized_workload.k b/examples/kube_resource/complex/muti_models/models/core_oam_dev_v1alpha2_containerized_workload.k index cffa465..20d7dd7 100644 --- a/examples/kube_resource/complex/muti_models/models/core_oam_dev_v1alpha2_containerized_workload.k +++ b/examples/kube_resource/complex/muti_models/models/core_oam_dev_v1alpha2_containerized_workload.k @@ -8,7 +8,7 @@ _regex_match = regex.match schema ContainerizedWorkload: - """ + r""" A ContainerizedWorkload is a workload that runs OCI containers. Attributes @@ -38,7 +38,7 @@ schema ContainerizedWorkload: schema CoreOamDevV1alpha2ContainerizedWorkloadSpec: - """ + r""" A ContainerizedWorkloadSpec defines the desired state of a ContainerizedWorkload. Attributes @@ -60,7 +60,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpec: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0: - """ + r""" A Container represents an Open Containers Initiative (OCI) container. Attributes @@ -114,7 +114,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ConfigItems0: - """ + r""" A ContainerConfigFile specifies a configuration file that should be written within a container. Attributes @@ -132,7 +132,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ConfigItems0: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0EnvItems0: - """ + r""" A ContainerEnvVar specifies an environment variable that should be set within a container. Attributes @@ -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 @@ -196,7 +196,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbe: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeExec: - """ + r""" Exec probes a container's health by executing a command. Attributes @@ -210,7 +210,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeE schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeHTTPGet: - """ + r""" HTTPGet probes a container's health by sending an HTTP GET request. Attributes @@ -232,7 +232,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeH schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeHTTPGetHTTPHeadersItems0: - """ + r""" A HTTPHeader to be passed when probing a container. Attributes @@ -250,7 +250,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeH schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeTCPSocket: - """ + r""" TCPSocketProbe probes a container's health by connecting to a TCP socket. Attributes @@ -264,7 +264,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeT schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0PortsItems0: - """ + r""" A ContainerPort specifies a port that is exposed by a container. Attributes @@ -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 @@ -332,7 +332,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbe: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeExec: - """ + r""" Exec probes a container's health by executing a command. Attributes @@ -346,7 +346,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeE schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeHTTPGet: - """ + r""" HTTPGet probes a container's health by sending an HTTP GET request. Attributes @@ -368,7 +368,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeH schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeHTTPGetHTTPHeadersItems0: - """ + r""" A HTTPHeader to be passed when probing a container. Attributes @@ -386,7 +386,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeH schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeTCPSocket: - """ + r""" TCPSocketProbe probes a container's health by connecting to a TCP socket. Attributes @@ -400,7 +400,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeT schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0Resources: - """ + r""" Resources required by this container Attributes @@ -430,7 +430,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0Resources: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesCPU: - """ + r""" CPU required by this container. Attributes @@ -444,7 +444,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesCPU: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesExtendedItems0: - """ + r""" ExtendedResource required by a container. Attributes @@ -462,7 +462,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesExten schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesGpu: - """ + r""" GPU required by this container. Attributes @@ -476,7 +476,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesGpu: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesMemory: - """ + r""" Memory required by this container. Attributes @@ -490,7 +490,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesMemor schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesVolumesItems0: - """ + r""" VolumeResource required by a container. Attributes @@ -520,7 +520,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesVolum schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesVolumesItems0Disk: - """ + r""" Disk requirements of this volume. Attributes @@ -538,7 +538,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesVolum schema CoreOamDevV1alpha2ContainerizedWorkloadStatus: - """ + r""" A ContainerizedWorkloadStatus represents the observed state of a ContainerizedWorkload. Attributes @@ -556,7 +556,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadStatus: schema CoreOamDevV1alpha2ContainerizedWorkloadStatusConditionsItems0: - """ + r""" A Condition that may apply to a resource. Attributes @@ -586,7 +586,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadStatusConditionsItems0: schema CoreOamDevV1alpha2ContainerizedWorkloadStatusResourcesItems0: - """ + r""" A ResourceReference refers to an resource managed by an OAM resource. Attributes diff --git a/examples/kube_resource/complex/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/examples/kube_resource/complex/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/examples/kube_resource/complex/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/examples/kube_resource/complex/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/examples/kube_resource/complex/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/examples/kube_resource/complex/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/examples/kube_resource/complex/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/examples/kube_resource/complex/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/examples/kube_resource/complex/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/examples/kube_resource/complex/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/examples/kube_resource/complex/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/examples/kube_resource/complex/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/examples/kube_resource/simple/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/examples/kube_resource/simple/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/examples/kube_resource/simple/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/examples/kube_resource/simple/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/examples/kube_resource/simple/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/examples/kube_resource/simple/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/examples/kube_resource/simple/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/examples/kube_resource/simple/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/examples/kube_resource/simple/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/examples/kube_resource/simple/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/examples/kube_resource/simple/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/examples/kube_resource/simple/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/examples/kube_resource/simple/single_model/models/stable_example_com_v1_cron_tab.k b/examples/kube_resource/simple/single_model/models/stable_example_com_v1_cron_tab.k index 47ca92c..8a2799c 100644 --- a/examples/kube_resource/simple/single_model/models/stable_example_com_v1_cron_tab.k +++ b/examples/kube_resource/simple/single_model/models/stable_example_com_v1_cron_tab.k @@ -6,7 +6,7 @@ import k8s.apimachinery.pkg.apis.meta.v1 schema CronTab: - """ + r""" stable example com v1 cron tab Attributes @@ -32,7 +32,7 @@ schema CronTab: schema StableExampleComV1CronTabSpec: - """ + r""" stable example com v1 cron tab spec Attributes diff --git a/examples/swagger/complex/composition/models/kennel.k b/examples/swagger/complex/composition/models/kennel.k index 294fa93..005f6e6 100644 --- a/examples/swagger/complex/composition/models/kennel.k +++ b/examples/swagger/complex/composition/models/kennel.k @@ -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 diff --git a/examples/swagger/complex/composition/models/pet.k b/examples/swagger/complex/composition/models/pet.k index c1464df..ec31218 100644 --- a/examples/swagger/complex/composition/models/pet.k +++ b/examples/swagger/complex/composition/models/pet.k @@ -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 diff --git a/examples/swagger/complex/subtype/models/animal.k b/examples/swagger/complex/subtype/models/animal.k index 7e56dcb..d1f6980 100644 --- a/examples/swagger/complex/subtype/models/animal.k +++ b/examples/swagger/complex/subtype/models/animal.k @@ -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 diff --git a/examples/swagger/complex/subtype/models/dog.k b/examples/swagger/complex/subtype/models/dog.k index fbdd9dc..4c319a9 100644 --- a/examples/swagger/complex/subtype/models/dog.k +++ b/examples/swagger/complex/subtype/models/dog.k @@ -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 diff --git a/examples/swagger/complex/subtype/models/pet.k b/examples/swagger/complex/subtype/models/pet.k index fbc765d..2410d8c 100644 --- a/examples/swagger/complex/subtype/models/pet.k +++ b/examples/swagger/complex/subtype/models/pet.k @@ -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 diff --git a/examples/swagger/simple/array/models/pet.k b/examples/swagger/simple/array/models/pet.k index c84668d..e7b45e0 100644 --- a/examples/swagger/simple/array/models/pet.k +++ b/examples/swagger/simple/array/models/pet.k @@ -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 diff --git a/examples/swagger/simple/dict/models/pet.k b/examples/swagger/simple/dict/models/pet.k index 2dc8867..3ad9325 100644 --- a/examples/swagger/simple/dict/models/pet.k +++ b/examples/swagger/simple/dict/models/pet.k @@ -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 diff --git a/examples/swagger/simple/int_or_str/models/pet.k b/examples/swagger/simple/int_or_str/models/pet.k index 6e5e961..487fba4 100644 --- a/examples/swagger/simple/int_or_str/models/pet.k +++ b/examples/swagger/simple/int_or_str/models/pet.k @@ -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 diff --git a/examples/swagger/simple/nested/models/catalog_item.k b/examples/swagger/simple/nested/models/catalog_item.k index 4ce6290..2e522d5 100644 --- a/examples/swagger/simple/nested/models/catalog_item.k +++ b/examples/swagger/simple/nested/models/catalog_item.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema CatalogItem: - """ + r""" catalog item Attributes @@ -27,7 +27,7 @@ schema CatalogItem: schema CatalogItemImage: - """ + r""" catalog item image Attributes diff --git a/examples/swagger/simple/properties/models/catalog_item.k b/examples/swagger/simple/properties/models/catalog_item.k index a60f5f9..a43d700 100644 --- a/examples/swagger/simple/properties/models/catalog_item.k +++ b/examples/swagger/simple/properties/models/catalog_item.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema CatalogItem: - """ + r""" catalog item Attributes diff --git a/examples/swagger/simple/tmp_oai_gen_array_array2081593003/models/pet.k b/examples/swagger/simple/tmp_oai_gen_array_array2081593003/models/pet.k new file mode 100644 index 0000000..e7b45e0 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_array_array2081593003/models/pet.k @@ -0,0 +1,20 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema Pet: + r""" + pet + + Attributes + ---------- + names : [str], default is Undefined, optional + names + """ + + + names?: [str] + + diff --git a/examples/swagger/simple/tmp_oai_gen_array_array3760101271/models/pet.k b/examples/swagger/simple/tmp_oai_gen_array_array3760101271/models/pet.k new file mode 100644 index 0000000..e7b45e0 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_array_array3760101271/models/pet.k @@ -0,0 +1,20 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema Pet: + r""" + pet + + Attributes + ---------- + names : [str], default is Undefined, optional + names + """ + + + names?: [str] + + diff --git a/examples/swagger/simple/tmp_oai_gen_dict_dict4047667975/models/pet.k b/examples/swagger/simple/tmp_oai_gen_dict_dict4047667975/models/pet.k new file mode 100644 index 0000000..3ad9325 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_dict_dict4047667975/models/pet.k @@ -0,0 +1,24 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema Pet: + r""" + pet + + Attributes + ---------- + name : str, default is Undefined, optional + name + labels : {str:int}, default is Undefined, optional + labels + """ + + + name?: str + + labels?: {str:int} + + diff --git a/examples/swagger/simple/tmp_oai_gen_dict_dict675039298/models/pet.k b/examples/swagger/simple/tmp_oai_gen_dict_dict675039298/models/pet.k new file mode 100644 index 0000000..3ad9325 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_dict_dict675039298/models/pet.k @@ -0,0 +1,24 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema Pet: + r""" + pet + + Attributes + ---------- + name : str, default is Undefined, optional + name + labels : {str:int}, default is Undefined, optional + labels + """ + + + name?: str + + labels?: {str:int} + + diff --git a/examples/swagger/simple/tmp_oai_gen_int_or_str_int_or_str1082032207/models/pet.k b/examples/swagger/simple/tmp_oai_gen_int_or_str_int_or_str1082032207/models/pet.k new file mode 100644 index 0000000..487fba4 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_int_or_str_int_or_str1082032207/models/pet.k @@ -0,0 +1,20 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema Pet: + r""" + pet + + Attributes + ---------- + name : int | str, default is Undefined, optional + name + """ + + + name?: int | str + + diff --git a/examples/swagger/simple/tmp_oai_gen_int_or_str_int_or_str1981581539/models/pet.k b/examples/swagger/simple/tmp_oai_gen_int_or_str_int_or_str1981581539/models/pet.k new file mode 100644 index 0000000..487fba4 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_int_or_str_int_or_str1981581539/models/pet.k @@ -0,0 +1,20 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema Pet: + r""" + pet + + Attributes + ---------- + name : int | str, default is Undefined, optional + name + """ + + + name?: int | str + + diff --git a/examples/swagger/simple/tmp_oai_gen_nested_nested2131166323/models/catalog_item.k b/examples/swagger/simple/tmp_oai_gen_nested_nested2131166323/models/catalog_item.k new file mode 100644 index 0000000..2e522d5 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_nested_nested2131166323/models/catalog_item.k @@ -0,0 +1,54 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema CatalogItem: + r""" + catalog item + + Attributes + ---------- + id : int, default is Undefined, required + id + title : str, default is Undefined, required + title + image : CatalogItemImage, default is Undefined, optional + image + """ + + + id: int + + title: str + + image?: CatalogItemImage + + +schema CatalogItemImage: + r""" + catalog item image + + Attributes + ---------- + url : str, default is Undefined, required + url + width : int, default is Undefined, optional + width + height : int, default is Undefined, optional + height + + Examples + -------- + demo = {"url": "images/38.png", "width": 100, "height": 100} + """ + + + url: str + + width?: int + + height?: int + + diff --git a/examples/swagger/simple/tmp_oai_gen_nested_nested2572090990/models/catalog_item.k b/examples/swagger/simple/tmp_oai_gen_nested_nested2572090990/models/catalog_item.k new file mode 100644 index 0000000..2e522d5 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_nested_nested2572090990/models/catalog_item.k @@ -0,0 +1,54 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema CatalogItem: + r""" + catalog item + + Attributes + ---------- + id : int, default is Undefined, required + id + title : str, default is Undefined, required + title + image : CatalogItemImage, default is Undefined, optional + image + """ + + + id: int + + title: str + + image?: CatalogItemImage + + +schema CatalogItemImage: + r""" + catalog item image + + Attributes + ---------- + url : str, default is Undefined, required + url + width : int, default is Undefined, optional + width + height : int, default is Undefined, optional + height + + Examples + -------- + demo = {"url": "images/38.png", "width": 100, "height": 100} + """ + + + url: str + + width?: int + + height?: int + + diff --git a/examples/swagger/simple/tmp_oai_gen_properties_properties2918247168/models/catalog_item.k b/examples/swagger/simple/tmp_oai_gen_properties_properties2918247168/models/catalog_item.k new file mode 100644 index 0000000..a43d700 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_properties_properties2918247168/models/catalog_item.k @@ -0,0 +1,24 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema CatalogItem: + r""" + catalog item + + Attributes + ---------- + id : int, default is Undefined, required + id + title : str, default is Undefined, required + title + """ + + + id: int + + title: str + + diff --git a/examples/swagger/simple/tmp_oai_gen_properties_properties3922185323/models/catalog_item.k b/examples/swagger/simple/tmp_oai_gen_properties_properties3922185323/models/catalog_item.k new file mode 100644 index 0000000..a43d700 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_properties_properties3922185323/models/catalog_item.k @@ -0,0 +1,24 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema CatalogItem: + r""" + catalog item + + Attributes + ---------- + id : int, default is Undefined, required + id + title : str, default is Undefined, required + title + """ + + + id: int + + title: str + + diff --git a/examples/swagger/simple/tmp_oai_gen_tuple_mixed_tuple_mixed2719597758/models/tuple.k b/examples/swagger/simple/tmp_oai_gen_tuple_mixed_tuple_mixed2719597758/models/tuple.k new file mode 100644 index 0000000..5f62a94 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_tuple_mixed_tuple_mixed2719597758/models/tuple.k @@ -0,0 +1,28 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema tuple: + r""" + tuple + + Attributes + ---------- + p0 : int, default is Undefined, required + p0 + p1 : str, default is Undefined, required + p1 + p2 : str, default is Undefined, required + p2 + """ + + + p0: int + + p1: str + + p2: str + + diff --git a/examples/swagger/simple/tmp_oai_gen_tuple_mixed_tuple_mixed880288461/models/tuple.k b/examples/swagger/simple/tmp_oai_gen_tuple_mixed_tuple_mixed880288461/models/tuple.k new file mode 100644 index 0000000..5f62a94 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_tuple_mixed_tuple_mixed880288461/models/tuple.k @@ -0,0 +1,28 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema tuple: + r""" + tuple + + Attributes + ---------- + p0 : int, default is Undefined, required + p0 + p1 : str, default is Undefined, required + p1 + p2 : str, default is Undefined, required + p2 + """ + + + p0: int + + p1: str + + p2: str + + diff --git a/examples/swagger/simple/tmp_oai_gen_tuple_tuple_simple3694977147/models/tuple.k b/examples/swagger/simple/tmp_oai_gen_tuple_tuple_simple3694977147/models/tuple.k new file mode 100644 index 0000000..8839d64 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_tuple_tuple_simple3694977147/models/tuple.k @@ -0,0 +1,20 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema tuple: + r""" + tuple + + Attributes + ---------- + p0 : str, default is Undefined, required + p0 + """ + + + p0: str + + diff --git a/examples/swagger/simple/tmp_oai_gen_tuple_tuple_simple3966875786/models/tuple.k b/examples/swagger/simple/tmp_oai_gen_tuple_tuple_simple3966875786/models/tuple.k new file mode 100644 index 0000000..8839d64 --- /dev/null +++ b/examples/swagger/simple/tmp_oai_gen_tuple_tuple_simple3966875786/models/tuple.k @@ -0,0 +1,20 @@ +""" +This file was generated by the KCL auto-gen tool. DO NOT EDIT. +Editing this file might prove futile when you re-run the KCL auto-gen generate command. +""" + + +schema tuple: + r""" + tuple + + Attributes + ---------- + p0 : str, default is Undefined, required + p0 + """ + + + p0: str + + diff --git a/examples/swagger/simple/tuple/models/tuple.k b/examples/swagger/simple/tuple/models/tuple.k index a3b9e23..8839d64 100644 --- a/examples/swagger/simple/tuple/models/tuple.k +++ b/examples/swagger/simple/tuple/models/tuple.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema tuple: - """ + r""" tuple Attributes diff --git a/examples/swagger/simple/tuple_mixed/models/tuple.k b/examples/swagger/simple/tuple_mixed/models/tuple.k index 53f7a20..5f62a94 100644 --- a/examples/swagger/simple/tuple_mixed/models/tuple.k +++ b/examples/swagger/simple/tuple_mixed/models/tuple.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema tuple: - """ + r""" tuple Attributes diff --git a/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/sources_knative_dev_v1alpha1_git_hub_source.k b/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/sources_knative_dev_v1alpha1_git_hub_source.k index e77317c..4f658ac 100644 --- a/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/sources_knative_dev_v1alpha1_git_hub_source.k +++ b/pkg/kube_resource/generator/testdata/additional_properties_pattern/models/sources_knative_dev_v1alpha1_git_hub_source.k @@ -6,7 +6,7 @@ import k8s.apimachinery.pkg.apis.meta.v1 schema GitHubSource: - """ + r""" sources knative dev v1alpha1 git hub source Attributes @@ -36,7 +36,7 @@ schema GitHubSource: schema SourcesKnativeDevV1alpha1GitHubSourceSpec: - """ + r""" sources knative dev v1alpha1 git hub source spec Attributes @@ -79,7 +79,7 @@ schema SourcesKnativeDevV1alpha1GitHubSourceSpec: schema SourcesKnativeDevV1alpha1GitHubSourceSpecAccessToken: - """ + r""" Access token for the GitHub API. Attributes @@ -93,7 +93,7 @@ schema SourcesKnativeDevV1alpha1GitHubSourceSpecAccessToken: schema SourcesKnativeDevV1alpha1GitHubSourceSpecAccessTokenSecretKeyRef: - """ + r""" A reference to a Kubernetes Secret object containing a GitHub access token. Attributes @@ -111,7 +111,7 @@ schema SourcesKnativeDevV1alpha1GitHubSourceSpecAccessTokenSecretKeyRef: schema SourcesKnativeDevV1alpha1GitHubSourceSpecCeOverrides: - """ + r""" Defines overrides to control modifications of the event sent to the sink. Attributes @@ -129,7 +129,7 @@ schema SourcesKnativeDevV1alpha1GitHubSourceSpecCeOverrides: schema SourcesKnativeDevV1alpha1GitHubSourceSpecSecretToken: - """ + r""" Arbitrary token used to validate requests to webhooks. Attributes @@ -143,7 +143,7 @@ schema SourcesKnativeDevV1alpha1GitHubSourceSpecSecretToken: schema SourcesKnativeDevV1alpha1GitHubSourceSpecSecretTokenSecretKeyRef: - """ + r""" A reference to a Kubernetes Secret object containing the webhook token. Attributes @@ -161,7 +161,7 @@ schema SourcesKnativeDevV1alpha1GitHubSourceSpecSecretTokenSecretKeyRef: schema SourcesKnativeDevV1alpha1GitHubSourceSpecSink: - """ + r""" The destination of events received from webhooks. Attributes @@ -179,7 +179,7 @@ schema SourcesKnativeDevV1alpha1GitHubSourceSpecSink: schema SourcesKnativeDevV1alpha1GitHubSourceSpecSinkRef: - """ + r""" Reference to an addressable Kubernetes object to be used as the destination of events. Attributes @@ -212,7 +212,7 @@ schema SourcesKnativeDevV1alpha1GitHubSourceSpecSinkRef: schema SourcesKnativeDevV1alpha1GitHubSourceStatus: - """ + r""" sources knative dev v1alpha1 git hub source status Attributes @@ -234,7 +234,7 @@ schema SourcesKnativeDevV1alpha1GitHubSourceStatus: schema SourcesKnativeDevV1alpha1GitHubSourceStatusConditionsItems0: - """ + r""" sources knative dev v1alpha1 git hub source status conditions items0 Attributes diff --git a/pkg/kube_resource/generator/testdata/all_of_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/pkg/kube_resource/generator/testdata/all_of_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/pkg/kube_resource/generator/testdata/all_of_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/pkg/kube_resource/generator/testdata/all_of_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/all_of_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/pkg/kube_resource/generator/testdata/all_of_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/pkg/kube_resource/generator/testdata/all_of_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/pkg/kube_resource/generator/testdata/all_of_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/all_of_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/pkg/kube_resource/generator/testdata/all_of_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/pkg/kube_resource/generator/testdata/all_of_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/pkg/kube_resource/generator/testdata/all_of_pattern/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/all_of_pattern/models/karpenter_k8s_aws_v1beta1_e_c2_node_class.k b/pkg/kube_resource/generator/testdata/all_of_pattern/models/karpenter_k8s_aws_v1beta1_e_c2_node_class.k index 6d59a88..5cffd76 100644 --- a/pkg/kube_resource/generator/testdata/all_of_pattern/models/karpenter_k8s_aws_v1beta1_e_c2_node_class.k +++ b/pkg/kube_resource/generator/testdata/all_of_pattern/models/karpenter_k8s_aws_v1beta1_e_c2_node_class.k @@ -8,7 +8,7 @@ _regex_match = regex.match schema EC2NodeClass: - """ + r""" EC2NodeClass is the Schema for the EC2NodeClass API Attributes @@ -38,7 +38,7 @@ schema EC2NodeClass: schema KarpenterK8sAwsV1beta1EC2NodeClassSpec: - """ + r""" EC2NodeClassSpec is the top level specification for the AWS Karpenter Provider. This will contain configuration necessary to launch instances in AWS. Attributes @@ -99,7 +99,7 @@ schema KarpenterK8sAwsV1beta1EC2NodeClassSpec: schema KarpenterK8sAwsV1beta1EC2NodeClassSpecAmiSelectorTermsItems0: - """ + r""" AMISelectorTerm defines selection logic for an ami used by Karpenter to launch nodes. If multiple fields are used for selection, the requirements are ANDed. Attributes @@ -129,7 +129,7 @@ schema KarpenterK8sAwsV1beta1EC2NodeClassSpecAmiSelectorTermsItems0: schema KarpenterK8sAwsV1beta1EC2NodeClassSpecBlockDeviceMappingsItems0: - """ + r""" karpenter k8s aws v1beta1 e c2 node class spec block device mappings items0 Attributes @@ -151,7 +151,7 @@ schema KarpenterK8sAwsV1beta1EC2NodeClassSpecBlockDeviceMappingsItems0: schema KarpenterK8sAwsV1beta1EC2NodeClassSpecBlockDeviceMappingsItems0Ebs: - """ + r""" EBS contains parameters used to automatically set up EBS volumes when an instance is launched. Attributes @@ -208,7 +208,7 @@ schema KarpenterK8sAwsV1beta1EC2NodeClassSpecBlockDeviceMappingsItems0Ebs: schema KarpenterK8sAwsV1beta1EC2NodeClassSpecMetadataOptions: - """ + r""" MetadataOptions for the generated launch template of provisioned nodes. This specifies the exposure of the Instance Metadata Service to provisioned EC2 nodes. For more information, see Instance Metadata and User Data (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) in the Amazon Elastic Compute Cloud User Guide. Refer to recommended, security best practices (https://aws.github.io/aws-eks-best-practices/security/docs/iam/#restrict-access-to-the-instance-profile-assigned-to-the-worker-node) for limiting exposure of Instance Metadata and User Data to pods. If omitted, defaults to httpEndpoint enabled, with httpProtocolIPv6 disabled, with httpPutResponseLimit of 2, and with httpTokens required. @@ -244,7 +244,7 @@ schema KarpenterK8sAwsV1beta1EC2NodeClassSpecMetadataOptions: schema KarpenterK8sAwsV1beta1EC2NodeClassSpecSecurityGroupSelectorTermsItems0: - """ + r""" SecurityGroupSelectorTerm defines selection logic for a security group used by Karpenter to launch nodes. If multiple fields are used for selection, the requirements are ANDed. Attributes @@ -270,7 +270,7 @@ schema KarpenterK8sAwsV1beta1EC2NodeClassSpecSecurityGroupSelectorTermsItems0: schema KarpenterK8sAwsV1beta1EC2NodeClassSpecSubnetSelectorTermsItems0: - """ + r""" SubnetSelectorTerm defines selection logic for a subnet used by Karpenter to launch nodes. If multiple fields are used for selection, the requirements are ANDed. Attributes @@ -292,7 +292,7 @@ schema KarpenterK8sAwsV1beta1EC2NodeClassSpecSubnetSelectorTermsItems0: schema KarpenterK8sAwsV1beta1EC2NodeClassStatus: - """ + r""" EC2NodeClassStatus contains the resolved state of the EC2NodeClass Attributes @@ -318,7 +318,7 @@ schema KarpenterK8sAwsV1beta1EC2NodeClassStatus: schema KarpenterK8sAwsV1beta1EC2NodeClassStatusAmisItems0: - """ + r""" AMI contains resolved AMI selector values utilized for node launch Attributes @@ -340,7 +340,7 @@ schema KarpenterK8sAwsV1beta1EC2NodeClassStatusAmisItems0: schema KarpenterK8sAwsV1beta1EC2NodeClassStatusAmisItems0RequirementsItems0: - """ + r""" A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -362,7 +362,7 @@ schema KarpenterK8sAwsV1beta1EC2NodeClassStatusAmisItems0RequirementsItems0: schema KarpenterK8sAwsV1beta1EC2NodeClassStatusSecurityGroupsItems0: - """ + r""" SecurityGroup contains resolved SecurityGroup selector values utilized for node launch Attributes @@ -380,7 +380,7 @@ schema KarpenterK8sAwsV1beta1EC2NodeClassStatusSecurityGroupsItems0: schema KarpenterK8sAwsV1beta1EC2NodeClassStatusSubnetsItems0: - """ + r""" Subnet contains resolved Subnet selector values utilized for node launch Attributes diff --git a/pkg/kube_resource/generator/testdata/array_branch/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/pkg/kube_resource/generator/testdata/array_branch/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/pkg/kube_resource/generator/testdata/array_branch/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/pkg/kube_resource/generator/testdata/array_branch/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/array_branch/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/pkg/kube_resource/generator/testdata/array_branch/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/pkg/kube_resource/generator/testdata/array_branch/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/pkg/kube_resource/generator/testdata/array_branch/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/array_branch/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/pkg/kube_resource/generator/testdata/array_branch/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/pkg/kube_resource/generator/testdata/array_branch/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/pkg/kube_resource/generator/testdata/array_branch/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/array_branch/models/operator_victoriametrics_com_v1beta1_vm_agent.k b/pkg/kube_resource/generator/testdata/array_branch/models/operator_victoriametrics_com_v1beta1_vm_agent.k index 6291771..19ee1d3 100644 --- a/pkg/kube_resource/generator/testdata/array_branch/models/operator_victoriametrics_com_v1beta1_vm_agent.k +++ b/pkg/kube_resource/generator/testdata/array_branch/models/operator_victoriametrics_com_v1beta1_vm_agent.k @@ -8,7 +8,7 @@ _regex_match = regex.match schema VMAgent: - """ + r""" VMAgent - is a tiny but brave agent, which helps you collect metrics from various sources and stores them in VictoriaMetrics or any other Prometheus-compatible storage system that supports the remote_write protocol. Attributes @@ -38,7 +38,7 @@ schema VMAgent: schema OperatorVictoriametricsComV1beta1VMAgentSpec: - """ + r""" VMAgentSpec defines the desired state of VMAgent Attributes @@ -377,7 +377,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpec: schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfig: - """ + r""" APIServerConfig allows specifying a host and auth methods to access apiserver. If left empty, VMAgent is assumed to run inside of the cluster and will discover API servers automatically and use the pod's CA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/. Attributes @@ -411,7 +411,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfig: schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigAuthorization: - """ + r""" Authorization configures generic authorization params Attributes @@ -433,7 +433,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigAuthorization: schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigAuthorizationCredentials: - """ + r""" Reference to the secret with value for authorization Attributes @@ -455,7 +455,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigAuthorizationC schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigBasicAuth: - """ + r""" BasicAuth allow an endpoint to authenticate over basic authentication Attributes @@ -477,7 +477,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigBasicAuth: schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigBasicAuthPassword: - """ + r""" The secret in the service scrape namespace that contains the password for authentication. It must be at them same namespace as CRD Attributes @@ -499,7 +499,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigBasicAuthPassw schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigBasicAuthUsername: - """ + r""" The secret in the service scrape namespace that contains the username for authentication. It must be at them same namespace as CRD Attributes @@ -521,7 +521,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigBasicAuthUsern schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfig: - """ + r""" TLSConfig Config to use for accessing apiserver. Attributes @@ -563,7 +563,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfig: schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigCa: - """ + r""" Stuct containing the CA cert to use for the targets. Attributes @@ -581,7 +581,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigCa: schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigCaConfigMap: - """ + r""" ConfigMap containing data to use for the targets. Attributes @@ -603,7 +603,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigCaCon schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigCaSecret: - """ + r""" Secret containing data to use for the targets. Attributes @@ -625,7 +625,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigCaSec schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigCert: - """ + r""" Struct containing the client cert file for the targets. Attributes @@ -643,7 +643,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigCert: schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigCertConfigMap: - """ + r""" ConfigMap containing data to use for the targets. Attributes @@ -665,7 +665,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigCertC schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigCertSecret: - """ + r""" Secret containing data to use for the targets. Attributes @@ -687,7 +687,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigCertS schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigKeySecret: - """ + r""" Secret containing the client key file for the targets. Attributes @@ -709,7 +709,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAPIServerConfigTLSConfigKeySe schema OperatorVictoriametricsComV1beta1VMAgentSpecAdditionalScrapeConfigs: - """ + r""" AdditionalScrapeConfigs As scrape configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility to break upgrades of VMAgent. It is advised to review VMAgent release notes to ensure that no incompatible scrape configs are going to break VMAgent after the upgrade. Attributes @@ -731,7 +731,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecAdditionalScrapeConfigs: schema OperatorVictoriametricsComV1beta1VMAgentSpecArbitraryFSAccessThroughSMs: - """ + r""" ArbitraryFSAccessThroughSMs configures whether configuration based on a service scrape can access arbitrary files on the file system of the VMAgent container e.g. bearer token files. Attributes @@ -745,7 +745,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecArbitraryFSAccessThroughSMs: schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0: - """ + r""" PersistentVolumeClaim is a user's request for and claim to a persistent volume Attributes @@ -775,7 +775,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0: schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0Spec: - """ + r""" spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims Attributes @@ -817,7 +817,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0Spec: schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0SpecDataSource: - """ + r""" dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. Attributes @@ -839,7 +839,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0SpecDataS schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0SpecDataSourceRef: - """ + r""" dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. Attributes @@ -861,7 +861,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0SpecDataS schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0SpecResources: - """ + r""" resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Attributes @@ -884,7 +884,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0SpecResou schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0SpecSelector: - """ + r""" selector is a label query over volumes to consider for binding. Attributes @@ -902,7 +902,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0SpecSelec schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0SpecSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -924,7 +924,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0SpecSelec schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0Status: - """ + r""" status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims Attributes @@ -963,7 +963,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0Status: schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0StatusConditionsItems0: - """ + r""" PersistentVolumeClaimCondition contails details about state of pvc Attributes @@ -997,7 +997,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecClaimTemplatesItems0StatusCon schema OperatorVictoriametricsComV1beta1VMAgentSpecDNSConfig: - """ + r""" Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. Attributes @@ -1019,7 +1019,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecDNSConfig: schema OperatorVictoriametricsComV1beta1VMAgentSpecDNSConfigOptionsItems0: - """ + r""" PodDNSConfigOption defines DNS resolver options of a pod. Attributes @@ -1037,7 +1037,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecDNSConfigOptionsItems0: schema OperatorVictoriametricsComV1beta1VMAgentSpecExtraEnvsItems0: - """ + r""" EnvVar represents an environment variable present in a Container. Attributes @@ -1055,7 +1055,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecExtraEnvsItems0: schema OperatorVictoriametricsComV1beta1VMAgentSpecHostAliasesItems0: - """ + r""" HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. Attributes @@ -1073,7 +1073,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecHostAliasesItems0: schema OperatorVictoriametricsComV1beta1VMAgentSpecImage: - """ + r""" Image - docker image settings for VMAgent if no specified operator uses default config version Attributes @@ -1095,7 +1095,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecImage: schema OperatorVictoriametricsComV1beta1VMAgentSpecImagePullSecretsItems0: - """ + r""" LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. Attributes @@ -1109,7 +1109,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecImagePullSecretsItems0: schema OperatorVictoriametricsComV1beta1VMAgentSpecInlineRelabelConfigItems0: - """ + r""" RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines ``-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs Attributes @@ -1167,7 +1167,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecInlineRelabelConfigItems0: schema OperatorVictoriametricsComV1beta1VMAgentSpecInsertPorts: - """ + r""" InsertPorts - additional listen ports for data ingestion. Attributes @@ -1193,7 +1193,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecInsertPorts: schema OperatorVictoriametricsComV1beta1VMAgentSpecNodeScrapeNamespaceSelector: - """ + r""" NodeScrapeNamespaceSelector defines Namespaces to be selected for VMNodeScrape discovery. Works in combination with Selector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault Attributes @@ -1211,7 +1211,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecNodeScrapeNamespaceSelector: schema OperatorVictoriametricsComV1beta1VMAgentSpecNodeScrapeNamespaceSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -1233,7 +1233,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecNodeScrapeNamespaceSelectorMa schema OperatorVictoriametricsComV1beta1VMAgentSpecNodeScrapeRelabelTemplateItems0: - """ + r""" RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines ``-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs Attributes @@ -1291,7 +1291,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecNodeScrapeRelabelTemplateItem schema OperatorVictoriametricsComV1beta1VMAgentSpecNodeScrapeSelector: - """ + r""" NodeScrapeSelector defines VMNodeScrape to be selected for scraping. Works in combination with NamespaceSelector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault Attributes @@ -1309,7 +1309,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecNodeScrapeSelector: schema OperatorVictoriametricsComV1beta1VMAgentSpecNodeScrapeSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -1331,7 +1331,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecNodeScrapeSelectorMatchExpres schema OperatorVictoriametricsComV1beta1VMAgentSpecPodDisruptionBudget: - """ + r""" PodDisruptionBudget created by operator Attributes @@ -1353,7 +1353,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecPodDisruptionBudget: schema OperatorVictoriametricsComV1beta1VMAgentSpecPodMetadata: - """ + r""" PodMetadata configures Labels and Annotations which are propagated to the vmagent pods. Attributes @@ -1375,7 +1375,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecPodMetadata: schema OperatorVictoriametricsComV1beta1VMAgentSpecPodScrapeNamespaceSelector: - """ + r""" PodScrapeNamespaceSelector defines Namespaces to be selected for VMPodScrape discovery. Works in combination with Selector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault Attributes @@ -1393,7 +1393,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecPodScrapeNamespaceSelector: schema OperatorVictoriametricsComV1beta1VMAgentSpecPodScrapeNamespaceSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -1415,7 +1415,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecPodScrapeNamespaceSelectorMat schema OperatorVictoriametricsComV1beta1VMAgentSpecPodScrapeRelabelTemplateItems0: - """ + r""" RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines ``-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs Attributes @@ -1473,7 +1473,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecPodScrapeRelabelTemplateItems schema OperatorVictoriametricsComV1beta1VMAgentSpecPodScrapeSelector: - """ + r""" PodScrapeSelector defines PodScrapes to be selected for target discovery. Works in combination with NamespaceSelector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault Attributes @@ -1491,7 +1491,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecPodScrapeSelector: schema OperatorVictoriametricsComV1beta1VMAgentSpecPodScrapeSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -1513,7 +1513,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecPodScrapeSelectorMatchExpress schema OperatorVictoriametricsComV1beta1VMAgentSpecProbeNamespaceSelector: - """ + r""" ProbeNamespaceSelector defines Namespaces to be selected for VMProbe discovery. Works in combination with Selector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault Attributes @@ -1531,7 +1531,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecProbeNamespaceSelector: schema OperatorVictoriametricsComV1beta1VMAgentSpecProbeNamespaceSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -1553,7 +1553,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecProbeNamespaceSelectorMatchEx schema OperatorVictoriametricsComV1beta1VMAgentSpecProbeScrapeRelabelTemplateItems0: - """ + r""" RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines ``-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs Attributes @@ -1611,7 +1611,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecProbeScrapeRelabelTemplateIte schema OperatorVictoriametricsComV1beta1VMAgentSpecProbeSelector: - """ + r""" ProbeSelector defines VMProbe to be selected for target probing. Works in combination with NamespaceSelector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault Attributes @@ -1629,7 +1629,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecProbeSelector: schema OperatorVictoriametricsComV1beta1VMAgentSpecProbeSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -1651,7 +1651,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecProbeSelectorMatchExpressions schema OperatorVictoriametricsComV1beta1VMAgentSpecReadinessGatesItems0: - """ + r""" PodReadinessGate contains the reference to a pod condition Attributes @@ -1665,7 +1665,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecReadinessGatesItems0: schema OperatorVictoriametricsComV1beta1VMAgentSpecRelabelConfig: - """ + r""" RelabelConfig ConfigMap with global relabel config -remoteWrite.relabelConfig This relabeling is applied to all the collected metrics before sending them to remote storage. Attributes @@ -1687,7 +1687,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRelabelConfig: schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0: - """ + r""" VMAgentRemoteWriteSpec defines the remote storage configuration for VmAgent Attributes @@ -1741,7 +1741,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0: schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0BasicAuth: - """ + r""" BasicAuth allow an endpoint to authenticate over basic authentication Attributes @@ -1763,7 +1763,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0BasicAuth: schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0BasicAuthPassword: - """ + r""" The secret in the service scrape namespace that contains the password for authentication. It must be at them same namespace as CRD Attributes @@ -1785,7 +1785,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0BasicAuthPas schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0BasicAuthUsername: - """ + r""" The secret in the service scrape namespace that contains the username for authentication. It must be at them same namespace as CRD Attributes @@ -1807,7 +1807,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0BasicAuthUse schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0BearerTokenSecret: - """ + r""" Optional bearer auth token to use for -remoteWrite.url Attributes @@ -1829,7 +1829,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0BearerTokenS schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0InlineURLRelabelConfigItems0: - """ + r""" RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines ``-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs Attributes @@ -1887,7 +1887,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0InlineURLRel schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0Oauth2: - """ + r""" OAuth2 defines auth configuration Attributes @@ -1925,7 +1925,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0Oauth2: schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0Oauth2ClientID: - """ + r""" The secret or configmap containing the OAuth2 client id Attributes @@ -1943,7 +1943,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0Oauth2Client schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0Oauth2ClientIDConfigMap: - """ + r""" ConfigMap containing data to use for the targets. Attributes @@ -1965,7 +1965,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0Oauth2Client schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0Oauth2ClientIDSecret: - """ + r""" Secret containing data to use for the targets. Attributes @@ -1987,7 +1987,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0Oauth2Client schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0Oauth2ClientSecret: - """ + r""" The secret containing the OAuth2 client secret Attributes @@ -2009,7 +2009,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0Oauth2Client schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0StreamAggrConfig: - """ + r""" StreamAggrConfig defines stream aggregation configuration for VMAgent for -remoteWrite.url Attributes @@ -2035,7 +2035,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0StreamAggrCo schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0StreamAggrConfigRulesItems0: - """ + r""" StreamAggrRule defines the rule in stream aggregation config Attributes @@ -2086,7 +2086,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0StreamAggrCo schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0StreamAggrConfigRulesItems0InputRelabelConfigsItems0: - """ + r""" RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines ``-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs Attributes @@ -2144,7 +2144,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0StreamAggrCo schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0StreamAggrConfigRulesItems0OutputRelabelConfigsItems0: - """ + r""" RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines ``-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs Attributes @@ -2202,7 +2202,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0StreamAggrCo schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfig: - """ + r""" TLSConfig describes tls configuration for remote write target Attributes @@ -2244,7 +2244,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfig: schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigCa: - """ + r""" Stuct containing the CA cert to use for the targets. Attributes @@ -2262,7 +2262,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigCa: schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigCaConfigMap: - """ + r""" ConfigMap containing data to use for the targets. Attributes @@ -2284,7 +2284,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigCaC schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigCaSecret: - """ + r""" Secret containing data to use for the targets. Attributes @@ -2306,7 +2306,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigCaS schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigCert: - """ + r""" Struct containing the client cert file for the targets. Attributes @@ -2324,7 +2324,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigCer schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigCertConfigMap: - """ + r""" ConfigMap containing data to use for the targets. Attributes @@ -2346,7 +2346,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigCer schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigCertSecret: - """ + r""" Secret containing data to use for the targets. Attributes @@ -2368,7 +2368,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigCer schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigKeySecret: - """ + r""" Secret containing the client key file for the targets. Attributes @@ -2390,7 +2390,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0TLSConfigKey schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0URLRelabelConfig: - """ + r""" ConfigMap with relabeling config which is applied to metrics before sending them to the corresponding -remoteWrite.url Attributes @@ -2412,7 +2412,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteItems0URLRelabelCo schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteSettings: - """ + r""" RemoteWriteSettings defines global settings for all remoteWrite urls. Attributes @@ -2458,7 +2458,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRemoteWriteSettings: schema OperatorVictoriametricsComV1beta1VMAgentSpecResources: - """ + r""" Resources container resource request and limits, https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ if not specified - default setting will be used Attributes @@ -2481,7 +2481,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecResources: schema OperatorVictoriametricsComV1beta1VMAgentSpecRollingUpdate: - """ + r""" RollingUpdate - overrides deployment update params. Attributes @@ -2499,7 +2499,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecRollingUpdate: schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceScrapeNamespaceSelector: - """ + r""" ServiceScrapeNamespaceSelector Namespaces to be selected for VMServiceScrape discovery. Works in combination with Selector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault Attributes @@ -2517,7 +2517,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceScrapeNamespaceSelecto schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceScrapeNamespaceSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -2539,7 +2539,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceScrapeNamespaceSelecto schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceScrapeRelabelTemplateItems0: - """ + r""" RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines ``-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs Attributes @@ -2597,7 +2597,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceScrapeRelabelTemplateI schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceScrapeSelector: - """ + r""" ServiceScrapeSelector defines ServiceScrapes to be selected for target discovery. Works in combination with NamespaceSelector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault Attributes @@ -2615,7 +2615,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceScrapeSelector: schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceScrapeSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -2637,7 +2637,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceScrapeSelectorMatchExp schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceSpec: - """ + r""" ServiceSpec that will be added to vmagent service spec Attributes @@ -2655,7 +2655,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceSpec: schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceSpecMetadata: - """ + r""" EmbeddedObjectMetadata defines objectMeta for additional service. Attributes @@ -2677,7 +2677,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecServiceSpecMetadata: schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorage: - """ + r""" StatefulStorage configures storage for StatefulSet Attributes @@ -2699,7 +2699,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorage: schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageEmptyDir: - """ + r""" EmptyDirVolumeSource to be used by the Prometheus StatefulSets. If specified, used in place of any volumeClaimTemplate. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir Attributes @@ -2721,7 +2721,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageEmptyDir: schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTemplate: - """ + r""" A PVC spec to be used by the VMAlertManager StatefulSets. Attributes @@ -2751,7 +2751,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTem schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTemplateMetadata: - """ + r""" EmbeddedMetadata contains metadata relevant to an EmbeddedResource. Attributes @@ -2773,7 +2773,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTem schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTemplateSpec: - """ + r""" Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims Attributes @@ -2815,7 +2815,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTem schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTemplateSpecDataSource: - """ + r""" dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. Attributes @@ -2837,7 +2837,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTem schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTemplateSpecDataSourceRef: - """ + r""" dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. Attributes @@ -2859,7 +2859,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTem schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTemplateSpecResources: - """ + r""" resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Attributes @@ -2882,7 +2882,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTem schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTemplateSpecSelector: - """ + r""" selector is a label query over volumes to consider for binding. Attributes @@ -2900,7 +2900,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTem schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTemplateSpecSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -2922,7 +2922,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTem schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTemplateStatus: - """ + r""" Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims Attributes @@ -2961,7 +2961,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTem schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTemplateStatusConditionsItems0: - """ + r""" PersistentVolumeClaimCondition contails details about state of pvc Attributes @@ -2995,7 +2995,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStatefulStorageVolumeClaimTem schema OperatorVictoriametricsComV1beta1VMAgentSpecStaticScrapeNamespaceSelector: - """ + r""" StaticScrapeNamespaceSelector defines Namespaces to be selected for VMStaticScrape discovery. Works in combination with NamespaceSelector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault Attributes @@ -3013,7 +3013,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStaticScrapeNamespaceSelector schema OperatorVictoriametricsComV1beta1VMAgentSpecStaticScrapeNamespaceSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -3035,7 +3035,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStaticScrapeNamespaceSelector schema OperatorVictoriametricsComV1beta1VMAgentSpecStaticScrapeRelabelTemplateItems0: - """ + r""" RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines ``-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs Attributes @@ -3093,7 +3093,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStaticScrapeRelabelTemplateIt schema OperatorVictoriametricsComV1beta1VMAgentSpecStaticScrapeSelector: - """ + r""" StaticScrapeSelector defines PodScrapes to be selected for target discovery. Works in combination with NamespaceSelector. If both nil - match everything. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. Attributes @@ -3111,7 +3111,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStaticScrapeSelector: schema OperatorVictoriametricsComV1beta1VMAgentSpecStaticScrapeSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -3133,7 +3133,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecStaticScrapeSelectorMatchExpr schema OperatorVictoriametricsComV1beta1VMAgentSpecTolerationsItems0: - """ + r""" The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . Attributes @@ -3163,7 +3163,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecTolerationsItems0: schema OperatorVictoriametricsComV1beta1VMAgentSpecVolumeMountsItems0: - """ + r""" VolumeMount describes a mounting of a Volume within a container. Attributes @@ -3197,7 +3197,7 @@ schema OperatorVictoriametricsComV1beta1VMAgentSpecVolumeMountsItems0: schema OperatorVictoriametricsComV1beta1VMAgentStatus: - """ + r""" VMAgentStatus defines the observed state of VMAgent Attributes diff --git a/pkg/kube_resource/generator/testdata/crd_check/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/pkg/kube_resource/generator/testdata/crd_check/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/pkg/kube_resource/generator/testdata/crd_check/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/pkg/kube_resource/generator/testdata/crd_check/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/crd_check/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/pkg/kube_resource/generator/testdata/crd_check/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/pkg/kube_resource/generator/testdata/crd_check/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/pkg/kube_resource/generator/testdata/crd_check/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/crd_check/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/pkg/kube_resource/generator/testdata/crd_check/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/pkg/kube_resource/generator/testdata/crd_check/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/pkg/kube_resource/generator/testdata/crd_check/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/crd_check/models/velero_io_v1_restore.k b/pkg/kube_resource/generator/testdata/crd_check/models/velero_io_v1_restore.k index 6ef305a..aaccba0 100644 --- a/pkg/kube_resource/generator/testdata/crd_check/models/velero_io_v1_restore.k +++ b/pkg/kube_resource/generator/testdata/crd_check/models/velero_io_v1_restore.k @@ -6,7 +6,7 @@ import k8s.apimachinery.pkg.apis.meta.v1 schema Restore: - """ + r""" Restore is a Velero resource that represents the application of resources from a Velero backup to a target Kubernetes cluster. Attributes @@ -36,7 +36,7 @@ schema Restore: schema VeleroIoV1RestoreSpec: - """ + r""" RestoreSpec defines the specification for a Velero restore. Attributes @@ -110,7 +110,7 @@ schema VeleroIoV1RestoreSpec: schema VeleroIoV1RestoreSpecHooks: - """ + r""" Hooks represent custom behaviors that should be executed during or post restore. Attributes @@ -124,7 +124,7 @@ schema VeleroIoV1RestoreSpecHooks: schema VeleroIoV1RestoreSpecHooksResourcesItems0: - """ + r""" RestoreResourceHookSpec defines one or more RestoreResrouceHooks that should be executed based on the rules defined for namespaces, resources, and label selector. Attributes @@ -162,7 +162,7 @@ schema VeleroIoV1RestoreSpecHooksResourcesItems0: schema VeleroIoV1RestoreSpecHooksResourcesItems0LabelSelector: - """ + r""" LabelSelector, if specified, filters the resources to which this hook spec applies. Attributes @@ -180,7 +180,7 @@ schema VeleroIoV1RestoreSpecHooksResourcesItems0LabelSelector: schema VeleroIoV1RestoreSpecHooksResourcesItems0LabelSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -202,7 +202,7 @@ schema VeleroIoV1RestoreSpecHooksResourcesItems0LabelSelectorMatchExpressionsIte schema VeleroIoV1RestoreSpecHooksResourcesItems0PostHooksItems0: - """ + r""" RestoreResourceHook defines a restore hook for a resource. Attributes @@ -220,7 +220,7 @@ schema VeleroIoV1RestoreSpecHooksResourcesItems0PostHooksItems0: schema VeleroIoV1RestoreSpecHooksResourcesItems0PostHooksItems0Exec: - """ + r""" Exec defines an exec restore hook. Attributes @@ -254,7 +254,7 @@ schema VeleroIoV1RestoreSpecHooksResourcesItems0PostHooksItems0Exec: schema VeleroIoV1RestoreSpecHooksResourcesItems0PostHooksItems0Init: - """ + r""" Init defines an init restore hook. Attributes @@ -272,7 +272,7 @@ schema VeleroIoV1RestoreSpecHooksResourcesItems0PostHooksItems0Init: schema VeleroIoV1RestoreSpecLabelSelector: - """ + r""" LabelSelector is a metav1.LabelSelector to filter with when restoring individual objects from the backup. If empty or nil, all objects are included. Optional. Attributes @@ -290,7 +290,7 @@ schema VeleroIoV1RestoreSpecLabelSelector: schema VeleroIoV1RestoreSpecLabelSelectorMatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -312,7 +312,7 @@ schema VeleroIoV1RestoreSpecLabelSelectorMatchExpressionsItems0: schema VeleroIoV1RestoreSpecOrLabelSelectorsItems0: - """ + r""" A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. Attributes @@ -330,7 +330,7 @@ schema VeleroIoV1RestoreSpecOrLabelSelectorsItems0: schema VeleroIoV1RestoreSpecOrLabelSelectorsItems0MatchExpressionsItems0: - """ + r""" A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. Attributes @@ -352,7 +352,7 @@ schema VeleroIoV1RestoreSpecOrLabelSelectorsItems0MatchExpressionsItems0: schema VeleroIoV1RestoreSpecRestoreStatus: - """ + r""" RestoreStatus specifies which resources we should restore the status field. If nil, no objects are included. Optional. Attributes @@ -370,7 +370,7 @@ schema VeleroIoV1RestoreSpecRestoreStatus: schema VeleroIoV1RestoreStatus: - """ + r""" RestoreStatus captures the current status of a Velero restore Attributes @@ -424,7 +424,7 @@ schema VeleroIoV1RestoreStatus: schema VeleroIoV1RestoreStatusProgress: - """ + r""" Progress contains information about the restore's execution progress. Note that this information is best-effort only -- if Velero fails to update it during a restore for any reason, it may be inaccurate/stale. Attributes diff --git a/pkg/kube_resource/generator/testdata/int_or_string_validation/models/crd_projectcalico_org_v1_global_network_policy.k b/pkg/kube_resource/generator/testdata/int_or_string_validation/models/crd_projectcalico_org_v1_global_network_policy.k index 4513423..073a666 100644 --- a/pkg/kube_resource/generator/testdata/int_or_string_validation/models/crd_projectcalico_org_v1_global_network_policy.k +++ b/pkg/kube_resource/generator/testdata/int_or_string_validation/models/crd_projectcalico_org_v1_global_network_policy.k @@ -8,7 +8,7 @@ _regex_match = regex.match schema GlobalNetworkPolicy: - """ + r""" crd projectcalico org v1 global network policy Attributes @@ -46,7 +46,7 @@ schema GlobalNetworkPolicy: schema CrdProjectcalicoOrgV1GlobalNetworkPolicyDestination: - """ + r""" Destination contains the match criteria that apply to destination entity. Attributes @@ -105,7 +105,7 @@ schema CrdProjectcalicoOrgV1GlobalNetworkPolicyDestination: schema CrdProjectcalicoOrgV1GlobalNetworkPolicyDestinationServiceAccounts: - """ + r""" ServiceAccounts is an optional field that restricts the rule to only apply to traffic that originates from (or terminates at) a pod running as a matching service account. Attributes @@ -123,7 +123,7 @@ schema CrdProjectcalicoOrgV1GlobalNetworkPolicyDestinationServiceAccounts: schema CrdProjectcalicoOrgV1GlobalNetworkPolicyDestinationServices: - """ + r""" Services is an optional field that contains options for matching Kubernetes Services. If specified, only traffic that originates from or terminates at endpoints within the selected service(s) will be matched, and only to/from each endpoint's port. Services cannot be specified on the same rule as Selector, NotSelector, NamespaceSelector, Nets, NotNets or ServiceAccounts. Ports and NotPorts can only be specified with Services on ingress rules. diff --git a/pkg/kube_resource/generator/testdata/int_or_string_validation/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/pkg/kube_resource/generator/testdata/int_or_string_validation/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/pkg/kube_resource/generator/testdata/int_or_string_validation/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/pkg/kube_resource/generator/testdata/int_or_string_validation/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/int_or_string_validation/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/pkg/kube_resource/generator/testdata/int_or_string_validation/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/pkg/kube_resource/generator/testdata/int_or_string_validation/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/pkg/kube_resource/generator/testdata/int_or_string_validation/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/int_or_string_validation/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/pkg/kube_resource/generator/testdata/int_or_string_validation/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/pkg/kube_resource/generator/testdata/int_or_string_validation/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/pkg/kube_resource/generator/testdata/int_or_string_validation/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/map_default_value/models/acid_zalan_do_v1_operator_configuration.k b/pkg/kube_resource/generator/testdata/map_default_value/models/acid_zalan_do_v1_operator_configuration.k index edbc842..dc724b4 100644 --- a/pkg/kube_resource/generator/testdata/map_default_value/models/acid_zalan_do_v1_operator_configuration.k +++ b/pkg/kube_resource/generator/testdata/map_default_value/models/acid_zalan_do_v1_operator_configuration.k @@ -8,7 +8,7 @@ _regex_match = regex.match schema OperatorConfiguration: - """ + r""" acid zalan do v1 operator configuration Attributes @@ -38,7 +38,7 @@ schema OperatorConfiguration: schema AcidZalanDoV1OperatorConfigurationConfiguration: - """ + r""" acid zalan do v1 operator configuration configuration Attributes @@ -190,7 +190,7 @@ schema AcidZalanDoV1OperatorConfigurationConfiguration: schema AcidZalanDoV1OperatorConfigurationConfigurationAwsOrGcp: - """ + r""" acid zalan do v1 operator configuration configuration aws or gcp Attributes @@ -244,7 +244,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationAwsOrGcp: schema AcidZalanDoV1OperatorConfigurationConfigurationConnectionPooler: - """ + r""" acid zalan do v1 operator configuration configuration connection pooler Attributes @@ -302,7 +302,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationConnectionPooler: schema AcidZalanDoV1OperatorConfigurationConfigurationDebug: - """ + r""" acid zalan do v1 operator configuration configuration debug Attributes @@ -320,7 +320,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationDebug: schema AcidZalanDoV1OperatorConfigurationConfigurationKubernetes: - """ + r""" acid zalan do v1 operator configuration configuration kubernetes Attributes @@ -510,7 +510,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationKubernetes: schema AcidZalanDoV1OperatorConfigurationConfigurationKubernetesInfrastructureRolesSecretsItems0: - """ + r""" acid zalan do v1 operator configuration configuration kubernetes infrastructure roles secrets items0 Attributes @@ -552,7 +552,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationKubernetesInfrastructureRo schema AcidZalanDoV1OperatorConfigurationConfigurationLoadBalancer: - """ + r""" acid zalan do v1 operator configuration configuration load balancer Attributes @@ -606,7 +606,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationLoadBalancer: schema AcidZalanDoV1OperatorConfigurationConfigurationLoggingRestAPI: - """ + r""" acid zalan do v1 operator configuration configuration logging rest API Attributes @@ -628,7 +628,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationLoggingRestAPI: schema AcidZalanDoV1OperatorConfigurationConfigurationLogicalBackup: - """ + r""" acid zalan do v1 operator configuration configuration logical backup Attributes @@ -722,7 +722,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationLogicalBackup: schema AcidZalanDoV1OperatorConfigurationConfigurationMajorVersionUpgrade: - """ + r""" acid zalan do v1 operator configuration configuration major version upgrade Attributes @@ -748,7 +748,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationMajorVersionUpgrade: schema AcidZalanDoV1OperatorConfigurationConfigurationPatroni: - """ + r""" acid zalan do v1 operator configuration configuration patroni Attributes @@ -762,7 +762,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationPatroni: schema AcidZalanDoV1OperatorConfigurationConfigurationPostgresPodResources: - """ + r""" acid zalan do v1 operator configuration configuration postgres pod resources Attributes @@ -815,7 +815,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationPostgresPodResources: schema AcidZalanDoV1OperatorConfigurationConfigurationScalyr: - """ + r""" acid zalan do v1 operator configuration configuration scalyr Attributes @@ -860,7 +860,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationScalyr: schema AcidZalanDoV1OperatorConfigurationConfigurationTeamsAPI: - """ + r""" acid zalan do v1 operator configuration configuration teams API Attributes @@ -926,7 +926,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationTeamsAPI: schema AcidZalanDoV1OperatorConfigurationConfigurationTimeouts: - """ + r""" acid zalan do v1 operator configuration configuration timeouts Attributes @@ -968,7 +968,7 @@ schema AcidZalanDoV1OperatorConfigurationConfigurationTimeouts: schema AcidZalanDoV1OperatorConfigurationConfigurationUsers: - """ + r""" acid zalan do v1 operator configuration configuration users Attributes diff --git a/pkg/kube_resource/generator/testdata/map_default_value/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/pkg/kube_resource/generator/testdata/map_default_value/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/pkg/kube_resource/generator/testdata/map_default_value/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/pkg/kube_resource/generator/testdata/map_default_value/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/map_default_value/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/pkg/kube_resource/generator/testdata/map_default_value/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/pkg/kube_resource/generator/testdata/map_default_value/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/pkg/kube_resource/generator/testdata/map_default_value/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/map_default_value/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/pkg/kube_resource/generator/testdata/map_default_value/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/pkg/kube_resource/generator/testdata/map_default_value/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/pkg/kube_resource/generator/testdata/map_default_value/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/min_and_max_validation/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/pkg/kube_resource/generator/testdata/min_and_max_validation/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/pkg/kube_resource/generator/testdata/min_and_max_validation/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/pkg/kube_resource/generator/testdata/min_and_max_validation/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/min_and_max_validation/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/pkg/kube_resource/generator/testdata/min_and_max_validation/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/pkg/kube_resource/generator/testdata/min_and_max_validation/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/pkg/kube_resource/generator/testdata/min_and_max_validation/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/min_and_max_validation/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/pkg/kube_resource/generator/testdata/min_and_max_validation/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/pkg/kube_resource/generator/testdata/min_and_max_validation/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/pkg/kube_resource/generator/testdata/min_and_max_validation/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/min_and_max_validation/models/networking_istio_io_v1_virtual_service.k b/pkg/kube_resource/generator/testdata/min_and_max_validation/models/networking_istio_io_v1_virtual_service.k index e9bdec8..461d46e 100644 --- a/pkg/kube_resource/generator/testdata/min_and_max_validation/models/networking_istio_io_v1_virtual_service.k +++ b/pkg/kube_resource/generator/testdata/min_and_max_validation/models/networking_istio_io_v1_virtual_service.k @@ -6,7 +6,7 @@ import k8s.apimachinery.pkg.apis.meta.v1 schema VirtualService: - """ + r""" networking istio io v1 virtual service Attributes @@ -36,7 +36,7 @@ schema VirtualService: schema NetworkingIstioIoV1VirtualServiceSpec: - """ + r""" Configuration affecting label/content routing, sni routing, etc. See more details at: https://istio.io/docs/reference/config/networking/virtual-service.html Attributes @@ -79,7 +79,7 @@ schema NetworkingIstioIoV1VirtualServiceSpec: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0: - """ + r""" networking istio io v1 virtual service spec HTTP items0 Attributes @@ -164,7 +164,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0CorsPolicy: - """ + r""" Cross-Origin Resource Sharing policy (CORS). Attributes @@ -208,7 +208,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0CorsPolicy: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0CorsPolicyAllowOriginsItems0: - """ + r""" networking istio io v1 virtual service spec HTTP items0 cors policy allow origins items0 Attributes @@ -230,7 +230,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0CorsPolicyAllowOriginsItem schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Delegate: - """ + r""" Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute. Attributes @@ -248,7 +248,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Delegate: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0DirectResponse: - """ + r""" A HTTP rule can either return a direct_response, redirect or forward (default) traffic. Attributes @@ -271,7 +271,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0DirectResponse: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0DirectResponseBody: - """ + r""" Specifies the content of the response body. Attributes @@ -289,7 +289,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0DirectResponseBody: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Fault: - """ + r""" Fault injection policy to apply on HTTP traffic at the client side. Attributes @@ -307,7 +307,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Fault: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0FaultAbort: - """ + r""" Abort Http request attempts and return error codes back to downstream service, giving the impression that the upstream service is faulty. Attributes @@ -333,7 +333,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0FaultAbort: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0FaultAbortPercentage: - """ + r""" Percentage of requests to be aborted with the error code provided. Attributes @@ -347,7 +347,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0FaultAbortPercentage: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0FaultDelay: - """ + r""" Delay requests before forwarding, emulating various failures such as network issues, overloaded upstream service, etc. Attributes @@ -373,7 +373,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0FaultDelay: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0FaultDelayPercentage: - """ + r""" Percentage of requests on which the delay will be injected. Attributes @@ -387,7 +387,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0FaultDelayPercentage: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Headers: - """ + r""" networking istio io v1 virtual service spec HTTP items0 headers Attributes @@ -405,7 +405,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Headers: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0HeadersRequest: - """ + r""" networking istio io v1 virtual service spec HTTP items0 headers request Attributes @@ -427,7 +427,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0HeadersRequest: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0HeadersResponse: - """ + r""" networking istio io v1 virtual service spec HTTP items0 headers response Attributes @@ -449,7 +449,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0HeadersResponse: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0: - """ + r""" networking istio io v1 virtual service spec HTTP items0 match items0 Attributes @@ -520,7 +520,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0Authority: - """ + r""" HTTP Authority values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). Attributes @@ -542,7 +542,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0Authority: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0HeadersAnon: - """ + r""" networking istio io v1 virtual service spec HTTP items0 match items0 headers anon Attributes @@ -564,7 +564,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0HeadersAnon: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0Method: - """ + r""" HTTP Method values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). Attributes @@ -586,7 +586,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0Method: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0QueryParamsAnon: - """ + r""" networking istio io v1 virtual service spec HTTP items0 match items0 query params anon Attributes @@ -608,7 +608,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0QueryParamsAnon schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0Scheme: - """ + r""" URI Scheme values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). Attributes @@ -630,7 +630,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0Scheme: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0URI: - """ + r""" URI to match values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). Attributes @@ -652,7 +652,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0URI: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0WithoutHeadersAnon: - """ + r""" networking istio io v1 virtual service spec HTTP items0 match items0 without headers anon Attributes @@ -674,7 +674,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MatchItems0WithoutHeadersA schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Mirror: - """ + r""" Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination. Attributes @@ -696,7 +696,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Mirror: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MirrorPercentage: - """ + r""" Percentage of the traffic to be mirrored by the `mirror` field. Attributes @@ -710,7 +710,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MirrorPercentage: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MirrorPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes @@ -729,7 +729,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MirrorPort: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MirrorsItems0: - """ + r""" networking istio io v1 virtual service spec HTTP items0 mirrors items0 Attributes @@ -747,7 +747,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MirrorsItems0: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MirrorsItems0Destination: - """ + r""" Destination specifies the target of the mirror operation. Attributes @@ -769,7 +769,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MirrorsItems0Destination: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MirrorsItems0DestinationPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes @@ -788,7 +788,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MirrorsItems0DestinationPo schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MirrorsItems0Percentage: - """ + r""" Percentage of the traffic to be mirrored by the `destination` field. Attributes @@ -802,7 +802,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0MirrorsItems0Percentage: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Redirect: - """ + r""" A HTTP rule can either return a direct_response, redirect or forward (default) traffic. Attributes @@ -845,7 +845,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Redirect: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Retries: - """ + r""" Retry policy for HTTP requests. Attributes @@ -871,7 +871,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Retries: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Rewrite: - """ + r""" Rewrite HTTP URIs and Authority headers. Attributes @@ -893,7 +893,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0Rewrite: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RewriteURIRegexRewrite: - """ + r""" rewrite the path portion of the URI with the specified regex. Attributes @@ -911,7 +911,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RewriteURIRegexRewrite: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RouteItems0: - """ + r""" networking istio io v1 virtual service spec HTTP items0 route items0 Attributes @@ -933,7 +933,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RouteItems0: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RouteItems0Destination: - """ + r""" Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to. Attributes @@ -955,7 +955,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RouteItems0Destination: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RouteItems0DestinationPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes @@ -974,7 +974,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RouteItems0DestinationPort schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RouteItems0Headers: - """ + r""" networking istio io v1 virtual service spec HTTP items0 route items0 headers Attributes @@ -992,7 +992,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RouteItems0Headers: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RouteItems0HeadersRequest: - """ + r""" networking istio io v1 virtual service spec HTTP items0 route items0 headers request Attributes @@ -1014,7 +1014,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RouteItems0HeadersRequest: schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RouteItems0HeadersResponse: - """ + r""" networking istio io v1 virtual service spec HTTP items0 route items0 headers response Attributes @@ -1036,7 +1036,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecHTTPItems0RouteItems0HeadersResponse schema NetworkingIstioIoV1VirtualServiceSpecTCPItems0: - """ + r""" networking istio io v1 virtual service spec TCP items0 Attributes @@ -1054,7 +1054,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecTCPItems0: schema NetworkingIstioIoV1VirtualServiceSpecTCPItems0MatchItems0: - """ + r""" networking istio io v1 virtual service spec TCP items0 match items0 Attributes @@ -1093,7 +1093,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecTCPItems0MatchItems0: schema NetworkingIstioIoV1VirtualServiceSpecTCPItems0RouteItems0: - """ + r""" networking istio io v1 virtual service spec TCP items0 route items0 Attributes @@ -1111,7 +1111,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecTCPItems0RouteItems0: schema NetworkingIstioIoV1VirtualServiceSpecTCPItems0RouteItems0Destination: - """ + r""" Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to. Attributes @@ -1133,7 +1133,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecTCPItems0RouteItems0Destination: schema NetworkingIstioIoV1VirtualServiceSpecTCPItems0RouteItems0DestinationPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes @@ -1152,7 +1152,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecTCPItems0RouteItems0DestinationPort: schema NetworkingIstioIoV1VirtualServiceSpecTLSItems0: - """ + r""" networking istio io v1 virtual service spec TLS items0 Attributes @@ -1170,7 +1170,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecTLSItems0: schema NetworkingIstioIoV1VirtualServiceSpecTLSItems0MatchItems0: - """ + r""" networking istio io v1 virtual service spec TLS items0 match items0 Attributes @@ -1209,7 +1209,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecTLSItems0MatchItems0: schema NetworkingIstioIoV1VirtualServiceSpecTLSItems0RouteItems0: - """ + r""" networking istio io v1 virtual service spec TLS items0 route items0 Attributes @@ -1227,7 +1227,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecTLSItems0RouteItems0: schema NetworkingIstioIoV1VirtualServiceSpecTLSItems0RouteItems0Destination: - """ + r""" Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to. Attributes @@ -1249,7 +1249,7 @@ schema NetworkingIstioIoV1VirtualServiceSpecTLSItems0RouteItems0Destination: schema NetworkingIstioIoV1VirtualServiceSpecTLSItems0RouteItems0DestinationPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes diff --git a/pkg/kube_resource/generator/testdata/min_and_max_validation/models/networking_istio_io_v1alpha3_virtual_service.k b/pkg/kube_resource/generator/testdata/min_and_max_validation/models/networking_istio_io_v1alpha3_virtual_service.k index 28a9fd5..8e7b9b8 100644 --- a/pkg/kube_resource/generator/testdata/min_and_max_validation/models/networking_istio_io_v1alpha3_virtual_service.k +++ b/pkg/kube_resource/generator/testdata/min_and_max_validation/models/networking_istio_io_v1alpha3_virtual_service.k @@ -6,7 +6,7 @@ import k8s.apimachinery.pkg.apis.meta.v1 schema VirtualService: - """ + r""" networking istio io v1alpha3 virtual service Attributes @@ -36,7 +36,7 @@ schema VirtualService: schema NetworkingIstioIoV1alpha3VirtualServiceSpec: - """ + r""" Configuration affecting label/content routing, sni routing, etc. See more details at: https://istio.io/docs/reference/config/networking/virtual-service.html Attributes @@ -70,7 +70,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpec: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 Attributes @@ -155,7 +155,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0CorsPolicy: - """ + r""" Cross-Origin Resource Sharing policy (CORS). Attributes @@ -199,7 +199,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0CorsPolicy: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0CorsPolicyAllowOriginsItems0: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 cors policy allow origins items0 Attributes @@ -221,7 +221,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0CorsPolicyAllowOrigi schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Delegate: - """ + r""" Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute. Attributes @@ -239,7 +239,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Delegate: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0DirectResponse: - """ + r""" A HTTP rule can either return a direct_response, redirect or forward (default) traffic. Attributes @@ -262,7 +262,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0DirectResponse: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0DirectResponseBody: - """ + r""" Specifies the content of the response body. Attributes @@ -280,7 +280,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0DirectResponseBody: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Fault: - """ + r""" Fault injection policy to apply on HTTP traffic at the client side. Attributes @@ -298,7 +298,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Fault: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0FaultAbort: - """ + r""" Abort Http request attempts and return error codes back to downstream service, giving the impression that the upstream service is faulty. Attributes @@ -324,7 +324,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0FaultAbort: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0FaultAbortPercentage: - """ + r""" Percentage of requests to be aborted with the error code provided. Attributes @@ -338,7 +338,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0FaultAbortPercentage schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0FaultDelay: - """ + r""" Delay requests before forwarding, emulating various failures such as network issues, overloaded upstream service, etc. Attributes @@ -364,7 +364,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0FaultDelay: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0FaultDelayPercentage: - """ + r""" Percentage of requests on which the delay will be injected. Attributes @@ -378,7 +378,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0FaultDelayPercentage schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Headers: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 headers Attributes @@ -396,7 +396,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Headers: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0HeadersRequest: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 headers request Attributes @@ -418,7 +418,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0HeadersRequest: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0HeadersResponse: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 headers response Attributes @@ -440,7 +440,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0HeadersResponse: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 match items0 Attributes @@ -511,7 +511,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0Authority: - """ + r""" HTTP Authority values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). Attributes @@ -533,7 +533,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0Authority schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0HeadersAnon: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 match items0 headers anon Attributes @@ -555,7 +555,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0HeadersAn schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0Method: - """ + r""" HTTP Method values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). Attributes @@ -577,7 +577,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0Method: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0QueryParamsAnon: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 match items0 query params anon Attributes @@ -599,7 +599,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0QueryPara schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0Scheme: - """ + r""" URI Scheme values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). Attributes @@ -621,7 +621,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0Scheme: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0URI: - """ + r""" URI to match values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). Attributes @@ -643,7 +643,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0URI: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0WithoutHeadersAnon: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 match items0 without headers anon Attributes @@ -665,7 +665,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MatchItems0WithoutHe schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Mirror: - """ + r""" Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination. Attributes @@ -687,7 +687,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Mirror: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MirrorPercentage: - """ + r""" Percentage of the traffic to be mirrored by the `mirror` field. Attributes @@ -701,7 +701,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MirrorPercentage: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MirrorPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes @@ -720,7 +720,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MirrorPort: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MirrorsItems0: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 mirrors items0 Attributes @@ -738,7 +738,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MirrorsItems0: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MirrorsItems0Destination: - """ + r""" Destination specifies the target of the mirror operation. Attributes @@ -760,7 +760,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MirrorsItems0Destina schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MirrorsItems0DestinationPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes @@ -779,7 +779,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MirrorsItems0Destina schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MirrorsItems0Percentage: - """ + r""" Percentage of the traffic to be mirrored by the `destination` field. Attributes @@ -793,7 +793,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0MirrorsItems0Percent schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Redirect: - """ + r""" A HTTP rule can either return a direct_response, redirect or forward (default) traffic. Attributes @@ -836,7 +836,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Redirect: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Retries: - """ + r""" Retry policy for HTTP requests. Attributes @@ -862,7 +862,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Retries: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Rewrite: - """ + r""" Rewrite HTTP URIs and Authority headers. Attributes @@ -884,7 +884,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0Rewrite: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RewriteURIRegexRewrite: - """ + r""" rewrite the path portion of the URI with the specified regex. Attributes @@ -902,7 +902,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RewriteURIRegexRewri schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RouteItems0: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 route items0 Attributes @@ -924,7 +924,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RouteItems0: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RouteItems0Destination: - """ + r""" Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to. Attributes @@ -946,7 +946,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RouteItems0Destinati schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RouteItems0DestinationPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes @@ -965,7 +965,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RouteItems0Destinati schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RouteItems0Headers: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 route items0 headers Attributes @@ -983,7 +983,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RouteItems0Headers: schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RouteItems0HeadersRequest: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 route items0 headers request Attributes @@ -1005,7 +1005,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RouteItems0HeadersRe schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RouteItems0HeadersResponse: - """ + r""" networking istio io v1alpha3 virtual service spec HTTP items0 route items0 headers response Attributes @@ -1027,7 +1027,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecHTTPItems0RouteItems0HeadersRe schema NetworkingIstioIoV1alpha3VirtualServiceSpecTCPItems0: - """ + r""" networking istio io v1alpha3 virtual service spec TCP items0 Attributes @@ -1045,7 +1045,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecTCPItems0: schema NetworkingIstioIoV1alpha3VirtualServiceSpecTCPItems0MatchItems0: - """ + r""" networking istio io v1alpha3 virtual service spec TCP items0 match items0 Attributes @@ -1084,7 +1084,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecTCPItems0MatchItems0: schema NetworkingIstioIoV1alpha3VirtualServiceSpecTCPItems0RouteItems0: - """ + r""" networking istio io v1alpha3 virtual service spec TCP items0 route items0 Attributes @@ -1102,7 +1102,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecTCPItems0RouteItems0: schema NetworkingIstioIoV1alpha3VirtualServiceSpecTCPItems0RouteItems0Destination: - """ + r""" Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to. Attributes @@ -1124,7 +1124,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecTCPItems0RouteItems0Destinatio schema NetworkingIstioIoV1alpha3VirtualServiceSpecTCPItems0RouteItems0DestinationPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes @@ -1143,7 +1143,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecTCPItems0RouteItems0Destinatio schema NetworkingIstioIoV1alpha3VirtualServiceSpecTLSItems0: - """ + r""" networking istio io v1alpha3 virtual service spec TLS items0 Attributes @@ -1161,7 +1161,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecTLSItems0: schema NetworkingIstioIoV1alpha3VirtualServiceSpecTLSItems0MatchItems0: - """ + r""" networking istio io v1alpha3 virtual service spec TLS items0 match items0 Attributes @@ -1200,7 +1200,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecTLSItems0MatchItems0: schema NetworkingIstioIoV1alpha3VirtualServiceSpecTLSItems0RouteItems0: - """ + r""" networking istio io v1alpha3 virtual service spec TLS items0 route items0 Attributes @@ -1218,7 +1218,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecTLSItems0RouteItems0: schema NetworkingIstioIoV1alpha3VirtualServiceSpecTLSItems0RouteItems0Destination: - """ + r""" Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to. Attributes @@ -1240,7 +1240,7 @@ schema NetworkingIstioIoV1alpha3VirtualServiceSpecTLSItems0RouteItems0Destinatio schema NetworkingIstioIoV1alpha3VirtualServiceSpecTLSItems0RouteItems0DestinationPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes diff --git a/pkg/kube_resource/generator/testdata/min_and_max_validation/models/networking_istio_io_v1beta1_virtual_service.k b/pkg/kube_resource/generator/testdata/min_and_max_validation/models/networking_istio_io_v1beta1_virtual_service.k index b686ebb..cd8d76e 100644 --- a/pkg/kube_resource/generator/testdata/min_and_max_validation/models/networking_istio_io_v1beta1_virtual_service.k +++ b/pkg/kube_resource/generator/testdata/min_and_max_validation/models/networking_istio_io_v1beta1_virtual_service.k @@ -6,7 +6,7 @@ import k8s.apimachinery.pkg.apis.meta.v1 schema VirtualService: - """ + r""" networking istio io v1beta1 virtual service Attributes @@ -36,7 +36,7 @@ schema VirtualService: schema NetworkingIstioIoV1beta1VirtualServiceSpec: - """ + r""" Configuration affecting label/content routing, sni routing, etc. See more details at: https://istio.io/docs/reference/config/networking/virtual-service.html Attributes @@ -70,7 +70,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpec: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 Attributes @@ -155,7 +155,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0CorsPolicy: - """ + r""" Cross-Origin Resource Sharing policy (CORS). Attributes @@ -199,7 +199,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0CorsPolicy: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0CorsPolicyAllowOriginsItems0: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 cors policy allow origins items0 Attributes @@ -221,7 +221,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0CorsPolicyAllowOrigin schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Delegate: - """ + r""" Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute. Attributes @@ -239,7 +239,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Delegate: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0DirectResponse: - """ + r""" A HTTP rule can either return a direct_response, redirect or forward (default) traffic. Attributes @@ -262,7 +262,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0DirectResponse: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0DirectResponseBody: - """ + r""" Specifies the content of the response body. Attributes @@ -280,7 +280,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0DirectResponseBody: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Fault: - """ + r""" Fault injection policy to apply on HTTP traffic at the client side. Attributes @@ -298,7 +298,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Fault: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0FaultAbort: - """ + r""" Abort Http request attempts and return error codes back to downstream service, giving the impression that the upstream service is faulty. Attributes @@ -324,7 +324,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0FaultAbort: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0FaultAbortPercentage: - """ + r""" Percentage of requests to be aborted with the error code provided. Attributes @@ -338,7 +338,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0FaultAbortPercentage: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0FaultDelay: - """ + r""" Delay requests before forwarding, emulating various failures such as network issues, overloaded upstream service, etc. Attributes @@ -364,7 +364,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0FaultDelay: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0FaultDelayPercentage: - """ + r""" Percentage of requests on which the delay will be injected. Attributes @@ -378,7 +378,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0FaultDelayPercentage: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Headers: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 headers Attributes @@ -396,7 +396,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Headers: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0HeadersRequest: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 headers request Attributes @@ -418,7 +418,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0HeadersRequest: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0HeadersResponse: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 headers response Attributes @@ -440,7 +440,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0HeadersResponse: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 match items0 Attributes @@ -511,7 +511,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0Authority: - """ + r""" HTTP Authority values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). Attributes @@ -533,7 +533,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0Authority: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0HeadersAnon: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 match items0 headers anon Attributes @@ -555,7 +555,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0HeadersAno schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0Method: - """ + r""" HTTP Method values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). Attributes @@ -577,7 +577,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0Method: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0QueryParamsAnon: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 match items0 query params anon Attributes @@ -599,7 +599,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0QueryParam schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0Scheme: - """ + r""" URI Scheme values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). Attributes @@ -621,7 +621,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0Scheme: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0URI: - """ + r""" URI to match values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). Attributes @@ -643,7 +643,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0URI: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0WithoutHeadersAnon: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 match items0 without headers anon Attributes @@ -665,7 +665,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MatchItems0WithoutHea schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Mirror: - """ + r""" Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination. Attributes @@ -687,7 +687,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Mirror: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MirrorPercentage: - """ + r""" Percentage of the traffic to be mirrored by the `mirror` field. Attributes @@ -701,7 +701,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MirrorPercentage: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MirrorPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes @@ -720,7 +720,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MirrorPort: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MirrorsItems0: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 mirrors items0 Attributes @@ -738,7 +738,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MirrorsItems0: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MirrorsItems0Destination: - """ + r""" Destination specifies the target of the mirror operation. Attributes @@ -760,7 +760,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MirrorsItems0Destinat schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MirrorsItems0DestinationPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes @@ -779,7 +779,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MirrorsItems0Destinat schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MirrorsItems0Percentage: - """ + r""" Percentage of the traffic to be mirrored by the `destination` field. Attributes @@ -793,7 +793,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0MirrorsItems0Percenta schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Redirect: - """ + r""" A HTTP rule can either return a direct_response, redirect or forward (default) traffic. Attributes @@ -836,7 +836,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Redirect: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Retries: - """ + r""" Retry policy for HTTP requests. Attributes @@ -862,7 +862,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Retries: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Rewrite: - """ + r""" Rewrite HTTP URIs and Authority headers. Attributes @@ -884,7 +884,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0Rewrite: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RewriteURIRegexRewrite: - """ + r""" rewrite the path portion of the URI with the specified regex. Attributes @@ -902,7 +902,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RewriteURIRegexRewrit schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RouteItems0: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 route items0 Attributes @@ -924,7 +924,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RouteItems0: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RouteItems0Destination: - """ + r""" Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to. Attributes @@ -946,7 +946,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RouteItems0Destinatio schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RouteItems0DestinationPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes @@ -965,7 +965,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RouteItems0Destinatio schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RouteItems0Headers: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 route items0 headers Attributes @@ -983,7 +983,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RouteItems0Headers: schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RouteItems0HeadersRequest: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 route items0 headers request Attributes @@ -1005,7 +1005,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RouteItems0HeadersReq schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RouteItems0HeadersResponse: - """ + r""" networking istio io v1beta1 virtual service spec HTTP items0 route items0 headers response Attributes @@ -1027,7 +1027,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecHTTPItems0RouteItems0HeadersRes schema NetworkingIstioIoV1beta1VirtualServiceSpecTCPItems0: - """ + r""" networking istio io v1beta1 virtual service spec TCP items0 Attributes @@ -1045,7 +1045,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecTCPItems0: schema NetworkingIstioIoV1beta1VirtualServiceSpecTCPItems0MatchItems0: - """ + r""" networking istio io v1beta1 virtual service spec TCP items0 match items0 Attributes @@ -1084,7 +1084,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecTCPItems0MatchItems0: schema NetworkingIstioIoV1beta1VirtualServiceSpecTCPItems0RouteItems0: - """ + r""" networking istio io v1beta1 virtual service spec TCP items0 route items0 Attributes @@ -1102,7 +1102,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecTCPItems0RouteItems0: schema NetworkingIstioIoV1beta1VirtualServiceSpecTCPItems0RouteItems0Destination: - """ + r""" Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to. Attributes @@ -1124,7 +1124,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecTCPItems0RouteItems0Destination schema NetworkingIstioIoV1beta1VirtualServiceSpecTCPItems0RouteItems0DestinationPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes @@ -1143,7 +1143,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecTCPItems0RouteItems0Destination schema NetworkingIstioIoV1beta1VirtualServiceSpecTLSItems0: - """ + r""" networking istio io v1beta1 virtual service spec TLS items0 Attributes @@ -1161,7 +1161,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecTLSItems0: schema NetworkingIstioIoV1beta1VirtualServiceSpecTLSItems0MatchItems0: - """ + r""" networking istio io v1beta1 virtual service spec TLS items0 match items0 Attributes @@ -1200,7 +1200,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecTLSItems0MatchItems0: schema NetworkingIstioIoV1beta1VirtualServiceSpecTLSItems0RouteItems0: - """ + r""" networking istio io v1beta1 virtual service spec TLS items0 route items0 Attributes @@ -1218,7 +1218,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecTLSItems0RouteItems0: schema NetworkingIstioIoV1beta1VirtualServiceSpecTLSItems0RouteItems0Destination: - """ + r""" Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to. Attributes @@ -1240,7 +1240,7 @@ schema NetworkingIstioIoV1beta1VirtualServiceSpecTLSItems0RouteItems0Destination schema NetworkingIstioIoV1beta1VirtualServiceSpecTLSItems0RouteItems0DestinationPort: - """ + r""" Specifies the port on the host that is being addressed. Attributes diff --git a/pkg/kube_resource/generator/testdata/muti_models/models/core_oam_dev_v1alpha2_containerized_workload.k b/pkg/kube_resource/generator/testdata/muti_models/models/core_oam_dev_v1alpha2_containerized_workload.k index cffa465..20d7dd7 100644 --- a/pkg/kube_resource/generator/testdata/muti_models/models/core_oam_dev_v1alpha2_containerized_workload.k +++ b/pkg/kube_resource/generator/testdata/muti_models/models/core_oam_dev_v1alpha2_containerized_workload.k @@ -8,7 +8,7 @@ _regex_match = regex.match schema ContainerizedWorkload: - """ + r""" A ContainerizedWorkload is a workload that runs OCI containers. Attributes @@ -38,7 +38,7 @@ schema ContainerizedWorkload: schema CoreOamDevV1alpha2ContainerizedWorkloadSpec: - """ + r""" A ContainerizedWorkloadSpec defines the desired state of a ContainerizedWorkload. Attributes @@ -60,7 +60,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpec: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0: - """ + r""" A Container represents an Open Containers Initiative (OCI) container. Attributes @@ -114,7 +114,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ConfigItems0: - """ + r""" A ContainerConfigFile specifies a configuration file that should be written within a container. Attributes @@ -132,7 +132,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ConfigItems0: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0EnvItems0: - """ + r""" A ContainerEnvVar specifies an environment variable that should be set within a container. Attributes @@ -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 @@ -196,7 +196,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbe: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeExec: - """ + r""" Exec probes a container's health by executing a command. Attributes @@ -210,7 +210,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeE schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeHTTPGet: - """ + r""" HTTPGet probes a container's health by sending an HTTP GET request. Attributes @@ -232,7 +232,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeH schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeHTTPGetHTTPHeadersItems0: - """ + r""" A HTTPHeader to be passed when probing a container. Attributes @@ -250,7 +250,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeH schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeTCPSocket: - """ + r""" TCPSocketProbe probes a container's health by connecting to a TCP socket. Attributes @@ -264,7 +264,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0LivenessProbeT schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0PortsItems0: - """ + r""" A ContainerPort specifies a port that is exposed by a container. Attributes @@ -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 @@ -332,7 +332,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbe: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeExec: - """ + r""" Exec probes a container's health by executing a command. Attributes @@ -346,7 +346,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeE schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeHTTPGet: - """ + r""" HTTPGet probes a container's health by sending an HTTP GET request. Attributes @@ -368,7 +368,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeH schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeHTTPGetHTTPHeadersItems0: - """ + r""" A HTTPHeader to be passed when probing a container. Attributes @@ -386,7 +386,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeH schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeTCPSocket: - """ + r""" TCPSocketProbe probes a container's health by connecting to a TCP socket. Attributes @@ -400,7 +400,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ReadiessProbeT schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0Resources: - """ + r""" Resources required by this container Attributes @@ -430,7 +430,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0Resources: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesCPU: - """ + r""" CPU required by this container. Attributes @@ -444,7 +444,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesCPU: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesExtendedItems0: - """ + r""" ExtendedResource required by a container. Attributes @@ -462,7 +462,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesExten schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesGpu: - """ + r""" GPU required by this container. Attributes @@ -476,7 +476,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesGpu: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesMemory: - """ + r""" Memory required by this container. Attributes @@ -490,7 +490,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesMemor schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesVolumesItems0: - """ + r""" VolumeResource required by a container. Attributes @@ -520,7 +520,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesVolum schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesVolumesItems0Disk: - """ + r""" Disk requirements of this volume. Attributes @@ -538,7 +538,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpecContainersItems0ResourcesVolum schema CoreOamDevV1alpha2ContainerizedWorkloadStatus: - """ + r""" A ContainerizedWorkloadStatus represents the observed state of a ContainerizedWorkload. Attributes @@ -556,7 +556,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadStatus: schema CoreOamDevV1alpha2ContainerizedWorkloadStatusConditionsItems0: - """ + r""" A Condition that may apply to a resource. Attributes @@ -586,7 +586,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadStatusConditionsItems0: schema CoreOamDevV1alpha2ContainerizedWorkloadStatusResourcesItems0: - """ + r""" A ResourceReference refers to an resource managed by an OAM resource. Attributes diff --git a/pkg/kube_resource/generator/testdata/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/pkg/kube_resource/generator/testdata/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/pkg/kube_resource/generator/testdata/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/pkg/kube_resource/generator/testdata/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/pkg/kube_resource/generator/testdata/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/pkg/kube_resource/generator/testdata/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/pkg/kube_resource/generator/testdata/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/pkg/kube_resource/generator/testdata/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/pkg/kube_resource/generator/testdata/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/pkg/kube_resource/generator/testdata/muti_models/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/pkg/kube_resource/generator/testdata/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/pkg/kube_resource/generator/testdata/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/pkg/kube_resource/generator/testdata/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/pkg/kube_resource/generator/testdata/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/pkg/kube_resource/generator/testdata/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/pkg/kube_resource/generator/testdata/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/pkg/kube_resource/generator/testdata/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/pkg/kube_resource/generator/testdata/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/pkg/kube_resource/generator/testdata/single_model/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/single_model/models/stable_example_com_v1_cron_tab.k b/pkg/kube_resource/generator/testdata/single_model/models/stable_example_com_v1_cron_tab.k index b8d095d..1eda32b 100644 --- a/pkg/kube_resource/generator/testdata/single_model/models/stable_example_com_v1_cron_tab.k +++ b/pkg/kube_resource/generator/testdata/single_model/models/stable_example_com_v1_cron_tab.k @@ -6,7 +6,7 @@ import k8s.apimachinery.pkg.apis.meta.v1 schema CronTab: - """ + r""" stable example com v1 cron tab Attributes @@ -32,7 +32,7 @@ schema CronTab: schema StableExampleComV1CronTabSpec: - """ + r""" stable example com v1 cron tab spec Attributes diff --git a/pkg/kube_resource/generator/testdata/union_type/models/core_oam_dev_v1alpha2_containerized_workload.k b/pkg/kube_resource/generator/testdata/union_type/models/core_oam_dev_v1alpha2_containerized_workload.k index 17bf42a..9d006f2 100644 --- a/pkg/kube_resource/generator/testdata/union_type/models/core_oam_dev_v1alpha2_containerized_workload.k +++ b/pkg/kube_resource/generator/testdata/union_type/models/core_oam_dev_v1alpha2_containerized_workload.k @@ -6,7 +6,7 @@ import k8s.apimachinery.pkg.apis.meta.v1 schema ContainerizedWorkload: - """ + r""" A ContainerizedWorkload is a workload that runs OCI containers. Attributes @@ -32,7 +32,7 @@ schema ContainerizedWorkload: schema CoreOamDevV1alpha2ContainerizedWorkloadSpec: - """ + r""" A ContainerizedWorkloadSpec defines the desired state of a ContainerizedWorkload. Attributes @@ -46,7 +46,7 @@ schema CoreOamDevV1alpha2ContainerizedWorkloadSpec: schema CoreOamDevV1alpha2ContainerizedWorkloadSpecSocket: - """ + r""" core oam dev v1alpha2 containerized workload spec socket Attributes diff --git a/pkg/kube_resource/generator/testdata/union_type/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/pkg/kube_resource/generator/testdata/union_type/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/pkg/kube_resource/generator/testdata/union_type/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/pkg/kube_resource/generator/testdata/union_type/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/union_type/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/pkg/kube_resource/generator/testdata/union_type/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/pkg/kube_resource/generator/testdata/union_type/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/pkg/kube_resource/generator/testdata/union_type/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/union_type/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/pkg/kube_resource/generator/testdata/union_type/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/pkg/kube_resource/generator/testdata/union_type/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/pkg/kube_resource/generator/testdata/union_type/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/v1_crd/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/pkg/kube_resource/generator/testdata/v1_crd/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/pkg/kube_resource/generator/testdata/v1_crd/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/pkg/kube_resource/generator/testdata/v1_crd/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/v1_crd/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/pkg/kube_resource/generator/testdata/v1_crd/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/pkg/kube_resource/generator/testdata/v1_crd/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/pkg/kube_resource/generator/testdata/v1_crd/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/v1_crd/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/pkg/kube_resource/generator/testdata/v1_crd/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/pkg/kube_resource/generator/testdata/v1_crd/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/pkg/kube_resource/generator/testdata/v1_crd/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/v1_crd/models/stable_example_com_v1_cron_tab.k b/pkg/kube_resource/generator/testdata/v1_crd/models/stable_example_com_v1_cron_tab.k index b8d095d..1eda32b 100644 --- a/pkg/kube_resource/generator/testdata/v1_crd/models/stable_example_com_v1_cron_tab.k +++ b/pkg/kube_resource/generator/testdata/v1_crd/models/stable_example_com_v1_cron_tab.k @@ -6,7 +6,7 @@ import k8s.apimachinery.pkg.apis.meta.v1 schema CronTab: - """ + r""" stable example com v1 cron tab Attributes @@ -32,7 +32,7 @@ schema CronTab: schema StableExampleComV1CronTabSpec: - """ + r""" stable example com v1 cron tab spec Attributes diff --git a/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/external_secrets_io_v1alpha1_external_secret.k b/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/external_secrets_io_v1alpha1_external_secret.k index cf2dee4..b1d2ef6 100644 --- a/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/external_secrets_io_v1alpha1_external_secret.k +++ b/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/external_secrets_io_v1alpha1_external_secret.k @@ -6,7 +6,7 @@ import k8s.apimachinery.pkg.apis.meta.v1 schema ExternalSecret: - """ + r""" ExternalSecret is the Schema for the external-secrets API. Attributes @@ -36,7 +36,7 @@ schema ExternalSecret: schema ExternalSecretsIoV1alpha1ExternalSecretSpec: - """ + r""" ExternalSecretSpec defines the desired state of ExternalSecret. Attributes @@ -66,7 +66,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretSpec: schema ExternalSecretsIoV1alpha1ExternalSecretSpecDataFromItems0: - """ + r""" ExternalSecretDataRemoteRef defines Provider data location. Attributes @@ -92,7 +92,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretSpecDataFromItems0: schema ExternalSecretsIoV1alpha1ExternalSecretSpecDataItems0: - """ + r""" ExternalSecretData defines the connection between the Kubernetes Secret key (spec.data.) and the Provider data. Attributes @@ -110,7 +110,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretSpecDataItems0: schema ExternalSecretsIoV1alpha1ExternalSecretSpecDataItems0RemoteRef: - """ + r""" ExternalSecretDataRemoteRef defines Provider data location. Attributes @@ -136,7 +136,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretSpecDataItems0RemoteRef: schema ExternalSecretsIoV1alpha1ExternalSecretSpecSecretStoreRef: - """ + r""" SecretStoreRef defines which SecretStore to fetch the ExternalSecret data. Attributes @@ -154,7 +154,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretSpecSecretStoreRef: schema ExternalSecretsIoV1alpha1ExternalSecretSpecTarget: - """ + r""" ExternalSecretTarget defines the Kubernetes Secret to be created There can be only one target per ExternalSecret. Attributes @@ -180,7 +180,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretSpecTarget: schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplate: - """ + r""" Template defines a blueprint for the created Secret resource. Attributes @@ -210,7 +210,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplate: schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplateMetadata: - """ + r""" ExternalSecretTemplateMetadata defines metadata fields for the Secret blueprint. Attributes @@ -228,7 +228,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplateMetadata: schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplateTemplateFromItems0: - """ + r""" external secrets io v1alpha1 external secret spec target template template from items0 Attributes @@ -246,7 +246,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplateTemplateFromItem schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplateTemplateFromItems0ConfigMap: - """ + r""" external secrets io v1alpha1 external secret spec target template template from items0 config map Attributes @@ -264,7 +264,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplateTemplateFromItem schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplateTemplateFromItems0ConfigMapItemsItems0: - """ + r""" external secrets io v1alpha1 external secret spec target template template from items0 config map items items0 Attributes @@ -278,7 +278,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplateTemplateFromItem schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplateTemplateFromItems0Secret: - """ + r""" external secrets io v1alpha1 external secret spec target template template from items0 secret Attributes @@ -296,7 +296,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplateTemplateFromItem schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplateTemplateFromItems0SecretItemsItems0: - """ + r""" external secrets io v1alpha1 external secret spec target template template from items0 secret items items0 Attributes @@ -310,7 +310,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretSpecTargetTemplateTemplateFromItem schema ExternalSecretsIoV1alpha1ExternalSecretStatus: - """ + r""" external secrets io v1alpha1 external secret status Attributes @@ -336,7 +336,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretStatus: schema ExternalSecretsIoV1alpha1ExternalSecretStatusBinding: - """ + r""" Binding represents a servicebinding.io Provisioned Service reference to the secret Attributes @@ -350,7 +350,7 @@ schema ExternalSecretsIoV1alpha1ExternalSecretStatusBinding: schema ExternalSecretsIoV1alpha1ExternalSecretStatusConditionsItems0: - """ + r""" external secrets io v1alpha1 external secret status conditions items0 Attributes diff --git a/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/external_secrets_io_v1beta1_external_secret.k b/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/external_secrets_io_v1beta1_external_secret.k index 502d541..1a60c06 100644 --- a/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/external_secrets_io_v1beta1_external_secret.k +++ b/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/external_secrets_io_v1beta1_external_secret.k @@ -6,7 +6,7 @@ import k8s.apimachinery.pkg.apis.meta.v1 schema ExternalSecret: - """ + r""" ExternalSecret is the Schema for the external-secrets API. Attributes @@ -36,7 +36,7 @@ schema ExternalSecret: schema ExternalSecretsIoV1beta1ExternalSecretSpec: - """ + r""" ExternalSecretSpec defines the desired state of ExternalSecret. Attributes @@ -66,7 +66,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpec: schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0: - """ + r""" external secrets io v1beta1 external secret spec data from items0 Attributes @@ -92,7 +92,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0: schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0Extract: - """ + r""" Used to extract multiple key/value pairs from one secret Note: Extract does not support sourceRef.Generator or sourceRef.GeneratorRef. Attributes @@ -126,7 +126,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0Extract: schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0Find: - """ + r""" Used to find secrets based on tags or regular expressions Note: Find does not support sourceRef.Generator or sourceRef.GeneratorRef. Attributes @@ -156,7 +156,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0Find: schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0FindName: - """ + r""" Finds secrets based on the name. Attributes @@ -170,7 +170,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0FindName: schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0RewriteItems0: - """ + r""" external secrets io v1beta1 external secret spec data from items0 rewrite items0 Attributes @@ -188,7 +188,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0RewriteItems0: schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0RewriteItems0Regexp: - """ + r""" Used to rewrite with regular expressions. The resulting key will be the output of a regexp.ReplaceAll operation. Attributes @@ -206,7 +206,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0RewriteItems0Rege schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0RewriteItems0Transform: - """ + r""" Used to apply string transformation on the secrets. The resulting key will be the output of the template applied by the operation. Attributes @@ -220,7 +220,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0RewriteItems0Tran schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0SourceRef: - """ + r""" SourceRef points to a store or generator which contains secret values ready to use. Use this in combination with Extract or Find pull values out of a specific SecretStore. When sourceRef points to a generator Extract or Find is not supported. The generator returns a static map of values Attributes @@ -238,7 +238,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0SourceRef: schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0SourceRefGeneratorRef: - """ + r""" GeneratorRef points to a generator custom resource in Attributes @@ -260,7 +260,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0SourceRefGenerato schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0SourceRefStoreRef: - """ + r""" SecretStoreRef defines which SecretStore to fetch the ExternalSecret data. Attributes @@ -278,7 +278,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataFromItems0SourceRefStoreRef schema ExternalSecretsIoV1beta1ExternalSecretSpecDataItems0: - """ + r""" ExternalSecretData defines the connection between the Kubernetes Secret key (spec.data.) and the Provider data. Attributes @@ -300,7 +300,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataItems0: schema ExternalSecretsIoV1beta1ExternalSecretSpecDataItems0RemoteRef: - """ + r""" RemoteRef points to the remote secret and defines which secret (version/property/..) to fetch. Attributes @@ -334,7 +334,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataItems0RemoteRef: schema ExternalSecretsIoV1beta1ExternalSecretSpecDataItems0SourceRef: - """ + r""" SourceRef allows you to override the source from which the value will pulled from. Attributes @@ -352,7 +352,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataItems0SourceRef: schema ExternalSecretsIoV1beta1ExternalSecretSpecDataItems0SourceRefGeneratorRef: - """ + r""" GeneratorRef points to a generator custom resource in Attributes @@ -374,7 +374,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataItems0SourceRefGeneratorRef schema ExternalSecretsIoV1beta1ExternalSecretSpecDataItems0SourceRefStoreRef: - """ + r""" SecretStoreRef defines which SecretStore to fetch the ExternalSecret data. Attributes @@ -392,7 +392,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecDataItems0SourceRefStoreRef: schema ExternalSecretsIoV1beta1ExternalSecretSpecSecretStoreRef: - """ + r""" SecretStoreRef defines which SecretStore to fetch the ExternalSecret data. Attributes @@ -410,7 +410,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecSecretStoreRef: schema ExternalSecretsIoV1beta1ExternalSecretSpecTarget: - """ + r""" ExternalSecretTarget defines the Kubernetes Secret to be created There can be only one target per ExternalSecret. Attributes @@ -440,7 +440,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecTarget: schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplate: - """ + r""" Template defines a blueprint for the created Secret resource. Attributes @@ -474,7 +474,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplate: schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplateMetadata: - """ + r""" ExternalSecretTemplateMetadata defines metadata fields for the Secret blueprint. Attributes @@ -492,7 +492,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplateMetadata: schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplateTemplateFromItems0: - """ + r""" external secrets io v1beta1 external secret spec target template template from items0 Attributes @@ -518,7 +518,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplateTemplateFromItems schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplateTemplateFromItems0ConfigMap: - """ + r""" external secrets io v1beta1 external secret spec target template template from items0 config map Attributes @@ -536,7 +536,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplateTemplateFromItems schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplateTemplateFromItems0ConfigMapItemsItems0: - """ + r""" external secrets io v1beta1 external secret spec target template template from items0 config map items items0 Attributes @@ -554,7 +554,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplateTemplateFromItems schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplateTemplateFromItems0Secret: - """ + r""" external secrets io v1beta1 external secret spec target template template from items0 secret Attributes @@ -572,7 +572,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplateTemplateFromItems schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplateTemplateFromItems0SecretItemsItems0: - """ + r""" external secrets io v1beta1 external secret spec target template template from items0 secret items items0 Attributes @@ -590,7 +590,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretSpecTargetTemplateTemplateFromItems schema ExternalSecretsIoV1beta1ExternalSecretStatus: - """ + r""" external secrets io v1beta1 external secret status Attributes @@ -616,7 +616,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretStatus: schema ExternalSecretsIoV1beta1ExternalSecretStatusBinding: - """ + r""" Binding represents a servicebinding.io Provisioned Service reference to the secret Attributes @@ -630,7 +630,7 @@ schema ExternalSecretsIoV1beta1ExternalSecretStatusBinding: schema ExternalSecretsIoV1beta1ExternalSecretStatusConditionsItems0: - """ + r""" external secrets io v1beta1 external secret status conditions items0 Attributes diff --git a/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/pkg/kube_resource/generator/testdata/v1_crd_multi_versions/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k index 8d20935..49becab 100644 --- a/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k +++ b/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k index c84b5e3..e7c54c3 100644 --- a/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k +++ b/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k index 8d4037b..3854a5c 100644 --- a/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k +++ b/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -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 diff --git a/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/stable_example_com_v1_cron_tab.k b/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/stable_example_com_v1_cron_tab.k index b8d095d..1eda32b 100644 --- a/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/stable_example_com_v1_cron_tab.k +++ b/pkg/kube_resource/generator/testdata/v1beta1_crd_versions/models/stable_example_com_v1_cron_tab.k @@ -6,7 +6,7 @@ import k8s.apimachinery.pkg.apis.meta.v1 schema CronTab: - """ + r""" stable example com v1 cron tab Attributes @@ -32,7 +32,7 @@ schema CronTab: schema StableExampleComV1CronTabSpec: - """ + r""" stable example com v1 cron tab spec Attributes diff --git a/pkg/swagger/generator/templates/schemabody.gotmpl b/pkg/swagger/generator/templates/schemabody.gotmpl index 9b74fda..ba73f39 100644 --- a/pkg/swagger/generator/templates/schemabody.gotmpl +++ b/pkg/swagger/generator/templates/schemabody.gotmpl @@ -1,6 +1,6 @@ {{- define "schemaBody" -}} schema {{ shortType .KclType }} {{- if gt (len (baseTypes .AllOf)) 0 }} ({{ range $i, $e := baseTypes .AllOf }}{{if $i }}, {{ end }}{{ $e.KclType }}{{- end }}) {{- end }}: - """ + r""" {{ template "docstring" . }} """ {{- "\n" -}} diff --git a/pkg/swagger/generator/testdata/integration/array/models/pet.k b/pkg/swagger/generator/testdata/integration/array/models/pet.k index c84668d..e7b45e0 100644 --- a/pkg/swagger/generator/testdata/integration/array/models/pet.k +++ b/pkg/swagger/generator/testdata/integration/array/models/pet.k @@ -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 diff --git a/pkg/swagger/generator/testdata/integration/default_value_dict/models/net.k b/pkg/swagger/generator/testdata/integration/default_value_dict/models/net.k index 7dde0c7..9809c19 100644 --- a/pkg/swagger/generator/testdata/integration/default_value_dict/models/net.k +++ b/pkg/swagger/generator/testdata/integration/default_value_dict/models/net.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema Net: - """ + r""" net Attributes diff --git a/pkg/swagger/generator/testdata/integration/default_value_string/models/socket.k b/pkg/swagger/generator/testdata/integration/default_value_string/models/socket.k index 48ac102..2f3365a 100644 --- a/pkg/swagger/generator/testdata/integration/default_value_string/models/socket.k +++ b/pkg/swagger/generator/testdata/integration/default_value_string/models/socket.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema Socket: - """ + r""" socket Attributes diff --git a/pkg/swagger/generator/testdata/integration/dict/models/pet.k b/pkg/swagger/generator/testdata/integration/dict/models/pet.k index 2dc8867..3ad9325 100644 --- a/pkg/swagger/generator/testdata/integration/dict/models/pet.k +++ b/pkg/swagger/generator/testdata/integration/dict/models/pet.k @@ -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 diff --git a/pkg/swagger/generator/testdata/integration/doc_string_all/models/pet.k b/pkg/swagger/generator/testdata/integration/doc_string_all/models/pet.k index b3f9bbe..115898a 100644 --- a/pkg/swagger/generator/testdata/integration/doc_string_all/models/pet.k +++ b/pkg/swagger/generator/testdata/integration/doc_string_all/models/pet.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema Pet: - """ + r""" the Pet model Attributes diff --git a/pkg/swagger/generator/testdata/integration/doc_string_example/models/pet.k b/pkg/swagger/generator/testdata/integration/doc_string_example/models/pet.k index 1aaf5c6..cf46c3e 100644 --- a/pkg/swagger/generator/testdata/integration/doc_string_example/models/pet.k +++ b/pkg/swagger/generator/testdata/integration/doc_string_example/models/pet.k @@ -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 diff --git a/pkg/swagger/generator/testdata/integration/doc_string_external_docs/models/pet.k b/pkg/swagger/generator/testdata/integration/doc_string_external_docs/models/pet.k index 58f0a8a..d6639bd 100644 --- a/pkg/swagger/generator/testdata/integration/doc_string_external_docs/models/pet.k +++ b/pkg/swagger/generator/testdata/integration/doc_string_external_docs/models/pet.k @@ -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 diff --git a/pkg/swagger/generator/testdata/integration/empty_schema/models/socket.k b/pkg/swagger/generator/testdata/integration/empty_schema/models/socket.k index d181c71..66285d5 100644 --- a/pkg/swagger/generator/testdata/integration/empty_schema/models/socket.k +++ b/pkg/swagger/generator/testdata/integration/empty_schema/models/socket.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema Socket: - """ + r""" socket """ diff --git a/pkg/swagger/generator/testdata/integration/enum_0/models/socket.k b/pkg/swagger/generator/testdata/integration/enum_0/models/socket.k index 3c8e747..979de62 100644 --- a/pkg/swagger/generator/testdata/integration/enum_0/models/socket.k +++ b/pkg/swagger/generator/testdata/integration/enum_0/models/socket.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema Socket: - """ + r""" socket Attributes diff --git a/pkg/swagger/generator/testdata/integration/enum_1/models/socket.k b/pkg/swagger/generator/testdata/integration/enum_1/models/socket.k index f903c5f..25b0fed 100644 --- a/pkg/swagger/generator/testdata/integration/enum_1/models/socket.k +++ b/pkg/swagger/generator/testdata/integration/enum_1/models/socket.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema Socket: - """ + r""" socket Attributes diff --git a/pkg/swagger/generator/testdata/integration/enum_2/models/question.k b/pkg/swagger/generator/testdata/integration/enum_2/models/question.k index 0f25fc8..4ebdfde 100644 --- a/pkg/swagger/generator/testdata/integration/enum_2/models/question.k +++ b/pkg/swagger/generator/testdata/integration/enum_2/models/question.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema Question: - """ + r""" question Attributes diff --git a/pkg/swagger/generator/testdata/integration/enum_3/models/question.k b/pkg/swagger/generator/testdata/integration/enum_3/models/question.k index e5c1167..9a9a36c 100644 --- a/pkg/swagger/generator/testdata/integration/enum_3/models/question.k +++ b/pkg/swagger/generator/testdata/integration/enum_3/models/question.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema Question: - """ + r""" question Attributes @@ -19,7 +19,7 @@ schema Question: schema QuestionAnswer: - """ + r""" question answer Attributes diff --git a/pkg/swagger/generator/testdata/integration/import/models/base/category.k b/pkg/swagger/generator/testdata/integration/import/models/base/category.k index 413147a..e9a4bab 100644 --- a/pkg/swagger/generator/testdata/integration/import/models/base/category.k +++ b/pkg/swagger/generator/testdata/integration/import/models/base/category.k @@ -6,7 +6,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema Category: - """ + r""" base category Attributes diff --git a/pkg/swagger/generator/testdata/integration/import/models/main/pet.k b/pkg/swagger/generator/testdata/integration/import/models/main/pet.k index 8075cde..311b71b 100644 --- a/pkg/swagger/generator/testdata/integration/import/models/main/pet.k +++ b/pkg/swagger/generator/testdata/integration/import/models/main/pet.k @@ -7,7 +7,7 @@ import base schema Pet: - """ + r""" main pet Attributes diff --git a/pkg/swagger/generator/testdata/integration/inline_schema/models/pet.k b/pkg/swagger/generator/testdata/integration/inline_schema/models/pet.k index e3c4eac..ae9f80a 100644 --- a/pkg/swagger/generator/testdata/integration/inline_schema/models/pet.k +++ b/pkg/swagger/generator/testdata/integration/inline_schema/models/pet.k @@ -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 @@ -23,7 +23,7 @@ schema Pet: schema PetCategory: - """ + r""" pet category Attributes diff --git a/pkg/swagger/generator/testdata/integration/inline_schema_nest/models/pet.k b/pkg/swagger/generator/testdata/integration/inline_schema_nest/models/pet.k index a4a3eb4..b1baf54 100644 --- a/pkg/swagger/generator/testdata/integration/inline_schema_nest/models/pet.k +++ b/pkg/swagger/generator/testdata/integration/inline_schema_nest/models/pet.k @@ -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 @@ -23,7 +23,7 @@ schema Pet: schema PetCategory: - """ + r""" pet category Attributes @@ -41,7 +41,7 @@ schema PetCategory: schema PetCategoryOwner: - """ + r""" pet category owner Attributes diff --git a/pkg/swagger/generator/testdata/integration/int_or_str/models/pet.k b/pkg/swagger/generator/testdata/integration/int_or_str/models/pet.k index 6e5e961..487fba4 100644 --- a/pkg/swagger/generator/testdata/integration/int_or_str/models/pet.k +++ b/pkg/swagger/generator/testdata/integration/int_or_str/models/pet.k @@ -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 diff --git a/pkg/swagger/generator/testdata/integration/keyword_property_name/models/model.k b/pkg/swagger/generator/testdata/integration/keyword_property_name/models/model.k index 07b623b..4992b02 100644 --- a/pkg/swagger/generator/testdata/integration/keyword_property_name/models/model.k +++ b/pkg/swagger/generator/testdata/integration/keyword_property_name/models/model.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema Model: - """ + r""" model Attributes diff --git a/pkg/swagger/generator/testdata/integration/keyword_schema_name/models/relaxed.k b/pkg/swagger/generator/testdata/integration/keyword_schema_name/models/relaxed.k index 7a79db5..848ac33 100644 --- a/pkg/swagger/generator/testdata/integration/keyword_schema_name/models/relaxed.k +++ b/pkg/swagger/generator/testdata/integration/keyword_schema_name/models/relaxed.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema $relaxed: - """ + r""" relaxed Attributes diff --git a/pkg/swagger/generator/testdata/integration/keyword_type_name/models/base/import.k b/pkg/swagger/generator/testdata/integration/keyword_type_name/models/base/import.k index a87a90a..f039a16 100644 --- a/pkg/swagger/generator/testdata/integration/keyword_type_name/models/base/import.k +++ b/pkg/swagger/generator/testdata/integration/keyword_type_name/models/base/import.k @@ -6,7 +6,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema $import: - """ + r""" base import Attributes diff --git a/pkg/swagger/generator/testdata/integration/keyword_type_name/models/main/relaxed.k b/pkg/swagger/generator/testdata/integration/keyword_type_name/models/main/relaxed.k index 86cd8f4..1188f2f 100644 --- a/pkg/swagger/generator/testdata/integration/keyword_type_name/models/main/relaxed.k +++ b/pkg/swagger/generator/testdata/integration/keyword_type_name/models/main/relaxed.k @@ -7,7 +7,7 @@ import base schema $relaxed: - """ + r""" main relaxed Attributes diff --git a/pkg/swagger/generator/testdata/integration/nested/models/catalog_item.k b/pkg/swagger/generator/testdata/integration/nested/models/catalog_item.k index 4ce6290..2e522d5 100644 --- a/pkg/swagger/generator/testdata/integration/nested/models/catalog_item.k +++ b/pkg/swagger/generator/testdata/integration/nested/models/catalog_item.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema CatalogItem: - """ + r""" catalog item Attributes @@ -27,7 +27,7 @@ schema CatalogItem: schema CatalogItemImage: - """ + r""" catalog item image Attributes diff --git a/pkg/swagger/generator/testdata/integration/properties/models/catalog_item.k b/pkg/swagger/generator/testdata/integration/properties/models/catalog_item.k index a60f5f9..a43d700 100644 --- a/pkg/swagger/generator/testdata/integration/properties/models/catalog_item.k +++ b/pkg/swagger/generator/testdata/integration/properties/models/catalog_item.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema CatalogItem: - """ + r""" catalog item Attributes diff --git a/pkg/swagger/generator/testdata/integration/property_type_object_0/models/socket.k b/pkg/swagger/generator/testdata/integration/property_type_object_0/models/socket.k index 3d9065c..1274e28 100644 --- a/pkg/swagger/generator/testdata/integration/property_type_object_0/models/socket.k +++ b/pkg/swagger/generator/testdata/integration/property_type_object_0/models/socket.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema Socket: - """ + r""" socket Attributes diff --git a/pkg/swagger/generator/testdata/integration/subtype_0/models/animal.k b/pkg/swagger/generator/testdata/integration/subtype_0/models/animal.k index 7e56dcb..d1f6980 100644 --- a/pkg/swagger/generator/testdata/integration/subtype_0/models/animal.k +++ b/pkg/swagger/generator/testdata/integration/subtype_0/models/animal.k @@ -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 diff --git a/pkg/swagger/generator/testdata/integration/subtype_0/models/dog.k b/pkg/swagger/generator/testdata/integration/subtype_0/models/dog.k index 057bbf2..62453bb 100644 --- a/pkg/swagger/generator/testdata/integration/subtype_0/models/dog.k +++ b/pkg/swagger/generator/testdata/integration/subtype_0/models/dog.k @@ -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 """ diff --git a/pkg/swagger/generator/testdata/integration/subtype_0/models/pet.k b/pkg/swagger/generator/testdata/integration/subtype_0/models/pet.k index fbc765d..2410d8c 100644 --- a/pkg/swagger/generator/testdata/integration/subtype_0/models/pet.k +++ b/pkg/swagger/generator/testdata/integration/subtype_0/models/pet.k @@ -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 diff --git a/pkg/swagger/generator/testdata/integration/subtype_1/models/animal.k b/pkg/swagger/generator/testdata/integration/subtype_1/models/animal.k index 7e56dcb..d1f6980 100644 --- a/pkg/swagger/generator/testdata/integration/subtype_1/models/animal.k +++ b/pkg/swagger/generator/testdata/integration/subtype_1/models/animal.k @@ -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 diff --git a/pkg/swagger/generator/testdata/integration/subtype_1/models/dog.k b/pkg/swagger/generator/testdata/integration/subtype_1/models/dog.k index fbdd9dc..4c319a9 100644 --- a/pkg/swagger/generator/testdata/integration/subtype_1/models/dog.k +++ b/pkg/swagger/generator/testdata/integration/subtype_1/models/dog.k @@ -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 diff --git a/pkg/swagger/generator/testdata/integration/subtype_1/models/pet.k b/pkg/swagger/generator/testdata/integration/subtype_1/models/pet.k index fbc765d..2410d8c 100644 --- a/pkg/swagger/generator/testdata/integration/subtype_1/models/pet.k +++ b/pkg/swagger/generator/testdata/integration/subtype_1/models/pet.k @@ -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 diff --git a/pkg/swagger/generator/testdata/integration/tuple/models/tuple.k b/pkg/swagger/generator/testdata/integration/tuple/models/tuple.k index a3b9e23..8839d64 100644 --- a/pkg/swagger/generator/testdata/integration/tuple/models/tuple.k +++ b/pkg/swagger/generator/testdata/integration/tuple/models/tuple.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema tuple: - """ + r""" tuple Attributes diff --git a/pkg/swagger/generator/testdata/integration/tuple_mixed/models/tuple.k b/pkg/swagger/generator/testdata/integration/tuple_mixed/models/tuple.k index 53f7a20..5f62a94 100644 --- a/pkg/swagger/generator/testdata/integration/tuple_mixed/models/tuple.k +++ b/pkg/swagger/generator/testdata/integration/tuple_mixed/models/tuple.k @@ -5,7 +5,7 @@ Editing this file might prove futile when you re-run the KCL auto-gen generate c schema tuple: - """ + r""" tuple Attributes