diff --git a/library/k8s/api/admissionregistration/v1/match_condition.k b/library/k8s/api/admissionregistration/v1/match_condition.k new file mode 100644 index 0000000..eb60c1c --- /dev/null +++ b/library/k8s/api/admissionregistration/v1/match_condition.k @@ -0,0 +1,35 @@ +""" +This is the match_condition module in k8s.api.admissionregistration.v1 package. +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 MatchCondition: + """ + MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. + + Attributes + ---------- + expression : str, default is Undefined, required + Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: + + 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + request resource. + Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ + + Required. + name : str, default is Undefined, required + Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') + + Required. + """ + + + expression: str + + name: str + + diff --git a/library/k8s/api/admissionregistration/v1/mutating_webhook.k b/library/k8s/api/admissionregistration/v1/mutating_webhook.k new file mode 100644 index 0000000..c1f6adf --- /dev/null +++ b/library/k8s/api/admissionregistration/v1/mutating_webhook.k @@ -0,0 +1,117 @@ +""" +This is the mutating_webhook module in k8s.api.admissionregistration.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema MutatingWebhook: + """ + MutatingWebhook describes an admission webhook and the resources and operations it applies to. + + Attributes + ---------- + admissionReviewVersions : [str], default is Undefined, required + AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + clientConfig : WebhookClientConfig, default is Undefined, required + ClientConfig defines how to communicate with the hook. Required + failurePolicy : str, default is Undefined, optional + FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + matchConditions : [MatchCondition], default is Undefined, optional + MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + + The exact matching logic is (in order): + 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. + 2. If ALL matchConditions evaluate to TRUE, the webhook is called. + 3. If any matchCondition evaluates to an error (but none are FALSE): + - If failurePolicy=Fail, reject the request + - If failurePolicy=Ignore, the error is ignored and the webhook is skipped + + This is an alpha feature and managed by the AdmissionWebhookMatchConditions feature gate. + matchPolicy : str, default is Undefined, optional + matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Equivalent" + name : str, default is Undefined, required + The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + namespaceSelector : v1.LabelSelector, default is Undefined, optional + NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + objectSelector : v1.LabelSelector, default is Undefined, optional + ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + reinvocationPolicy : str, default is Undefined, optional + reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + + Never: the webhook will not be called more than once in a single admission evaluation. + + IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + + Defaults to "Never". + rules : [RuleWithOperations], default is Undefined, optional + Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + sideEffects : str, default is Undefined, required + SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + timeoutSeconds : int, default is Undefined, optional + TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + """ + + + admissionReviewVersions: [str] + + clientConfig: WebhookClientConfig + + failurePolicy?: str + + matchConditions?: [MatchCondition] + + matchPolicy?: str + + name: str + + namespaceSelector?: v1.LabelSelector + + objectSelector?: v1.LabelSelector + + reinvocationPolicy?: str + + rules?: [RuleWithOperations] + + sideEffects: str + + timeoutSeconds?: int + + diff --git a/library/k8s/api/admissionregistration/v1/mutating_webhook_configuration.k b/library/k8s/api/admissionregistration/v1/mutating_webhook_configuration.k new file mode 100644 index 0000000..a9864b3 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1/mutating_webhook_configuration.k @@ -0,0 +1,34 @@ +""" +This is the mutating_webhook_configuration module in k8s.api.admissionregistration.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema MutatingWebhookConfiguration: + """ + MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. + + Attributes + ---------- + apiVersion : str, default is "admissionregistration.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "MutatingWebhookConfiguration", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + webhooks : [MutatingWebhook], default is Undefined, optional + Webhooks is a list of webhooks and the affected resources and operations. + """ + + + apiVersion: "admissionregistration.k8s.io/v1" = "admissionregistration.k8s.io/v1" + + kind: "MutatingWebhookConfiguration" = "MutatingWebhookConfiguration" + + metadata?: v1.ObjectMeta + + webhooks?: [MutatingWebhook] + + diff --git a/library/k8s/api/admissionregistration/v1/mutating_webhook_configuration_list.k b/library/k8s/api/admissionregistration/v1/mutating_webhook_configuration_list.k new file mode 100644 index 0000000..d4e15e8 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1/mutating_webhook_configuration_list.k @@ -0,0 +1,34 @@ +""" +This is the mutating_webhook_configuration_list module in k8s.api.admissionregistration.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema MutatingWebhookConfigurationList: + """ + MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + + Attributes + ---------- + apiVersion : str, default is "admissionregistration.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [MutatingWebhookConfiguration], default is Undefined, required + List of MutatingWebhookConfiguration. + kind : str, default is "MutatingWebhookConfigurationList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "admissionregistration.k8s.io/v1" = "admissionregistration.k8s.io/v1" + + items: [MutatingWebhookConfiguration] + + kind: "MutatingWebhookConfigurationList" = "MutatingWebhookConfigurationList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/admissionregistration/v1/rule_with_operations.k b/library/k8s/api/admissionregistration/v1/rule_with_operations.k new file mode 100644 index 0000000..8498dc0 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1/rule_with_operations.k @@ -0,0 +1,43 @@ +""" +This is the rule_with_operations module in k8s.api.admissionregistration.v1 package. +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 RuleWithOperations: + """ + RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. + + Attributes + ---------- + apiGroups : [str], default is Undefined, optional + APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + apiVersions : [str], default is Undefined, optional + APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + operations : [str], default is Undefined, optional + Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. + resources : [str], default is Undefined, optional + Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + scope : str, default is Undefined, optional + scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + """ + + + apiGroups?: [str] + + apiVersions?: [str] + + operations?: [str] + + resources?: [str] + + scope?: str + + diff --git a/library/k8s/api/admissionregistration/v1/service_reference.k b/library/k8s/api/admissionregistration/v1/service_reference.k new file mode 100644 index 0000000..921570e --- /dev/null +++ b/library/k8s/api/admissionregistration/v1/service_reference.k @@ -0,0 +1,33 @@ +""" +This is the service_reference module in k8s.api.admissionregistration.v1 package. +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 ServiceReference: + """ + ServiceReference holds a reference to Service.legacy.k8s.io + + Attributes + ---------- + name : str, default is Undefined, required + `name` is the name of the service. Required + namespace : str, default is Undefined, required + `namespace` is the namespace of the service. Required + path : str, default is Undefined, optional + `path` is an optional URL path which will be sent in any request to this service. + port : int, default is Undefined, optional + If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + """ + + + name: str + + namespace: str + + path?: str + + port?: int + + diff --git a/library/k8s/api/admissionregistration/v1/validating_webhook.k b/library/k8s/api/admissionregistration/v1/validating_webhook.k new file mode 100644 index 0000000..8cc5e56 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1/validating_webhook.k @@ -0,0 +1,107 @@ +""" +This is the validating_webhook module in k8s.api.admissionregistration.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ValidatingWebhook: + """ + ValidatingWebhook describes an admission webhook and the resources and operations it applies to. + + Attributes + ---------- + admissionReviewVersions : [str], default is Undefined, required + AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + clientConfig : WebhookClientConfig, default is Undefined, required + ClientConfig defines how to communicate with the hook. Required + failurePolicy : str, default is Undefined, optional + FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + matchConditions : [MatchCondition], default is Undefined, optional + MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + + The exact matching logic is (in order): + 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. + 2. If ALL matchConditions evaluate to TRUE, the webhook is called. + 3. If any matchCondition evaluates to an error (but none are FALSE): + - If failurePolicy=Fail, reject the request + - If failurePolicy=Ignore, the error is ignored and the webhook is skipped + + This is an alpha feature and managed by the AdmissionWebhookMatchConditions feature gate. + matchPolicy : str, default is Undefined, optional + matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Equivalent" + name : str, default is Undefined, required + The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + namespaceSelector : v1.LabelSelector, default is Undefined, optional + NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + objectSelector : v1.LabelSelector, default is Undefined, optional + ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + rules : [RuleWithOperations], default is Undefined, optional + Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + sideEffects : str, default is Undefined, required + SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + timeoutSeconds : int, default is Undefined, optional + TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + """ + + + admissionReviewVersions: [str] + + clientConfig: WebhookClientConfig + + failurePolicy?: str + + matchConditions?: [MatchCondition] + + matchPolicy?: str + + name: str + + namespaceSelector?: v1.LabelSelector + + objectSelector?: v1.LabelSelector + + rules?: [RuleWithOperations] + + sideEffects: str + + timeoutSeconds?: int + + diff --git a/library/k8s/api/admissionregistration/v1/validating_webhook_configuration.k b/library/k8s/api/admissionregistration/v1/validating_webhook_configuration.k new file mode 100644 index 0000000..2b45293 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1/validating_webhook_configuration.k @@ -0,0 +1,34 @@ +""" +This is the validating_webhook_configuration module in k8s.api.admissionregistration.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ValidatingWebhookConfiguration: + """ + ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. + + Attributes + ---------- + apiVersion : str, default is "admissionregistration.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "ValidatingWebhookConfiguration", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + webhooks : [ValidatingWebhook], default is Undefined, optional + Webhooks is a list of webhooks and the affected resources and operations. + """ + + + apiVersion: "admissionregistration.k8s.io/v1" = "admissionregistration.k8s.io/v1" + + kind: "ValidatingWebhookConfiguration" = "ValidatingWebhookConfiguration" + + metadata?: v1.ObjectMeta + + webhooks?: [ValidatingWebhook] + + diff --git a/library/k8s/api/admissionregistration/v1/validating_webhook_configuration_list.k b/library/k8s/api/admissionregistration/v1/validating_webhook_configuration_list.k new file mode 100644 index 0000000..0515b18 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1/validating_webhook_configuration_list.k @@ -0,0 +1,34 @@ +""" +This is the validating_webhook_configuration_list module in k8s.api.admissionregistration.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ValidatingWebhookConfigurationList: + """ + ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + + Attributes + ---------- + apiVersion : str, default is "admissionregistration.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ValidatingWebhookConfiguration], default is Undefined, required + List of ValidatingWebhookConfiguration. + kind : str, default is "ValidatingWebhookConfigurationList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "admissionregistration.k8s.io/v1" = "admissionregistration.k8s.io/v1" + + items: [ValidatingWebhookConfiguration] + + kind: "ValidatingWebhookConfigurationList" = "ValidatingWebhookConfigurationList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/admissionregistration/v1/webhook_client_config.k b/library/k8s/api/admissionregistration/v1/webhook_client_config.k new file mode 100644 index 0000000..3d18feb --- /dev/null +++ b/library/k8s/api/admissionregistration/v1/webhook_client_config.k @@ -0,0 +1,41 @@ +""" +This is the webhook_client_config module in k8s.api.admissionregistration.v1 package. +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 WebhookClientConfig: + """ + WebhookClientConfig contains the information to make a TLS connection with the webhook + + Attributes + ---------- + caBundle : str, default is Undefined, optional + `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + service : ServiceReference, default is Undefined, optional + `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + url : str, default is Undefined, optional + `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + """ + + + caBundle?: str + + service?: ServiceReference + + url?: str + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/audit_annotation.k b/library/k8s/api/admissionregistration/v1alpha1/audit_annotation.k new file mode 100644 index 0000000..1b2069a --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/audit_annotation.k @@ -0,0 +1,35 @@ +""" +This is the audit_annotation module in k8s.api.admissionregistration.v1alpha1 package. +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 AuditAnnotation: + """ + AuditAnnotation describes how to produce an audit annotation for an API request. + + Attributes + ---------- + key : str, default is Undefined, required + key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. + + The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". + + If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. + + Required. + valueExpression : str, default is Undefined, required + valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. + + If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. + + Required. + """ + + + key: str + + valueExpression: str + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/expression_warning.k b/library/k8s/api/admissionregistration/v1alpha1/expression_warning.k new file mode 100644 index 0000000..a2c0317 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/expression_warning.k @@ -0,0 +1,25 @@ +""" +This is the expression_warning module in k8s.api.admissionregistration.v1alpha1 package. +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 ExpressionWarning: + """ + ExpressionWarning is a warning information that targets a specific expression. + + Attributes + ---------- + fieldRef : str, default is Undefined, required + The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression" + warning : str, default is Undefined, required + The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. + """ + + + fieldRef: str + + warning: str + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/match_condition.k b/library/k8s/api/admissionregistration/v1alpha1/match_condition.k new file mode 100644 index 0000000..575defd --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/match_condition.k @@ -0,0 +1,35 @@ +""" +This is the match_condition module in k8s.api.admissionregistration.v1alpha1 package. +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 MatchCondition: + """ + k8s api admissionregistration v1alpha1 match condition + + Attributes + ---------- + expression : str, default is Undefined, required + Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: + + 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + request resource. + Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ + + Required. + name : str, default is Undefined, required + Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') + + Required. + """ + + + expression: str + + name: str + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/match_resources.k b/library/k8s/api/admissionregistration/v1alpha1/match_resources.k new file mode 100644 index 0000000..d86be0e --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/match_resources.k @@ -0,0 +1,74 @@ +""" +This is the match_resources module in k8s.api.admissionregistration.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema MatchResources: + """ + MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) + + Attributes + ---------- + excludeResourceRules : [NamedRuleWithOperations], default is Undefined, optional + ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) + matchPolicy : str, default is Undefined, optional + matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. + + Defaults to "Equivalent" + namespaceSelector : v1.LabelSelector, default is Undefined, optional + NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the policy on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + objectSelector : v1.LabelSelector, default is Undefined, optional + ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + resourceRules : [NamedRuleWithOperations], default is Undefined, optional + ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. + """ + + + excludeResourceRules?: [NamedRuleWithOperations] + + matchPolicy?: str + + namespaceSelector?: v1.LabelSelector + + objectSelector?: v1.LabelSelector + + resourceRules?: [NamedRuleWithOperations] + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/named_rule_with_operations.k b/library/k8s/api/admissionregistration/v1alpha1/named_rule_with_operations.k new file mode 100644 index 0000000..0f69413 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/named_rule_with_operations.k @@ -0,0 +1,47 @@ +""" +This is the named_rule_with_operations module in k8s.api.admissionregistration.v1alpha1 package. +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 NamedRuleWithOperations: + """ + NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. + + Attributes + ---------- + apiGroups : [str], default is Undefined, optional + APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + apiVersions : [str], default is Undefined, optional + APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + operations : [str], default is Undefined, optional + Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. + resourceNames : [str], default is Undefined, optional + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + resources : [str], default is Undefined, optional + Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + scope : str, default is Undefined, optional + scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + """ + + + apiGroups?: [str] + + apiVersions?: [str] + + operations?: [str] + + resourceNames?: [str] + + resources?: [str] + + scope?: str + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/param_kind.k b/library/k8s/api/admissionregistration/v1alpha1/param_kind.k new file mode 100644 index 0000000..4f0b287 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/param_kind.k @@ -0,0 +1,25 @@ +""" +This is the param_kind module in k8s.api.admissionregistration.v1alpha1 package. +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 ParamKind: + """ + ParamKind is a tuple of Group Kind and Version. + + Attributes + ---------- + apiVersion : str, default is Undefined, optional + APIVersion is the API group version the resources belong to. In format of "group/version". Required. + kind : str, default is Undefined, optional + Kind is the API kind the resources belong to. Required. + """ + + + apiVersion?: str + + kind?: str + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/param_ref.k b/library/k8s/api/admissionregistration/v1alpha1/param_ref.k new file mode 100644 index 0000000..8f90e56 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/param_ref.k @@ -0,0 +1,25 @@ +""" +This is the param_ref module in k8s.api.admissionregistration.v1alpha1 package. +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 ParamRef: + """ + ParamRef references a parameter resource + + Attributes + ---------- + name : str, default is Undefined, optional + Name of the resource being referenced. + namespace : str, default is Undefined, optional + Namespace of the referenced resource. Should be empty for the cluster-scoped resources + """ + + + name?: str + + namespace?: str + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/type_checking.k b/library/k8s/api/admissionregistration/v1alpha1/type_checking.k new file mode 100644 index 0000000..2c1723f --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/type_checking.k @@ -0,0 +1,21 @@ +""" +This is the type_checking module in k8s.api.admissionregistration.v1alpha1 package. +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 TypeChecking: + """ + TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy + + Attributes + ---------- + expressionWarnings : [ExpressionWarning], default is Undefined, optional + The type checking warnings for each expression. + """ + + + expressionWarnings?: [ExpressionWarning] + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy.k b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy.k new file mode 100644 index 0000000..e7c00f7 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy.k @@ -0,0 +1,34 @@ +""" +This is the validating_admission_policy module in k8s.api.admissionregistration.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ValidatingAdmissionPolicy: + """ + ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. + + Attributes + ---------- + apiVersion : str, default is "admissionregistration.k8s.io/v1alpha1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "ValidatingAdmissionPolicy", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + spec : ValidatingAdmissionPolicySpec, default is Undefined, optional + Specification of the desired behavior of the ValidatingAdmissionPolicy. + """ + + + apiVersion: "admissionregistration.k8s.io/v1alpha1" = "admissionregistration.k8s.io/v1alpha1" + + kind: "ValidatingAdmissionPolicy" = "ValidatingAdmissionPolicy" + + metadata?: v1.ObjectMeta + + spec?: ValidatingAdmissionPolicySpec + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_binding.k b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_binding.k new file mode 100644 index 0000000..9604368 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_binding.k @@ -0,0 +1,34 @@ +""" +This is the validating_admission_policy_binding module in k8s.api.admissionregistration.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ValidatingAdmissionPolicyBinding: + """ + ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. + + Attributes + ---------- + apiVersion : str, default is "admissionregistration.k8s.io/v1alpha1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "ValidatingAdmissionPolicyBinding", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + spec : ValidatingAdmissionPolicyBindingSpec, default is Undefined, optional + Specification of the desired behavior of the ValidatingAdmissionPolicyBinding. + """ + + + apiVersion: "admissionregistration.k8s.io/v1alpha1" = "admissionregistration.k8s.io/v1alpha1" + + kind: "ValidatingAdmissionPolicyBinding" = "ValidatingAdmissionPolicyBinding" + + metadata?: v1.ObjectMeta + + spec?: ValidatingAdmissionPolicyBindingSpec + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_binding_list.k b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_binding_list.k new file mode 100644 index 0000000..0e7e8fc --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_binding_list.k @@ -0,0 +1,34 @@ +""" +This is the validating_admission_policy_binding_list module in k8s.api.admissionregistration.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ValidatingAdmissionPolicyBindingList: + """ + ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + + Attributes + ---------- + apiVersion : str, default is "admissionregistration.k8s.io/v1alpha1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ValidatingAdmissionPolicyBinding], default is Undefined, optional + List of PolicyBinding. + kind : str, default is "ValidatingAdmissionPolicyBindingList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "admissionregistration.k8s.io/v1alpha1" = "admissionregistration.k8s.io/v1alpha1" + + items?: [ValidatingAdmissionPolicyBinding] + + kind: "ValidatingAdmissionPolicyBindingList" = "ValidatingAdmissionPolicyBindingList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_binding_spec.k b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_binding_spec.k new file mode 100644 index 0000000..a511655 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_binding_spec.k @@ -0,0 +1,51 @@ +""" +This is the validating_admission_policy_binding_spec module in k8s.api.admissionregistration.v1alpha1 package. +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 ValidatingAdmissionPolicyBindingSpec: + """ + ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. + + Attributes + ---------- + matchResources : MatchResources, default is Undefined, optional + MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required. + paramRef : ParamRef, default is Undefined, optional + ParamRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. + policyName : str, default is Undefined, optional + PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. + validationActions : [str], default is Undefined, optional + validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. + + Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. + + validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. + + The supported actions values are: + + "Deny" specifies that a validation failure results in a denied request. + + "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. + + "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"` + + Clients should expect to handle additional values by ignoring any values not recognized. + + "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. + + Required. + """ + + + matchResources?: MatchResources + + paramRef?: ParamRef + + policyName?: str + + validationActions?: [str] + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_list.k b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_list.k new file mode 100644 index 0000000..cd0c51d --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_list.k @@ -0,0 +1,34 @@ +""" +This is the validating_admission_policy_list module in k8s.api.admissionregistration.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ValidatingAdmissionPolicyList: + """ + ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + + Attributes + ---------- + apiVersion : str, default is "admissionregistration.k8s.io/v1alpha1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ValidatingAdmissionPolicy], default is Undefined, optional + List of ValidatingAdmissionPolicy. + kind : str, default is "ValidatingAdmissionPolicyList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "admissionregistration.k8s.io/v1alpha1" = "admissionregistration.k8s.io/v1alpha1" + + items?: [ValidatingAdmissionPolicy] + + kind: "ValidatingAdmissionPolicyList" = "ValidatingAdmissionPolicyList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_spec.k b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_spec.k new file mode 100644 index 0000000..704573d --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_spec.k @@ -0,0 +1,58 @@ +""" +This is the validating_admission_policy_spec module in k8s.api.admissionregistration.v1alpha1 package. +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 ValidatingAdmissionPolicySpec: + """ + ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. + + Attributes + ---------- + auditAnnotations : [AuditAnnotation], default is Undefined, optional + auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. + failurePolicy : str, default is Undefined, optional + failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. + + A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. + + failurePolicy does not define how validations that evaluate to false are handled. + + When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. + + Allowed values are Ignore or Fail. Defaults to Fail. + matchConditions : [MatchCondition], default is Undefined, optional + MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + + If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. + + The exact matching logic is (in order): + 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. + 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. + 3. If any matchCondition evaluates to an error (but none are FALSE): + - If failurePolicy=Fail, reject the request + - If failurePolicy=Ignore, the policy is skipped + matchConstraints : MatchResources, default is Undefined, optional + MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required. + paramKind : ParamKind, default is Undefined, optional + ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null. + validations : [Validation], default is Undefined, optional + Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. + """ + + + auditAnnotations?: [AuditAnnotation] + + failurePolicy?: str + + matchConditions?: [MatchCondition] + + matchConstraints?: MatchResources + + paramKind?: ParamKind + + validations?: [Validation] + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_status.k b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_status.k new file mode 100644 index 0000000..854bdc8 --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/validating_admission_policy_status.k @@ -0,0 +1,30 @@ +""" +This is the validating_admission_policy_status module in k8s.api.admissionregistration.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ValidatingAdmissionPolicyStatus: + """ + ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy. + + Attributes + ---------- + conditions : [v1.Condition], default is Undefined, optional + The conditions represent the latest available observations of a policy's current state. + observedGeneration : int, default is Undefined, optional + The generation observed by the controller. + typeChecking : TypeChecking, default is Undefined, optional + The results of type checking for each expression. Presence of this field indicates the completion of the type checking. + """ + + + conditions?: [v1.Condition] + + observedGeneration?: int + + typeChecking?: TypeChecking + + diff --git a/library/k8s/api/admissionregistration/v1alpha1/validation.k b/library/k8s/api/admissionregistration/v1alpha1/validation.k new file mode 100644 index 0000000..960632e --- /dev/null +++ b/library/k8s/api/admissionregistration/v1alpha1/validation.k @@ -0,0 +1,56 @@ +""" +This is the validation module in k8s.api.admissionregistration.v1alpha1 package. +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 Validation: + """ + Validation specifies the CEL expression which is used to apply the validation. + + Attributes + ---------- + expression : str, default is Undefined, required + Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: + + - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + request resource. + + The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. + + Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: + "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", + "import", "let", "loop", "package", "namespace", "return". + Examples: + - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} + - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} + - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} + + Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: + - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and + non-intersecting elements in `Y` are appended, retaining their partial order. + - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values + are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with + non-intersecting keys are appended, retaining their partial order. + Required. + message : str, default is Undefined, optional + Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is "failed Expression: {Expression}". + messageExpression : str, default is Undefined, optional + messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: "object.x must be less than max ("+string(params.max)+")" + reason : str, default is Undefined, optional + Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". If not set, StatusReasonInvalid is used in the response to the client. + """ + + + expression: str + + message?: str + + messageExpression?: str + + reason?: str + + diff --git a/library/k8s/api/apiserverinternal/v1alpha1/server_storage_version.k b/library/k8s/api/apiserverinternal/v1alpha1/server_storage_version.k new file mode 100644 index 0000000..3ad405b --- /dev/null +++ b/library/k8s/api/apiserverinternal/v1alpha1/server_storage_version.k @@ -0,0 +1,29 @@ +""" +This is the server_storage_version module in k8s.api.apiserverinternal.v1alpha1 package. +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 ServerStorageVersion: + """ + An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend. + + Attributes + ---------- + apiServerID : str, default is Undefined, optional + The ID of the reporting API server. + decodableVersions : [str], default is Undefined, optional + The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions. + encodingVersion : str, default is Undefined, optional + The API server encodes the object to this version when persisting it in the backend (e.g., etcd). + """ + + + apiServerID?: str + + decodableVersions?: [str] + + encodingVersion?: str + + diff --git a/library/k8s/api/apiserverinternal/v1alpha1/storage_version.k b/library/k8s/api/apiserverinternal/v1alpha1/storage_version.k new file mode 100644 index 0000000..4e3de9d --- /dev/null +++ b/library/k8s/api/apiserverinternal/v1alpha1/storage_version.k @@ -0,0 +1,34 @@ +""" +This is the storage_version module in k8s.api.apiserverinternal.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema StorageVersion: + """ + Storage version of a specific resource. + + Attributes + ---------- + apiVersion : str, default is "internal.apiserver.k8s.io/v1alpha1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "StorageVersion", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + The name is .. + spec : any, default is Undefined, required + Spec is an empty spec. It is here to comply with Kubernetes API style. + """ + + + apiVersion: "internal.apiserver.k8s.io/v1alpha1" = "internal.apiserver.k8s.io/v1alpha1" + + kind: "StorageVersion" = "StorageVersion" + + metadata?: v1.ObjectMeta + + spec: any + + diff --git a/library/k8s/api/apiserverinternal/v1alpha1/storage_version_condition.k b/library/k8s/api/apiserverinternal/v1alpha1/storage_version_condition.k new file mode 100644 index 0000000..4e783c9 --- /dev/null +++ b/library/k8s/api/apiserverinternal/v1alpha1/storage_version_condition.k @@ -0,0 +1,41 @@ +""" +This is the storage_version_condition module in k8s.api.apiserverinternal.v1alpha1 package. +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 StorageVersionCondition: + """ + Describes the state of the storageVersion at a certain point. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + Last time the condition transitioned from one status to another. + message : str, default is Undefined, optional + A human readable message indicating details about the transition. + observedGeneration : int, default is Undefined, optional + If set, this represents the .metadata.generation that the condition was set based upon. + reason : str, default is Undefined, required + The reason for the condition's last transition. + status : str, default is Undefined, required + Status of the condition, one of True, False, Unknown. + $type : str, default is Undefined, required + Type of the condition. + """ + + + lastTransitionTime?: str + + message?: str + + observedGeneration?: int + + reason: str + + status: str + + $type: str + + diff --git a/library/k8s/api/apiserverinternal/v1alpha1/storage_version_list.k b/library/k8s/api/apiserverinternal/v1alpha1/storage_version_list.k new file mode 100644 index 0000000..1da65e5 --- /dev/null +++ b/library/k8s/api/apiserverinternal/v1alpha1/storage_version_list.k @@ -0,0 +1,34 @@ +""" +This is the storage_version_list module in k8s.api.apiserverinternal.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema StorageVersionList: + """ + A list of StorageVersions. + + Attributes + ---------- + apiVersion : str, default is "internal.apiserver.k8s.io/v1alpha1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [StorageVersion], default is Undefined, required + Items holds a list of StorageVersion + kind : str, default is "StorageVersionList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "internal.apiserver.k8s.io/v1alpha1" = "internal.apiserver.k8s.io/v1alpha1" + + items: [StorageVersion] + + kind: "StorageVersionList" = "StorageVersionList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/apiserverinternal/v1alpha1/storage_version_status.k b/library/k8s/api/apiserverinternal/v1alpha1/storage_version_status.k new file mode 100644 index 0000000..dcecee3 --- /dev/null +++ b/library/k8s/api/apiserverinternal/v1alpha1/storage_version_status.k @@ -0,0 +1,29 @@ +""" +This is the storage_version_status module in k8s.api.apiserverinternal.v1alpha1 package. +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 StorageVersionStatus: + """ + API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend. + + Attributes + ---------- + commonEncodingVersion : str, default is Undefined, optional + If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality. + conditions : [StorageVersionCondition], default is Undefined, optional + The latest available observations of the storageVersion's state. + storageVersions : [ServerStorageVersion], default is Undefined, optional + The reported versions per API server instance. + """ + + + commonEncodingVersion?: str + + conditions?: [StorageVersionCondition] + + storageVersions?: [ServerStorageVersion] + + diff --git a/library/k8s/api/apps/v1/controller_revision.k b/library/k8s/api/apps/v1/controller_revision.k new file mode 100644 index 0000000..dbb3d44 --- /dev/null +++ b/library/k8s/api/apps/v1/controller_revision.k @@ -0,0 +1,38 @@ +""" +This is the controller_revision module in k8s.api.apps.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ControllerRevision: + """ + ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + + Attributes + ---------- + apiVersion : str, default is "apps/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + data : any, default is Undefined, optional + Data is the serialized representation of the state. + kind : str, default is "ControllerRevision", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + revision : int, default is Undefined, required + Revision indicates the revision of the state represented by Data. + """ + + + apiVersion: "apps/v1" = "apps/v1" + + data?: any + + kind: "ControllerRevision" = "ControllerRevision" + + metadata?: v1.ObjectMeta + + revision: int + + diff --git a/library/k8s/api/apps/v1/controller_revision_list.k b/library/k8s/api/apps/v1/controller_revision_list.k new file mode 100644 index 0000000..e145fcf --- /dev/null +++ b/library/k8s/api/apps/v1/controller_revision_list.k @@ -0,0 +1,34 @@ +""" +This is the controller_revision_list module in k8s.api.apps.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ControllerRevisionList: + """ + ControllerRevisionList is a resource containing a list of ControllerRevision objects. + + Attributes + ---------- + apiVersion : str, default is "apps/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ControllerRevision], default is Undefined, required + Items is the list of ControllerRevisions + kind : str, default is "ControllerRevisionList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "apps/v1" = "apps/v1" + + items: [ControllerRevision] + + kind: "ControllerRevisionList" = "ControllerRevisionList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/apps/v1/daemon_set.k b/library/k8s/api/apps/v1/daemon_set.k new file mode 100644 index 0000000..33e7b68 --- /dev/null +++ b/library/k8s/api/apps/v1/daemon_set.k @@ -0,0 +1,34 @@ +""" +This is the daemon_set module in k8s.api.apps.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema DaemonSet: + """ + DaemonSet represents the configuration of a daemon set. + + Attributes + ---------- + apiVersion : str, default is "apps/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "DaemonSet", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : DaemonSetSpec, default is Undefined, optional + The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "apps/v1" = "apps/v1" + + kind: "DaemonSet" = "DaemonSet" + + metadata?: v1.ObjectMeta + + spec?: DaemonSetSpec + + diff --git a/library/k8s/api/apps/v1/daemon_set_condition.k b/library/k8s/api/apps/v1/daemon_set_condition.k new file mode 100644 index 0000000..f529034 --- /dev/null +++ b/library/k8s/api/apps/v1/daemon_set_condition.k @@ -0,0 +1,37 @@ +""" +This is the daemon_set_condition module in k8s.api.apps.v1 package. +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 DaemonSetCondition: + """ + DaemonSetCondition describes the state of a DaemonSet at a certain point. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + Last time the condition transitioned from one status to another. + message : str, default is Undefined, optional + A human readable message indicating details about the transition. + reason : str, default is Undefined, optional + The reason for the condition's last transition. + status : str, default is Undefined, required + Status of the condition, one of True, False, Unknown. + $type : str, default is Undefined, required + Type of DaemonSet condition. + """ + + + lastTransitionTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/api/apps/v1/daemon_set_list.k b/library/k8s/api/apps/v1/daemon_set_list.k new file mode 100644 index 0000000..3515d99 --- /dev/null +++ b/library/k8s/api/apps/v1/daemon_set_list.k @@ -0,0 +1,34 @@ +""" +This is the daemon_set_list module in k8s.api.apps.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema DaemonSetList: + """ + DaemonSetList is a collection of daemon sets. + + Attributes + ---------- + apiVersion : str, default is "apps/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [DaemonSet], default is Undefined, required + A list of daemon sets. + kind : str, default is "DaemonSetList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "apps/v1" = "apps/v1" + + items: [DaemonSet] + + kind: "DaemonSetList" = "DaemonSetList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/apps/v1/daemon_set_spec.k b/library/k8s/api/apps/v1/daemon_set_spec.k new file mode 100644 index 0000000..b97d204 --- /dev/null +++ b/library/k8s/api/apps/v1/daemon_set_spec.k @@ -0,0 +1,39 @@ +""" +This is the daemon_set_spec module in k8s.api.apps.v1 package. +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. +""" +import api.core.v1 as coreV1 +import apimachinery.pkg.apis.meta.v1 + + +schema DaemonSetSpec: + """ + DaemonSetSpec is the specification of a daemon set. + + Attributes + ---------- + minReadySeconds : int, default is Undefined, optional + The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + revisionHistoryLimit : int, default is Undefined, optional + The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + selector : v1.LabelSelector, default is Undefined, required + A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + template : coreV1.PodTemplateSpec, default is Undefined, required + An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + updateStrategy : DaemonSetUpdateStrategy, default is Undefined, optional + An update strategy to replace existing DaemonSet pods with new pods. + """ + + + minReadySeconds?: int + + revisionHistoryLimit?: int + + selector: v1.LabelSelector + + template: coreV1.PodTemplateSpec + + updateStrategy?: DaemonSetUpdateStrategy + + diff --git a/library/k8s/api/apps/v1/daemon_set_status.k b/library/k8s/api/apps/v1/daemon_set_status.k new file mode 100644 index 0000000..1c3e6d1 --- /dev/null +++ b/library/k8s/api/apps/v1/daemon_set_status.k @@ -0,0 +1,57 @@ +""" +This is the daemon_set_status module in k8s.api.apps.v1 package. +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 DaemonSetStatus: + """ + DaemonSetStatus represents the current status of a daemon set. + + Attributes + ---------- + collisionCount : int, default is Undefined, optional + Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + conditions : [DaemonSetCondition], default is Undefined, optional + Represents the latest available observations of a DaemonSet's current state. + currentNumberScheduled : int, default is Undefined, required + The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + desiredNumberScheduled : int, default is Undefined, required + The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + numberAvailable : int, default is Undefined, optional + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + numberMisscheduled : int, default is Undefined, required + The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + numberReady : int, default is Undefined, required + numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition. + numberUnavailable : int, default is Undefined, optional + The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + observedGeneration : int, default is Undefined, optional + The most recent generation observed by the daemon set controller. + updatedNumberScheduled : int, default is Undefined, optional + The total number of nodes that are running updated daemon pod + """ + + + collisionCount?: int + + conditions?: [DaemonSetCondition] + + currentNumberScheduled: int + + desiredNumberScheduled: int + + numberAvailable?: int + + numberMisscheduled: int + + numberReady: int + + numberUnavailable?: int + + observedGeneration?: int + + updatedNumberScheduled?: int + + diff --git a/library/k8s/api/apps/v1/daemon_set_update_strategy.k b/library/k8s/api/apps/v1/daemon_set_update_strategy.k new file mode 100644 index 0000000..c448736 --- /dev/null +++ b/library/k8s/api/apps/v1/daemon_set_update_strategy.k @@ -0,0 +1,25 @@ +""" +This is the daemon_set_update_strategy module in k8s.api.apps.v1 package. +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 DaemonSetUpdateStrategy: + """ + DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. + + Attributes + ---------- + rollingUpdate : RollingUpdateDaemonSet, default is Undefined, optional + Rolling update config params. Present only if type = "RollingUpdate". + $type : str, default is Undefined, optional + Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. + """ + + + rollingUpdate?: RollingUpdateDaemonSet + + $type?: str + + diff --git a/library/k8s/api/apps/v1/deployment.k b/library/k8s/api/apps/v1/deployment.k new file mode 100644 index 0000000..38b5af9 --- /dev/null +++ b/library/k8s/api/apps/v1/deployment.k @@ -0,0 +1,34 @@ +""" +This is the deployment module in k8s.api.apps.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Deployment: + """ + Deployment enables declarative updates for Pods and ReplicaSets. + + Attributes + ---------- + apiVersion : str, default is "apps/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "Deployment", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : DeploymentSpec, default is Undefined, optional + Specification of the desired behavior of the Deployment. + """ + + + apiVersion: "apps/v1" = "apps/v1" + + kind: "Deployment" = "Deployment" + + metadata?: v1.ObjectMeta + + spec?: DeploymentSpec + + diff --git a/library/k8s/api/apps/v1/deployment_condition.k b/library/k8s/api/apps/v1/deployment_condition.k new file mode 100644 index 0000000..416c543 --- /dev/null +++ b/library/k8s/api/apps/v1/deployment_condition.k @@ -0,0 +1,41 @@ +""" +This is the deployment_condition module in k8s.api.apps.v1 package. +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 DeploymentCondition: + """ + DeploymentCondition describes the state of a deployment at a certain point. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + Last time the condition transitioned from one status to another. + lastUpdateTime : str, default is Undefined, optional + The last time this condition was updated. + message : str, default is Undefined, optional + A human readable message indicating details about the transition. + reason : str, default is Undefined, optional + The reason for the condition's last transition. + status : str, default is Undefined, required + Status of the condition, one of True, False, Unknown. + $type : str, default is Undefined, required + Type of deployment condition. + """ + + + lastTransitionTime?: str + + lastUpdateTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/api/apps/v1/deployment_list.k b/library/k8s/api/apps/v1/deployment_list.k new file mode 100644 index 0000000..a83ce0d --- /dev/null +++ b/library/k8s/api/apps/v1/deployment_list.k @@ -0,0 +1,34 @@ +""" +This is the deployment_list module in k8s.api.apps.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema DeploymentList: + """ + DeploymentList is a list of Deployments. + + Attributes + ---------- + apiVersion : str, default is "apps/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [Deployment], default is Undefined, required + Items is the list of Deployments. + kind : str, default is "DeploymentList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. + """ + + + apiVersion: "apps/v1" = "apps/v1" + + items: [Deployment] + + kind: "DeploymentList" = "DeploymentList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/apps/v1/deployment_spec.k b/library/k8s/api/apps/v1/deployment_spec.k new file mode 100644 index 0000000..5bdc7a0 --- /dev/null +++ b/library/k8s/api/apps/v1/deployment_spec.k @@ -0,0 +1,51 @@ +""" +This is the deployment_spec module in k8s.api.apps.v1 package. +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. +""" +import api.core.v1 as coreV1 +import apimachinery.pkg.apis.meta.v1 + + +schema DeploymentSpec: + """ + DeploymentSpec is the specification of the desired behavior of the Deployment. + + Attributes + ---------- + minReadySeconds : int, default is Undefined, optional + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + paused : bool, default is Undefined, optional + Indicates that the deployment is paused. + progressDeadlineSeconds : int, default is Undefined, optional + The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + replicas : int, default is Undefined, optional + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + revisionHistoryLimit : int, default is Undefined, optional + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + selector : v1.LabelSelector, default is Undefined, required + Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + strategy : DeploymentStrategy, default is Undefined, optional + The deployment strategy to use to replace existing pods with new ones. + template : coreV1.PodTemplateSpec, default is Undefined, required + Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is "Always". + """ + + + minReadySeconds?: int + + paused?: bool + + progressDeadlineSeconds?: int + + replicas?: int + + revisionHistoryLimit?: int + + selector: v1.LabelSelector + + strategy?: DeploymentStrategy + + template: coreV1.PodTemplateSpec + + diff --git a/library/k8s/api/apps/v1/deployment_status.k b/library/k8s/api/apps/v1/deployment_status.k new file mode 100644 index 0000000..61a0b60 --- /dev/null +++ b/library/k8s/api/apps/v1/deployment_status.k @@ -0,0 +1,49 @@ +""" +This is the deployment_status module in k8s.api.apps.v1 package. +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 DeploymentStatus: + """ + DeploymentStatus is the most recently observed status of the Deployment. + + Attributes + ---------- + availableReplicas : int, default is Undefined, optional + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + collisionCount : int, default is Undefined, optional + Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + conditions : [DeploymentCondition], default is Undefined, optional + Represents the latest available observations of a deployment's current state. + observedGeneration : int, default is Undefined, optional + The generation observed by the deployment controller. + readyReplicas : int, default is Undefined, optional + readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. + replicas : int, default is Undefined, optional + Total number of non-terminated pods targeted by this deployment (their labels match the selector). + unavailableReplicas : int, default is Undefined, optional + Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + updatedReplicas : int, default is Undefined, optional + Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """ + + + availableReplicas?: int + + collisionCount?: int + + conditions?: [DeploymentCondition] + + observedGeneration?: int + + readyReplicas?: int + + replicas?: int + + unavailableReplicas?: int + + updatedReplicas?: int + + diff --git a/library/k8s/api/apps/v1/deployment_strategy.k b/library/k8s/api/apps/v1/deployment_strategy.k new file mode 100644 index 0000000..8921d60 --- /dev/null +++ b/library/k8s/api/apps/v1/deployment_strategy.k @@ -0,0 +1,25 @@ +""" +This is the deployment_strategy module in k8s.api.apps.v1 package. +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 DeploymentStrategy: + """ + DeploymentStrategy describes how to replace existing pods with new ones. + + Attributes + ---------- + rollingUpdate : RollingUpdateDeployment, default is Undefined, optional + Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + $type : str, default is Undefined, optional + Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + """ + + + rollingUpdate?: RollingUpdateDeployment + + $type?: str + + diff --git a/library/k8s/api/apps/v1/replica_set.k b/library/k8s/api/apps/v1/replica_set.k new file mode 100644 index 0000000..0497ff6 --- /dev/null +++ b/library/k8s/api/apps/v1/replica_set.k @@ -0,0 +1,34 @@ +""" +This is the replica_set module in k8s.api.apps.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ReplicaSet: + """ + ReplicaSet ensures that a specified number of pod replicas are running at any given time. + + Attributes + ---------- + apiVersion : str, default is "apps/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "ReplicaSet", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : ReplicaSetSpec, default is Undefined, optional + Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "apps/v1" = "apps/v1" + + kind: "ReplicaSet" = "ReplicaSet" + + metadata?: v1.ObjectMeta + + spec?: ReplicaSetSpec + + diff --git a/library/k8s/api/apps/v1/replica_set_condition.k b/library/k8s/api/apps/v1/replica_set_condition.k new file mode 100644 index 0000000..b8b9504 --- /dev/null +++ b/library/k8s/api/apps/v1/replica_set_condition.k @@ -0,0 +1,37 @@ +""" +This is the replica_set_condition module in k8s.api.apps.v1 package. +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 ReplicaSetCondition: + """ + ReplicaSetCondition describes the state of a replica set at a certain point. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + The last time the condition transitioned from one status to another. + message : str, default is Undefined, optional + A human readable message indicating details about the transition. + reason : str, default is Undefined, optional + The reason for the condition's last transition. + status : str, default is Undefined, required + Status of the condition, one of True, False, Unknown. + $type : str, default is Undefined, required + Type of replica set condition. + """ + + + lastTransitionTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/api/apps/v1/replica_set_list.k b/library/k8s/api/apps/v1/replica_set_list.k new file mode 100644 index 0000000..0e25bef --- /dev/null +++ b/library/k8s/api/apps/v1/replica_set_list.k @@ -0,0 +1,34 @@ +""" +This is the replica_set_list module in k8s.api.apps.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ReplicaSetList: + """ + ReplicaSetList is a collection of ReplicaSets. + + Attributes + ---------- + apiVersion : str, default is "apps/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ReplicaSet], default is Undefined, required + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + kind : str, default is "ReplicaSetList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "apps/v1" = "apps/v1" + + items: [ReplicaSet] + + kind: "ReplicaSetList" = "ReplicaSetList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/apps/v1/replica_set_spec.k b/library/k8s/api/apps/v1/replica_set_spec.k new file mode 100644 index 0000000..a1572bc --- /dev/null +++ b/library/k8s/api/apps/v1/replica_set_spec.k @@ -0,0 +1,35 @@ +""" +This is the replica_set_spec module in k8s.api.apps.v1 package. +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. +""" +import api.core.v1 as coreV1 +import apimachinery.pkg.apis.meta.v1 + + +schema ReplicaSetSpec: + """ + ReplicaSetSpec is the specification of a ReplicaSet. + + Attributes + ---------- + minReadySeconds : int, default is Undefined, optional + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + replicas : int, default is Undefined, optional + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + selector : v1.LabelSelector, default is Undefined, required + Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + template : coreV1.PodTemplateSpec, default is Undefined, optional + Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """ + + + minReadySeconds?: int + + replicas?: int + + selector: v1.LabelSelector + + template?: coreV1.PodTemplateSpec + + diff --git a/library/k8s/api/apps/v1/replica_set_status.k b/library/k8s/api/apps/v1/replica_set_status.k new file mode 100644 index 0000000..d34fa01 --- /dev/null +++ b/library/k8s/api/apps/v1/replica_set_status.k @@ -0,0 +1,41 @@ +""" +This is the replica_set_status module in k8s.api.apps.v1 package. +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 ReplicaSetStatus: + """ + ReplicaSetStatus represents the current status of a ReplicaSet. + + Attributes + ---------- + availableReplicas : int, default is Undefined, optional + The number of available replicas (ready for at least minReadySeconds) for this replica set. + conditions : [ReplicaSetCondition], default is Undefined, optional + Represents the latest available observations of a replica set's current state. + fullyLabeledReplicas : int, default is Undefined, optional + The number of pods that have labels matching the labels of the pod template of the replicaset. + observedGeneration : int, default is Undefined, optional + ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + readyReplicas : int, default is Undefined, optional + readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. + replicas : int, default is Undefined, required + Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """ + + + availableReplicas?: int + + conditions?: [ReplicaSetCondition] + + fullyLabeledReplicas?: int + + observedGeneration?: int + + readyReplicas?: int + + replicas: int + + diff --git a/library/k8s/api/apps/v1/rolling_update_daemon_set.k b/library/k8s/api/apps/v1/rolling_update_daemon_set.k new file mode 100644 index 0000000..f393ecc --- /dev/null +++ b/library/k8s/api/apps/v1/rolling_update_daemon_set.k @@ -0,0 +1,25 @@ +""" +This is the rolling_update_daemon_set module in k8s.api.apps.v1 package. +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 RollingUpdateDaemonSet: + """ + Spec to control the desired behavior of daemon set rolling update. + + Attributes + ---------- + maxSurge : int | str, default is Undefined, optional + The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. + maxUnavailable : int | str, default is Undefined, optional + The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + """ + + + maxSurge?: int | str + + maxUnavailable?: int | str + + diff --git a/library/k8s/api/apps/v1/rolling_update_deployment.k b/library/k8s/api/apps/v1/rolling_update_deployment.k new file mode 100644 index 0000000..89fabff --- /dev/null +++ b/library/k8s/api/apps/v1/rolling_update_deployment.k @@ -0,0 +1,25 @@ +""" +This is the rolling_update_deployment module in k8s.api.apps.v1 package. +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 RollingUpdateDeployment: + """ + Spec to control the desired behavior of rolling update. + + Attributes + ---------- + maxSurge : int | str, default is Undefined, optional + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + maxUnavailable : int | str, default is Undefined, optional + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + """ + + + maxSurge?: int | str + + maxUnavailable?: int | str + + diff --git a/library/k8s/api/apps/v1/rolling_update_stateful_set_strategy.k b/library/k8s/api/apps/v1/rolling_update_stateful_set_strategy.k new file mode 100644 index 0000000..88966f4 --- /dev/null +++ b/library/k8s/api/apps/v1/rolling_update_stateful_set_strategy.k @@ -0,0 +1,25 @@ +""" +This is the rolling_update_stateful_set_strategy module in k8s.api.apps.v1 package. +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 RollingUpdateStatefulSetStrategy: + """ + RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. + + Attributes + ---------- + maxUnavailable : int | str, default is Undefined, optional + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. + partition : int, default is Undefined, optional + Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0. + """ + + + maxUnavailable?: int | str + + partition?: int + + diff --git a/library/k8s/api/apps/v1/stateful_set.k b/library/k8s/api/apps/v1/stateful_set.k new file mode 100644 index 0000000..c3b7106 --- /dev/null +++ b/library/k8s/api/apps/v1/stateful_set.k @@ -0,0 +1,38 @@ +""" +This is the stateful_set module in k8s.api.apps.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema StatefulSet: + """ + StatefulSet represents a set of pods with consistent identities. Identities are defined as: + - Network: A single stable DNS and hostname. + - Storage: As many VolumeClaims as requested. + + The StatefulSet guarantees that a given network identity will always map to the same storage identity. + + Attributes + ---------- + apiVersion : str, default is "apps/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "StatefulSet", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : StatefulSetSpec, default is Undefined, optional + Spec defines the desired identities of pods in this set. + """ + + + apiVersion: "apps/v1" = "apps/v1" + + kind: "StatefulSet" = "StatefulSet" + + metadata?: v1.ObjectMeta + + spec?: StatefulSetSpec + + diff --git a/library/k8s/api/apps/v1/stateful_set_condition.k b/library/k8s/api/apps/v1/stateful_set_condition.k new file mode 100644 index 0000000..2fec4db --- /dev/null +++ b/library/k8s/api/apps/v1/stateful_set_condition.k @@ -0,0 +1,37 @@ +""" +This is the stateful_set_condition module in k8s.api.apps.v1 package. +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 StatefulSetCondition: + """ + StatefulSetCondition describes the state of a statefulset at a certain point. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + Last time the condition transitioned from one status to another. + message : str, default is Undefined, optional + A human readable message indicating details about the transition. + reason : str, default is Undefined, optional + The reason for the condition's last transition. + status : str, default is Undefined, required + Status of the condition, one of True, False, Unknown. + $type : str, default is Undefined, required + Type of statefulset condition. + """ + + + lastTransitionTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/api/apps/v1/stateful_set_list.k b/library/k8s/api/apps/v1/stateful_set_list.k new file mode 100644 index 0000000..2eec95d --- /dev/null +++ b/library/k8s/api/apps/v1/stateful_set_list.k @@ -0,0 +1,34 @@ +""" +This is the stateful_set_list module in k8s.api.apps.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema StatefulSetList: + """ + StatefulSetList is a collection of StatefulSets. + + Attributes + ---------- + apiVersion : str, default is "apps/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [StatefulSet], default is Undefined, required + Items is the list of stateful sets. + kind : str, default is "StatefulSetList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "apps/v1" = "apps/v1" + + items: [StatefulSet] + + kind: "StatefulSetList" = "StatefulSetList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/apps/v1/stateful_set_ordinals.k b/library/k8s/api/apps/v1/stateful_set_ordinals.k new file mode 100644 index 0000000..fe2600f --- /dev/null +++ b/library/k8s/api/apps/v1/stateful_set_ordinals.k @@ -0,0 +1,24 @@ +""" +This is the stateful_set_ordinals module in k8s.api.apps.v1 package. +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 StatefulSetOrdinals: + """ + StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. + + Attributes + ---------- + start : int, default is Undefined, optional + start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: + [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). + If unset, defaults to 0. Replica indices will be in the range: + [0, .spec.replicas). + """ + + + start?: int + + diff --git a/library/k8s/api/apps/v1/stateful_set_persistent_volume_claim_retention_policy.k b/library/k8s/api/apps/v1/stateful_set_persistent_volume_claim_retention_policy.k new file mode 100644 index 0000000..3e19a66 --- /dev/null +++ b/library/k8s/api/apps/v1/stateful_set_persistent_volume_claim_retention_policy.k @@ -0,0 +1,25 @@ +""" +This is the stateful_set_persistent_volume_claim_retention_policy module in k8s.api.apps.v1 package. +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 StatefulSetPersistentVolumeClaimRetentionPolicy: + """ + StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. + + Attributes + ---------- + whenDeleted : str, default is Undefined, optional + WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted. + whenScaled : str, default is Undefined, optional + WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted. + """ + + + whenDeleted?: str + + whenScaled?: str + + diff --git a/library/k8s/api/apps/v1/stateful_set_spec.k b/library/k8s/api/apps/v1/stateful_set_spec.k new file mode 100644 index 0000000..c5b98c8 --- /dev/null +++ b/library/k8s/api/apps/v1/stateful_set_spec.k @@ -0,0 +1,63 @@ +""" +This is the stateful_set_spec module in k8s.api.apps.v1 package. +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. +""" +import api.core.v1 as coreV1 +import apimachinery.pkg.apis.meta.v1 + + +schema StatefulSetSpec: + """ + A StatefulSetSpec is the specification of a StatefulSet. + + Attributes + ---------- + minReadySeconds : int, default is Undefined, optional + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + ordinals : StatefulSetOrdinals, default is Undefined, optional + ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is beta. + persistentVolumeClaimRetentionPolicy : StatefulSetPersistentVolumeClaimRetentionPolicy, default is Undefined, optional + persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional + podManagementPolicy : str, default is Undefined, optional + podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + replicas : int, default is Undefined, optional + replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + revisionHistoryLimit : int, default is Undefined, optional + revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + selector : v1.LabelSelector, default is Undefined, required + selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + serviceName : str, default is Undefined, required + serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. + template : coreV1.PodTemplateSpec, default is Undefined, required + template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3". The only allowed template.spec.restartPolicy value is "Always". + updateStrategy : StatefulSetUpdateStrategy, default is Undefined, optional + updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + volumeClaimTemplates : [coreV1.PersistentVolumeClaim], default is Undefined, optional + volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + """ + + + minReadySeconds?: int + + ordinals?: StatefulSetOrdinals + + persistentVolumeClaimRetentionPolicy?: StatefulSetPersistentVolumeClaimRetentionPolicy + + podManagementPolicy?: str + + replicas?: int + + revisionHistoryLimit?: int + + selector: v1.LabelSelector + + serviceName: str + + template: coreV1.PodTemplateSpec + + updateStrategy?: StatefulSetUpdateStrategy + + volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + + diff --git a/library/k8s/api/apps/v1/stateful_set_status.k b/library/k8s/api/apps/v1/stateful_set_status.k new file mode 100644 index 0000000..7811533 --- /dev/null +++ b/library/k8s/api/apps/v1/stateful_set_status.k @@ -0,0 +1,57 @@ +""" +This is the stateful_set_status module in k8s.api.apps.v1 package. +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 StatefulSetStatus: + """ + StatefulSetStatus represents the current state of a StatefulSet. + + Attributes + ---------- + availableReplicas : int, default is Undefined, optional + Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. + collisionCount : int, default is Undefined, optional + collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + conditions : [StatefulSetCondition], default is Undefined, optional + Represents the latest available observations of a statefulset's current state. + currentReplicas : int, default is Undefined, optional + currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + currentRevision : str, default is Undefined, optional + currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + observedGeneration : int, default is Undefined, optional + observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + readyReplicas : int, default is Undefined, optional + readyReplicas is the number of pods created for this StatefulSet with a Ready Condition. + replicas : int, default is Undefined, required + replicas is the number of Pods created by the StatefulSet controller. + updateRevision : str, default is Undefined, optional + updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + updatedReplicas : int, default is Undefined, optional + updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + """ + + + availableReplicas?: int + + collisionCount?: int + + conditions?: [StatefulSetCondition] + + currentReplicas?: int + + currentRevision?: str + + observedGeneration?: int + + readyReplicas?: int + + replicas: int + + updateRevision?: str + + updatedReplicas?: int + + diff --git a/library/k8s/api/apps/v1/stateful_set_update_strategy.k b/library/k8s/api/apps/v1/stateful_set_update_strategy.k new file mode 100644 index 0000000..d83ebaa --- /dev/null +++ b/library/k8s/api/apps/v1/stateful_set_update_strategy.k @@ -0,0 +1,25 @@ +""" +This is the stateful_set_update_strategy module in k8s.api.apps.v1 package. +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 StatefulSetUpdateStrategy: + """ + StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. + + Attributes + ---------- + rollingUpdate : RollingUpdateStatefulSetStrategy, default is Undefined, optional + RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + $type : str, default is Undefined, optional + Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + """ + + + rollingUpdate?: RollingUpdateStatefulSetStrategy + + $type?: str + + diff --git a/library/k8s/api/authentication/v1/bound_object_reference.k b/library/k8s/api/authentication/v1/bound_object_reference.k new file mode 100644 index 0000000..84a9140 --- /dev/null +++ b/library/k8s/api/authentication/v1/bound_object_reference.k @@ -0,0 +1,33 @@ +""" +This is the bound_object_reference module in k8s.api.authentication.v1 package. +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 BoundObjectReference: + """ + BoundObjectReference is a reference to an object that a token is bound to. + + Attributes + ---------- + apiVersion : str, default is Undefined, optional + API version of the referent. + kind : str, default is Undefined, optional + Kind of the referent. Valid kinds are 'Pod' and 'Secret'. + name : str, default is Undefined, optional + Name of the referent. + uid : str, default is Undefined, optional + UID of the referent. + """ + + + apiVersion?: str + + kind?: str + + name?: str + + uid?: str + + diff --git a/library/k8s/api/authentication/v1/token_request.k b/library/k8s/api/authentication/v1/token_request.k new file mode 100644 index 0000000..429ebd8 --- /dev/null +++ b/library/k8s/api/authentication/v1/token_request.k @@ -0,0 +1,34 @@ +""" +This is the token_request module in k8s.api.authentication.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema TokenRequest: + """ + TokenRequest requests a token for a given service account. + + Attributes + ---------- + apiVersion : str, default is "authentication.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "TokenRequest", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : TokenRequestSpec, default is Undefined, required + Spec holds information about the request being evaluated + """ + + + apiVersion: "authentication.k8s.io/v1" = "authentication.k8s.io/v1" + + kind: "TokenRequest" = "TokenRequest" + + metadata?: v1.ObjectMeta + + spec: TokenRequestSpec + + diff --git a/library/k8s/api/authentication/v1/token_request_spec.k b/library/k8s/api/authentication/v1/token_request_spec.k new file mode 100644 index 0000000..b7be596 --- /dev/null +++ b/library/k8s/api/authentication/v1/token_request_spec.k @@ -0,0 +1,29 @@ +""" +This is the token_request_spec module in k8s.api.authentication.v1 package. +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 TokenRequestSpec: + """ + TokenRequestSpec contains client provided parameters of a token request. + + Attributes + ---------- + audiences : [str], default is Undefined, required + Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. + boundObjectRef : BoundObjectReference, default is Undefined, optional + BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation. + expirationSeconds : int, default is Undefined, optional + ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. + """ + + + audiences: [str] + + boundObjectRef?: BoundObjectReference + + expirationSeconds?: int + + diff --git a/library/k8s/api/authentication/v1/token_request_status.k b/library/k8s/api/authentication/v1/token_request_status.k new file mode 100644 index 0000000..2452aeb --- /dev/null +++ b/library/k8s/api/authentication/v1/token_request_status.k @@ -0,0 +1,25 @@ +""" +This is the token_request_status module in k8s.api.authentication.v1 package. +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 TokenRequestStatus: + """ + TokenRequestStatus is the result of a token request. + + Attributes + ---------- + expirationTimestamp : str, default is Undefined, required + ExpirationTimestamp is the time of expiration of the returned token. + token : str, default is Undefined, required + Token is the opaque bearer token. + """ + + + expirationTimestamp: str + + token: str + + diff --git a/library/k8s/api/authentication/v1/token_review.k b/library/k8s/api/authentication/v1/token_review.k new file mode 100644 index 0000000..62c61db --- /dev/null +++ b/library/k8s/api/authentication/v1/token_review.k @@ -0,0 +1,34 @@ +""" +This is the token_review module in k8s.api.authentication.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema TokenReview: + """ + TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + + Attributes + ---------- + apiVersion : str, default is "authentication.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "TokenReview", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : TokenReviewSpec, default is Undefined, required + Spec holds information about the request being evaluated + """ + + + apiVersion: "authentication.k8s.io/v1" = "authentication.k8s.io/v1" + + kind: "TokenReview" = "TokenReview" + + metadata?: v1.ObjectMeta + + spec: TokenReviewSpec + + diff --git a/library/k8s/api/authentication/v1/token_review_spec.k b/library/k8s/api/authentication/v1/token_review_spec.k new file mode 100644 index 0000000..512a3c4 --- /dev/null +++ b/library/k8s/api/authentication/v1/token_review_spec.k @@ -0,0 +1,25 @@ +""" +This is the token_review_spec module in k8s.api.authentication.v1 package. +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 TokenReviewSpec: + """ + TokenReviewSpec is a description of the token authentication request. + + Attributes + ---------- + audiences : [str], default is Undefined, optional + Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. + token : str, default is Undefined, optional + Token is the opaque bearer token. + """ + + + audiences?: [str] + + token?: str + + diff --git a/library/k8s/api/authentication/v1/token_review_status.k b/library/k8s/api/authentication/v1/token_review_status.k new file mode 100644 index 0000000..f895ffb --- /dev/null +++ b/library/k8s/api/authentication/v1/token_review_status.k @@ -0,0 +1,33 @@ +""" +This is the token_review_status module in k8s.api.authentication.v1 package. +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 TokenReviewStatus: + """ + TokenReviewStatus is the result of the token authentication request. + + Attributes + ---------- + audiences : [str], default is Undefined, optional + Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server. + authenticated : bool, default is Undefined, optional + Authenticated indicates that the token was associated with a known user. + error : str, default is Undefined, optional + Error indicates that the token couldn't be checked + user : UserInfo, default is Undefined, optional + User is the UserInfo associated with the provided token. + """ + + + audiences?: [str] + + authenticated?: bool + + error?: str + + user?: UserInfo + + diff --git a/library/k8s/api/authentication/v1/user_info.k b/library/k8s/api/authentication/v1/user_info.k new file mode 100644 index 0000000..dd0538a --- /dev/null +++ b/library/k8s/api/authentication/v1/user_info.k @@ -0,0 +1,33 @@ +""" +This is the user_info module in k8s.api.authentication.v1 package. +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 UserInfo: + """ + UserInfo holds the information about the user needed to implement the user.Info interface. + + Attributes + ---------- + extra : {str:[str]}, default is Undefined, optional + Any additional information provided by the authenticator. + groups : [str], default is Undefined, optional + The names of groups this user is a part of. + uid : str, default is Undefined, optional + A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. + username : str, default is Undefined, optional + The name that uniquely identifies this user among all active users. + """ + + + extra?: {str:[str]} + + groups?: [str] + + uid?: str + + username?: str + + diff --git a/library/k8s/api/authentication/v1alpha1/self_subject_review.k b/library/k8s/api/authentication/v1alpha1/self_subject_review.k new file mode 100644 index 0000000..b0c5c3d --- /dev/null +++ b/library/k8s/api/authentication/v1alpha1/self_subject_review.k @@ -0,0 +1,30 @@ +""" +This is the self_subject_review module in k8s.api.authentication.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema SelfSubjectReview: + """ + SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. + + Attributes + ---------- + apiVersion : str, default is "authentication.k8s.io/v1alpha1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "SelfSubjectReview", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "authentication.k8s.io/v1alpha1" = "authentication.k8s.io/v1alpha1" + + kind: "SelfSubjectReview" = "SelfSubjectReview" + + metadata?: v1.ObjectMeta + + diff --git a/library/k8s/api/authentication/v1alpha1/self_subject_review_status.k b/library/k8s/api/authentication/v1alpha1/self_subject_review_status.k new file mode 100644 index 0000000..5c668d7 --- /dev/null +++ b/library/k8s/api/authentication/v1alpha1/self_subject_review_status.k @@ -0,0 +1,22 @@ +""" +This is the self_subject_review_status module in k8s.api.authentication.v1alpha1 package. +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. +""" +import api.authentication.v1 + + +schema SelfSubjectReviewStatus: + """ + SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. + + Attributes + ---------- + userInfo : v1.UserInfo, default is Undefined, optional + User attributes of the user making this request. + """ + + + userInfo?: v1.UserInfo + + diff --git a/library/k8s/api/authentication/v1beta1/self_subject_review.k b/library/k8s/api/authentication/v1beta1/self_subject_review.k new file mode 100644 index 0000000..7a80c91 --- /dev/null +++ b/library/k8s/api/authentication/v1beta1/self_subject_review.k @@ -0,0 +1,30 @@ +""" +This is the self_subject_review module in k8s.api.authentication.v1beta1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema SelfSubjectReview: + """ + SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. + + Attributes + ---------- + apiVersion : str, default is "authentication.k8s.io/v1beta1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "SelfSubjectReview", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "authentication.k8s.io/v1beta1" = "authentication.k8s.io/v1beta1" + + kind: "SelfSubjectReview" = "SelfSubjectReview" + + metadata?: v1.ObjectMeta + + diff --git a/library/k8s/api/authentication/v1beta1/self_subject_review_status.k b/library/k8s/api/authentication/v1beta1/self_subject_review_status.k new file mode 100644 index 0000000..1656c4c --- /dev/null +++ b/library/k8s/api/authentication/v1beta1/self_subject_review_status.k @@ -0,0 +1,22 @@ +""" +This is the self_subject_review_status module in k8s.api.authentication.v1beta1 package. +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. +""" +import api.authentication.v1 + + +schema SelfSubjectReviewStatus: + """ + SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. + + Attributes + ---------- + userInfo : v1.UserInfo, default is Undefined, optional + User attributes of the user making this request. + """ + + + userInfo?: v1.UserInfo + + diff --git a/library/k8s/api/authorization/v1/local_subject_access_review.k b/library/k8s/api/authorization/v1/local_subject_access_review.k new file mode 100644 index 0000000..79b08fb --- /dev/null +++ b/library/k8s/api/authorization/v1/local_subject_access_review.k @@ -0,0 +1,34 @@ +""" +This is the local_subject_access_review module in k8s.api.authorization.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema LocalSubjectAccessReview: + """ + LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + + Attributes + ---------- + apiVersion : str, default is "authorization.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "LocalSubjectAccessReview", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : SubjectAccessReviewSpec, default is Undefined, required + Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + """ + + + apiVersion: "authorization.k8s.io/v1" = "authorization.k8s.io/v1" + + kind: "LocalSubjectAccessReview" = "LocalSubjectAccessReview" + + metadata?: v1.ObjectMeta + + spec: SubjectAccessReviewSpec + + diff --git a/library/k8s/api/authorization/v1/non_resource_attributes.k b/library/k8s/api/authorization/v1/non_resource_attributes.k new file mode 100644 index 0000000..c243910 --- /dev/null +++ b/library/k8s/api/authorization/v1/non_resource_attributes.k @@ -0,0 +1,25 @@ +""" +This is the non_resource_attributes module in k8s.api.authorization.v1 package. +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 NonResourceAttributes: + """ + NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface + + Attributes + ---------- + path : str, default is Undefined, optional + Path is the URL path of the request + verb : str, default is Undefined, optional + Verb is the standard HTTP verb + """ + + + path?: str + + verb?: str + + diff --git a/library/k8s/api/authorization/v1/non_resource_rule.k b/library/k8s/api/authorization/v1/non_resource_rule.k new file mode 100644 index 0000000..62384a8 --- /dev/null +++ b/library/k8s/api/authorization/v1/non_resource_rule.k @@ -0,0 +1,25 @@ +""" +This is the non_resource_rule module in k8s.api.authorization.v1 package. +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 NonResourceRule: + """ + NonResourceRule holds information that describes a rule for the non-resource + + Attributes + ---------- + nonResourceURLs : [str], default is Undefined, optional + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. "*" means all. + verbs : [str], default is Undefined, required + Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all. + """ + + + nonResourceURLs?: [str] + + verbs: [str] + + diff --git a/library/k8s/api/authorization/v1/resource_attributes.k b/library/k8s/api/authorization/v1/resource_attributes.k new file mode 100644 index 0000000..493c3f9 --- /dev/null +++ b/library/k8s/api/authorization/v1/resource_attributes.k @@ -0,0 +1,45 @@ +""" +This is the resource_attributes module in k8s.api.authorization.v1 package. +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 ResourceAttributes: + """ + ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface + + Attributes + ---------- + group : str, default is Undefined, optional + Group is the API Group of the Resource. "*" means all. + name : str, default is Undefined, optional + Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + namespace : str, default is Undefined, optional + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + resource : str, default is Undefined, optional + Resource is one of the existing resource types. "*" means all. + subresource : str, default is Undefined, optional + Subresource is one of the existing resource types. "" means none. + verb : str, default is Undefined, optional + Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + version : str, default is Undefined, optional + Version is the API Version of the Resource. "*" means all. + """ + + + group?: str + + name?: str + + namespace?: str + + resource?: str + + subresource?: str + + verb?: str + + version?: str + + diff --git a/library/k8s/api/authorization/v1/resource_rule.k b/library/k8s/api/authorization/v1/resource_rule.k new file mode 100644 index 0000000..844df20 --- /dev/null +++ b/library/k8s/api/authorization/v1/resource_rule.k @@ -0,0 +1,34 @@ +""" +This is the resource_rule module in k8s.api.authorization.v1 package. +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 ResourceRule: + """ + ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + + Attributes + ---------- + apiGroups : [str], default is Undefined, optional + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. + resourceNames : [str], default is Undefined, optional + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. + resources : [str], default is Undefined, optional + Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. + "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. + verbs : [str], default is Undefined, required + Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all. + """ + + + apiGroups?: [str] + + resourceNames?: [str] + + resources?: [str] + + verbs: [str] + + diff --git a/library/k8s/api/authorization/v1/self_subject_access_review.k b/library/k8s/api/authorization/v1/self_subject_access_review.k new file mode 100644 index 0000000..4fd1e21 --- /dev/null +++ b/library/k8s/api/authorization/v1/self_subject_access_review.k @@ -0,0 +1,34 @@ +""" +This is the self_subject_access_review module in k8s.api.authorization.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema SelfSubjectAccessReview: + """ + SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action + + Attributes + ---------- + apiVersion : str, default is "authorization.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "SelfSubjectAccessReview", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : SelfSubjectAccessReviewSpec, default is Undefined, required + Spec holds information about the request being evaluated. user and groups must be empty + """ + + + apiVersion: "authorization.k8s.io/v1" = "authorization.k8s.io/v1" + + kind: "SelfSubjectAccessReview" = "SelfSubjectAccessReview" + + metadata?: v1.ObjectMeta + + spec: SelfSubjectAccessReviewSpec + + diff --git a/library/k8s/api/authorization/v1/self_subject_access_review_spec.k b/library/k8s/api/authorization/v1/self_subject_access_review_spec.k new file mode 100644 index 0000000..3c39766 --- /dev/null +++ b/library/k8s/api/authorization/v1/self_subject_access_review_spec.k @@ -0,0 +1,25 @@ +""" +This is the self_subject_access_review_spec module in k8s.api.authorization.v1 package. +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 SelfSubjectAccessReviewSpec: + """ + SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set + + Attributes + ---------- + nonResourceAttributes : NonResourceAttributes, default is Undefined, optional + NonResourceAttributes describes information for a non-resource access request + resourceAttributes : ResourceAttributes, default is Undefined, optional + ResourceAuthorizationAttributes describes information for a resource access request + """ + + + nonResourceAttributes?: NonResourceAttributes + + resourceAttributes?: ResourceAttributes + + diff --git a/library/k8s/api/authorization/v1/self_subject_rules_review.k b/library/k8s/api/authorization/v1/self_subject_rules_review.k new file mode 100644 index 0000000..a29ee59 --- /dev/null +++ b/library/k8s/api/authorization/v1/self_subject_rules_review.k @@ -0,0 +1,34 @@ +""" +This is the self_subject_rules_review module in k8s.api.authorization.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema SelfSubjectRulesReview: + """ + SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + + Attributes + ---------- + apiVersion : str, default is "authorization.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "SelfSubjectRulesReview", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : SelfSubjectRulesReviewSpec, default is Undefined, required + Spec holds information about the request being evaluated. + """ + + + apiVersion: "authorization.k8s.io/v1" = "authorization.k8s.io/v1" + + kind: "SelfSubjectRulesReview" = "SelfSubjectRulesReview" + + metadata?: v1.ObjectMeta + + spec: SelfSubjectRulesReviewSpec + + diff --git a/library/k8s/api/authorization/v1/self_subject_rules_review_spec.k b/library/k8s/api/authorization/v1/self_subject_rules_review_spec.k new file mode 100644 index 0000000..9181326 --- /dev/null +++ b/library/k8s/api/authorization/v1/self_subject_rules_review_spec.k @@ -0,0 +1,21 @@ +""" +This is the self_subject_rules_review_spec module in k8s.api.authorization.v1 package. +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 SelfSubjectRulesReviewSpec: + """ + SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. + + Attributes + ---------- + namespace : str, default is Undefined, optional + Namespace to evaluate rules for. Required. + """ + + + namespace?: str + + diff --git a/library/k8s/api/authorization/v1/subject_access_review.k b/library/k8s/api/authorization/v1/subject_access_review.k new file mode 100644 index 0000000..9d15bdb --- /dev/null +++ b/library/k8s/api/authorization/v1/subject_access_review.k @@ -0,0 +1,34 @@ +""" +This is the subject_access_review module in k8s.api.authorization.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema SubjectAccessReview: + """ + SubjectAccessReview checks whether or not a user or group can perform an action. + + Attributes + ---------- + apiVersion : str, default is "authorization.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "SubjectAccessReview", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : SubjectAccessReviewSpec, default is Undefined, required + Spec holds information about the request being evaluated + """ + + + apiVersion: "authorization.k8s.io/v1" = "authorization.k8s.io/v1" + + kind: "SubjectAccessReview" = "SubjectAccessReview" + + metadata?: v1.ObjectMeta + + spec: SubjectAccessReviewSpec + + diff --git a/library/k8s/api/authorization/v1/subject_access_review_spec.k b/library/k8s/api/authorization/v1/subject_access_review_spec.k new file mode 100644 index 0000000..1f305b3 --- /dev/null +++ b/library/k8s/api/authorization/v1/subject_access_review_spec.k @@ -0,0 +1,41 @@ +""" +This is the subject_access_review_spec module in k8s.api.authorization.v1 package. +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 SubjectAccessReviewSpec: + """ + SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set + + Attributes + ---------- + extra : {str:[str]}, default is Undefined, optional + Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + groups : [str], default is Undefined, optional + Groups is the groups you're testing for. + nonResourceAttributes : NonResourceAttributes, default is Undefined, optional + NonResourceAttributes describes information for a non-resource access request + resourceAttributes : ResourceAttributes, default is Undefined, optional + ResourceAuthorizationAttributes describes information for a resource access request + uid : str, default is Undefined, optional + UID information about the requesting user. + user : str, default is Undefined, optional + User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups + """ + + + extra?: {str:[str]} + + groups?: [str] + + nonResourceAttributes?: NonResourceAttributes + + resourceAttributes?: ResourceAttributes + + uid?: str + + user?: str + + diff --git a/library/k8s/api/authorization/v1/subject_access_review_status.k b/library/k8s/api/authorization/v1/subject_access_review_status.k new file mode 100644 index 0000000..3bd3cf2 --- /dev/null +++ b/library/k8s/api/authorization/v1/subject_access_review_status.k @@ -0,0 +1,33 @@ +""" +This is the subject_access_review_status module in k8s.api.authorization.v1 package. +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 SubjectAccessReviewStatus: + """ + SubjectAccessReviewStatus + + Attributes + ---------- + allowed : bool, default is Undefined, required + Allowed is required. True if the action would be allowed, false otherwise. + denied : bool, default is Undefined, optional + Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. + evaluationError : str, default is Undefined, optional + EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + reason : str, default is Undefined, optional + Reason is optional. It indicates why a request was allowed or denied. + """ + + + allowed: bool + + denied?: bool + + evaluationError?: str + + reason?: str + + diff --git a/library/k8s/api/authorization/v1/subject_rules_review_status.k b/library/k8s/api/authorization/v1/subject_rules_review_status.k new file mode 100644 index 0000000..2dedaca --- /dev/null +++ b/library/k8s/api/authorization/v1/subject_rules_review_status.k @@ -0,0 +1,33 @@ +""" +This is the subject_rules_review_status module in k8s.api.authorization.v1 package. +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 SubjectRulesReviewStatus: + """ + SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete. + + Attributes + ---------- + evaluationError : str, default is Undefined, optional + EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. + incomplete : bool, default is Undefined, required + Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. + nonResourceRules : [NonResourceRule], default is Undefined, required + NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + resourceRules : [ResourceRule], default is Undefined, required + ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + """ + + + evaluationError?: str + + incomplete: bool + + nonResourceRules: [NonResourceRule] + + resourceRules: [ResourceRule] + + diff --git a/library/k8s/api/autoscaling/v1/cross_version_object_reference.k b/library/k8s/api/autoscaling/v1/cross_version_object_reference.k new file mode 100644 index 0000000..3686854 --- /dev/null +++ b/library/k8s/api/autoscaling/v1/cross_version_object_reference.k @@ -0,0 +1,29 @@ +""" +This is the cross_version_object_reference module in k8s.api.autoscaling.v1 package. +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 CrossVersionObjectReference: + """ + CrossVersionObjectReference contains enough information to let you identify the referred resource. + + Attributes + ---------- + apiVersion : str, default is Undefined, optional + apiVersion is the API version of the referent + kind : str, default is Undefined, required + kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + name : str, default is Undefined, required + name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """ + + + apiVersion?: str + + kind: str + + name: str + + diff --git a/library/k8s/api/autoscaling/v1/horizontal_pod_autoscaler.k b/library/k8s/api/autoscaling/v1/horizontal_pod_autoscaler.k new file mode 100644 index 0000000..236f8ff --- /dev/null +++ b/library/k8s/api/autoscaling/v1/horizontal_pod_autoscaler.k @@ -0,0 +1,34 @@ +""" +This is the horizontal_pod_autoscaler module in k8s.api.autoscaling.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema HorizontalPodAutoscaler: + """ + configuration of a horizontal pod autoscaler. + + Attributes + ---------- + apiVersion : str, default is "autoscaling/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "HorizontalPodAutoscaler", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : HorizontalPodAutoscalerSpec, default is Undefined, optional + spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + + + apiVersion: "autoscaling/v1" = "autoscaling/v1" + + kind: "HorizontalPodAutoscaler" = "HorizontalPodAutoscaler" + + metadata?: v1.ObjectMeta + + spec?: HorizontalPodAutoscalerSpec + + diff --git a/library/k8s/api/autoscaling/v1/horizontal_pod_autoscaler_list.k b/library/k8s/api/autoscaling/v1/horizontal_pod_autoscaler_list.k new file mode 100644 index 0000000..cf1dc3c --- /dev/null +++ b/library/k8s/api/autoscaling/v1/horizontal_pod_autoscaler_list.k @@ -0,0 +1,34 @@ +""" +This is the horizontal_pod_autoscaler_list module in k8s.api.autoscaling.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema HorizontalPodAutoscalerList: + """ + list of horizontal pod autoscaler objects. + + Attributes + ---------- + apiVersion : str, default is "autoscaling/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [HorizontalPodAutoscaler], default is Undefined, required + items is the list of horizontal pod autoscaler objects. + kind : str, default is "HorizontalPodAutoscalerList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. + """ + + + apiVersion: "autoscaling/v1" = "autoscaling/v1" + + items: [HorizontalPodAutoscaler] + + kind: "HorizontalPodAutoscalerList" = "HorizontalPodAutoscalerList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/autoscaling/v1/horizontal_pod_autoscaler_spec.k b/library/k8s/api/autoscaling/v1/horizontal_pod_autoscaler_spec.k new file mode 100644 index 0000000..124e216 --- /dev/null +++ b/library/k8s/api/autoscaling/v1/horizontal_pod_autoscaler_spec.k @@ -0,0 +1,33 @@ +""" +This is the horizontal_pod_autoscaler_spec module in k8s.api.autoscaling.v1 package. +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 HorizontalPodAutoscalerSpec: + """ + specification of a horizontal pod autoscaler. + + Attributes + ---------- + maxReplicas : int, default is Undefined, required + maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + minReplicas : int, default is Undefined, optional + minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + scaleTargetRef : CrossVersionObjectReference, default is Undefined, required + reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. + targetCPUUtilizationPercentage : int, default is Undefined, optional + targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. + """ + + + maxReplicas: int + + minReplicas?: int + + scaleTargetRef: CrossVersionObjectReference + + targetCPUUtilizationPercentage?: int + + diff --git a/library/k8s/api/autoscaling/v1/horizontal_pod_autoscaler_status.k b/library/k8s/api/autoscaling/v1/horizontal_pod_autoscaler_status.k new file mode 100644 index 0000000..5b4b23c --- /dev/null +++ b/library/k8s/api/autoscaling/v1/horizontal_pod_autoscaler_status.k @@ -0,0 +1,37 @@ +""" +This is the horizontal_pod_autoscaler_status module in k8s.api.autoscaling.v1 package. +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 HorizontalPodAutoscalerStatus: + """ + current status of a horizontal pod autoscaler + + Attributes + ---------- + currentCPUUtilizationPercentage : int, default is Undefined, optional + currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + currentReplicas : int, default is Undefined, required + currentReplicas is the current number of replicas of pods managed by this autoscaler. + desiredReplicas : int, default is Undefined, required + desiredReplicas is the desired number of replicas of pods managed by this autoscaler. + lastScaleTime : str, default is Undefined, optional + lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. + observedGeneration : int, default is Undefined, optional + observedGeneration is the most recent generation observed by this autoscaler. + """ + + + currentCPUUtilizationPercentage?: int + + currentReplicas: int + + desiredReplicas: int + + lastScaleTime?: str + + observedGeneration?: int + + diff --git a/library/k8s/api/autoscaling/v1/scale.k b/library/k8s/api/autoscaling/v1/scale.k new file mode 100644 index 0000000..2b87df9 --- /dev/null +++ b/library/k8s/api/autoscaling/v1/scale.k @@ -0,0 +1,34 @@ +""" +This is the scale module in k8s.api.autoscaling.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Scale: + """ + Scale represents a scaling request for a resource. + + Attributes + ---------- + apiVersion : str, default is "autoscaling/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "Scale", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + spec : ScaleSpec, default is Undefined, optional + spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + + + apiVersion: "autoscaling/v1" = "autoscaling/v1" + + kind: "Scale" = "Scale" + + metadata?: v1.ObjectMeta + + spec?: ScaleSpec + + diff --git a/library/k8s/api/autoscaling/v1/scale_spec.k b/library/k8s/api/autoscaling/v1/scale_spec.k new file mode 100644 index 0000000..860e104 --- /dev/null +++ b/library/k8s/api/autoscaling/v1/scale_spec.k @@ -0,0 +1,21 @@ +""" +This is the scale_spec module in k8s.api.autoscaling.v1 package. +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 ScaleSpec: + """ + ScaleSpec describes the attributes of a scale subresource. + + Attributes + ---------- + replicas : int, default is Undefined, optional + replicas is the desired number of instances for the scaled object. + """ + + + replicas?: int + + diff --git a/library/k8s/api/autoscaling/v1/scale_status.k b/library/k8s/api/autoscaling/v1/scale_status.k new file mode 100644 index 0000000..aac1341 --- /dev/null +++ b/library/k8s/api/autoscaling/v1/scale_status.k @@ -0,0 +1,25 @@ +""" +This is the scale_status module in k8s.api.autoscaling.v1 package. +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 ScaleStatus: + """ + ScaleStatus represents the current status of a scale subresource. + + Attributes + ---------- + replicas : int, default is Undefined, required + replicas is the actual number of observed instances of the scaled object. + selector : str, default is Undefined, optional + selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + """ + + + replicas: int + + selector?: str + + diff --git a/library/k8s/api/autoscaling/v2/container_resource_metric_source.k b/library/k8s/api/autoscaling/v2/container_resource_metric_source.k new file mode 100644 index 0000000..6046e28 --- /dev/null +++ b/library/k8s/api/autoscaling/v2/container_resource_metric_source.k @@ -0,0 +1,29 @@ +""" +This is the container_resource_metric_source module in k8s.api.autoscaling.v2 package. +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 ContainerResourceMetricSource: + """ + ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. + + Attributes + ---------- + container : str, default is Undefined, required + container is the name of the container in the pods of the scaling target + name : str, default is Undefined, required + name is the name of the resource in question. + target : MetricTarget, default is Undefined, required + target specifies the target value for the given metric + """ + + + container: str + + name: str + + target: MetricTarget + + diff --git a/library/k8s/api/autoscaling/v2/container_resource_metric_status.k b/library/k8s/api/autoscaling/v2/container_resource_metric_status.k new file mode 100644 index 0000000..98746bd --- /dev/null +++ b/library/k8s/api/autoscaling/v2/container_resource_metric_status.k @@ -0,0 +1,29 @@ +""" +This is the container_resource_metric_status module in k8s.api.autoscaling.v2 package. +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 ContainerResourceMetricStatus: + """ + ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. + + Attributes + ---------- + container : str, default is Undefined, required + container is the name of the container in the pods of the scaling target + current : MetricValueStatus, default is Undefined, required + current contains the current value for the given metric + name : str, default is Undefined, required + name is the name of the resource in question. + """ + + + container: str + + current: MetricValueStatus + + name: str + + diff --git a/library/k8s/api/autoscaling/v2/cross_version_object_reference.k b/library/k8s/api/autoscaling/v2/cross_version_object_reference.k new file mode 100644 index 0000000..a77fe38 --- /dev/null +++ b/library/k8s/api/autoscaling/v2/cross_version_object_reference.k @@ -0,0 +1,29 @@ +""" +This is the cross_version_object_reference module in k8s.api.autoscaling.v2 package. +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 CrossVersionObjectReference: + """ + CrossVersionObjectReference contains enough information to let you identify the referred resource. + + Attributes + ---------- + apiVersion : str, default is Undefined, optional + apiVersion is the API version of the referent + kind : str, default is Undefined, required + kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + name : str, default is Undefined, required + name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """ + + + apiVersion?: str + + kind: str + + name: str + + diff --git a/library/k8s/api/autoscaling/v2/external_metric_source.k b/library/k8s/api/autoscaling/v2/external_metric_source.k new file mode 100644 index 0000000..0e5a214 --- /dev/null +++ b/library/k8s/api/autoscaling/v2/external_metric_source.k @@ -0,0 +1,25 @@ +""" +This is the external_metric_source module in k8s.api.autoscaling.v2 package. +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 ExternalMetricSource: + """ + ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + + Attributes + ---------- + metric : MetricIdentifier, default is Undefined, required + metric identifies the target metric by name and selector + target : MetricTarget, default is Undefined, required + target specifies the target value for the given metric + """ + + + metric: MetricIdentifier + + target: MetricTarget + + diff --git a/library/k8s/api/autoscaling/v2/external_metric_status.k b/library/k8s/api/autoscaling/v2/external_metric_status.k new file mode 100644 index 0000000..f9b1e54 --- /dev/null +++ b/library/k8s/api/autoscaling/v2/external_metric_status.k @@ -0,0 +1,25 @@ +""" +This is the external_metric_status module in k8s.api.autoscaling.v2 package. +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 ExternalMetricStatus: + """ + ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. + + Attributes + ---------- + current : MetricValueStatus, default is Undefined, required + current contains the current value for the given metric + metric : MetricIdentifier, default is Undefined, required + metric identifies the target metric by name and selector + """ + + + current: MetricValueStatus + + metric: MetricIdentifier + + diff --git a/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler.k b/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler.k new file mode 100644 index 0000000..45093ba --- /dev/null +++ b/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler.k @@ -0,0 +1,34 @@ +""" +This is the horizontal_pod_autoscaler module in k8s.api.autoscaling.v2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema HorizontalPodAutoscaler: + """ + HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + + Attributes + ---------- + apiVersion : str, default is "autoscaling/v2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "HorizontalPodAutoscaler", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : HorizontalPodAutoscalerSpec, default is Undefined, optional + spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + + + apiVersion: "autoscaling/v2" = "autoscaling/v2" + + kind: "HorizontalPodAutoscaler" = "HorizontalPodAutoscaler" + + metadata?: v1.ObjectMeta + + spec?: HorizontalPodAutoscalerSpec + + diff --git a/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_behavior.k b/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_behavior.k new file mode 100644 index 0000000..2d69eed --- /dev/null +++ b/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_behavior.k @@ -0,0 +1,28 @@ +""" +This is the horizontal_pod_autoscaler_behavior module in k8s.api.autoscaling.v2 package. +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 HorizontalPodAutoscalerBehavior: + """ + HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). + + Attributes + ---------- + scaleDown : HPAScalingRules, default is Undefined, optional + scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). + scaleUp : HPAScalingRules, default is Undefined, optional + scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: + * increase no more than 4 pods per 60 seconds + * double the number of pods per 60 seconds + No stabilization is used. + """ + + + scaleDown?: HPAScalingRules + + scaleUp?: HPAScalingRules + + diff --git a/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_condition.k b/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_condition.k new file mode 100644 index 0000000..662cc74 --- /dev/null +++ b/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_condition.k @@ -0,0 +1,37 @@ +""" +This is the horizontal_pod_autoscaler_condition module in k8s.api.autoscaling.v2 package. +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 HorizontalPodAutoscalerCondition: + """ + HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + lastTransitionTime is the last time the condition transitioned from one status to another + message : str, default is Undefined, optional + message is a human-readable explanation containing details about the transition + reason : str, default is Undefined, optional + reason is the reason for the condition's last transition. + status : str, default is Undefined, required + status is the status of the condition (True, False, Unknown) + $type : str, default is Undefined, required + type describes the current condition + """ + + + lastTransitionTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_list.k b/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_list.k new file mode 100644 index 0000000..07b059f --- /dev/null +++ b/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_list.k @@ -0,0 +1,34 @@ +""" +This is the horizontal_pod_autoscaler_list module in k8s.api.autoscaling.v2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema HorizontalPodAutoscalerList: + """ + HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + + Attributes + ---------- + apiVersion : str, default is "autoscaling/v2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [HorizontalPodAutoscaler], default is Undefined, required + items is the list of horizontal pod autoscaler objects. + kind : str, default is "HorizontalPodAutoscalerList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + metadata is the standard list metadata. + """ + + + apiVersion: "autoscaling/v2" = "autoscaling/v2" + + items: [HorizontalPodAutoscaler] + + kind: "HorizontalPodAutoscalerList" = "HorizontalPodAutoscalerList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_spec.k b/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_spec.k new file mode 100644 index 0000000..a7d4437 --- /dev/null +++ b/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_spec.k @@ -0,0 +1,37 @@ +""" +This is the horizontal_pod_autoscaler_spec module in k8s.api.autoscaling.v2 package. +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 HorizontalPodAutoscalerSpec: + """ + HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. + + Attributes + ---------- + behavior : HorizontalPodAutoscalerBehavior, default is Undefined, optional + behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. + maxReplicas : int, default is Undefined, required + maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + metrics : [MetricSpec], default is Undefined, optional + metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. + minReplicas : int, default is Undefined, optional + minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + scaleTargetRef : CrossVersionObjectReference, default is Undefined, required + scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + """ + + + behavior?: HorizontalPodAutoscalerBehavior + + maxReplicas: int + + metrics?: [MetricSpec] + + minReplicas?: int + + scaleTargetRef: CrossVersionObjectReference + + diff --git a/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_status.k b/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_status.k new file mode 100644 index 0000000..f9c7bec --- /dev/null +++ b/library/k8s/api/autoscaling/v2/horizontal_pod_autoscaler_status.k @@ -0,0 +1,41 @@ +""" +This is the horizontal_pod_autoscaler_status module in k8s.api.autoscaling.v2 package. +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 HorizontalPodAutoscalerStatus: + """ + HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. + + Attributes + ---------- + conditions : [HorizontalPodAutoscalerCondition], default is Undefined, optional + conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. + currentMetrics : [MetricStatus], default is Undefined, optional + currentMetrics is the last read state of the metrics used by this autoscaler. + currentReplicas : int, default is Undefined, optional + currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. + desiredReplicas : int, default is Undefined, required + desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. + lastScaleTime : str, default is Undefined, optional + lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. + observedGeneration : int, default is Undefined, optional + observedGeneration is the most recent generation observed by this autoscaler. + """ + + + conditions?: [HorizontalPodAutoscalerCondition] + + currentMetrics?: [MetricStatus] + + currentReplicas?: int + + desiredReplicas: int + + lastScaleTime?: str + + observedGeneration?: int + + diff --git a/library/k8s/api/autoscaling/v2/hpa_scaling_policy.k b/library/k8s/api/autoscaling/v2/hpa_scaling_policy.k new file mode 100644 index 0000000..c1d20fb --- /dev/null +++ b/library/k8s/api/autoscaling/v2/hpa_scaling_policy.k @@ -0,0 +1,29 @@ +""" +This is the hpa_scaling_policy module in k8s.api.autoscaling.v2 package. +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 HPAScalingPolicy: + """ + HPAScalingPolicy is a single policy which must hold true for a specified past interval. + + Attributes + ---------- + periodSeconds : int, default is Undefined, required + periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). + $type : str, default is Undefined, required + type is used to specify the scaling policy. + value : int, default is Undefined, required + value contains the amount of change which is permitted by the policy. It must be greater than zero + """ + + + periodSeconds: int + + $type: str + + value: int + + diff --git a/library/k8s/api/autoscaling/v2/hpa_scaling_rules.k b/library/k8s/api/autoscaling/v2/hpa_scaling_rules.k new file mode 100644 index 0000000..021df7a --- /dev/null +++ b/library/k8s/api/autoscaling/v2/hpa_scaling_rules.k @@ -0,0 +1,29 @@ +""" +This is the hpa_scaling_rules module in k8s.api.autoscaling.v2 package. +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 HPAScalingRules: + """ + HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. + + Attributes + ---------- + policies : [HPAScalingPolicy], default is Undefined, optional + policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid + selectPolicy : str, default is Undefined, optional + selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. + stabilizationWindowSeconds : int, default is Undefined, optional + stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). + """ + + + policies?: [HPAScalingPolicy] + + selectPolicy?: str + + stabilizationWindowSeconds?: int + + diff --git a/library/k8s/api/autoscaling/v2/metric_identifier.k b/library/k8s/api/autoscaling/v2/metric_identifier.k new file mode 100644 index 0000000..d1538fb --- /dev/null +++ b/library/k8s/api/autoscaling/v2/metric_identifier.k @@ -0,0 +1,26 @@ +""" +This is the metric_identifier module in k8s.api.autoscaling.v2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema MetricIdentifier: + """ + MetricIdentifier defines the name and optionally selector for a metric + + Attributes + ---------- + name : str, default is Undefined, required + name is the name of the given metric + selector : v1.LabelSelector, default is Undefined, optional + selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + """ + + + name: str + + selector?: v1.LabelSelector + + diff --git a/library/k8s/api/autoscaling/v2/metric_spec.k b/library/k8s/api/autoscaling/v2/metric_spec.k new file mode 100644 index 0000000..db12e85 --- /dev/null +++ b/library/k8s/api/autoscaling/v2/metric_spec.k @@ -0,0 +1,41 @@ +""" +This is the metric_spec module in k8s.api.autoscaling.v2 package. +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 MetricSpec: + """ + MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). + + Attributes + ---------- + containerResource : ContainerResourceMetricSource, default is Undefined, optional + containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. + external : ExternalMetricSource, default is Undefined, optional + external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + object : ObjectMetricSource, default is Undefined, optional + object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + pods : PodsMetricSource, default is Undefined, optional + pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + resource : ResourceMetricSource, default is Undefined, optional + resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. + $type : str, default is Undefined, required + type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled + """ + + + containerResource?: ContainerResourceMetricSource + + external?: ExternalMetricSource + + object?: ObjectMetricSource + + pods?: PodsMetricSource + + resource?: ResourceMetricSource + + $type: str + + diff --git a/library/k8s/api/autoscaling/v2/metric_status.k b/library/k8s/api/autoscaling/v2/metric_status.k new file mode 100644 index 0000000..5839e2e --- /dev/null +++ b/library/k8s/api/autoscaling/v2/metric_status.k @@ -0,0 +1,41 @@ +""" +This is the metric_status module in k8s.api.autoscaling.v2 package. +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 MetricStatus: + """ + MetricStatus describes the last-read state of a single metric. + + Attributes + ---------- + containerResource : ContainerResourceMetricStatus, default is Undefined, optional + container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. + external : ExternalMetricStatus, default is Undefined, optional + external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + object : ObjectMetricStatus, default is Undefined, optional + object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + pods : PodsMetricStatus, default is Undefined, optional + pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + resource : ResourceMetricStatus, default is Undefined, optional + resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. + $type : str, default is Undefined, required + type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled + """ + + + containerResource?: ContainerResourceMetricStatus + + external?: ExternalMetricStatus + + object?: ObjectMetricStatus + + pods?: PodsMetricStatus + + resource?: ResourceMetricStatus + + $type: str + + diff --git a/library/k8s/api/autoscaling/v2/metric_target.k b/library/k8s/api/autoscaling/v2/metric_target.k new file mode 100644 index 0000000..a2fa15d --- /dev/null +++ b/library/k8s/api/autoscaling/v2/metric_target.k @@ -0,0 +1,33 @@ +""" +This is the metric_target module in k8s.api.autoscaling.v2 package. +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 MetricTarget: + """ + MetricTarget defines the target value, average value, or average utilization of a specific metric + + Attributes + ---------- + averageUtilization : int, default is Undefined, optional + averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type + averageValue : str, default is Undefined, optional + averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + $type : str, default is Undefined, required + type represents whether the metric type is Utilization, Value, or AverageValue + value : str, default is Undefined, optional + value is the target value of the metric (as a quantity). + """ + + + averageUtilization?: int + + averageValue?: str + + $type: str + + value?: str + + diff --git a/library/k8s/api/autoscaling/v2/metric_value_status.k b/library/k8s/api/autoscaling/v2/metric_value_status.k new file mode 100644 index 0000000..25a0a0d --- /dev/null +++ b/library/k8s/api/autoscaling/v2/metric_value_status.k @@ -0,0 +1,29 @@ +""" +This is the metric_value_status module in k8s.api.autoscaling.v2 package. +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 MetricValueStatus: + """ + MetricValueStatus holds the current value for a metric + + Attributes + ---------- + averageUtilization : int, default is Undefined, optional + currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + averageValue : str, default is Undefined, optional + averageValue is the current value of the average of the metric across all relevant pods (as a quantity) + value : str, default is Undefined, optional + value is the current value of the metric (as a quantity). + """ + + + averageUtilization?: int + + averageValue?: str + + value?: str + + diff --git a/library/k8s/api/autoscaling/v2/object_metric_source.k b/library/k8s/api/autoscaling/v2/object_metric_source.k new file mode 100644 index 0000000..4714e99 --- /dev/null +++ b/library/k8s/api/autoscaling/v2/object_metric_source.k @@ -0,0 +1,29 @@ +""" +This is the object_metric_source module in k8s.api.autoscaling.v2 package. +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 ObjectMetricSource: + """ + ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). + + Attributes + ---------- + describedObject : CrossVersionObjectReference, default is Undefined, required + describedObject specifies the descriptions of a object,such as kind,name apiVersion + metric : MetricIdentifier, default is Undefined, required + metric identifies the target metric by name and selector + target : MetricTarget, default is Undefined, required + target specifies the target value for the given metric + """ + + + describedObject: CrossVersionObjectReference + + metric: MetricIdentifier + + target: MetricTarget + + diff --git a/library/k8s/api/autoscaling/v2/object_metric_status.k b/library/k8s/api/autoscaling/v2/object_metric_status.k new file mode 100644 index 0000000..eed038a --- /dev/null +++ b/library/k8s/api/autoscaling/v2/object_metric_status.k @@ -0,0 +1,29 @@ +""" +This is the object_metric_status module in k8s.api.autoscaling.v2 package. +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 ObjectMetricStatus: + """ + ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). + + Attributes + ---------- + current : MetricValueStatus, default is Undefined, required + current contains the current value for the given metric + describedObject : CrossVersionObjectReference, default is Undefined, required + DescribedObject specifies the descriptions of a object,such as kind,name apiVersion + metric : MetricIdentifier, default is Undefined, required + metric identifies the target metric by name and selector + """ + + + current: MetricValueStatus + + describedObject: CrossVersionObjectReference + + metric: MetricIdentifier + + diff --git a/library/k8s/api/autoscaling/v2/pods_metric_source.k b/library/k8s/api/autoscaling/v2/pods_metric_source.k new file mode 100644 index 0000000..a67b212 --- /dev/null +++ b/library/k8s/api/autoscaling/v2/pods_metric_source.k @@ -0,0 +1,25 @@ +""" +This is the pods_metric_source module in k8s.api.autoscaling.v2 package. +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 PodsMetricSource: + """ + PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + + Attributes + ---------- + metric : MetricIdentifier, default is Undefined, required + metric identifies the target metric by name and selector + target : MetricTarget, default is Undefined, required + target specifies the target value for the given metric + """ + + + metric: MetricIdentifier + + target: MetricTarget + + diff --git a/library/k8s/api/autoscaling/v2/pods_metric_status.k b/library/k8s/api/autoscaling/v2/pods_metric_status.k new file mode 100644 index 0000000..c3cfa38 --- /dev/null +++ b/library/k8s/api/autoscaling/v2/pods_metric_status.k @@ -0,0 +1,25 @@ +""" +This is the pods_metric_status module in k8s.api.autoscaling.v2 package. +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 PodsMetricStatus: + """ + PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). + + Attributes + ---------- + current : MetricValueStatus, default is Undefined, required + current contains the current value for the given metric + metric : MetricIdentifier, default is Undefined, required + metric identifies the target metric by name and selector + """ + + + current: MetricValueStatus + + metric: MetricIdentifier + + diff --git a/library/k8s/api/autoscaling/v2/resource_metric_source.k b/library/k8s/api/autoscaling/v2/resource_metric_source.k new file mode 100644 index 0000000..4d8527c --- /dev/null +++ b/library/k8s/api/autoscaling/v2/resource_metric_source.k @@ -0,0 +1,25 @@ +""" +This is the resource_metric_source module in k8s.api.autoscaling.v2 package. +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 ResourceMetricSource: + """ + ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. + + Attributes + ---------- + name : str, default is Undefined, required + name is the name of the resource in question. + target : MetricTarget, default is Undefined, required + target specifies the target value for the given metric + """ + + + name: str + + target: MetricTarget + + diff --git a/library/k8s/api/autoscaling/v2/resource_metric_status.k b/library/k8s/api/autoscaling/v2/resource_metric_status.k new file mode 100644 index 0000000..b0f56b4 --- /dev/null +++ b/library/k8s/api/autoscaling/v2/resource_metric_status.k @@ -0,0 +1,25 @@ +""" +This is the resource_metric_status module in k8s.api.autoscaling.v2 package. +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 ResourceMetricStatus: + """ + ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. + + Attributes + ---------- + current : MetricValueStatus, default is Undefined, required + current contains the current value for the given metric + name : str, default is Undefined, required + name is the name of the resource in question. + """ + + + current: MetricValueStatus + + name: str + + diff --git a/library/k8s/api/batch/v1/cron_job.k b/library/k8s/api/batch/v1/cron_job.k new file mode 100644 index 0000000..380498f --- /dev/null +++ b/library/k8s/api/batch/v1/cron_job.k @@ -0,0 +1,34 @@ +""" +This is the cron_job module in k8s.api.batch.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema CronJob: + """ + CronJob represents the configuration of a single cron job. + + Attributes + ---------- + apiVersion : str, default is "batch/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "CronJob", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : CronJobSpec, default is Undefined, optional + Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "batch/v1" = "batch/v1" + + kind: "CronJob" = "CronJob" + + metadata?: v1.ObjectMeta + + spec?: CronJobSpec + + diff --git a/library/k8s/api/batch/v1/cron_job_list.k b/library/k8s/api/batch/v1/cron_job_list.k new file mode 100644 index 0000000..69e1971 --- /dev/null +++ b/library/k8s/api/batch/v1/cron_job_list.k @@ -0,0 +1,34 @@ +""" +This is the cron_job_list module in k8s.api.batch.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema CronJobList: + """ + CronJobList is a collection of cron jobs. + + Attributes + ---------- + apiVersion : str, default is "batch/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [CronJob], default is Undefined, required + items is the list of CronJobs. + kind : str, default is "CronJobList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "batch/v1" = "batch/v1" + + items: [CronJob] + + kind: "CronJobList" = "CronJobList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/batch/v1/cron_job_spec.k b/library/k8s/api/batch/v1/cron_job_spec.k new file mode 100644 index 0000000..218d7ca --- /dev/null +++ b/library/k8s/api/batch/v1/cron_job_spec.k @@ -0,0 +1,51 @@ +""" +This is the cron_job_spec module in k8s.api.batch.v1 package. +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 CronJobSpec: + """ + CronJobSpec describes how the job execution will look like and when it will actually run. + + Attributes + ---------- + concurrencyPolicy : str, default is Undefined, optional + Specifies how to treat concurrent executions of a Job. Valid values are: + + - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one + failedJobsHistoryLimit : int, default is Undefined, optional + The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. + jobTemplate : JobTemplateSpec, default is Undefined, required + Specifies the job that will be created when executing a CronJob. + schedule : str, default is Undefined, required + The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + startingDeadlineSeconds : int, default is Undefined, optional + Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + successfulJobsHistoryLimit : int, default is Undefined, optional + The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. + suspend : bool, default is Undefined, optional + This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + timeZone : str, default is Undefined, optional + The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones + """ + + + concurrencyPolicy?: str + + failedJobsHistoryLimit?: int + + jobTemplate: JobTemplateSpec + + schedule: str + + startingDeadlineSeconds?: int + + successfulJobsHistoryLimit?: int + + suspend?: bool + + timeZone?: str + + diff --git a/library/k8s/api/batch/v1/cron_job_status.k b/library/k8s/api/batch/v1/cron_job_status.k new file mode 100644 index 0000000..bc07fdb --- /dev/null +++ b/library/k8s/api/batch/v1/cron_job_status.k @@ -0,0 +1,30 @@ +""" +This is the cron_job_status module in k8s.api.batch.v1 package. +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. +""" +import api.core.v1 + + +schema CronJobStatus: + """ + CronJobStatus represents the current state of a cron job. + + Attributes + ---------- + active : [v1.ObjectReference], default is Undefined, optional + A list of pointers to currently running jobs. + lastScheduleTime : str, default is Undefined, optional + Information when was the last time the job was successfully scheduled. + lastSuccessfulTime : str, default is Undefined, optional + Information when was the last time the job successfully completed. + """ + + + active?: [v1.ObjectReference] + + lastScheduleTime?: str + + lastSuccessfulTime?: str + + diff --git a/library/k8s/api/batch/v1/job.k b/library/k8s/api/batch/v1/job.k new file mode 100644 index 0000000..44fbc91 --- /dev/null +++ b/library/k8s/api/batch/v1/job.k @@ -0,0 +1,34 @@ +""" +This is the job module in k8s.api.batch.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Job: + """ + Job represents the configuration of a single job. + + Attributes + ---------- + apiVersion : str, default is "batch/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "Job", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : JobSpec, default is Undefined, optional + Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "batch/v1" = "batch/v1" + + kind: "Job" = "Job" + + metadata?: v1.ObjectMeta + + spec?: JobSpec + + diff --git a/library/k8s/api/batch/v1/job_condition.k b/library/k8s/api/batch/v1/job_condition.k new file mode 100644 index 0000000..95f78e3 --- /dev/null +++ b/library/k8s/api/batch/v1/job_condition.k @@ -0,0 +1,41 @@ +""" +This is the job_condition module in k8s.api.batch.v1 package. +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 JobCondition: + """ + JobCondition describes current state of a job. + + Attributes + ---------- + lastProbeTime : str, default is Undefined, optional + Last time the condition was checked. + lastTransitionTime : str, default is Undefined, optional + Last time the condition transit from one status to another. + message : str, default is Undefined, optional + Human readable message indicating details about last transition. + reason : str, default is Undefined, optional + (brief) reason for the condition's last transition. + status : str, default is Undefined, required + Status of the condition, one of True, False, Unknown. + $type : str, default is Undefined, required + Type of job condition, Complete or Failed. + """ + + + lastProbeTime?: str + + lastTransitionTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/api/batch/v1/job_list.k b/library/k8s/api/batch/v1/job_list.k new file mode 100644 index 0000000..8858880 --- /dev/null +++ b/library/k8s/api/batch/v1/job_list.k @@ -0,0 +1,34 @@ +""" +This is the job_list module in k8s.api.batch.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema JobList: + """ + JobList is a collection of jobs. + + Attributes + ---------- + apiVersion : str, default is "batch/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [Job], default is Undefined, required + items is the list of Jobs. + kind : str, default is "JobList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "batch/v1" = "batch/v1" + + items: [Job] + + kind: "JobList" = "JobList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/batch/v1/job_spec.k b/library/k8s/api/batch/v1/job_spec.k new file mode 100644 index 0000000..a2ae1bb --- /dev/null +++ b/library/k8s/api/batch/v1/job_spec.k @@ -0,0 +1,71 @@ +""" +This is the job_spec module in k8s.api.batch.v1 package. +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. +""" +import api.core.v1 as coreV1 +import apimachinery.pkg.apis.meta.v1 + + +schema JobSpec: + """ + JobSpec describes how the job execution will look like. + + Attributes + ---------- + activeDeadlineSeconds : int, default is Undefined, optional + Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again. + backoffLimit : int, default is Undefined, optional + Specifies the number of retries before marking this job failed. Defaults to 6 + completionMode : str, default is Undefined, optional + completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. + + `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. + + `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`. + + More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job. + completions : int, default is Undefined, optional + Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + manualSelector : bool, default is Undefined, optional + manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector + parallelism : int, default is Undefined, optional + Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + podFailurePolicy : PodFailurePolicy, default is Undefined, optional + Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure. + + This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default). + selector : v1.LabelSelector, default is Undefined, optional + A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + suspend : bool, default is Undefined, optional + suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. + template : coreV1.PodTemplateSpec, default is Undefined, required + Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + ttlSecondsAfterFinished : int, default is Undefined, optional + ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. + """ + + + activeDeadlineSeconds?: int + + backoffLimit?: int + + completionMode?: str + + completions?: int + + manualSelector?: bool + + parallelism?: int + + podFailurePolicy?: PodFailurePolicy + + selector?: v1.LabelSelector + + suspend?: bool + + template: coreV1.PodTemplateSpec + + ttlSecondsAfterFinished?: int + + diff --git a/library/k8s/api/batch/v1/job_status.k b/library/k8s/api/batch/v1/job_status.k new file mode 100644 index 0000000..722092f --- /dev/null +++ b/library/k8s/api/batch/v1/job_status.k @@ -0,0 +1,62 @@ +""" +This is the job_status module in k8s.api.batch.v1 package. +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 JobStatus: + """ + JobStatus represents the current state of a Job. + + Attributes + ---------- + active : int, default is Undefined, optional + The number of pending and running pods. + completedIndexes : str, default is Undefined, optional + completedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". + completionTime : str, default is Undefined, optional + Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully. + conditions : [JobCondition], default is Undefined, optional + The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + failed : int, default is Undefined, optional + The number of pods which reached phase Failed. + ready : int, default is Undefined, optional + The number of pods which have a Ready condition. + + This field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default). + startTime : str, default is Undefined, optional + Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC. + succeeded : int, default is Undefined, optional + The number of pods which reached phase Succeeded. + uncountedTerminatedPods : UncountedTerminatedPods, default is Undefined, optional + uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters. + + The job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: + + 1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding + counter. + + Old jobs might not be tracked using this field, in which case the field remains null. + """ + + + active?: int + + completedIndexes?: str + + completionTime?: str + + conditions?: [JobCondition] + + failed?: int + + ready?: int + + startTime?: str + + succeeded?: int + + uncountedTerminatedPods?: UncountedTerminatedPods + + diff --git a/library/k8s/api/batch/v1/job_template_spec.k b/library/k8s/api/batch/v1/job_template_spec.k new file mode 100644 index 0000000..840a8d2 --- /dev/null +++ b/library/k8s/api/batch/v1/job_template_spec.k @@ -0,0 +1,26 @@ +""" +This is the job_template_spec module in k8s.api.batch.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema JobTemplateSpec: + """ + JobTemplateSpec describes the data a Job should have when created from a template + + Attributes + ---------- + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : JobSpec, default is Undefined, optional + Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + metadata?: v1.ObjectMeta + + spec?: JobSpec + + diff --git a/library/k8s/api/batch/v1/pod_failure_policy.k b/library/k8s/api/batch/v1/pod_failure_policy.k new file mode 100644 index 0000000..fd7c8f9 --- /dev/null +++ b/library/k8s/api/batch/v1/pod_failure_policy.k @@ -0,0 +1,21 @@ +""" +This is the pod_failure_policy module in k8s.api.batch.v1 package. +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 PodFailurePolicy: + """ + PodFailurePolicy describes how failed pods influence the backoffLimit. + + Attributes + ---------- + rules : [PodFailurePolicyRule], default is Undefined, required + A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. + """ + + + rules: [PodFailurePolicyRule] + + diff --git a/library/k8s/api/batch/v1/pod_failure_policy_on_exit_codes_requirement.k b/library/k8s/api/batch/v1/pod_failure_policy_on_exit_codes_requirement.k new file mode 100644 index 0000000..0b143ec --- /dev/null +++ b/library/k8s/api/batch/v1/pod_failure_policy_on_exit_codes_requirement.k @@ -0,0 +1,37 @@ +""" +This is the pod_failure_policy_on_exit_codes_requirement module in k8s.api.batch.v1 package. +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 PodFailurePolicyOnExitCodesRequirement: + """ + PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check. + + Attributes + ---------- + containerName : str, default is Undefined, optional + Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template. + operator : str, default is Undefined, required + Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: + + - In: the requirement is satisfied if at least one container exit code + (might be multiple if there are multiple containers not restricted + by the 'containerName' field) is in the set of specified values. + - NotIn: the requirement is satisfied if at least one container exit code + (might be multiple if there are multiple containers not restricted + by the 'containerName' field) is not in the set of specified values. + Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. + values : [int], default is Undefined, required + Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed. + """ + + + containerName?: str + + operator: str + + values: [int] + + diff --git a/library/k8s/api/batch/v1/pod_failure_policy_on_pod_conditions_pattern.k b/library/k8s/api/batch/v1/pod_failure_policy_on_pod_conditions_pattern.k new file mode 100644 index 0000000..77be207 --- /dev/null +++ b/library/k8s/api/batch/v1/pod_failure_policy_on_pod_conditions_pattern.k @@ -0,0 +1,25 @@ +""" +This is the pod_failure_policy_on_pod_conditions_pattern module in k8s.api.batch.v1 package. +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 PodFailurePolicyOnPodConditionsPattern: + """ + PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. + + Attributes + ---------- + status : str, default is Undefined, required + Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True. + $type : str, default is Undefined, required + Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. + """ + + + status: str + + $type: str + + diff --git a/library/k8s/api/batch/v1/pod_failure_policy_rule.k b/library/k8s/api/batch/v1/pod_failure_policy_rule.k new file mode 100644 index 0000000..86829d9 --- /dev/null +++ b/library/k8s/api/batch/v1/pod_failure_policy_rule.k @@ -0,0 +1,37 @@ +""" +This is the pod_failure_policy_rule module in k8s.api.batch.v1 package. +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 PodFailurePolicyRule: + """ + PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule. + + Attributes + ---------- + action : str, default is Undefined, required + Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: + + - FailJob: indicates that the pod's job is marked as Failed and all + running pods are terminated. + - Ignore: indicates that the counter towards the .backoffLimit is not + incremented and a replacement pod is created. + - Count: indicates that the pod is handled in the default way - the + counter towards the .backoffLimit is incremented. + Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. + onExitCodes : PodFailurePolicyOnExitCodesRequirement, default is Undefined, optional + Represents the requirement on the container exit codes. + onPodConditions : [PodFailurePolicyOnPodConditionsPattern], default is Undefined, required + Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. + """ + + + action: str + + onExitCodes?: PodFailurePolicyOnExitCodesRequirement + + onPodConditions: [PodFailurePolicyOnPodConditionsPattern] + + diff --git a/library/k8s/api/batch/v1/uncounted_terminated_pods.k b/library/k8s/api/batch/v1/uncounted_terminated_pods.k new file mode 100644 index 0000000..fddaaf5 --- /dev/null +++ b/library/k8s/api/batch/v1/uncounted_terminated_pods.k @@ -0,0 +1,25 @@ +""" +This is the uncounted_terminated_pods module in k8s.api.batch.v1 package. +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 UncountedTerminatedPods: + """ + UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters. + + Attributes + ---------- + failed : [str], default is Undefined, optional + failed holds UIDs of failed Pods. + succeeded : [str], default is Undefined, optional + succeeded holds UIDs of succeeded Pods. + """ + + + failed?: [str] + + succeeded?: [str] + + diff --git a/library/k8s/api/certificates/v1/certificate_signing_request.k b/library/k8s/api/certificates/v1/certificate_signing_request.k new file mode 100644 index 0000000..70bfc6e --- /dev/null +++ b/library/k8s/api/certificates/v1/certificate_signing_request.k @@ -0,0 +1,40 @@ +""" +This is the certificate_signing_request module in k8s.api.certificates.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema CertificateSigningRequest: + """ + CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. + + Kubelets use this API to obtain: + 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). + 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). + + This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers. + + Attributes + ---------- + apiVersion : str, default is "certificates.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "CertificateSigningRequest", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + metadata + spec : CertificateSigningRequestSpec, default is Undefined, required + spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users. + """ + + + apiVersion: "certificates.k8s.io/v1" = "certificates.k8s.io/v1" + + kind: "CertificateSigningRequest" = "CertificateSigningRequest" + + metadata?: v1.ObjectMeta + + spec: CertificateSigningRequestSpec + + diff --git a/library/k8s/api/certificates/v1/certificate_signing_request_condition.k b/library/k8s/api/certificates/v1/certificate_signing_request_condition.k new file mode 100644 index 0000000..49271a1 --- /dev/null +++ b/library/k8s/api/certificates/v1/certificate_signing_request_condition.k @@ -0,0 +1,51 @@ +""" +This is the certificate_signing_request_condition module in k8s.api.certificates.v1 package. +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 CertificateSigningRequestCondition: + """ + CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time. + lastUpdateTime : str, default is Undefined, optional + lastUpdateTime is the time of the last update to this condition + message : str, default is Undefined, optional + message contains a human readable message with details about the request state + reason : str, default is Undefined, optional + reason indicates a brief reason for the request state + status : str, default is Undefined, required + status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be "False" or "Unknown". + $type : str, default is Undefined, required + type of the condition. Known conditions are "Approved", "Denied", and "Failed". + + An "Approved" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. + + A "Denied" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. + + A "Failed" condition is added via the /status subresource, indicating the signer failed to issue the certificate. + + Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. + + Only one condition of a given type is allowed. + """ + + + lastTransitionTime?: str + + lastUpdateTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/api/certificates/v1/certificate_signing_request_list.k b/library/k8s/api/certificates/v1/certificate_signing_request_list.k new file mode 100644 index 0000000..bef8b50 --- /dev/null +++ b/library/k8s/api/certificates/v1/certificate_signing_request_list.k @@ -0,0 +1,34 @@ +""" +This is the certificate_signing_request_list module in k8s.api.certificates.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema CertificateSigningRequestList: + """ + CertificateSigningRequestList is a collection of CertificateSigningRequest objects + + Attributes + ---------- + apiVersion : str, default is "certificates.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [CertificateSigningRequest], default is Undefined, required + items is a collection of CertificateSigningRequest objects + kind : str, default is "CertificateSigningRequestList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + metadata + """ + + + apiVersion: "certificates.k8s.io/v1" = "certificates.k8s.io/v1" + + items: [CertificateSigningRequest] + + kind: "CertificateSigningRequestList" = "CertificateSigningRequestList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/certificates/v1/certificate_signing_request_spec.k b/library/k8s/api/certificates/v1/certificate_signing_request_spec.k new file mode 100644 index 0000000..bb13d0e --- /dev/null +++ b/library/k8s/api/certificates/v1/certificate_signing_request_spec.k @@ -0,0 +1,93 @@ +""" +This is the certificate_signing_request_spec module in k8s.api.certificates.v1 package. +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 CertificateSigningRequestSpec: + """ + CertificateSigningRequestSpec contains the certificate request. + + Attributes + ---------- + expirationSeconds : int, default is Undefined, optional + expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration. + + The v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager. + + Certificate signers may not honor this field for various reasons: + + 1. Old signer that is unaware of the field (such as the in-tree + implementations prior to v1.22) + 2. Signer whose configured maximum is shorter than the requested duration + 3. Signer whose configured minimum is longer than the requested duration + + The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. + extra : {str:[str]}, default is Undefined, optional + extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + groups : [str], default is Undefined, optional + groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + request : str, default is Undefined, required + request contains an x509 certificate signing request encoded in a "CERTIFICATE REQUEST" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded. + signerName : str, default is Undefined, required + signerName indicates the requested signer, and is a qualified name. + + List/watch requests for CertificateSigningRequests can filter on this field using a "spec.signerName=NAME" fieldSelector. + + Well-known Kubernetes signers are: + 1. "kubernetes.io/kube-apiserver-client": issues client certificates that can be used to authenticate to kube-apiserver. + Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the "csrsigning" controller in kube-controller-manager. + 2. "kubernetes.io/kube-apiserver-client-kubelet": issues client certificates that kubelets use to authenticate to kube-apiserver. + Requests for this signer can be auto-approved by the "csrapproving" controller in kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. + 3. "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. + Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. + + More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers + + Custom signerNames can also be specified. The signer defines: + 1. Trust distribution: how trust (CA bundles) are distributed. + 2. Permitted subjects: and behavior when a disallowed subject is requested. + 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. + 4. Required, permitted, or forbidden key usages / extended key usages. + 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. + 6. Whether or not requests for CA certificates are allowed. + uid : str, default is Undefined, optional + uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + usages : [str], default is Undefined, optional + usages specifies a set of key usages requested in the issued certificate. + + Requests for TLS client certificates typically request: "digital signature", "key encipherment", "client auth". + + Requests for TLS serving certificates typically request: "key encipherment", "digital signature", "server auth". + + Valid values are: + "signing", "digital signature", "content commitment", + "key encipherment", "key agreement", "data encipherment", + "cert sign", "crl sign", "encipher only", "decipher only", "any", + "server auth", "client auth", + "code signing", "email protection", "s/mime", + "ipsec end system", "ipsec tunnel", "ipsec user", + "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" + username : str, default is Undefined, optional + username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + """ + + + expirationSeconds?: int + + extra?: {str:[str]} + + groups?: [str] + + request: str + + signerName: str + + uid?: str + + usages?: [str] + + username?: str + + diff --git a/library/k8s/api/certificates/v1/certificate_signing_request_status.k b/library/k8s/api/certificates/v1/certificate_signing_request_status.k new file mode 100644 index 0000000..94875a3 --- /dev/null +++ b/library/k8s/api/certificates/v1/certificate_signing_request_status.k @@ -0,0 +1,46 @@ +""" +This is the certificate_signing_request_status module in k8s.api.certificates.v1 package. +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 CertificateSigningRequestStatus: + """ + CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate. + + Attributes + ---------- + certificate : str, default is Undefined, optional + certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable. + + If the certificate signing request is denied, a condition of type "Denied" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type "Failed" is added and this field remains empty. + + Validation requirements: + 1. certificate must contain one or more PEM blocks. + 2. All PEM blocks must have the "CERTIFICATE" label, contain no headers, and the encoded data + must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280. + 3. Non-PEM content may appear before or after the "CERTIFICATE" PEM blocks and is unvalidated, + to allow for explanatory text as described in section 5.2 of RFC7468. + + If more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. + + The certificate is encoded in PEM format. + + When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of: + + base64( + -----BEGIN CERTIFICATE----- + ... + -----END CERTIFICATE----- + ) + conditions : [CertificateSigningRequestCondition], default is Undefined, optional + conditions applied to the request. Known conditions are "Approved", "Denied", and "Failed". + """ + + + certificate?: str + + conditions?: [CertificateSigningRequestCondition] + + diff --git a/library/k8s/api/certificates/v1alpha1/cluster_trust_bundle.k b/library/k8s/api/certificates/v1alpha1/cluster_trust_bundle.k new file mode 100644 index 0000000..842f9c5 --- /dev/null +++ b/library/k8s/api/certificates/v1alpha1/cluster_trust_bundle.k @@ -0,0 +1,38 @@ +""" +This is the cluster_trust_bundle module in k8s.api.certificates.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ClusterTrustBundle: + """ + ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). + + ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. + + It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle. + + Attributes + ---------- + apiVersion : str, default is "certificates.k8s.io/v1alpha1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "ClusterTrustBundle", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + metadata contains the object metadata. + spec : ClusterTrustBundleSpec, default is Undefined, required + spec contains the signer (if any) and trust anchors. + """ + + + apiVersion: "certificates.k8s.io/v1alpha1" = "certificates.k8s.io/v1alpha1" + + kind: "ClusterTrustBundle" = "ClusterTrustBundle" + + metadata?: v1.ObjectMeta + + spec: ClusterTrustBundleSpec + + diff --git a/library/k8s/api/certificates/v1alpha1/cluster_trust_bundle_list.k b/library/k8s/api/certificates/v1alpha1/cluster_trust_bundle_list.k new file mode 100644 index 0000000..221fdba --- /dev/null +++ b/library/k8s/api/certificates/v1alpha1/cluster_trust_bundle_list.k @@ -0,0 +1,34 @@ +""" +This is the cluster_trust_bundle_list module in k8s.api.certificates.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ClusterTrustBundleList: + """ + ClusterTrustBundleList is a collection of ClusterTrustBundle objects + + Attributes + ---------- + apiVersion : str, default is "certificates.k8s.io/v1alpha1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ClusterTrustBundle], default is Undefined, required + items is a collection of ClusterTrustBundle objects + kind : str, default is "ClusterTrustBundleList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + metadata contains the list metadata. + """ + + + apiVersion: "certificates.k8s.io/v1alpha1" = "certificates.k8s.io/v1alpha1" + + items: [ClusterTrustBundle] + + kind: "ClusterTrustBundleList" = "ClusterTrustBundleList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/certificates/v1alpha1/cluster_trust_bundle_spec.k b/library/k8s/api/certificates/v1alpha1/cluster_trust_bundle_spec.k new file mode 100644 index 0000000..0405701 --- /dev/null +++ b/library/k8s/api/certificates/v1alpha1/cluster_trust_bundle_spec.k @@ -0,0 +1,37 @@ +""" +This is the cluster_trust_bundle_spec module in k8s.api.certificates.v1alpha1 package. +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 ClusterTrustBundleSpec: + """ + ClusterTrustBundleSpec contains the signer and trust anchors. + + Attributes + ---------- + signerName : str, default is Undefined, optional + signerName indicates the associated signer, if any. + + In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest. + + If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`. + + If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix. + + List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector. + trustBundle : str, default is Undefined, required + trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. + + The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers. + + Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data. + """ + + + signerName?: str + + trustBundle: str + + diff --git a/library/k8s/api/coordination/v1/lease.k b/library/k8s/api/coordination/v1/lease.k new file mode 100644 index 0000000..2500499 --- /dev/null +++ b/library/k8s/api/coordination/v1/lease.k @@ -0,0 +1,34 @@ +""" +This is the lease module in k8s.api.coordination.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Lease: + """ + Lease defines a lease concept. + + Attributes + ---------- + apiVersion : str, default is "coordination.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "Lease", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : LeaseSpec, default is Undefined, optional + spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "coordination.k8s.io/v1" = "coordination.k8s.io/v1" + + kind: "Lease" = "Lease" + + metadata?: v1.ObjectMeta + + spec?: LeaseSpec + + diff --git a/library/k8s/api/coordination/v1/lease_list.k b/library/k8s/api/coordination/v1/lease_list.k new file mode 100644 index 0000000..428f678 --- /dev/null +++ b/library/k8s/api/coordination/v1/lease_list.k @@ -0,0 +1,34 @@ +""" +This is the lease_list module in k8s.api.coordination.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema LeaseList: + """ + LeaseList is a list of Lease objects. + + Attributes + ---------- + apiVersion : str, default is "coordination.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [Lease], default is Undefined, required + items is a list of schema objects. + kind : str, default is "LeaseList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "coordination.k8s.io/v1" = "coordination.k8s.io/v1" + + items: [Lease] + + kind: "LeaseList" = "LeaseList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/coordination/v1/lease_spec.k b/library/k8s/api/coordination/v1/lease_spec.k new file mode 100644 index 0000000..74ac43d --- /dev/null +++ b/library/k8s/api/coordination/v1/lease_spec.k @@ -0,0 +1,37 @@ +""" +This is the lease_spec module in k8s.api.coordination.v1 package. +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 LeaseSpec: + """ + LeaseSpec is a specification of a Lease. + + Attributes + ---------- + acquireTime : str, default is Undefined, optional + acquireTime is a time when the current lease was acquired. + holderIdentity : str, default is Undefined, optional + holderIdentity contains the identity of the holder of a current lease. + leaseDurationSeconds : int, default is Undefined, optional + leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime. + leaseTransitions : int, default is Undefined, optional + leaseTransitions is the number of transitions of a lease between holders. + renewTime : str, default is Undefined, optional + renewTime is a time when the current holder of a lease has last updated the lease. + """ + + + acquireTime?: str + + holderIdentity?: str + + leaseDurationSeconds?: int + + leaseTransitions?: int + + renewTime?: str + + diff --git a/library/k8s/api/core/v1/affinity.k b/library/k8s/api/core/v1/affinity.k new file mode 100644 index 0000000..70cb43e --- /dev/null +++ b/library/k8s/api/core/v1/affinity.k @@ -0,0 +1,29 @@ +""" +This is the affinity module in k8s.api.core.v1 package. +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 Affinity: + """ + Affinity is a group of affinity scheduling rules. + + Attributes + ---------- + nodeAffinity : NodeAffinity, default is Undefined, optional + Describes node affinity scheduling rules for the pod. + podAffinity : PodAffinity, default is Undefined, optional + Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + podAntiAffinity : PodAntiAffinity, default is Undefined, optional + Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + """ + + + nodeAffinity?: NodeAffinity + + podAffinity?: PodAffinity + + podAntiAffinity?: PodAntiAffinity + + diff --git a/library/k8s/api/core/v1/attached_volume.k b/library/k8s/api/core/v1/attached_volume.k new file mode 100644 index 0000000..5392f2e --- /dev/null +++ b/library/k8s/api/core/v1/attached_volume.k @@ -0,0 +1,25 @@ +""" +This is the attached_volume module in k8s.api.core.v1 package. +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 AttachedVolume: + """ + AttachedVolume describes a volume attached to a node + + Attributes + ---------- + devicePath : str, default is Undefined, required + DevicePath represents the device path where the volume should be available + name : str, default is Undefined, required + Name of the attached volume + """ + + + devicePath: str + + name: str + + diff --git a/library/k8s/api/core/v1/aws_elastic_block_store_volume_source.k b/library/k8s/api/core/v1/aws_elastic_block_store_volume_source.k new file mode 100644 index 0000000..277cbd5 --- /dev/null +++ b/library/k8s/api/core/v1/aws_elastic_block_store_volume_source.k @@ -0,0 +1,35 @@ +""" +This is the aws_elastic_block_store_volume_source module in k8s.api.core.v1 package. +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 AWSElasticBlockStoreVolumeSource: + """ + Represents a Persistent Disk resource in AWS. + + An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + partition : int, default is Undefined, optional + partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + readOnly : bool, default is Undefined, optional + readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + volumeID : str, default is Undefined, required + volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + """ + + + fsType?: str + + partition?: int + + readOnly?: bool + + volumeID: str + + diff --git a/library/k8s/api/core/v1/azure_disk_volume_source.k b/library/k8s/api/core/v1/azure_disk_volume_source.k new file mode 100644 index 0000000..db97eba --- /dev/null +++ b/library/k8s/api/core/v1/azure_disk_volume_source.k @@ -0,0 +1,41 @@ +""" +This is the azure_disk_volume_source module in k8s.api.core.v1 package. +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 AzureDiskVolumeSource: + """ + AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + + Attributes + ---------- + cachingMode : str, default is Undefined, optional + cachingMode is the Host Caching mode: None, Read Only, Read Write. + diskName : str, default is Undefined, required + diskName is the Name of the data disk in the blob storage + diskURI : str, default is Undefined, required + diskURI is the URI of data disk in the blob storage + fsType : str, default is Undefined, optional + fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + kind : str, default is Undefined, optional + kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + readOnly : bool, default is Undefined, optional + readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """ + + + cachingMode?: str + + diskName: str + + diskURI: str + + fsType?: str + + kind?: str + + readOnly?: bool + + diff --git a/library/k8s/api/core/v1/azure_file_persistent_volume_source.k b/library/k8s/api/core/v1/azure_file_persistent_volume_source.k new file mode 100644 index 0000000..cd2fcca --- /dev/null +++ b/library/k8s/api/core/v1/azure_file_persistent_volume_source.k @@ -0,0 +1,33 @@ +""" +This is the azure_file_persistent_volume_source module in k8s.api.core.v1 package. +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 AzureFilePersistentVolumeSource: + """ + AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + + Attributes + ---------- + readOnly : bool, default is Undefined, optional + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + secretName : str, default is Undefined, required + secretName is the name of secret that contains Azure Storage Account Name and Key + secretNamespace : str, default is Undefined, optional + secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + shareName : str, default is Undefined, required + shareName is the azure Share Name + """ + + + readOnly?: bool + + secretName: str + + secretNamespace?: str + + shareName: str + + diff --git a/library/k8s/api/core/v1/azure_file_volume_source.k b/library/k8s/api/core/v1/azure_file_volume_source.k new file mode 100644 index 0000000..ac8ebb6 --- /dev/null +++ b/library/k8s/api/core/v1/azure_file_volume_source.k @@ -0,0 +1,29 @@ +""" +This is the azure_file_volume_source module in k8s.api.core.v1 package. +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 AzureFileVolumeSource: + """ + AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + + Attributes + ---------- + readOnly : bool, default is Undefined, optional + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + secretName : str, default is Undefined, required + secretName is the name of secret that contains Azure Storage Account Name and Key + shareName : str, default is Undefined, required + shareName is the azure share Name + """ + + + readOnly?: bool + + secretName: str + + shareName: str + + diff --git a/library/k8s/api/core/v1/binding.k b/library/k8s/api/core/v1/binding.k new file mode 100644 index 0000000..e6e478f --- /dev/null +++ b/library/k8s/api/core/v1/binding.k @@ -0,0 +1,34 @@ +""" +This is the binding module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Binding: + """ + Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "Binding", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + target : ObjectReference, default is Undefined, required + The target object that you want to bind to the standard object. + """ + + + apiVersion: "v1" = "v1" + + kind: "Binding" = "Binding" + + metadata?: v1.ObjectMeta + + target: ObjectReference + + diff --git a/library/k8s/api/core/v1/capabilities.k b/library/k8s/api/core/v1/capabilities.k new file mode 100644 index 0000000..0994dfe --- /dev/null +++ b/library/k8s/api/core/v1/capabilities.k @@ -0,0 +1,25 @@ +""" +This is the capabilities module in k8s.api.core.v1 package. +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 Capabilities: + """ + Adds and removes POSIX capabilities from running containers. + + Attributes + ---------- + add : [str], default is Undefined, optional + Added capabilities + drop : [str], default is Undefined, optional + Removed capabilities + """ + + + add?: [str] + + drop?: [str] + + diff --git a/library/k8s/api/core/v1/ceph_fs_persistent_volume_source.k b/library/k8s/api/core/v1/ceph_fs_persistent_volume_source.k new file mode 100644 index 0000000..1769f1d --- /dev/null +++ b/library/k8s/api/core/v1/ceph_fs_persistent_volume_source.k @@ -0,0 +1,41 @@ +""" +This is the ceph_fs_persistent_volume_source module in k8s.api.core.v1 package. +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 CephFSPersistentVolumeSource: + """ + Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. + + Attributes + ---------- + monitors : [str], default is Undefined, required + monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + path : str, default is Undefined, optional + path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / + readOnly : bool, default is Undefined, optional + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + secretFile : str, default is Undefined, optional + secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + secretRef : SecretReference, default is Undefined, optional + secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + user : str, default is Undefined, optional + user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + """ + + + monitors: [str] + + path?: str + + readOnly?: bool + + secretFile?: str + + secretRef?: SecretReference + + user?: str + + diff --git a/library/k8s/api/core/v1/ceph_fs_volume_source.k b/library/k8s/api/core/v1/ceph_fs_volume_source.k new file mode 100644 index 0000000..8efeacc --- /dev/null +++ b/library/k8s/api/core/v1/ceph_fs_volume_source.k @@ -0,0 +1,41 @@ +""" +This is the ceph_fs_volume_source module in k8s.api.core.v1 package. +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 CephFSVolumeSource: + """ + Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. + + Attributes + ---------- + monitors : [str], default is Undefined, required + monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + path : str, default is Undefined, optional + path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / + readOnly : bool, default is Undefined, optional + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + secretFile : str, default is Undefined, optional + secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + secretRef : LocalObjectReference, default is Undefined, optional + secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + user : str, default is Undefined, optional + user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + """ + + + monitors: [str] + + path?: str + + readOnly?: bool + + secretFile?: str + + secretRef?: LocalObjectReference + + user?: str + + diff --git a/library/k8s/api/core/v1/cinder_persistent_volume_source.k b/library/k8s/api/core/v1/cinder_persistent_volume_source.k new file mode 100644 index 0000000..502b947 --- /dev/null +++ b/library/k8s/api/core/v1/cinder_persistent_volume_source.k @@ -0,0 +1,33 @@ +""" +This is the cinder_persistent_volume_source module in k8s.api.core.v1 package. +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 CinderPersistentVolumeSource: + """ + Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + readOnly : bool, default is Undefined, optional + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + secretRef : SecretReference, default is Undefined, optional + secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack. + volumeID : str, default is Undefined, required + volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + """ + + + fsType?: str + + readOnly?: bool + + secretRef?: SecretReference + + volumeID: str + + diff --git a/library/k8s/api/core/v1/cinder_volume_source.k b/library/k8s/api/core/v1/cinder_volume_source.k new file mode 100644 index 0000000..f5e64fb --- /dev/null +++ b/library/k8s/api/core/v1/cinder_volume_source.k @@ -0,0 +1,33 @@ +""" +This is the cinder_volume_source module in k8s.api.core.v1 package. +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 CinderVolumeSource: + """ + Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + readOnly : bool, default is Undefined, optional + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + secretRef : LocalObjectReference, default is Undefined, optional + secretRef is optional: points to a secret object containing parameters used to connect to OpenStack. + volumeID : str, default is Undefined, required + volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + """ + + + fsType?: str + + readOnly?: bool + + secretRef?: LocalObjectReference + + volumeID: str + + diff --git a/library/k8s/api/core/v1/claim_source.k b/library/k8s/api/core/v1/claim_source.k new file mode 100644 index 0000000..07095f9 --- /dev/null +++ b/library/k8s/api/core/v1/claim_source.k @@ -0,0 +1,33 @@ +""" +This is the claim_source module in k8s.api.core.v1 package. +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 ClaimSource: + """ + ClaimSource describes a reference to a ResourceClaim. + + Exactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value. + + Attributes + ---------- + resourceClaimName : str, default is Undefined, optional + ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. + resourceClaimTemplateName : str, default is Undefined, optional + ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. + + The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be -, where is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long). + + An existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed. + + This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. + """ + + + resourceClaimName?: str + + resourceClaimTemplateName?: str + + diff --git a/library/k8s/api/core/v1/client_ip_config.k b/library/k8s/api/core/v1/client_ip_config.k new file mode 100644 index 0000000..abd8a72 --- /dev/null +++ b/library/k8s/api/core/v1/client_ip_config.k @@ -0,0 +1,21 @@ +""" +This is the client_ip_config module in k8s.api.core.v1 package. +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 ClientIPConfig: + """ + ClientIPConfig represents the configurations of Client IP based session affinity. + + Attributes + ---------- + timeoutSeconds : int, default is Undefined, optional + timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). + """ + + + timeoutSeconds?: int + + diff --git a/library/k8s/api/core/v1/component_condition.k b/library/k8s/api/core/v1/component_condition.k new file mode 100644 index 0000000..d7068a5 --- /dev/null +++ b/library/k8s/api/core/v1/component_condition.k @@ -0,0 +1,33 @@ +""" +This is the component_condition module in k8s.api.core.v1 package. +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 ComponentCondition: + """ + Information about the condition of a component. + + Attributes + ---------- + error : str, default is Undefined, optional + Condition error code for a component. For example, a health check error code. + message : str, default is Undefined, optional + Message about the condition for a component. For example, information about a health check. + status : str, default is Undefined, required + Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". + $type : str, default is Undefined, required + Type of condition for a component. Valid value: "Healthy" + """ + + + error?: str + + message?: str + + status: str + + $type: str + + diff --git a/library/k8s/api/core/v1/component_status.k b/library/k8s/api/core/v1/component_status.k new file mode 100644 index 0000000..19549c6 --- /dev/null +++ b/library/k8s/api/core/v1/component_status.k @@ -0,0 +1,34 @@ +""" +This is the component_status module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ComponentStatus: + """ + ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + conditions : [ComponentCondition], default is Undefined, optional + List of component conditions observed + kind : str, default is "ComponentStatus", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "v1" = "v1" + + conditions?: [ComponentCondition] + + kind: "ComponentStatus" = "ComponentStatus" + + metadata?: v1.ObjectMeta + + diff --git a/library/k8s/api/core/v1/component_status_list.k b/library/k8s/api/core/v1/component_status_list.k new file mode 100644 index 0000000..0c8fa89 --- /dev/null +++ b/library/k8s/api/core/v1/component_status_list.k @@ -0,0 +1,34 @@ +""" +This is the component_status_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ComponentStatusList: + """ + Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ComponentStatus], default is Undefined, required + List of ComponentStatus objects. + kind : str, default is "ComponentStatusList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [ComponentStatus] + + kind: "ComponentStatusList" = "ComponentStatusList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/config_map.k b/library/k8s/api/core/v1/config_map.k new file mode 100644 index 0000000..ac683b6 --- /dev/null +++ b/library/k8s/api/core/v1/config_map.k @@ -0,0 +1,42 @@ +""" +This is the config_map module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ConfigMap: + """ + ConfigMap holds configuration data for pods to consume. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + binaryData : {str:str}, default is Undefined, optional + BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + data : {str:str}, default is Undefined, optional + Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + immutable : bool, default is Undefined, optional + Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. + kind : str, default is "ConfigMap", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "v1" = "v1" + + binaryData?: {str:str} + + data?: {str:str} + + immutable?: bool + + kind: "ConfigMap" = "ConfigMap" + + metadata?: v1.ObjectMeta + + diff --git a/library/k8s/api/core/v1/config_map_env_source.k b/library/k8s/api/core/v1/config_map_env_source.k new file mode 100644 index 0000000..3c68ba6 --- /dev/null +++ b/library/k8s/api/core/v1/config_map_env_source.k @@ -0,0 +1,27 @@ +""" +This is the config_map_env_source module in k8s.api.core.v1 package. +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 ConfigMapEnvSource: + """ + ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. + + The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. + + Attributes + ---------- + name : str, default is Undefined, optional + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + optional : bool, default is Undefined, optional + Specify whether the ConfigMap must be defined + """ + + + name?: str + + optional?: bool + + diff --git a/library/k8s/api/core/v1/config_map_key_selector.k b/library/k8s/api/core/v1/config_map_key_selector.k new file mode 100644 index 0000000..fe6dabf --- /dev/null +++ b/library/k8s/api/core/v1/config_map_key_selector.k @@ -0,0 +1,29 @@ +""" +This is the config_map_key_selector module in k8s.api.core.v1 package. +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 ConfigMapKeySelector: + """ + Selects a key from a ConfigMap. + + Attributes + ---------- + key : str, default is Undefined, required + The key to select. + name : str, default is Undefined, optional + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + optional : bool, default is Undefined, optional + Specify whether the ConfigMap or its key must be defined + """ + + + key: str + + name?: str + + optional?: bool + + diff --git a/library/k8s/api/core/v1/config_map_list.k b/library/k8s/api/core/v1/config_map_list.k new file mode 100644 index 0000000..5712f51 --- /dev/null +++ b/library/k8s/api/core/v1/config_map_list.k @@ -0,0 +1,34 @@ +""" +This is the config_map_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ConfigMapList: + """ + ConfigMapList is a resource containing a list of ConfigMap objects. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ConfigMap], default is Undefined, required + Items is the list of ConfigMaps. + kind : str, default is "ConfigMapList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "v1" = "v1" + + items: [ConfigMap] + + kind: "ConfigMapList" = "ConfigMapList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/config_map_node_config_source.k b/library/k8s/api/core/v1/config_map_node_config_source.k new file mode 100644 index 0000000..6e58182 --- /dev/null +++ b/library/k8s/api/core/v1/config_map_node_config_source.k @@ -0,0 +1,37 @@ +""" +This is the config_map_node_config_source module in k8s.api.core.v1 package. +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 ConfigMapNodeConfigSource: + """ + ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration + + Attributes + ---------- + kubeletConfigKey : str, default is Undefined, required + KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. + name : str, default is Undefined, required + Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. + namespace : str, default is Undefined, required + Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. + resourceVersion : str, default is Undefined, optional + ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + uid : str, default is Undefined, optional + UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + """ + + + kubeletConfigKey: str + + name: str + + namespace: str + + resourceVersion?: str + + uid?: str + + diff --git a/library/k8s/api/core/v1/config_map_projection.k b/library/k8s/api/core/v1/config_map_projection.k new file mode 100644 index 0000000..009de0a --- /dev/null +++ b/library/k8s/api/core/v1/config_map_projection.k @@ -0,0 +1,31 @@ +""" +This is the config_map_projection module in k8s.api.core.v1 package. +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 ConfigMapProjection: + """ + Adapts a ConfigMap into a projected volume. + + The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. + + Attributes + ---------- + items : [KeyToPath], default is Undefined, optional + items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + name : str, default is Undefined, optional + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + optional : bool, default is Undefined, optional + optional specify whether the ConfigMap or its keys must be defined + """ + + + items?: [KeyToPath] + + name?: str + + optional?: bool + + diff --git a/library/k8s/api/core/v1/config_map_volume_source.k b/library/k8s/api/core/v1/config_map_volume_source.k new file mode 100644 index 0000000..d4af1fe --- /dev/null +++ b/library/k8s/api/core/v1/config_map_volume_source.k @@ -0,0 +1,35 @@ +""" +This is the config_map_volume_source module in k8s.api.core.v1 package. +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 ConfigMapVolumeSource: + """ + Adapts a ConfigMap into a volume. + + The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. + + Attributes + ---------- + defaultMode : int, default is Undefined, optional + defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + items : [KeyToPath], default is Undefined, optional + items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + name : str, default is Undefined, optional + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + optional : bool, default is Undefined, optional + optional specify whether the ConfigMap or its keys must be defined + """ + + + defaultMode?: int + + items?: [KeyToPath] + + name?: str + + optional?: bool + + diff --git a/library/k8s/api/core/v1/container.k b/library/k8s/api/core/v1/container.k new file mode 100644 index 0000000..1323418 --- /dev/null +++ b/library/k8s/api/core/v1/container.k @@ -0,0 +1,109 @@ +""" +This is the container module in k8s.api.core.v1 package. +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 Container: + """ + A single application container that you want to run within a pod. + + Attributes + ---------- + args : [str], default is Undefined, optional + Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + command : [str], default is Undefined, optional + Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + env : [EnvVar], default is Undefined, optional + List of environment variables to set in the container. Cannot be updated. + envFrom : [EnvFromSource], default is Undefined, optional + List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + image : str, default is Undefined, optional + Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + imagePullPolicy : str, default is Undefined, optional + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + lifecycle : Lifecycle, default is Undefined, optional + Actions that the management system should take in response to container lifecycle events. Cannot be updated. + livenessProbe : Probe, default is Undefined, optional + Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + name : str, default is Undefined, required + Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + ports : [ContainerPort], default is Undefined, optional + List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. + readinessProbe : Probe, default is Undefined, optional + Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + resizePolicy : [ContainerResizePolicy], default is Undefined, optional + Resources resize policy for the container. + resources : ResourceRequirements, default is Undefined, optional + Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + securityContext : SecurityContext, default is Undefined, optional + SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + startupProbe : Probe, default is Undefined, optional + StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + stdin : bool, default is Undefined, optional + Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + stdinOnce : bool, default is Undefined, optional + Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + terminationMessagePath : str, default is Undefined, optional + Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + terminationMessagePolicy : str, default is Undefined, optional + Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + tty : bool, default is Undefined, optional + Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + volumeDevices : [VolumeDevice], default is Undefined, optional + volumeDevices is the list of block devices to be used by the container. + volumeMounts : [VolumeMount], default is Undefined, optional + Pod volumes to mount into the container's filesystem. Cannot be updated. + workingDir : str, default is Undefined, optional + Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + """ + + + args?: [str] + + command?: [str] + + env?: [EnvVar] + + envFrom?: [EnvFromSource] + + image?: str + + imagePullPolicy?: str + + lifecycle?: Lifecycle + + livenessProbe?: Probe + + name: str + + ports?: [ContainerPort] + + readinessProbe?: Probe + + resizePolicy?: [ContainerResizePolicy] + + resources?: ResourceRequirements + + securityContext?: SecurityContext + + startupProbe?: Probe + + stdin?: bool + + stdinOnce?: bool + + terminationMessagePath?: str + + terminationMessagePolicy?: str + + tty?: bool + + volumeDevices?: [VolumeDevice] + + volumeMounts?: [VolumeMount] + + workingDir?: str + + diff --git a/library/k8s/api/core/v1/container_image.k b/library/k8s/api/core/v1/container_image.k new file mode 100644 index 0000000..8028a98 --- /dev/null +++ b/library/k8s/api/core/v1/container_image.k @@ -0,0 +1,25 @@ +""" +This is the container_image module in k8s.api.core.v1 package. +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 ContainerImage: + """ + Describe a container image + + Attributes + ---------- + names : [str], default is Undefined, optional + Names by which this image is known. e.g. ["kubernetes.example/hyperkube:v1.0.7", "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"] + sizeBytes : int, default is Undefined, optional + The size of the image in bytes. + """ + + + names?: [str] + + sizeBytes?: int + + diff --git a/library/k8s/api/core/v1/container_port.k b/library/k8s/api/core/v1/container_port.k new file mode 100644 index 0000000..8775117 --- /dev/null +++ b/library/k8s/api/core/v1/container_port.k @@ -0,0 +1,37 @@ +""" +This is the container_port module in k8s.api.core.v1 package. +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 ContainerPort: + """ + ContainerPort represents a network port in a single container. + + Attributes + ---------- + containerPort : int, default is Undefined, required + Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + hostIP : str, default is Undefined, optional + What host IP to bind the external port to. + hostPort : int, default is Undefined, optional + Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + name : str, default is Undefined, optional + If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + $protocol : str, default is Undefined, optional + Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + """ + + + containerPort: int + + hostIP?: str + + hostPort?: int + + name?: str + + $protocol?: str + + diff --git a/library/k8s/api/core/v1/container_resize_policy.k b/library/k8s/api/core/v1/container_resize_policy.k new file mode 100644 index 0000000..dba0061 --- /dev/null +++ b/library/k8s/api/core/v1/container_resize_policy.k @@ -0,0 +1,25 @@ +""" +This is the container_resize_policy module in k8s.api.core.v1 package. +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 ContainerResizePolicy: + """ + ContainerResizePolicy represents resource resize policy for the container. + + Attributes + ---------- + resourceName : str, default is Undefined, required + Name of the resource to which this resource resize policy applies. Supported values: cpu, memory. + restartPolicy : str, default is Undefined, required + Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired. + """ + + + resourceName: str + + restartPolicy: str + + diff --git a/library/k8s/api/core/v1/container_state.k b/library/k8s/api/core/v1/container_state.k new file mode 100644 index 0000000..87430ef --- /dev/null +++ b/library/k8s/api/core/v1/container_state.k @@ -0,0 +1,29 @@ +""" +This is the container_state module in k8s.api.core.v1 package. +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 ContainerState: + """ + ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting. + + Attributes + ---------- + running : ContainerStateRunning, default is Undefined, optional + Details about a running container + terminated : ContainerStateTerminated, default is Undefined, optional + Details about a terminated container + waiting : ContainerStateWaiting, default is Undefined, optional + Details about a waiting container + """ + + + running?: ContainerStateRunning + + terminated?: ContainerStateTerminated + + waiting?: ContainerStateWaiting + + diff --git a/library/k8s/api/core/v1/container_state_running.k b/library/k8s/api/core/v1/container_state_running.k new file mode 100644 index 0000000..6d7c0a8 --- /dev/null +++ b/library/k8s/api/core/v1/container_state_running.k @@ -0,0 +1,21 @@ +""" +This is the container_state_running module in k8s.api.core.v1 package. +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 ContainerStateRunning: + """ + ContainerStateRunning is a running state of a container. + + Attributes + ---------- + startedAt : str, default is Undefined, optional + Time at which the container was last (re-)started + """ + + + startedAt?: str + + diff --git a/library/k8s/api/core/v1/container_state_terminated.k b/library/k8s/api/core/v1/container_state_terminated.k new file mode 100644 index 0000000..2188081 --- /dev/null +++ b/library/k8s/api/core/v1/container_state_terminated.k @@ -0,0 +1,45 @@ +""" +This is the container_state_terminated module in k8s.api.core.v1 package. +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 ContainerStateTerminated: + """ + ContainerStateTerminated is a terminated state of a container. + + Attributes + ---------- + containerID : str, default is Undefined, optional + Container's ID in the format '://' + exitCode : int, default is Undefined, required + Exit status from the last termination of the container + finishedAt : str, default is Undefined, optional + Time at which the container last terminated + message : str, default is Undefined, optional + Message regarding the last termination of the container + reason : str, default is Undefined, optional + (brief) reason from the last termination of the container + signal : int, default is Undefined, optional + Signal from the last termination of the container + startedAt : str, default is Undefined, optional + Time at which previous execution of the container started + """ + + + containerID?: str + + exitCode: int + + finishedAt?: str + + message?: str + + reason?: str + + signal?: int + + startedAt?: str + + diff --git a/library/k8s/api/core/v1/container_state_waiting.k b/library/k8s/api/core/v1/container_state_waiting.k new file mode 100644 index 0000000..e69f98f --- /dev/null +++ b/library/k8s/api/core/v1/container_state_waiting.k @@ -0,0 +1,25 @@ +""" +This is the container_state_waiting module in k8s.api.core.v1 package. +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 ContainerStateWaiting: + """ + ContainerStateWaiting is a waiting state of a container. + + Attributes + ---------- + message : str, default is Undefined, optional + Message regarding why the container is not yet running. + reason : str, default is Undefined, optional + (brief) reason the container is not yet running. + """ + + + message?: str + + reason?: str + + diff --git a/library/k8s/api/core/v1/container_status.k b/library/k8s/api/core/v1/container_status.k new file mode 100644 index 0000000..f174eb6 --- /dev/null +++ b/library/k8s/api/core/v1/container_status.k @@ -0,0 +1,63 @@ +""" +This is the container_status module in k8s.api.core.v1 package. +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 ContainerStatus: + """ + ContainerStatus contains details for the current status of this container. + + Attributes + ---------- + allocatedResources : {str:str}, default is Undefined, optional + AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize. + containerID : str, default is Undefined, optional + ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example "containerd"). + image : str, default is Undefined, required + Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images. + imageID : str, default is Undefined, required + ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime. + lastState : ContainerState, default is Undefined, optional + LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0. + name : str, default is Undefined, required + Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated. + ready : bool, default is Undefined, required + Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). + + The value is typically used to determine whether a container is ready to accept traffic. + resources : ResourceRequirements, default is Undefined, optional + Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized. + restartCount : int, default is Undefined, required + RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. + started : bool, default is Undefined, optional + Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. + state : ContainerState, default is Undefined, optional + State holds details about the container's current condition. + """ + + + allocatedResources?: {str:str} + + containerID?: str + + image: str + + imageID: str + + lastState?: ContainerState + + name: str + + ready: bool + + resources?: ResourceRequirements + + restartCount: int + + started?: bool + + state?: ContainerState + + diff --git a/library/k8s/api/core/v1/csi_persistent_volume_source.k b/library/k8s/api/core/v1/csi_persistent_volume_source.k new file mode 100644 index 0000000..bc42d8f --- /dev/null +++ b/library/k8s/api/core/v1/csi_persistent_volume_source.k @@ -0,0 +1,57 @@ +""" +This is the csi_persistent_volume_source module in k8s.api.core.v1 package. +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 CSIPersistentVolumeSource: + """ + Represents storage that is managed by an external CSI volume driver (Beta feature) + + Attributes + ---------- + controllerExpandSecretRef : SecretReference, default is Undefined, optional + controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + controllerPublishSecretRef : SecretReference, default is Undefined, optional + controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + driver : str, default is Undefined, required + driver is the name of the driver to use for this volume. Required. + fsType : str, default is Undefined, optional + fsType to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + nodeExpandSecretRef : SecretReference, default is Undefined, optional + nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is a beta field which is enabled default by CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed. + nodePublishSecretRef : SecretReference, default is Undefined, optional + nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + nodeStageSecretRef : SecretReference, default is Undefined, optional + nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + readOnly : bool, default is Undefined, optional + readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + volumeAttributes : {str:str}, default is Undefined, optional + volumeAttributes of the volume to publish. + volumeHandle : str, default is Undefined, required + volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + """ + + + controllerExpandSecretRef?: SecretReference + + controllerPublishSecretRef?: SecretReference + + driver: str + + fsType?: str + + nodeExpandSecretRef?: SecretReference + + nodePublishSecretRef?: SecretReference + + nodeStageSecretRef?: SecretReference + + readOnly?: bool + + volumeAttributes?: {str:str} + + volumeHandle: str + + diff --git a/library/k8s/api/core/v1/csi_volume_source.k b/library/k8s/api/core/v1/csi_volume_source.k new file mode 100644 index 0000000..ae85001 --- /dev/null +++ b/library/k8s/api/core/v1/csi_volume_source.k @@ -0,0 +1,37 @@ +""" +This is the csi_volume_source module in k8s.api.core.v1 package. +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 CSIVolumeSource: + """ + Represents a source location of a volume to mount, managed by an external CSI driver + + Attributes + ---------- + driver : str, default is Undefined, required + driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + fsType : str, default is Undefined, optional + fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + nodePublishSecretRef : LocalObjectReference, default is Undefined, optional + nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + readOnly : bool, default is Undefined, optional + readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). + volumeAttributes : {str:str}, default is Undefined, optional + volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + """ + + + driver: str + + fsType?: str + + nodePublishSecretRef?: LocalObjectReference + + readOnly?: bool + + volumeAttributes?: {str:str} + + diff --git a/library/k8s/api/core/v1/daemon_endpoint.k b/library/k8s/api/core/v1/daemon_endpoint.k new file mode 100644 index 0000000..52677e4 --- /dev/null +++ b/library/k8s/api/core/v1/daemon_endpoint.k @@ -0,0 +1,21 @@ +""" +This is the daemon_endpoint module in k8s.api.core.v1 package. +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 DaemonEndpoint: + """ + DaemonEndpoint contains information about a single Daemon endpoint. + + Attributes + ---------- + Port : int, default is Undefined, required + Port number of the given endpoint. + """ + + + Port: int + + diff --git a/library/k8s/api/core/v1/downward_api_projection.k b/library/k8s/api/core/v1/downward_api_projection.k new file mode 100644 index 0000000..91ff658 --- /dev/null +++ b/library/k8s/api/core/v1/downward_api_projection.k @@ -0,0 +1,21 @@ +""" +This is the downward_api_projection module in k8s.api.core.v1 package. +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 DownwardAPIProjection: + """ + Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. + + Attributes + ---------- + items : [DownwardAPIVolumeFile], default is Undefined, optional + Items is a list of DownwardAPIVolume file + """ + + + items?: [DownwardAPIVolumeFile] + + diff --git a/library/k8s/api/core/v1/downward_api_volume_file.k b/library/k8s/api/core/v1/downward_api_volume_file.k new file mode 100644 index 0000000..7ea09b3 --- /dev/null +++ b/library/k8s/api/core/v1/downward_api_volume_file.k @@ -0,0 +1,33 @@ +""" +This is the downward_api_volume_file module in k8s.api.core.v1 package. +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 DownwardAPIVolumeFile: + """ + DownwardAPIVolumeFile represents information to create the file containing the pod field + + Attributes + ---------- + fieldRef : ObjectFieldSelector, default is Undefined, optional + Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + mode : int, default is Undefined, optional + Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + path : str, default is Undefined, required + Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + resourceFieldRef : ResourceFieldSelector, default is Undefined, optional + Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + """ + + + fieldRef?: ObjectFieldSelector + + mode?: int + + path: str + + resourceFieldRef?: ResourceFieldSelector + + diff --git a/library/k8s/api/core/v1/downward_api_volume_source.k b/library/k8s/api/core/v1/downward_api_volume_source.k new file mode 100644 index 0000000..e350b5b --- /dev/null +++ b/library/k8s/api/core/v1/downward_api_volume_source.k @@ -0,0 +1,25 @@ +""" +This is the downward_api_volume_source module in k8s.api.core.v1 package. +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 DownwardAPIVolumeSource: + """ + DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. + + Attributes + ---------- + defaultMode : int, default is Undefined, optional + Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + items : [DownwardAPIVolumeFile], default is Undefined, optional + Items is a list of downward API volume file + """ + + + defaultMode?: int + + items?: [DownwardAPIVolumeFile] + + diff --git a/library/k8s/api/core/v1/empty_dir_volume_source.k b/library/k8s/api/core/v1/empty_dir_volume_source.k new file mode 100644 index 0000000..1a1cc1a --- /dev/null +++ b/library/k8s/api/core/v1/empty_dir_volume_source.k @@ -0,0 +1,25 @@ +""" +This is the empty_dir_volume_source module in k8s.api.core.v1 package. +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 EmptyDirVolumeSource: + """ + Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. + + Attributes + ---------- + medium : str, default is Undefined, optional + medium represents what type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + sizeLimit : str, default is Undefined, optional + sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + """ + + + medium?: str + + sizeLimit?: str + + diff --git a/library/k8s/api/core/v1/endpoint_address.k b/library/k8s/api/core/v1/endpoint_address.k new file mode 100644 index 0000000..d55f57f --- /dev/null +++ b/library/k8s/api/core/v1/endpoint_address.k @@ -0,0 +1,33 @@ +""" +This is the endpoint_address module in k8s.api.core.v1 package. +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 EndpointAddress: + """ + EndpointAddress is a tuple that describes single IP address. + + Attributes + ---------- + hostname : str, default is Undefined, optional + The Hostname of this endpoint + ip : str, default is Undefined, required + The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16). + nodeName : str, default is Undefined, optional + Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + targetRef : ObjectReference, default is Undefined, optional + Reference to object providing the endpoint. + """ + + + hostname?: str + + ip: str + + nodeName?: str + + targetRef?: ObjectReference + + diff --git a/library/k8s/api/core/v1/endpoint_port.k b/library/k8s/api/core/v1/endpoint_port.k new file mode 100644 index 0000000..c741d9a --- /dev/null +++ b/library/k8s/api/core/v1/endpoint_port.k @@ -0,0 +1,40 @@ +""" +This is the endpoint_port module in k8s.api.core.v1 package. +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 EndpointPort: + """ + EndpointPort is a tuple that describes a single port. + + Attributes + ---------- + appProtocol : str, default is Undefined, optional + The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: + + * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). + + * Kubernetes-defined prefixed names: + * 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 + + * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. + name : str, default is Undefined, optional + The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. + port : int, default is Undefined, required + The port number of the endpoint. + $protocol : str, default is Undefined, optional + The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + """ + + + appProtocol?: str + + name?: str + + port: int + + $protocol?: str + + diff --git a/library/k8s/api/core/v1/endpoint_subset.k b/library/k8s/api/core/v1/endpoint_subset.k new file mode 100644 index 0000000..72de3ee --- /dev/null +++ b/library/k8s/api/core/v1/endpoint_subset.k @@ -0,0 +1,39 @@ +""" +This is the endpoint_subset module in k8s.api.core.v1 package. +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 EndpointSubset: + """ + EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: + + { + Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + } + + The resulting set of endpoints can be viewed as: + + a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], + b: [ 10.10.1.1:309, 10.10.2.2:309 ] + + Attributes + ---------- + addresses : [EndpointAddress], default is Undefined, optional + IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. + notReadyAddresses : [EndpointAddress], default is Undefined, optional + IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + ports : [EndpointPort], default is Undefined, optional + Port numbers available on the related IP addresses. + """ + + + addresses?: [EndpointAddress] + + notReadyAddresses?: [EndpointAddress] + + ports?: [EndpointPort] + + diff --git a/library/k8s/api/core/v1/endpoints.k b/library/k8s/api/core/v1/endpoints.k new file mode 100644 index 0000000..c164429 --- /dev/null +++ b/library/k8s/api/core/v1/endpoints.k @@ -0,0 +1,46 @@ +""" +This is the endpoints module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Endpoints: + """ + Endpoints is a collection of endpoints that implement the actual service. Example: + + Name: "mysvc", + Subsets: [ + { + Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + }, + { + Addresses: [{"ip": "10.10.3.3"}], + Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] + }, + ] + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "Endpoints", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + subsets : [EndpointSubset], default is Undefined, optional + The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + """ + + + apiVersion: "v1" = "v1" + + kind: "Endpoints" = "Endpoints" + + metadata?: v1.ObjectMeta + + subsets?: [EndpointSubset] + + diff --git a/library/k8s/api/core/v1/endpoints_list.k b/library/k8s/api/core/v1/endpoints_list.k new file mode 100644 index 0000000..7ccf644 --- /dev/null +++ b/library/k8s/api/core/v1/endpoints_list.k @@ -0,0 +1,34 @@ +""" +This is the endpoints_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema EndpointsList: + """ + EndpointsList is a list of endpoints. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [Endpoints], default is Undefined, required + List of endpoints. + kind : str, default is "EndpointsList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [Endpoints] + + kind: "EndpointsList" = "EndpointsList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/env_from_source.k b/library/k8s/api/core/v1/env_from_source.k new file mode 100644 index 0000000..1f76c3c --- /dev/null +++ b/library/k8s/api/core/v1/env_from_source.k @@ -0,0 +1,29 @@ +""" +This is the env_from_source module in k8s.api.core.v1 package. +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 EnvFromSource: + """ + EnvFromSource represents the source of a set of ConfigMaps + + Attributes + ---------- + configMapRef : ConfigMapEnvSource, default is Undefined, optional + The ConfigMap to select from + prefix : str, default is Undefined, optional + An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + secretRef : SecretEnvSource, default is Undefined, optional + The Secret to select from + """ + + + configMapRef?: ConfigMapEnvSource + + prefix?: str + + secretRef?: SecretEnvSource + + diff --git a/library/k8s/api/core/v1/env_var.k b/library/k8s/api/core/v1/env_var.k new file mode 100644 index 0000000..b32ffdc --- /dev/null +++ b/library/k8s/api/core/v1/env_var.k @@ -0,0 +1,29 @@ +""" +This is the env_var module in k8s.api.core.v1 package. +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 EnvVar: + """ + EnvVar represents an environment variable present in a Container. + + Attributes + ---------- + name : str, default is Undefined, required + Name of the environment variable. Must be a C_IDENTIFIER. + value : str, default is Undefined, optional + Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + valueFrom : EnvVarSource, default is Undefined, optional + Source for the environment variable's value. Cannot be used if value is not empty. + """ + + + name: str + + value?: str + + valueFrom?: EnvVarSource + + diff --git a/library/k8s/api/core/v1/env_var_source.k b/library/k8s/api/core/v1/env_var_source.k new file mode 100644 index 0000000..ee9eb25 --- /dev/null +++ b/library/k8s/api/core/v1/env_var_source.k @@ -0,0 +1,33 @@ +""" +This is the env_var_source module in k8s.api.core.v1 package. +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 EnvVarSource: + """ + EnvVarSource represents a source for the value of an EnvVar. + + Attributes + ---------- + configMapKeyRef : ConfigMapKeySelector, default is Undefined, optional + Selects a key of a ConfigMap. + fieldRef : ObjectFieldSelector, default is Undefined, optional + Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. + resourceFieldRef : ResourceFieldSelector, default is Undefined, optional + Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + secretKeyRef : SecretKeySelector, default is Undefined, optional + Selects a key of a secret in the pod's namespace + """ + + + configMapKeyRef?: ConfigMapKeySelector + + fieldRef?: ObjectFieldSelector + + resourceFieldRef?: ResourceFieldSelector + + secretKeyRef?: SecretKeySelector + + diff --git a/library/k8s/api/core/v1/ephemeral_container.k b/library/k8s/api/core/v1/ephemeral_container.k new file mode 100644 index 0000000..bdd065d --- /dev/null +++ b/library/k8s/api/core/v1/ephemeral_container.k @@ -0,0 +1,117 @@ +""" +This is the ephemeral_container module in k8s.api.core.v1 package. +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 EphemeralContainer: + """ + An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. + + To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted. + + Attributes + ---------- + args : [str], default is Undefined, optional + Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + command : [str], default is Undefined, optional + Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + env : [EnvVar], default is Undefined, optional + List of environment variables to set in the container. Cannot be updated. + envFrom : [EnvFromSource], default is Undefined, optional + List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + image : str, default is Undefined, optional + Container image name. More info: https://kubernetes.io/docs/concepts/containers/images + imagePullPolicy : str, default is Undefined, optional + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + lifecycle : Lifecycle, default is Undefined, optional + Lifecycle is not allowed for ephemeral containers. + livenessProbe : Probe, default is Undefined, optional + Probes are not allowed for ephemeral containers. + name : str, default is Undefined, required + Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + ports : [ContainerPort], default is Undefined, optional + Ports are not allowed for ephemeral containers. + readinessProbe : Probe, default is Undefined, optional + Probes are not allowed for ephemeral containers. + resizePolicy : [ContainerResizePolicy], default is Undefined, optional + Resources resize policy for the container. + resources : ResourceRequirements, default is Undefined, optional + Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + securityContext : SecurityContext, default is Undefined, optional + Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. + startupProbe : Probe, default is Undefined, optional + Probes are not allowed for ephemeral containers. + stdin : bool, default is Undefined, optional + Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + stdinOnce : bool, default is Undefined, optional + Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + targetContainerName : str, default is Undefined, optional + If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. + + The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. + terminationMessagePath : str, default is Undefined, optional + Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + terminationMessagePolicy : str, default is Undefined, optional + Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + tty : bool, default is Undefined, optional + Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + volumeDevices : [VolumeDevice], default is Undefined, optional + volumeDevices is the list of block devices to be used by the container. + volumeMounts : [VolumeMount], default is Undefined, optional + Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. + workingDir : str, default is Undefined, optional + Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + """ + + + args?: [str] + + command?: [str] + + env?: [EnvVar] + + envFrom?: [EnvFromSource] + + image?: str + + imagePullPolicy?: str + + lifecycle?: Lifecycle + + livenessProbe?: Probe + + name: str + + ports?: [ContainerPort] + + readinessProbe?: Probe + + resizePolicy?: [ContainerResizePolicy] + + resources?: ResourceRequirements + + securityContext?: SecurityContext + + startupProbe?: Probe + + stdin?: bool + + stdinOnce?: bool + + targetContainerName?: str + + terminationMessagePath?: str + + terminationMessagePolicy?: str + + tty?: bool + + volumeDevices?: [VolumeDevice] + + volumeMounts?: [VolumeMount] + + workingDir?: str + + diff --git a/library/k8s/api/core/v1/ephemeral_volume_source.k b/library/k8s/api/core/v1/ephemeral_volume_source.k new file mode 100644 index 0000000..37f4a26 --- /dev/null +++ b/library/k8s/api/core/v1/ephemeral_volume_source.k @@ -0,0 +1,27 @@ +""" +This is the ephemeral_volume_source module in k8s.api.core.v1 package. +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 EphemeralVolumeSource: + """ + Represents an ephemeral volume that is handled by a normal storage driver. + + Attributes + ---------- + volumeClaimTemplate : PersistentVolumeClaimTemplate, default is Undefined, optional + Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long). + + An existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster. + + This field is read-only and no changes will be made by Kubernetes to the PVC after it has been created. + + Required, must not be nil. + """ + + + volumeClaimTemplate?: PersistentVolumeClaimTemplate + + diff --git a/library/k8s/api/core/v1/event.k b/library/k8s/api/core/v1/event.k new file mode 100644 index 0000000..0cc2ba8 --- /dev/null +++ b/library/k8s/api/core/v1/event.k @@ -0,0 +1,86 @@ +""" +This is the event module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Event: + """ + Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. + + Attributes + ---------- + action : str, default is Undefined, optional + What action was taken/failed regarding to the Regarding object. + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + count : int, default is Undefined, optional + The number of times this event has occurred. + eventTime : str, default is Undefined, optional + Time when this Event was first observed. + firstTimestamp : str, default is Undefined, optional + The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + involvedObject : ObjectReference, default is Undefined, required + The object that this event is about. + kind : str, default is "Event", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + lastTimestamp : str, default is Undefined, optional + The time at which the most recent occurrence of this event was recorded. + message : str, default is Undefined, optional + A human-readable description of the status of this operation. + metadata : v1.ObjectMeta, default is Undefined, required + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + reason : str, default is Undefined, optional + This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + related : ObjectReference, default is Undefined, optional + Optional secondary object for more complex actions. + reportingComponent : str, default is Undefined, optional + Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + reportingInstance : str, default is Undefined, optional + ID of the controller instance, e.g. `kubelet-xyzf`. + series : EventSeries, default is Undefined, optional + Data about the Event series this event represents or nil if it's a singleton Event. + source : EventSource, default is Undefined, optional + The component reporting this event. Should be a short machine understandable string. + $type : str, default is Undefined, optional + Type of this event (Normal, Warning), new types could be added in the future + """ + + + action?: str + + apiVersion: "v1" = "v1" + + count?: int + + eventTime?: str + + firstTimestamp?: str + + involvedObject: ObjectReference + + kind: "Event" = "Event" + + lastTimestamp?: str + + message?: str + + metadata: v1.ObjectMeta + + reason?: str + + related?: ObjectReference + + reportingComponent?: str + + reportingInstance?: str + + series?: EventSeries + + source?: EventSource + + $type?: str + + diff --git a/library/k8s/api/core/v1/event_list.k b/library/k8s/api/core/v1/event_list.k new file mode 100644 index 0000000..e543b7c --- /dev/null +++ b/library/k8s/api/core/v1/event_list.k @@ -0,0 +1,34 @@ +""" +This is the event_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema EventList: + """ + EventList is a list of events. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [Event], default is Undefined, required + List of events + kind : str, default is "EventList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [Event] + + kind: "EventList" = "EventList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/event_series.k b/library/k8s/api/core/v1/event_series.k new file mode 100644 index 0000000..e917e3c --- /dev/null +++ b/library/k8s/api/core/v1/event_series.k @@ -0,0 +1,25 @@ +""" +This is the event_series module in k8s.api.core.v1 package. +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 EventSeries: + """ + EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. + + Attributes + ---------- + count : int, default is Undefined, optional + Number of occurrences in this series up to the last heartbeat time + lastObservedTime : str, default is Undefined, optional + Time of the last occurrence observed + """ + + + count?: int + + lastObservedTime?: str + + diff --git a/library/k8s/api/core/v1/event_source.k b/library/k8s/api/core/v1/event_source.k new file mode 100644 index 0000000..66409f9 --- /dev/null +++ b/library/k8s/api/core/v1/event_source.k @@ -0,0 +1,25 @@ +""" +This is the event_source module in k8s.api.core.v1 package. +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 EventSource: + """ + EventSource contains information for an event. + + Attributes + ---------- + component : str, default is Undefined, optional + Component from which the event is generated. + host : str, default is Undefined, optional + Node name on which the event is generated. + """ + + + component?: str + + host?: str + + diff --git a/library/k8s/api/core/v1/exec_action.k b/library/k8s/api/core/v1/exec_action.k new file mode 100644 index 0000000..5e1a4da --- /dev/null +++ b/library/k8s/api/core/v1/exec_action.k @@ -0,0 +1,21 @@ +""" +This is the exec_action module in k8s.api.core.v1 package. +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 ExecAction: + """ + ExecAction describes a "run in container" action. + + Attributes + ---------- + command : [str], default is Undefined, optional + Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + """ + + + command?: [str] + + diff --git a/library/k8s/api/core/v1/fc_volume_source.k b/library/k8s/api/core/v1/fc_volume_source.k new file mode 100644 index 0000000..aa8416b --- /dev/null +++ b/library/k8s/api/core/v1/fc_volume_source.k @@ -0,0 +1,37 @@ +""" +This is the fc_volume_source module in k8s.api.core.v1 package. +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 FCVolumeSource: + """ + Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + lun : int, default is Undefined, optional + lun is Optional: FC target lun number + readOnly : bool, default is Undefined, optional + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + targetWWNs : [str], default is Undefined, optional + targetWWNs is Optional: FC target worldwide names (WWNs) + wwids : [str], default is Undefined, optional + wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + """ + + + fsType?: str + + lun?: int + + readOnly?: bool + + targetWWNs?: [str] + + wwids?: [str] + + diff --git a/library/k8s/api/core/v1/flex_persistent_volume_source.k b/library/k8s/api/core/v1/flex_persistent_volume_source.k new file mode 100644 index 0000000..c9b1999 --- /dev/null +++ b/library/k8s/api/core/v1/flex_persistent_volume_source.k @@ -0,0 +1,37 @@ +""" +This is the flex_persistent_volume_source module in k8s.api.core.v1 package. +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 FlexPersistentVolumeSource: + """ + FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. + + Attributes + ---------- + driver : str, default is Undefined, required + driver is the name of the driver to use for this volume. + fsType : str, default is Undefined, optional + fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + options : {str:str}, default is Undefined, optional + options is Optional: this field holds extra command options if any. + readOnly : bool, default is Undefined, optional + readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + secretRef : SecretReference, default is Undefined, optional + secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + """ + + + driver: str + + fsType?: str + + options?: {str:str} + + readOnly?: bool + + secretRef?: SecretReference + + diff --git a/library/k8s/api/core/v1/flex_volume_source.k b/library/k8s/api/core/v1/flex_volume_source.k new file mode 100644 index 0000000..b49d2b7 --- /dev/null +++ b/library/k8s/api/core/v1/flex_volume_source.k @@ -0,0 +1,37 @@ +""" +This is the flex_volume_source module in k8s.api.core.v1 package. +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 FlexVolumeSource: + """ + FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + + Attributes + ---------- + driver : str, default is Undefined, required + driver is the name of the driver to use for this volume. + fsType : str, default is Undefined, optional + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + options : {str:str}, default is Undefined, optional + options is Optional: this field holds extra command options if any. + readOnly : bool, default is Undefined, optional + readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + secretRef : LocalObjectReference, default is Undefined, optional + secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + """ + + + driver: str + + fsType?: str + + options?: {str:str} + + readOnly?: bool + + secretRef?: LocalObjectReference + + diff --git a/library/k8s/api/core/v1/flocker_volume_source.k b/library/k8s/api/core/v1/flocker_volume_source.k new file mode 100644 index 0000000..c49dca4 --- /dev/null +++ b/library/k8s/api/core/v1/flocker_volume_source.k @@ -0,0 +1,25 @@ +""" +This is the flocker_volume_source module in k8s.api.core.v1 package. +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 FlockerVolumeSource: + """ + Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. + + Attributes + ---------- + datasetName : str, default is Undefined, optional + datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + datasetUUID : str, default is Undefined, optional + datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset + """ + + + datasetName?: str + + datasetUUID?: str + + diff --git a/library/k8s/api/core/v1/gce_persistent_disk_volume_source.k b/library/k8s/api/core/v1/gce_persistent_disk_volume_source.k new file mode 100644 index 0000000..d53cc93 --- /dev/null +++ b/library/k8s/api/core/v1/gce_persistent_disk_volume_source.k @@ -0,0 +1,35 @@ +""" +This is the gce_persistent_disk_volume_source module in k8s.api.core.v1 package. +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 GCEPersistentDiskVolumeSource: + """ + Represents a Persistent Disk resource in Google Compute Engine. + + A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + partition : int, default is Undefined, optional + partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + pdName : str, default is Undefined, required + pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + readOnly : bool, default is Undefined, optional + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + """ + + + fsType?: str + + partition?: int + + pdName: str + + readOnly?: bool + + diff --git a/library/k8s/api/core/v1/git_repo_volume_source.k b/library/k8s/api/core/v1/git_repo_volume_source.k new file mode 100644 index 0000000..4afb04d --- /dev/null +++ b/library/k8s/api/core/v1/git_repo_volume_source.k @@ -0,0 +1,31 @@ +""" +This is the git_repo_volume_source module in k8s.api.core.v1 package. +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 GitRepoVolumeSource: + """ + Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. + + DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + + Attributes + ---------- + directory : str, default is Undefined, optional + directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + repository : str, default is Undefined, required + repository is the URL + revision : str, default is Undefined, optional + revision is the commit hash for the specified revision. + """ + + + directory?: str + + repository: str + + revision?: str + + diff --git a/library/k8s/api/core/v1/glusterfs_persistent_volume_source.k b/library/k8s/api/core/v1/glusterfs_persistent_volume_source.k new file mode 100644 index 0000000..7689713 --- /dev/null +++ b/library/k8s/api/core/v1/glusterfs_persistent_volume_source.k @@ -0,0 +1,33 @@ +""" +This is the glusterfs_persistent_volume_source module in k8s.api.core.v1 package. +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 GlusterfsPersistentVolumeSource: + """ + Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. + + Attributes + ---------- + endpoints : str, default is Undefined, required + endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + endpointsNamespace : str, default is Undefined, optional + endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + path : str, default is Undefined, required + path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + readOnly : bool, default is Undefined, optional + readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + """ + + + endpoints: str + + endpointsNamespace?: str + + path: str + + readOnly?: bool + + diff --git a/library/k8s/api/core/v1/glusterfs_volume_source.k b/library/k8s/api/core/v1/glusterfs_volume_source.k new file mode 100644 index 0000000..03d475f --- /dev/null +++ b/library/k8s/api/core/v1/glusterfs_volume_source.k @@ -0,0 +1,29 @@ +""" +This is the glusterfs_volume_source module in k8s.api.core.v1 package. +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 GlusterfsVolumeSource: + """ + Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. + + Attributes + ---------- + endpoints : str, default is Undefined, required + endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + path : str, default is Undefined, required + path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + readOnly : bool, default is Undefined, optional + readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + """ + + + endpoints: str + + path: str + + readOnly?: bool + + diff --git a/library/k8s/api/core/v1/grpc_action.k b/library/k8s/api/core/v1/grpc_action.k new file mode 100644 index 0000000..0f78d93 --- /dev/null +++ b/library/k8s/api/core/v1/grpc_action.k @@ -0,0 +1,27 @@ +""" +This is the grpc_action module in k8s.api.core.v1 package. +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 GRPCAction: + """ + k8s api core v1 g RPC action + + Attributes + ---------- + port : int, default is Undefined, required + Port number of the gRPC service. Number must be in the range 1 to 65535. + service : str, default is Undefined, optional + Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). + + If this is not specified, the default behavior is defined by gRPC. + """ + + + port: int + + service?: str + + diff --git a/library/k8s/api/core/v1/host_alias.k b/library/k8s/api/core/v1/host_alias.k new file mode 100644 index 0000000..41df3f1 --- /dev/null +++ b/library/k8s/api/core/v1/host_alias.k @@ -0,0 +1,25 @@ +""" +This is the host_alias module in k8s.api.core.v1 package. +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 HostAlias: + """ + HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. + + Attributes + ---------- + hostnames : [str], default is Undefined, optional + Hostnames for the above IP address. + ip : str, default is Undefined, optional + IP address of the host file entry. + """ + + + hostnames?: [str] + + ip?: str + + diff --git a/library/k8s/api/core/v1/host_path_volume_source.k b/library/k8s/api/core/v1/host_path_volume_source.k new file mode 100644 index 0000000..95b04a7 --- /dev/null +++ b/library/k8s/api/core/v1/host_path_volume_source.k @@ -0,0 +1,25 @@ +""" +This is the host_path_volume_source module in k8s.api.core.v1 package. +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 HostPathVolumeSource: + """ + Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. + + Attributes + ---------- + path : str, default is Undefined, required + path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + $type : str, default is Undefined, optional + type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + """ + + + path: str + + $type?: str + + diff --git a/library/k8s/api/core/v1/http_get_action.k b/library/k8s/api/core/v1/http_get_action.k new file mode 100644 index 0000000..06729f1 --- /dev/null +++ b/library/k8s/api/core/v1/http_get_action.k @@ -0,0 +1,37 @@ +""" +This is the http_get_action module in k8s.api.core.v1 package. +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 HTTPGetAction: + """ + HTTPGetAction describes an action based on HTTP Get requests. + + Attributes + ---------- + host : str, default is Undefined, optional + Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + httpHeaders : [HTTPHeader], default is Undefined, optional + Custom headers to set in the request. HTTP allows repeated headers. + path : str, default is Undefined, optional + Path to access on the HTTP server. + port : int | str, default is Undefined, required + Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + scheme : str, default is Undefined, optional + Scheme to use for connecting to the host. Defaults to HTTP. + """ + + + host?: str + + httpHeaders?: [HTTPHeader] + + path?: str + + port: int | str + + scheme?: str + + diff --git a/library/k8s/api/core/v1/http_header.k b/library/k8s/api/core/v1/http_header.k new file mode 100644 index 0000000..404465f --- /dev/null +++ b/library/k8s/api/core/v1/http_header.k @@ -0,0 +1,25 @@ +""" +This is the http_header module in k8s.api.core.v1 package. +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 HTTPHeader: + """ + HTTPHeader describes a custom header to be used in HTTP probes + + Attributes + ---------- + name : str, default is Undefined, required + The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. + value : str, default is Undefined, required + The header field value + """ + + + name: str + + value: str + + diff --git a/library/k8s/api/core/v1/iscsi_persistent_volume_source.k b/library/k8s/api/core/v1/iscsi_persistent_volume_source.k new file mode 100644 index 0000000..15f4cf5 --- /dev/null +++ b/library/k8s/api/core/v1/iscsi_persistent_volume_source.k @@ -0,0 +1,61 @@ +""" +This is the iscsi_persistent_volume_source module in k8s.api.core.v1 package. +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 ISCSIPersistentVolumeSource: + """ + ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. + + Attributes + ---------- + chapAuthDiscovery : bool, default is Undefined, optional + chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication + chapAuthSession : bool, default is Undefined, optional + chapAuthSession defines whether support iSCSI Session CHAP authentication + fsType : str, default is Undefined, optional + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + initiatorName : str, default is Undefined, optional + initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + iqn : str, default is Undefined, required + iqn is Target iSCSI Qualified Name. + iscsiInterface : str, default is Undefined, optional + iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + lun : int, default is Undefined, required + lun is iSCSI Target Lun number. + portals : [str], default is Undefined, optional + portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + readOnly : bool, default is Undefined, optional + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + secretRef : SecretReference, default is Undefined, optional + secretRef is the CHAP Secret for iSCSI target and initiator authentication + targetPortal : str, default is Undefined, required + targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + """ + + + chapAuthDiscovery?: bool + + chapAuthSession?: bool + + fsType?: str + + initiatorName?: str + + iqn: str + + iscsiInterface?: str + + lun: int + + portals?: [str] + + readOnly?: bool + + secretRef?: SecretReference + + targetPortal: str + + diff --git a/library/k8s/api/core/v1/iscsi_volume_source.k b/library/k8s/api/core/v1/iscsi_volume_source.k new file mode 100644 index 0000000..9bf4421 --- /dev/null +++ b/library/k8s/api/core/v1/iscsi_volume_source.k @@ -0,0 +1,61 @@ +""" +This is the iscsi_volume_source module in k8s.api.core.v1 package. +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 ISCSIVolumeSource: + """ + Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. + + Attributes + ---------- + chapAuthDiscovery : bool, default is Undefined, optional + chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication + chapAuthSession : bool, default is Undefined, optional + chapAuthSession defines whether support iSCSI Session CHAP authentication + fsType : str, default is Undefined, optional + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + initiatorName : str, default is Undefined, optional + initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + iqn : str, default is Undefined, required + iqn is the target iSCSI Qualified Name. + iscsiInterface : str, default is Undefined, optional + iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + lun : int, default is Undefined, required + lun represents iSCSI Target Lun number. + portals : [str], default is Undefined, optional + portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + readOnly : bool, default is Undefined, optional + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + secretRef : LocalObjectReference, default is Undefined, optional + secretRef is the CHAP Secret for iSCSI target and initiator authentication + targetPortal : str, default is Undefined, required + targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + """ + + + chapAuthDiscovery?: bool + + chapAuthSession?: bool + + fsType?: str + + initiatorName?: str + + iqn: str + + iscsiInterface?: str + + lun: int + + portals?: [str] + + readOnly?: bool + + secretRef?: LocalObjectReference + + targetPortal: str + + diff --git a/library/k8s/api/core/v1/key_to_path.k b/library/k8s/api/core/v1/key_to_path.k new file mode 100644 index 0000000..b81374d --- /dev/null +++ b/library/k8s/api/core/v1/key_to_path.k @@ -0,0 +1,29 @@ +""" +This is the key_to_path module in k8s.api.core.v1 package. +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 KeyToPath: + """ + Maps a string key to a path within a volume. + + Attributes + ---------- + key : str, default is Undefined, required + key is the key to project. + mode : int, default is Undefined, optional + mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + path : str, default is Undefined, required + path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + """ + + + key: str + + mode?: int + + path: str + + diff --git a/library/k8s/api/core/v1/lifecycle.k b/library/k8s/api/core/v1/lifecycle.k new file mode 100644 index 0000000..b9c9ad3 --- /dev/null +++ b/library/k8s/api/core/v1/lifecycle.k @@ -0,0 +1,25 @@ +""" +This is the lifecycle module in k8s.api.core.v1 package. +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 Lifecycle: + """ + Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. + + Attributes + ---------- + postStart : LifecycleHandler, default is Undefined, optional + PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + preStop : LifecycleHandler, default is Undefined, optional + PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + """ + + + postStart?: LifecycleHandler + + preStop?: LifecycleHandler + + diff --git a/library/k8s/api/core/v1/lifecycle_handler.k b/library/k8s/api/core/v1/lifecycle_handler.k new file mode 100644 index 0000000..93a9dd0 --- /dev/null +++ b/library/k8s/api/core/v1/lifecycle_handler.k @@ -0,0 +1,29 @@ +""" +This is the lifecycle_handler module in k8s.api.core.v1 package. +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 LifecycleHandler: + """ + LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified. + + Attributes + ---------- + exec : ExecAction, default is Undefined, optional + Exec specifies the action to take. + httpGet : HTTPGetAction, default is Undefined, optional + HTTPGet specifies the http request to perform. + tcpSocket : TCPSocketAction, default is Undefined, optional + Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified. + """ + + + exec?: ExecAction + + httpGet?: HTTPGetAction + + tcpSocket?: TCPSocketAction + + diff --git a/library/k8s/api/core/v1/limit_range.k b/library/k8s/api/core/v1/limit_range.k new file mode 100644 index 0000000..5de6401 --- /dev/null +++ b/library/k8s/api/core/v1/limit_range.k @@ -0,0 +1,34 @@ +""" +This is the limit_range module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema LimitRange: + """ + LimitRange sets resource usage limits for each kind of resource in a Namespace. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "LimitRange", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : LimitRangeSpec, default is Undefined, optional + Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "v1" = "v1" + + kind: "LimitRange" = "LimitRange" + + metadata?: v1.ObjectMeta + + spec?: LimitRangeSpec + + diff --git a/library/k8s/api/core/v1/limit_range_item.k b/library/k8s/api/core/v1/limit_range_item.k new file mode 100644 index 0000000..563ecd2 --- /dev/null +++ b/library/k8s/api/core/v1/limit_range_item.k @@ -0,0 +1,41 @@ +""" +This is the limit_range_item module in k8s.api.core.v1 package. +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 LimitRangeItem: + """ + LimitRangeItem defines a min/max usage limit for any resource that matches on kind. + + Attributes + ---------- + default : {str:str}, default is Undefined, optional + Default resource requirement limit value by resource name if resource limit is omitted. + defaultRequest : {str:str}, default is Undefined, optional + DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + max : {str:str}, default is Undefined, optional + Max usage constraints on this kind by resource name. + maxLimitRequestRatio : {str:str}, default is Undefined, optional + MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + min : {str:str}, default is Undefined, optional + Min usage constraints on this kind by resource name. + $type : str, default is Undefined, required + Type of resource that this limit applies to. + """ + + + default?: {str:str} + + defaultRequest?: {str:str} + + max?: {str:str} + + maxLimitRequestRatio?: {str:str} + + min?: {str:str} + + $type: str + + diff --git a/library/k8s/api/core/v1/limit_range_list.k b/library/k8s/api/core/v1/limit_range_list.k new file mode 100644 index 0000000..61da1fb --- /dev/null +++ b/library/k8s/api/core/v1/limit_range_list.k @@ -0,0 +1,34 @@ +""" +This is the limit_range_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema LimitRangeList: + """ + LimitRangeList is a list of LimitRange items. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [LimitRange], default is Undefined, required + Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + kind : str, default is "LimitRangeList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [LimitRange] + + kind: "LimitRangeList" = "LimitRangeList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/limit_range_spec.k b/library/k8s/api/core/v1/limit_range_spec.k new file mode 100644 index 0000000..f2aa647 --- /dev/null +++ b/library/k8s/api/core/v1/limit_range_spec.k @@ -0,0 +1,21 @@ +""" +This is the limit_range_spec module in k8s.api.core.v1 package. +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 LimitRangeSpec: + """ + LimitRangeSpec defines a min/max usage limit for resources that match on kind. + + Attributes + ---------- + limits : [LimitRangeItem], default is Undefined, required + Limits is the list of LimitRangeItem objects that are enforced. + """ + + + limits: [LimitRangeItem] + + diff --git a/library/k8s/api/core/v1/load_balancer_ingress.k b/library/k8s/api/core/v1/load_balancer_ingress.k new file mode 100644 index 0000000..c579919 --- /dev/null +++ b/library/k8s/api/core/v1/load_balancer_ingress.k @@ -0,0 +1,29 @@ +""" +This is the load_balancer_ingress module in k8s.api.core.v1 package. +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 LoadBalancerIngress: + """ + LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. + + Attributes + ---------- + hostname : str, default is Undefined, optional + Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + ip : str, default is Undefined, optional + IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + ports : [PortStatus], default is Undefined, optional + Ports is a list of records of service ports If used, every port defined in the service should have an entry in it + """ + + + hostname?: str + + ip?: str + + ports?: [PortStatus] + + diff --git a/library/k8s/api/core/v1/load_balancer_status.k b/library/k8s/api/core/v1/load_balancer_status.k new file mode 100644 index 0000000..f3d6d93 --- /dev/null +++ b/library/k8s/api/core/v1/load_balancer_status.k @@ -0,0 +1,21 @@ +""" +This is the load_balancer_status module in k8s.api.core.v1 package. +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 LoadBalancerStatus: + """ + LoadBalancerStatus represents the status of a load-balancer. + + Attributes + ---------- + ingress : [LoadBalancerIngress], default is Undefined, optional + Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + """ + + + ingress?: [LoadBalancerIngress] + + diff --git a/library/k8s/api/core/v1/local_object_reference.k b/library/k8s/api/core/v1/local_object_reference.k new file mode 100644 index 0000000..1b10cf5 --- /dev/null +++ b/library/k8s/api/core/v1/local_object_reference.k @@ -0,0 +1,21 @@ +""" +This is the local_object_reference module in k8s.api.core.v1 package. +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 LocalObjectReference: + """ + LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. + + Attributes + ---------- + name : str, default is Undefined, optional + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """ + + + name?: str + + diff --git a/library/k8s/api/core/v1/local_volume_source.k b/library/k8s/api/core/v1/local_volume_source.k new file mode 100644 index 0000000..48cc871 --- /dev/null +++ b/library/k8s/api/core/v1/local_volume_source.k @@ -0,0 +1,25 @@ +""" +This is the local_volume_source module in k8s.api.core.v1 package. +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 LocalVolumeSource: + """ + Local represents directly-attached storage with node affinity (Beta feature) + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified. + path : str, default is Undefined, required + path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + """ + + + fsType?: str + + path: str + + diff --git a/library/k8s/api/core/v1/namespace.k b/library/k8s/api/core/v1/namespace.k new file mode 100644 index 0000000..52b6b94 --- /dev/null +++ b/library/k8s/api/core/v1/namespace.k @@ -0,0 +1,34 @@ +""" +This is the namespace module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Namespace: + """ + Namespace provides a scope for Names. Use of multiple namespaces is optional. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "Namespace", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : NamespaceSpec, default is Undefined, optional + Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "v1" = "v1" + + kind: "Namespace" = "Namespace" + + metadata?: v1.ObjectMeta + + spec?: NamespaceSpec + + diff --git a/library/k8s/api/core/v1/namespace_condition.k b/library/k8s/api/core/v1/namespace_condition.k new file mode 100644 index 0000000..c218fa5 --- /dev/null +++ b/library/k8s/api/core/v1/namespace_condition.k @@ -0,0 +1,37 @@ +""" +This is the namespace_condition module in k8s.api.core.v1 package. +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 NamespaceCondition: + """ + NamespaceCondition contains details about state of namespace. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + message : str, default is Undefined, optional + message + reason : str, default is Undefined, optional + reason + status : str, default is Undefined, required + Status of the condition, one of True, False, Unknown. + $type : str, default is Undefined, required + Type of namespace controller condition. + """ + + + lastTransitionTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/api/core/v1/namespace_list.k b/library/k8s/api/core/v1/namespace_list.k new file mode 100644 index 0000000..0a362ea --- /dev/null +++ b/library/k8s/api/core/v1/namespace_list.k @@ -0,0 +1,34 @@ +""" +This is the namespace_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema NamespaceList: + """ + NamespaceList is a list of Namespaces. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [Namespace], default is Undefined, required + Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + kind : str, default is "NamespaceList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [Namespace] + + kind: "NamespaceList" = "NamespaceList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/namespace_spec.k b/library/k8s/api/core/v1/namespace_spec.k new file mode 100644 index 0000000..d6700eb --- /dev/null +++ b/library/k8s/api/core/v1/namespace_spec.k @@ -0,0 +1,21 @@ +""" +This is the namespace_spec module in k8s.api.core.v1 package. +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 NamespaceSpec: + """ + NamespaceSpec describes the attributes on a Namespace. + + Attributes + ---------- + finalizers : [str], default is Undefined, optional + Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + """ + + + finalizers?: [str] + + diff --git a/library/k8s/api/core/v1/namespace_status.k b/library/k8s/api/core/v1/namespace_status.k new file mode 100644 index 0000000..0f15c63 --- /dev/null +++ b/library/k8s/api/core/v1/namespace_status.k @@ -0,0 +1,25 @@ +""" +This is the namespace_status module in k8s.api.core.v1 package. +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 NamespaceStatus: + """ + NamespaceStatus is information about the current status of a Namespace. + + Attributes + ---------- + conditions : [NamespaceCondition], default is Undefined, optional + Represents the latest available observations of a namespace's current state. + phase : str, default is Undefined, optional + Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + """ + + + conditions?: [NamespaceCondition] + + phase?: str + + diff --git a/library/k8s/api/core/v1/nfs_volume_source.k b/library/k8s/api/core/v1/nfs_volume_source.k new file mode 100644 index 0000000..70d8979 --- /dev/null +++ b/library/k8s/api/core/v1/nfs_volume_source.k @@ -0,0 +1,29 @@ +""" +This is the nfs_volume_source module in k8s.api.core.v1 package. +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 NFSVolumeSource: + """ + Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. + + Attributes + ---------- + path : str, default is Undefined, required + path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + readOnly : bool, default is Undefined, optional + readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + server : str, default is Undefined, required + server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + """ + + + path: str + + readOnly?: bool + + server: str + + diff --git a/library/k8s/api/core/v1/node.k b/library/k8s/api/core/v1/node.k new file mode 100644 index 0000000..99f9cab --- /dev/null +++ b/library/k8s/api/core/v1/node.k @@ -0,0 +1,34 @@ +""" +This is the node module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Node: + """ + Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "Node", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : NodeSpec, default is Undefined, optional + Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "v1" = "v1" + + kind: "Node" = "Node" + + metadata?: v1.ObjectMeta + + spec?: NodeSpec + + diff --git a/library/k8s/api/core/v1/node_address.k b/library/k8s/api/core/v1/node_address.k new file mode 100644 index 0000000..58b48ce --- /dev/null +++ b/library/k8s/api/core/v1/node_address.k @@ -0,0 +1,25 @@ +""" +This is the node_address module in k8s.api.core.v1 package. +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 NodeAddress: + """ + NodeAddress contains information for the node's address. + + Attributes + ---------- + address : str, default is Undefined, required + The node address. + $type : str, default is Undefined, required + Node address type, one of Hostname, ExternalIP or InternalIP. + """ + + + address: str + + $type: str + + diff --git a/library/k8s/api/core/v1/node_affinity.k b/library/k8s/api/core/v1/node_affinity.k new file mode 100644 index 0000000..eac67cf --- /dev/null +++ b/library/k8s/api/core/v1/node_affinity.k @@ -0,0 +1,25 @@ +""" +This is the node_affinity module in k8s.api.core.v1 package. +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 NodeAffinity: + """ + Node affinity is a group of node affinity scheduling rules. + + Attributes + ---------- + preferredDuringSchedulingIgnoredDuringExecution : [PreferredSchedulingTerm], default is Undefined, optional + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + requiredDuringSchedulingIgnoredDuringExecution : NodeSelector, default is Undefined, optional + If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + """ + + + preferredDuringSchedulingIgnoredDuringExecution?: [PreferredSchedulingTerm] + + requiredDuringSchedulingIgnoredDuringExecution?: NodeSelector + + diff --git a/library/k8s/api/core/v1/node_condition.k b/library/k8s/api/core/v1/node_condition.k new file mode 100644 index 0000000..e9c749f --- /dev/null +++ b/library/k8s/api/core/v1/node_condition.k @@ -0,0 +1,41 @@ +""" +This is the node_condition module in k8s.api.core.v1 package. +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 NodeCondition: + """ + NodeCondition contains condition information for a node. + + Attributes + ---------- + lastHeartbeatTime : str, default is Undefined, optional + Last time we got an update on a given condition. + lastTransitionTime : str, default is Undefined, optional + Last time the condition transit from one status to another. + message : str, default is Undefined, optional + Human readable message indicating details about last transition. + reason : str, default is Undefined, optional + (brief) reason for the condition's last transition. + status : str, default is Undefined, required + Status of the condition, one of True, False, Unknown. + $type : str, default is Undefined, required + Type of node condition. + """ + + + lastHeartbeatTime?: str + + lastTransitionTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/api/core/v1/node_config_source.k b/library/k8s/api/core/v1/node_config_source.k new file mode 100644 index 0000000..834f660 --- /dev/null +++ b/library/k8s/api/core/v1/node_config_source.k @@ -0,0 +1,21 @@ +""" +This is the node_config_source module in k8s.api.core.v1 package. +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 NodeConfigSource: + """ + NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 + + Attributes + ---------- + configMap : ConfigMapNodeConfigSource, default is Undefined, optional + ConfigMap is a reference to a Node's ConfigMap + """ + + + configMap?: ConfigMapNodeConfigSource + + diff --git a/library/k8s/api/core/v1/node_config_status.k b/library/k8s/api/core/v1/node_config_status.k new file mode 100644 index 0000000..92dbdab --- /dev/null +++ b/library/k8s/api/core/v1/node_config_status.k @@ -0,0 +1,33 @@ +""" +This is the node_config_status module in k8s.api.core.v1 package. +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 NodeConfigStatus: + """ + NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. + + Attributes + ---------- + active : NodeConfigSource, default is Undefined, optional + Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error. + assigned : NodeConfigSource, default is Undefined, optional + Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned. + error : str, default is Undefined, optional + Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. + lastKnownGood : NodeConfigSource, default is Undefined, optional + LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future. + """ + + + active?: NodeConfigSource + + assigned?: NodeConfigSource + + error?: str + + lastKnownGood?: NodeConfigSource + + diff --git a/library/k8s/api/core/v1/node_daemon_endpoints.k b/library/k8s/api/core/v1/node_daemon_endpoints.k new file mode 100644 index 0000000..59e6e80 --- /dev/null +++ b/library/k8s/api/core/v1/node_daemon_endpoints.k @@ -0,0 +1,21 @@ +""" +This is the node_daemon_endpoints module in k8s.api.core.v1 package. +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 NodeDaemonEndpoints: + """ + NodeDaemonEndpoints lists ports opened by daemons running on the Node. + + Attributes + ---------- + kubeletEndpoint : DaemonEndpoint, default is Undefined, optional + Endpoint on which Kubelet is listening. + """ + + + kubeletEndpoint?: DaemonEndpoint + + diff --git a/library/k8s/api/core/v1/node_list.k b/library/k8s/api/core/v1/node_list.k new file mode 100644 index 0000000..40992f9 --- /dev/null +++ b/library/k8s/api/core/v1/node_list.k @@ -0,0 +1,34 @@ +""" +This is the node_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema NodeList: + """ + NodeList is the whole list of all Nodes which have been registered with master. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [Node], default is Undefined, required + List of nodes + kind : str, default is "NodeList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [Node] + + kind: "NodeList" = "NodeList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/node_selector.k b/library/k8s/api/core/v1/node_selector.k new file mode 100644 index 0000000..5b4700f --- /dev/null +++ b/library/k8s/api/core/v1/node_selector.k @@ -0,0 +1,21 @@ +""" +This is the node_selector module in k8s.api.core.v1 package. +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 NodeSelector: + """ + A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. + + Attributes + ---------- + nodeSelectorTerms : [NodeSelectorTerm], default is Undefined, required + Required. A list of node selector terms. The terms are ORed. + """ + + + nodeSelectorTerms: [NodeSelectorTerm] + + diff --git a/library/k8s/api/core/v1/node_selector_requirement.k b/library/k8s/api/core/v1/node_selector_requirement.k new file mode 100644 index 0000000..9266e61 --- /dev/null +++ b/library/k8s/api/core/v1/node_selector_requirement.k @@ -0,0 +1,29 @@ +""" +This is the node_selector_requirement module in k8s.api.core.v1 package. +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 NodeSelectorRequirement: + """ + A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + + Attributes + ---------- + key : str, default is Undefined, required + The label key that the selector applies to. + operator : str, default is Undefined, required + Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + values : [str], default is Undefined, optional + An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. + """ + + + key: str + + operator: str + + values?: [str] + + diff --git a/library/k8s/api/core/v1/node_selector_term.k b/library/k8s/api/core/v1/node_selector_term.k new file mode 100644 index 0000000..f8f8a5f --- /dev/null +++ b/library/k8s/api/core/v1/node_selector_term.k @@ -0,0 +1,25 @@ +""" +This is the node_selector_term module in k8s.api.core.v1 package. +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 NodeSelectorTerm: + """ + A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. + + Attributes + ---------- + matchExpressions : [NodeSelectorRequirement], default is Undefined, optional + A list of node selector requirements by node's labels. + matchFields : [NodeSelectorRequirement], default is Undefined, optional + A list of node selector requirements by node's fields. + """ + + + matchExpressions?: [NodeSelectorRequirement] + + matchFields?: [NodeSelectorRequirement] + + diff --git a/library/k8s/api/core/v1/node_spec.k b/library/k8s/api/core/v1/node_spec.k new file mode 100644 index 0000000..16b087b --- /dev/null +++ b/library/k8s/api/core/v1/node_spec.k @@ -0,0 +1,45 @@ +""" +This is the node_spec module in k8s.api.core.v1 package. +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 NodeSpec: + """ + NodeSpec describes the attributes that a node is created with. + + Attributes + ---------- + configSource : NodeConfigSource, default is Undefined, optional + Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed. + externalID : str, default is Undefined, optional + Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 + podCIDR : str, default is Undefined, optional + PodCIDR represents the pod IP range assigned to the node. + podCIDRs : [str], default is Undefined, optional + podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. + providerID : str, default is Undefined, optional + ID of the node assigned by the cloud provider in the format: :// + taints : [Taint], default is Undefined, optional + If specified, the node's taints. + unschedulable : bool, default is Undefined, optional + Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration + """ + + + configSource?: NodeConfigSource + + externalID?: str + + podCIDR?: str + + podCIDRs?: [str] + + providerID?: str + + taints?: [Taint] + + unschedulable?: bool + + diff --git a/library/k8s/api/core/v1/node_status.k b/library/k8s/api/core/v1/node_status.k new file mode 100644 index 0000000..c1fb59d --- /dev/null +++ b/library/k8s/api/core/v1/node_status.k @@ -0,0 +1,61 @@ +""" +This is the node_status module in k8s.api.core.v1 package. +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 NodeStatus: + """ + NodeStatus is information about the current status of a node. + + Attributes + ---------- + addresses : [NodeAddress], default is Undefined, optional + List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP). + allocatable : {str:str}, default is Undefined, optional + Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. + capacity : {str:str}, default is Undefined, optional + Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + conditions : [NodeCondition], default is Undefined, optional + Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition + config : NodeConfigStatus, default is Undefined, optional + Status of the config assigned to the node via the dynamic Kubelet config feature. + daemonEndpoints : NodeDaemonEndpoints, default is Undefined, optional + Endpoints of daemons running on the Node. + images : [ContainerImage], default is Undefined, optional + List of container images on this node + nodeInfo : NodeSystemInfo, default is Undefined, optional + Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info + phase : str, default is Undefined, optional + NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. + volumesAttached : [AttachedVolume], default is Undefined, optional + List of volumes that are attached to the node. + volumesInUse : [str], default is Undefined, optional + List of attachable volumes in use (mounted) by the node. + """ + + + addresses?: [NodeAddress] + + allocatable?: {str:str} + + capacity?: {str:str} + + conditions?: [NodeCondition] + + config?: NodeConfigStatus + + daemonEndpoints?: NodeDaemonEndpoints + + images?: [ContainerImage] + + nodeInfo?: NodeSystemInfo + + phase?: str + + volumesAttached?: [AttachedVolume] + + volumesInUse?: [str] + + diff --git a/library/k8s/api/core/v1/node_system_info.k b/library/k8s/api/core/v1/node_system_info.k new file mode 100644 index 0000000..35a1cf5 --- /dev/null +++ b/library/k8s/api/core/v1/node_system_info.k @@ -0,0 +1,57 @@ +""" +This is the node_system_info module in k8s.api.core.v1 package. +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 NodeSystemInfo: + """ + NodeSystemInfo is a set of ids/uuids to uniquely identify the node. + + Attributes + ---------- + architecture : str, default is Undefined, required + The Architecture reported by the node + bootID : str, default is Undefined, required + Boot ID reported by the node. + containerRuntimeVersion : str, default is Undefined, required + ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2). + kernelVersion : str, default is Undefined, required + Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + kubeProxyVersion : str, default is Undefined, required + KubeProxy Version reported by the node. + kubeletVersion : str, default is Undefined, required + Kubelet Version reported by the node. + machineID : str, default is Undefined, required + MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html + operatingSystem : str, default is Undefined, required + The Operating System reported by the node + osImage : str, default is Undefined, required + OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). + systemUUID : str, default is Undefined, required + SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid + """ + + + architecture: str + + bootID: str + + containerRuntimeVersion: str + + kernelVersion: str + + kubeProxyVersion: str + + kubeletVersion: str + + machineID: str + + operatingSystem: str + + osImage: str + + systemUUID: str + + diff --git a/library/k8s/api/core/v1/object_field_selector.k b/library/k8s/api/core/v1/object_field_selector.k new file mode 100644 index 0000000..86661f7 --- /dev/null +++ b/library/k8s/api/core/v1/object_field_selector.k @@ -0,0 +1,25 @@ +""" +This is the object_field_selector module in k8s.api.core.v1 package. +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 ObjectFieldSelector: + """ + ObjectFieldSelector selects an APIVersioned field of an object. + + Attributes + ---------- + apiVersion : str, default is Undefined, optional + Version of the schema the FieldPath is written in terms of, defaults to "v1". + fieldPath : str, default is Undefined, required + Path of the field to select in the specified API version. + """ + + + apiVersion?: str + + fieldPath: str + + diff --git a/library/k8s/api/core/v1/object_reference.k b/library/k8s/api/core/v1/object_reference.k new file mode 100644 index 0000000..43856dc --- /dev/null +++ b/library/k8s/api/core/v1/object_reference.k @@ -0,0 +1,45 @@ +""" +This is the object_reference module in k8s.api.core.v1 package. +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 ObjectReference: + """ + ObjectReference contains enough information to let you inspect or modify the referred object. + + Attributes + ---------- + apiVersion : str, default is Undefined, optional + API version of the referent. + fieldPath : str, default is Undefined, optional + If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + kind : str, default is Undefined, optional + Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + name : str, default is Undefined, optional + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + namespace : str, default is Undefined, optional + Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + resourceVersion : str, default is Undefined, optional + Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + uid : str, default is Undefined, optional + UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + """ + + + apiVersion?: str + + fieldPath?: str + + kind?: str + + name?: str + + namespace?: str + + resourceVersion?: str + + uid?: str + + diff --git a/library/k8s/api/core/v1/persistent_volume.k b/library/k8s/api/core/v1/persistent_volume.k new file mode 100644 index 0000000..ed41f55 --- /dev/null +++ b/library/k8s/api/core/v1/persistent_volume.k @@ -0,0 +1,34 @@ +""" +This is the persistent_volume module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PersistentVolume: + """ + PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "PersistentVolume", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : PersistentVolumeSpec, default is Undefined, optional + spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + """ + + + apiVersion: "v1" = "v1" + + kind: "PersistentVolume" = "PersistentVolume" + + metadata?: v1.ObjectMeta + + spec?: PersistentVolumeSpec + + diff --git a/library/k8s/api/core/v1/persistent_volume_claim.k b/library/k8s/api/core/v1/persistent_volume_claim.k new file mode 100644 index 0000000..1b478b6 --- /dev/null +++ b/library/k8s/api/core/v1/persistent_volume_claim.k @@ -0,0 +1,34 @@ +""" +This is the persistent_volume_claim module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PersistentVolumeClaim: + """ + PersistentVolumeClaim is a user's request for and claim to a persistent volume + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "PersistentVolumeClaim", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : PersistentVolumeClaimSpec, default is Undefined, optional + spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """ + + + apiVersion: "v1" = "v1" + + kind: "PersistentVolumeClaim" = "PersistentVolumeClaim" + + metadata?: v1.ObjectMeta + + spec?: PersistentVolumeClaimSpec + + diff --git a/library/k8s/api/core/v1/persistent_volume_claim_condition.k b/library/k8s/api/core/v1/persistent_volume_claim_condition.k new file mode 100644 index 0000000..424e9d3 --- /dev/null +++ b/library/k8s/api/core/v1/persistent_volume_claim_condition.k @@ -0,0 +1,41 @@ +""" +This is the persistent_volume_claim_condition module in k8s.api.core.v1 package. +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 PersistentVolumeClaimCondition: + """ + PersistentVolumeClaimCondition contains details about state of pvc + + Attributes + ---------- + lastProbeTime : str, default is Undefined, optional + lastProbeTime is the time we probed the condition. + lastTransitionTime : str, default is Undefined, optional + lastTransitionTime is the time the condition transitioned from one status to another. + message : str, default is Undefined, optional + message is the human-readable message indicating details about last transition. + reason : str, default is Undefined, optional + reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. + status : str, default is Undefined, required + status + $type : str, default is Undefined, required + type + """ + + + lastProbeTime?: str + + lastTransitionTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/api/core/v1/persistent_volume_claim_list.k b/library/k8s/api/core/v1/persistent_volume_claim_list.k new file mode 100644 index 0000000..e09bc2e --- /dev/null +++ b/library/k8s/api/core/v1/persistent_volume_claim_list.k @@ -0,0 +1,34 @@ +""" +This is the persistent_volume_claim_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PersistentVolumeClaimList: + """ + PersistentVolumeClaimList is a list of PersistentVolumeClaim items. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [PersistentVolumeClaim], default is Undefined, required + items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + kind : str, default is "PersistentVolumeClaimList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [PersistentVolumeClaim] + + kind: "PersistentVolumeClaimList" = "PersistentVolumeClaimList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/persistent_volume_claim_spec.k b/library/k8s/api/core/v1/persistent_volume_claim_spec.k new file mode 100644 index 0000000..fda9a7c --- /dev/null +++ b/library/k8s/api/core/v1/persistent_volume_claim_spec.k @@ -0,0 +1,57 @@ +""" +This is the persistent_volume_claim_spec module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PersistentVolumeClaimSpec: + """ + PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes + + Attributes + ---------- + accessModes : [str], default is Undefined, optional + accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + dataSource : TypedLocalObjectReference, default is Undefined, optional + 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. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource. + dataSourceRef : TypedObjectReference, default is Undefined, optional + dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any 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, when namespace isn't specified in dataSourceRef, 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. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three 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. + * While dataSource only allows local objects, dataSourceRef allows objects + in any namespaces. + (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. + resources : ResourceRequirements, default is Undefined, optional + 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 + selector : v1.LabelSelector, default is Undefined, optional + selector is a label query over volumes to consider for binding. + storageClassName : str, default is Undefined, optional + storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + volumeMode : str, default is Undefined, optional + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + volumeName : str, default is Undefined, optional + volumeName is the binding reference to the PersistentVolume backing this claim. + """ + + + accessModes?: [str] + + dataSource?: TypedLocalObjectReference + + dataSourceRef?: TypedObjectReference + + resources?: ResourceRequirements + + selector?: v1.LabelSelector + + storageClassName?: str + + volumeMode?: str + + volumeName?: str + + diff --git a/library/k8s/api/core/v1/persistent_volume_claim_status.k b/library/k8s/api/core/v1/persistent_volume_claim_status.k new file mode 100644 index 0000000..26802cd --- /dev/null +++ b/library/k8s/api/core/v1/persistent_volume_claim_status.k @@ -0,0 +1,41 @@ +""" +This is the persistent_volume_claim_status module in k8s.api.core.v1 package. +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 PersistentVolumeClaimStatus: + """ + PersistentVolumeClaimStatus is the current status of a persistent volume claim. + + Attributes + ---------- + accessModes : [str], default is Undefined, optional + accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + allocatedResources : {str:str}, default is Undefined, optional + allocatedResources is the storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. + capacity : {str:str}, default is Undefined, optional + capacity represents the actual resources of the underlying volume. + conditions : [PersistentVolumeClaimCondition], default is Undefined, optional + conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + phase : str, default is Undefined, optional + phase represents the current phase of PersistentVolumeClaim. + resizeStatus : str, default is Undefined, optional + resizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. + """ + + + accessModes?: [str] + + allocatedResources?: {str:str} + + capacity?: {str:str} + + conditions?: [PersistentVolumeClaimCondition] + + phase?: str + + resizeStatus?: str + + diff --git a/library/k8s/api/core/v1/persistent_volume_claim_template.k b/library/k8s/api/core/v1/persistent_volume_claim_template.k new file mode 100644 index 0000000..e6758b9 --- /dev/null +++ b/library/k8s/api/core/v1/persistent_volume_claim_template.k @@ -0,0 +1,26 @@ +""" +This is the persistent_volume_claim_template module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PersistentVolumeClaimTemplate: + """ + PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. + + Attributes + ---------- + metadata : v1.ObjectMeta, default is Undefined, optional + May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation. + spec : PersistentVolumeClaimSpec, default is Undefined, required + The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here. + """ + + + metadata?: v1.ObjectMeta + + spec: PersistentVolumeClaimSpec + + diff --git a/library/k8s/api/core/v1/persistent_volume_claim_volume_source.k b/library/k8s/api/core/v1/persistent_volume_claim_volume_source.k new file mode 100644 index 0000000..bac1ccb --- /dev/null +++ b/library/k8s/api/core/v1/persistent_volume_claim_volume_source.k @@ -0,0 +1,25 @@ +""" +This is the persistent_volume_claim_volume_source module in k8s.api.core.v1 package. +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 PersistentVolumeClaimVolumeSource: + """ + PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). + + Attributes + ---------- + claimName : str, default is Undefined, required + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + readOnly : bool, default is Undefined, optional + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. + """ + + + claimName: str + + readOnly?: bool + + diff --git a/library/k8s/api/core/v1/persistent_volume_list.k b/library/k8s/api/core/v1/persistent_volume_list.k new file mode 100644 index 0000000..b1498d7 --- /dev/null +++ b/library/k8s/api/core/v1/persistent_volume_list.k @@ -0,0 +1,34 @@ +""" +This is the persistent_volume_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PersistentVolumeList: + """ + PersistentVolumeList is a list of PersistentVolume items. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [PersistentVolume], default is Undefined, required + items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + kind : str, default is "PersistentVolumeList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [PersistentVolume] + + kind: "PersistentVolumeList" = "PersistentVolumeList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/persistent_volume_spec.k b/library/k8s/api/core/v1/persistent_volume_spec.k new file mode 100644 index 0000000..7cc927e --- /dev/null +++ b/library/k8s/api/core/v1/persistent_volume_spec.k @@ -0,0 +1,137 @@ +""" +This is the persistent_volume_spec module in k8s.api.core.v1 package. +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 PersistentVolumeSpec: + """ + PersistentVolumeSpec is the specification of a persistent volume. + + Attributes + ---------- + accessModes : [str], default is Undefined, optional + accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + awsElasticBlockStore : AWSElasticBlockStoreVolumeSource, default is Undefined, optional + awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + azureDisk : AzureDiskVolumeSource, default is Undefined, optional + azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + azureFile : AzureFilePersistentVolumeSource, default is Undefined, optional + azureFile represents an Azure File Service mount on the host and bind mount to the pod. + capacity : {str:str}, default is Undefined, optional + capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + cephfs : CephFSPersistentVolumeSource, default is Undefined, optional + cephFS represents a Ceph FS mount on the host that shares a pod's lifetime + cinder : CinderPersistentVolumeSource, default is Undefined, optional + cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + claimRef : ObjectReference, default is Undefined, optional + claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + csi : CSIPersistentVolumeSource, default is Undefined, optional + csi represents storage that is handled by an external CSI driver (Beta feature). + fc : FCVolumeSource, default is Undefined, optional + fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + flexVolume : FlexPersistentVolumeSource, default is Undefined, optional + flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + flocker : FlockerVolumeSource, default is Undefined, optional + flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + gcePersistentDisk : GCEPersistentDiskVolumeSource, default is Undefined, optional + gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + glusterfs : GlusterfsPersistentVolumeSource, default is Undefined, optional + glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + hostPath : HostPathVolumeSource, default is Undefined, optional + hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + iscsi : ISCSIPersistentVolumeSource, default is Undefined, optional + iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + local : LocalVolumeSource, default is Undefined, optional + local represents directly-attached storage with node affinity + mountOptions : [str], default is Undefined, optional + mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + nfs : NFSVolumeSource, default is Undefined, optional + nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + nodeAffinity : VolumeNodeAffinity, default is Undefined, optional + nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + persistentVolumeReclaimPolicy : str, default is Undefined, optional + persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + photonPersistentDisk : PhotonPersistentDiskVolumeSource, default is Undefined, optional + photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + portworxVolume : PortworxVolumeSource, default is Undefined, optional + portworxVolume represents a portworx volume attached and mounted on kubelets host machine + quobyte : QuobyteVolumeSource, default is Undefined, optional + quobyte represents a Quobyte mount on the host that shares a pod's lifetime + rbd : RBDPersistentVolumeSource, default is Undefined, optional + rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + scaleIO : ScaleIOPersistentVolumeSource, default is Undefined, optional + scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + storageClassName : str, default is Undefined, optional + storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + storageos : StorageOSPersistentVolumeSource, default is Undefined, optional + storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + volumeMode : str, default is Undefined, optional + volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + vsphereVolume : VsphereVirtualDiskVolumeSource, default is Undefined, optional + vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + """ + + + accessModes?: [str] + + awsElasticBlockStore?: AWSElasticBlockStoreVolumeSource + + azureDisk?: AzureDiskVolumeSource + + azureFile?: AzureFilePersistentVolumeSource + + capacity?: {str:str} + + cephfs?: CephFSPersistentVolumeSource + + cinder?: CinderPersistentVolumeSource + + claimRef?: ObjectReference + + csi?: CSIPersistentVolumeSource + + fc?: FCVolumeSource + + flexVolume?: FlexPersistentVolumeSource + + flocker?: FlockerVolumeSource + + gcePersistentDisk?: GCEPersistentDiskVolumeSource + + glusterfs?: GlusterfsPersistentVolumeSource + + hostPath?: HostPathVolumeSource + + iscsi?: ISCSIPersistentVolumeSource + + local?: LocalVolumeSource + + mountOptions?: [str] + + nfs?: NFSVolumeSource + + nodeAffinity?: VolumeNodeAffinity + + persistentVolumeReclaimPolicy?: str + + photonPersistentDisk?: PhotonPersistentDiskVolumeSource + + portworxVolume?: PortworxVolumeSource + + quobyte?: QuobyteVolumeSource + + rbd?: RBDPersistentVolumeSource + + scaleIO?: ScaleIOPersistentVolumeSource + + storageClassName?: str + + storageos?: StorageOSPersistentVolumeSource + + volumeMode?: str + + vsphereVolume?: VsphereVirtualDiskVolumeSource + + diff --git a/library/k8s/api/core/v1/persistent_volume_status.k b/library/k8s/api/core/v1/persistent_volume_status.k new file mode 100644 index 0000000..170451b --- /dev/null +++ b/library/k8s/api/core/v1/persistent_volume_status.k @@ -0,0 +1,29 @@ +""" +This is the persistent_volume_status module in k8s.api.core.v1 package. +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 PersistentVolumeStatus: + """ + PersistentVolumeStatus is the current status of a persistent volume. + + Attributes + ---------- + message : str, default is Undefined, optional + message is a human-readable message indicating details about why the volume is in this state. + phase : str, default is Undefined, optional + phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase + reason : str, default is Undefined, optional + reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. + """ + + + message?: str + + phase?: str + + reason?: str + + diff --git a/library/k8s/api/core/v1/photon_persistent_disk_volume_source.k b/library/k8s/api/core/v1/photon_persistent_disk_volume_source.k new file mode 100644 index 0000000..369622b --- /dev/null +++ b/library/k8s/api/core/v1/photon_persistent_disk_volume_source.k @@ -0,0 +1,25 @@ +""" +This is the photon_persistent_disk_volume_source module in k8s.api.core.v1 package. +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 PhotonPersistentDiskVolumeSource: + """ + Represents a Photon Controller persistent disk resource. + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + pdID : str, default is Undefined, required + pdID is the ID that identifies Photon Controller persistent disk + """ + + + fsType?: str + + pdID: str + + diff --git a/library/k8s/api/core/v1/pod.k b/library/k8s/api/core/v1/pod.k new file mode 100644 index 0000000..659a9e9 --- /dev/null +++ b/library/k8s/api/core/v1/pod.k @@ -0,0 +1,34 @@ +""" +This is the pod module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Pod: + """ + Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "Pod", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : PodSpec, default is Undefined, optional + Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "v1" = "v1" + + kind: "Pod" = "Pod" + + metadata?: v1.ObjectMeta + + spec?: PodSpec + + diff --git a/library/k8s/api/core/v1/pod_affinity.k b/library/k8s/api/core/v1/pod_affinity.k new file mode 100644 index 0000000..991fd5a --- /dev/null +++ b/library/k8s/api/core/v1/pod_affinity.k @@ -0,0 +1,25 @@ +""" +This is the pod_affinity module in k8s.api.core.v1 package. +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 PodAffinity: + """ + Pod affinity is a group of inter pod affinity scheduling rules. + + Attributes + ---------- + preferredDuringSchedulingIgnoredDuringExecution : [WeightedPodAffinityTerm], default is Undefined, optional + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + requiredDuringSchedulingIgnoredDuringExecution : [PodAffinityTerm], default is Undefined, optional + If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + """ + + + preferredDuringSchedulingIgnoredDuringExecution?: [WeightedPodAffinityTerm] + + requiredDuringSchedulingIgnoredDuringExecution?: [PodAffinityTerm] + + diff --git a/library/k8s/api/core/v1/pod_affinity_term.k b/library/k8s/api/core/v1/pod_affinity_term.k new file mode 100644 index 0000000..fa331b2 --- /dev/null +++ b/library/k8s/api/core/v1/pod_affinity_term.k @@ -0,0 +1,34 @@ +""" +This is the pod_affinity_term module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PodAffinityTerm: + """ + Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running + + Attributes + ---------- + labelSelector : v1.LabelSelector, default is Undefined, optional + A label query over a set of resources, in this case pods. + namespaceSelector : v1.LabelSelector, default is Undefined, optional + A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. + namespaces : [str], default is Undefined, optional + namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". + topologyKey : str, default is Undefined, required + This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + """ + + + labelSelector?: v1.LabelSelector + + namespaceSelector?: v1.LabelSelector + + namespaces?: [str] + + topologyKey: str + + diff --git a/library/k8s/api/core/v1/pod_anti_affinity.k b/library/k8s/api/core/v1/pod_anti_affinity.k new file mode 100644 index 0000000..ef6013e --- /dev/null +++ b/library/k8s/api/core/v1/pod_anti_affinity.k @@ -0,0 +1,25 @@ +""" +This is the pod_anti_affinity module in k8s.api.core.v1 package. +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 PodAntiAffinity: + """ + Pod anti affinity is a group of inter pod anti affinity scheduling rules. + + Attributes + ---------- + preferredDuringSchedulingIgnoredDuringExecution : [WeightedPodAffinityTerm], default is Undefined, optional + The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + requiredDuringSchedulingIgnoredDuringExecution : [PodAffinityTerm], default is Undefined, optional + If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + """ + + + preferredDuringSchedulingIgnoredDuringExecution?: [WeightedPodAffinityTerm] + + requiredDuringSchedulingIgnoredDuringExecution?: [PodAffinityTerm] + + diff --git a/library/k8s/api/core/v1/pod_condition.k b/library/k8s/api/core/v1/pod_condition.k new file mode 100644 index 0000000..5473a82 --- /dev/null +++ b/library/k8s/api/core/v1/pod_condition.k @@ -0,0 +1,41 @@ +""" +This is the pod_condition module in k8s.api.core.v1 package. +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 PodCondition: + """ + PodCondition contains details for the current condition of this pod. + + Attributes + ---------- + lastProbeTime : str, default is Undefined, optional + Last time we probed the condition. + lastTransitionTime : str, default is Undefined, optional + Last time the condition transitioned from one status to another. + message : str, default is Undefined, optional + Human-readable message indicating details about last transition. + reason : str, default is Undefined, optional + Unique, one-word, CamelCase reason for the condition's last transition. + status : str, default is Undefined, required + Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + $type : str, default is Undefined, required + Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + """ + + + lastProbeTime?: str + + lastTransitionTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/api/core/v1/pod_dns_config.k b/library/k8s/api/core/v1/pod_dns_config.k new file mode 100644 index 0000000..7b80442 --- /dev/null +++ b/library/k8s/api/core/v1/pod_dns_config.k @@ -0,0 +1,29 @@ +""" +This is the pod_dns_config module in k8s.api.core.v1 package. +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 PodDNSConfig: + """ + PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. + + Attributes + ---------- + nameservers : [str], default is Undefined, optional + A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + options : [PodDNSConfigOption], default is Undefined, optional + A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + searches : [str], default is Undefined, optional + A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + """ + + + nameservers?: [str] + + options?: [PodDNSConfigOption] + + searches?: [str] + + diff --git a/library/k8s/api/core/v1/pod_dns_config_option.k b/library/k8s/api/core/v1/pod_dns_config_option.k new file mode 100644 index 0000000..3489684 --- /dev/null +++ b/library/k8s/api/core/v1/pod_dns_config_option.k @@ -0,0 +1,25 @@ +""" +This is the pod_dns_config_option module in k8s.api.core.v1 package. +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 PodDNSConfigOption: + """ + PodDNSConfigOption defines DNS resolver options of a pod. + + Attributes + ---------- + name : str, default is Undefined, optional + Required. + value : str, default is Undefined, optional + value + """ + + + name?: str + + value?: str + + diff --git a/library/k8s/api/core/v1/pod_ip.k b/library/k8s/api/core/v1/pod_ip.k new file mode 100644 index 0000000..fe9a5b4 --- /dev/null +++ b/library/k8s/api/core/v1/pod_ip.k @@ -0,0 +1,23 @@ +""" +This is the pod_ip module in k8s.api.core.v1 package. +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 PodIP: + """ + IP address information for entries in the (plural) PodIPs field. Each entry includes: + + IP: An IP address allocated to the pod. Routable at least within the cluster. + + Attributes + ---------- + ip : str, default is Undefined, optional + ip is an IP address (IPv4 or IPv6) assigned to the pod + """ + + + ip?: str + + diff --git a/library/k8s/api/core/v1/pod_list.k b/library/k8s/api/core/v1/pod_list.k new file mode 100644 index 0000000..10ad5eb --- /dev/null +++ b/library/k8s/api/core/v1/pod_list.k @@ -0,0 +1,34 @@ +""" +This is the pod_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PodList: + """ + PodList is a list of Pods. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [Pod], default is Undefined, required + List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + kind : str, default is "PodList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [Pod] + + kind: "PodList" = "PodList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/pod_os.k b/library/k8s/api/core/v1/pod_os.k new file mode 100644 index 0000000..9cf96c4 --- /dev/null +++ b/library/k8s/api/core/v1/pod_os.k @@ -0,0 +1,21 @@ +""" +This is the pod_os module in k8s.api.core.v1 package. +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 PodOS: + """ + PodOS defines the OS parameters of a pod. + + Attributes + ---------- + name : str, default is Undefined, required + Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null + """ + + + name: str + + diff --git a/library/k8s/api/core/v1/pod_readiness_gate.k b/library/k8s/api/core/v1/pod_readiness_gate.k new file mode 100644 index 0000000..d943721 --- /dev/null +++ b/library/k8s/api/core/v1/pod_readiness_gate.k @@ -0,0 +1,21 @@ +""" +This is the pod_readiness_gate module in k8s.api.core.v1 package. +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 PodReadinessGate: + """ + PodReadinessGate contains the reference to a pod condition + + Attributes + ---------- + conditionType : str, default is Undefined, required + ConditionType refers to a condition in the pod's condition list with matching type. + """ + + + conditionType: str + + diff --git a/library/k8s/api/core/v1/pod_resource_claim.k b/library/k8s/api/core/v1/pod_resource_claim.k new file mode 100644 index 0000000..3bbbcd0 --- /dev/null +++ b/library/k8s/api/core/v1/pod_resource_claim.k @@ -0,0 +1,25 @@ +""" +This is the pod_resource_claim module in k8s.api.core.v1 package. +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 PodResourceClaim: + """ + PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. + + Attributes + ---------- + name : str, default is Undefined, required + Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. + source : ClaimSource, default is Undefined, optional + Source describes where to find the ResourceClaim. + """ + + + name: str + + source?: ClaimSource + + diff --git a/library/k8s/api/core/v1/pod_scheduling_gate.k b/library/k8s/api/core/v1/pod_scheduling_gate.k new file mode 100644 index 0000000..d384928 --- /dev/null +++ b/library/k8s/api/core/v1/pod_scheduling_gate.k @@ -0,0 +1,21 @@ +""" +This is the pod_scheduling_gate module in k8s.api.core.v1 package. +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 PodSchedulingGate: + """ + PodSchedulingGate is associated to a Pod to guard its scheduling. + + Attributes + ---------- + name : str, default is Undefined, required + Name of the scheduling gate. Each scheduling gate must have a unique name field. + """ + + + name: str + + diff --git a/library/k8s/api/core/v1/pod_security_context.k b/library/k8s/api/core/v1/pod_security_context.k new file mode 100644 index 0000000..a9c5059 --- /dev/null +++ b/library/k8s/api/core/v1/pod_security_context.k @@ -0,0 +1,61 @@ +""" +This is the pod_security_context module in k8s.api.core.v1 package. +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 PodSecurityContext: + """ + PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. + + Attributes + ---------- + fsGroup : int, default is Undefined, optional + A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. + fsGroupChangePolicy : str, default is Undefined, optional + fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows. + runAsGroup : int, default is Undefined, optional + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. + runAsNonRoot : bool, default is Undefined, optional + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + runAsUser : int, default is Undefined, optional + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. + seLinuxOptions : SELinuxOptions, default is Undefined, optional + The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. + seccompProfile : SeccompProfile, default is Undefined, optional + The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. + supplementalGroups : [int], default is Undefined, optional + A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows. + sysctls : [Sysctl], default is Undefined, optional + Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. + windowsOptions : WindowsSecurityContextOptions, default is Undefined, optional + The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. + """ + + + fsGroup?: int + + fsGroupChangePolicy?: str + + runAsGroup?: int + + runAsNonRoot?: bool + + runAsUser?: int + + seLinuxOptions?: SELinuxOptions + + seccompProfile?: SeccompProfile + + supplementalGroups?: [int] + + sysctls?: [Sysctl] + + windowsOptions?: WindowsSecurityContextOptions + + diff --git a/library/k8s/api/core/v1/pod_spec.k b/library/k8s/api/core/v1/pod_spec.k new file mode 100644 index 0000000..0219be1 --- /dev/null +++ b/library/k8s/api/core/v1/pod_spec.k @@ -0,0 +1,185 @@ +""" +This is the pod_spec module in k8s.api.core.v1 package. +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 PodSpec: + """ + PodSpec is a description of a pod. + + Attributes + ---------- + activeDeadlineSeconds : int, default is Undefined, optional + Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + affinity : Affinity, default is Undefined, optional + If specified, the pod's scheduling constraints + automountServiceAccountToken : bool, default is Undefined, optional + AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + containers : [Container], default is Undefined, required + List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + dnsConfig : PodDNSConfig, default is Undefined, optional + Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + dnsPolicy : str, default is Undefined, optional + Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + enableServiceLinks : bool, default is Undefined, optional + EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + ephemeralContainers : [EphemeralContainer], default is Undefined, optional + List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. + hostAliases : [HostAlias], default is Undefined, optional + HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + hostIPC : bool, default is Undefined, optional + Use the host's ipc namespace. Optional: Default to false. + hostNetwork : bool, default is Undefined, optional + Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + hostPID : bool, default is Undefined, optional + Use the host's pid namespace. Optional: Default to false. + hostUsers : bool, default is Undefined, optional + Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. + hostname : str, default is Undefined, optional + Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + imagePullSecrets : [LocalObjectReference], default is Undefined, optional + ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + initContainers : [Container], default is Undefined, optional + List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + nodeName : str, default is Undefined, optional + NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + nodeSelector : {str:str}, default is Undefined, optional + NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + os : PodOS, default is Undefined, optional + Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set. + + If the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions + + If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup + overhead : {str:str}, default is Undefined, optional + Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md + preemptionPolicy : str, default is Undefined, optional + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. + priority : int, default is Undefined, optional + The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + priorityClassName : str, default is Undefined, optional + If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + readinessGates : [PodReadinessGate], default is Undefined, optional + If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates + resourceClaims : [PodResourceClaim], default is Undefined, optional + ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. + + This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. + + This field is immutable. + restartPolicy : str, default is Undefined, optional + Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + runtimeClassName : str, default is Undefined, optional + RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class + schedulerName : str, default is Undefined, optional + If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + schedulingGates : [PodSchedulingGate], default is Undefined, optional + SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. + + SchedulingGates can only be set at pod creation time, and be removed only afterwards. + + This is a beta feature enabled by the PodSchedulingReadiness feature gate. + securityContext : PodSecurityContext, default is Undefined, optional + SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + serviceAccount : str, default is Undefined, optional + DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + serviceAccountName : str, default is Undefined, optional + ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + setHostnameAsFQDN : bool, default is Undefined, optional + If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. + shareProcessNamespace : bool, default is Undefined, optional + Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + subdomain : str, default is Undefined, optional + If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + terminationGracePeriodSeconds : int, default is Undefined, optional + Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + tolerations : [Toleration], default is Undefined, optional + If specified, the pod's tolerations. + topologySpreadConstraints : [TopologySpreadConstraint], default is Undefined, optional + TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. + volumes : [Volume], default is Undefined, optional + List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + """ + + + activeDeadlineSeconds?: int + + affinity?: Affinity + + automountServiceAccountToken?: bool + + containers: [Container] + + dnsConfig?: PodDNSConfig + + dnsPolicy?: str + + enableServiceLinks?: bool + + ephemeralContainers?: [EphemeralContainer] + + hostAliases?: [HostAlias] + + hostIPC?: bool + + hostNetwork?: bool + + hostPID?: bool + + hostUsers?: bool + + hostname?: str + + imagePullSecrets?: [LocalObjectReference] + + initContainers?: [Container] + + nodeName?: str + + nodeSelector?: {str:str} + + os?: PodOS + + overhead?: {str:str} + + preemptionPolicy?: str + + priority?: int + + priorityClassName?: str + + readinessGates?: [PodReadinessGate] + + resourceClaims?: [PodResourceClaim] + + restartPolicy?: str + + runtimeClassName?: str + + schedulerName?: str + + schedulingGates?: [PodSchedulingGate] + + securityContext?: PodSecurityContext + + serviceAccount?: str + + serviceAccountName?: str + + setHostnameAsFQDN?: bool + + shareProcessNamespace?: bool + + subdomain?: str + + terminationGracePeriodSeconds?: int + + tolerations?: [Toleration] + + topologySpreadConstraints?: [TopologySpreadConstraint] + + volumes?: [Volume] + + diff --git a/library/k8s/api/core/v1/pod_status.k b/library/k8s/api/core/v1/pod_status.k new file mode 100644 index 0000000..50aa5b4 --- /dev/null +++ b/library/k8s/api/core/v1/pod_status.k @@ -0,0 +1,77 @@ +""" +This is the pod_status module in k8s.api.core.v1 package. +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 PodStatus: + """ + PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane. + + Attributes + ---------- + conditions : [PodCondition], default is Undefined, optional + Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + containerStatuses : [ContainerStatus], default is Undefined, optional + The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + ephemeralContainerStatuses : [ContainerStatus], default is Undefined, optional + Status for any ephemeral containers that have run in this pod. + hostIP : str, default is Undefined, optional + IP address of the host to which the pod is assigned. Empty if not yet scheduled. + initContainerStatuses : [ContainerStatus], default is Undefined, optional + The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + message : str, default is Undefined, optional + A human readable message indicating details about why the pod is in this condition. + nominatedNodeName : str, default is Undefined, optional + nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. + phase : str, default is Undefined, optional + The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: + + Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. + + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase + podIP : str, default is Undefined, optional + IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. + podIPs : [PodIP], default is Undefined, optional + podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. + qosClass : str, default is Undefined, optional + The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes + reason : str, default is Undefined, optional + A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' + resize : str, default is Undefined, optional + Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to "Proposed" + startTime : str, default is Undefined, optional + RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. + """ + + + conditions?: [PodCondition] + + containerStatuses?: [ContainerStatus] + + ephemeralContainerStatuses?: [ContainerStatus] + + hostIP?: str + + initContainerStatuses?: [ContainerStatus] + + message?: str + + nominatedNodeName?: str + + phase?: str + + podIP?: str + + podIPs?: [PodIP] + + qosClass?: str + + reason?: str + + resize?: str + + startTime?: str + + diff --git a/library/k8s/api/core/v1/pod_template.k b/library/k8s/api/core/v1/pod_template.k new file mode 100644 index 0000000..98e64f7 --- /dev/null +++ b/library/k8s/api/core/v1/pod_template.k @@ -0,0 +1,34 @@ +""" +This is the pod_template module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PodTemplate: + """ + PodTemplate describes a template for creating copies of a predefined pod. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "PodTemplate", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + template : PodTemplateSpec, default is Undefined, optional + Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "v1" = "v1" + + kind: "PodTemplate" = "PodTemplate" + + metadata?: v1.ObjectMeta + + template?: PodTemplateSpec + + diff --git a/library/k8s/api/core/v1/pod_template_list.k b/library/k8s/api/core/v1/pod_template_list.k new file mode 100644 index 0000000..8bb1827 --- /dev/null +++ b/library/k8s/api/core/v1/pod_template_list.k @@ -0,0 +1,34 @@ +""" +This is the pod_template_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PodTemplateList: + """ + PodTemplateList is a list of PodTemplates. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [PodTemplate], default is Undefined, required + List of pod templates + kind : str, default is "PodTemplateList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [PodTemplate] + + kind: "PodTemplateList" = "PodTemplateList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/pod_template_spec.k b/library/k8s/api/core/v1/pod_template_spec.k new file mode 100644 index 0000000..1274c88 --- /dev/null +++ b/library/k8s/api/core/v1/pod_template_spec.k @@ -0,0 +1,26 @@ +""" +This is the pod_template_spec module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PodTemplateSpec: + """ + PodTemplateSpec describes the data a pod should have when created from a template + + Attributes + ---------- + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : PodSpec, default is Undefined, optional + Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + metadata?: v1.ObjectMeta + + spec?: PodSpec + + diff --git a/library/k8s/api/core/v1/port_status.k b/library/k8s/api/core/v1/port_status.k new file mode 100644 index 0000000..d6380d2 --- /dev/null +++ b/library/k8s/api/core/v1/port_status.k @@ -0,0 +1,32 @@ +""" +This is the port_status module in k8s.api.core.v1 package. +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 PortStatus: + """ + k8s api core v1 port status + + Attributes + ---------- + error : str, default is Undefined, optional + Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use + CamelCase names + - cloud provider specific error values must have names that comply with the + format foo.example.com/CamelCase. + port : int, default is Undefined, required + Port is the port number of the service port of which status is recorded here + $protocol : str, default is Undefined, required + Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP" + """ + + + error?: str + + port: int + + $protocol: str + + diff --git a/library/k8s/api/core/v1/portworx_volume_source.k b/library/k8s/api/core/v1/portworx_volume_source.k new file mode 100644 index 0000000..f04ae18 --- /dev/null +++ b/library/k8s/api/core/v1/portworx_volume_source.k @@ -0,0 +1,29 @@ +""" +This is the portworx_volume_source module in k8s.api.core.v1 package. +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 PortworxVolumeSource: + """ + PortworxVolumeSource represents a Portworx volume resource. + + Attributes + ---------- + fsType : str, default is Undefined, optional + fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + readOnly : bool, default is Undefined, optional + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + volumeID : str, default is Undefined, required + volumeID uniquely identifies a Portworx volume + """ + + + fsType?: str + + readOnly?: bool + + volumeID: str + + diff --git a/library/k8s/api/core/v1/preferred_scheduling_term.k b/library/k8s/api/core/v1/preferred_scheduling_term.k new file mode 100644 index 0000000..18d5b6c --- /dev/null +++ b/library/k8s/api/core/v1/preferred_scheduling_term.k @@ -0,0 +1,25 @@ +""" +This is the preferred_scheduling_term module in k8s.api.core.v1 package. +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 PreferredSchedulingTerm: + """ + An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). + + Attributes + ---------- + preference : NodeSelectorTerm, default is Undefined, required + A node selector term, associated with the corresponding weight. + weight : int, default is Undefined, required + Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + """ + + + preference: NodeSelectorTerm + + weight: int + + diff --git a/library/k8s/api/core/v1/probe.k b/library/k8s/api/core/v1/probe.k new file mode 100644 index 0000000..3afead0 --- /dev/null +++ b/library/k8s/api/core/v1/probe.k @@ -0,0 +1,57 @@ +""" +This is the probe module in k8s.api.core.v1 package. +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 Probe: + """ + Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. + + Attributes + ---------- + exec : ExecAction, default is Undefined, optional + Exec specifies the action to take. + failureThreshold : int, default is Undefined, optional + Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + grpc : GRPCAction, default is Undefined, optional + GRPC specifies an action involving a GRPC port. + httpGet : HTTPGetAction, default is Undefined, optional + HTTPGet specifies the http request to perform. + initialDelaySeconds : int, default is Undefined, optional + Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + periodSeconds : int, default is Undefined, optional + How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + successThreshold : int, default is Undefined, optional + Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + tcpSocket : TCPSocketAction, default is Undefined, optional + TCPSocket specifies an action involving a TCP port. + terminationGracePeriodSeconds : int, default is Undefined, optional + Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. + timeoutSeconds : int, default is Undefined, optional + Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + """ + + + exec?: ExecAction + + failureThreshold?: int + + grpc?: GRPCAction + + httpGet?: HTTPGetAction + + initialDelaySeconds?: int + + periodSeconds?: int + + successThreshold?: int + + tcpSocket?: TCPSocketAction + + terminationGracePeriodSeconds?: int + + timeoutSeconds?: int + + diff --git a/library/k8s/api/core/v1/projected_volume_source.k b/library/k8s/api/core/v1/projected_volume_source.k new file mode 100644 index 0000000..bd40269 --- /dev/null +++ b/library/k8s/api/core/v1/projected_volume_source.k @@ -0,0 +1,25 @@ +""" +This is the projected_volume_source module in k8s.api.core.v1 package. +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 ProjectedVolumeSource: + """ + Represents a projected volume source + + Attributes + ---------- + defaultMode : int, default is Undefined, optional + defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + sources : [VolumeProjection], default is Undefined, optional + sources is the list of volume projections + """ + + + defaultMode?: int + + sources?: [VolumeProjection] + + diff --git a/library/k8s/api/core/v1/quobyte_volume_source.k b/library/k8s/api/core/v1/quobyte_volume_source.k new file mode 100644 index 0000000..4aadf51 --- /dev/null +++ b/library/k8s/api/core/v1/quobyte_volume_source.k @@ -0,0 +1,41 @@ +""" +This is the quobyte_volume_source module in k8s.api.core.v1 package. +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 QuobyteVolumeSource: + """ + Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. + + Attributes + ---------- + group : str, default is Undefined, optional + group to map volume access to Default is no group + readOnly : bool, default is Undefined, optional + readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + registry : str, default is Undefined, required + registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + tenant : str, default is Undefined, optional + tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + user : str, default is Undefined, optional + user to map volume access to Defaults to serivceaccount user + volume : str, default is Undefined, required + volume is a string that references an already created Quobyte volume by name. + """ + + + group?: str + + readOnly?: bool + + registry: str + + tenant?: str + + user?: str + + volume: str + + diff --git a/library/k8s/api/core/v1/rbd_persistent_volume_source.k b/library/k8s/api/core/v1/rbd_persistent_volume_source.k new file mode 100644 index 0000000..db4c6f6 --- /dev/null +++ b/library/k8s/api/core/v1/rbd_persistent_volume_source.k @@ -0,0 +1,49 @@ +""" +This is the rbd_persistent_volume_source module in k8s.api.core.v1 package. +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 RBDPersistentVolumeSource: + """ + Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + image : str, default is Undefined, required + image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + keyring : str, default is Undefined, optional + keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + monitors : [str], default is Undefined, required + monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + pool : str, default is Undefined, optional + pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + readOnly : bool, default is Undefined, optional + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + secretRef : SecretReference, default is Undefined, optional + secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + user : str, default is Undefined, optional + user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + """ + + + fsType?: str + + image: str + + keyring?: str + + monitors: [str] + + pool?: str + + readOnly?: bool + + secretRef?: SecretReference + + user?: str + + diff --git a/library/k8s/api/core/v1/rbd_volume_source.k b/library/k8s/api/core/v1/rbd_volume_source.k new file mode 100644 index 0000000..e78ac3b --- /dev/null +++ b/library/k8s/api/core/v1/rbd_volume_source.k @@ -0,0 +1,49 @@ +""" +This is the rbd_volume_source module in k8s.api.core.v1 package. +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 RBDVolumeSource: + """ + Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + image : str, default is Undefined, required + image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + keyring : str, default is Undefined, optional + keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + monitors : [str], default is Undefined, required + monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + pool : str, default is Undefined, optional + pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + readOnly : bool, default is Undefined, optional + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + secretRef : LocalObjectReference, default is Undefined, optional + secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + user : str, default is Undefined, optional + user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + """ + + + fsType?: str + + image: str + + keyring?: str + + monitors: [str] + + pool?: str + + readOnly?: bool + + secretRef?: LocalObjectReference + + user?: str + + diff --git a/library/k8s/api/core/v1/replication_controller.k b/library/k8s/api/core/v1/replication_controller.k new file mode 100644 index 0000000..08b091e --- /dev/null +++ b/library/k8s/api/core/v1/replication_controller.k @@ -0,0 +1,34 @@ +""" +This is the replication_controller module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ReplicationController: + """ + ReplicationController represents the configuration of a replication controller. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "ReplicationController", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : ReplicationControllerSpec, default is Undefined, optional + Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "v1" = "v1" + + kind: "ReplicationController" = "ReplicationController" + + metadata?: v1.ObjectMeta + + spec?: ReplicationControllerSpec + + diff --git a/library/k8s/api/core/v1/replication_controller_condition.k b/library/k8s/api/core/v1/replication_controller_condition.k new file mode 100644 index 0000000..9920a4f --- /dev/null +++ b/library/k8s/api/core/v1/replication_controller_condition.k @@ -0,0 +1,37 @@ +""" +This is the replication_controller_condition module in k8s.api.core.v1 package. +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 ReplicationControllerCondition: + """ + ReplicationControllerCondition describes the state of a replication controller at a certain point. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + The last time the condition transitioned from one status to another. + message : str, default is Undefined, optional + A human readable message indicating details about the transition. + reason : str, default is Undefined, optional + The reason for the condition's last transition. + status : str, default is Undefined, required + Status of the condition, one of True, False, Unknown. + $type : str, default is Undefined, required + Type of replication controller condition. + """ + + + lastTransitionTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/api/core/v1/replication_controller_list.k b/library/k8s/api/core/v1/replication_controller_list.k new file mode 100644 index 0000000..64afa17 --- /dev/null +++ b/library/k8s/api/core/v1/replication_controller_list.k @@ -0,0 +1,34 @@ +""" +This is the replication_controller_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ReplicationControllerList: + """ + ReplicationControllerList is a collection of replication controllers. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ReplicationController], default is Undefined, required + List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + kind : str, default is "ReplicationControllerList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [ReplicationController] + + kind: "ReplicationControllerList" = "ReplicationControllerList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/replication_controller_spec.k b/library/k8s/api/core/v1/replication_controller_spec.k new file mode 100644 index 0000000..5132c72 --- /dev/null +++ b/library/k8s/api/core/v1/replication_controller_spec.k @@ -0,0 +1,33 @@ +""" +This is the replication_controller_spec module in k8s.api.core.v1 package. +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 ReplicationControllerSpec: + """ + ReplicationControllerSpec is the specification of a replication controller. + + Attributes + ---------- + minReadySeconds : int, default is Undefined, optional + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + replicas : int, default is Undefined, optional + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + selector : {str:str}, default is Undefined, optional + Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + template : PodTemplateSpec, default is Undefined, optional + Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """ + + + minReadySeconds?: int + + replicas?: int + + selector?: {str:str} + + template?: PodTemplateSpec + + diff --git a/library/k8s/api/core/v1/replication_controller_status.k b/library/k8s/api/core/v1/replication_controller_status.k new file mode 100644 index 0000000..a1f4862 --- /dev/null +++ b/library/k8s/api/core/v1/replication_controller_status.k @@ -0,0 +1,41 @@ +""" +This is the replication_controller_status module in k8s.api.core.v1 package. +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 ReplicationControllerStatus: + """ + ReplicationControllerStatus represents the current status of a replication controller. + + Attributes + ---------- + availableReplicas : int, default is Undefined, optional + The number of available replicas (ready for at least minReadySeconds) for this replication controller. + conditions : [ReplicationControllerCondition], default is Undefined, optional + Represents the latest available observations of a replication controller's current state. + fullyLabeledReplicas : int, default is Undefined, optional + The number of pods that have labels matching the labels of the pod template of the replication controller. + observedGeneration : int, default is Undefined, optional + ObservedGeneration reflects the generation of the most recently observed replication controller. + readyReplicas : int, default is Undefined, optional + The number of ready replicas for this replication controller. + replicas : int, default is Undefined, required + Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + """ + + + availableReplicas?: int + + conditions?: [ReplicationControllerCondition] + + fullyLabeledReplicas?: int + + observedGeneration?: int + + readyReplicas?: int + + replicas: int + + diff --git a/library/k8s/api/core/v1/resource_claim.k b/library/k8s/api/core/v1/resource_claim.k new file mode 100644 index 0000000..c94c3fc --- /dev/null +++ b/library/k8s/api/core/v1/resource_claim.k @@ -0,0 +1,21 @@ +""" +This is the resource_claim module in k8s.api.core.v1 package. +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 ResourceClaim: + """ + ResourceClaim references one entry in PodSpec.ResourceClaims. + + Attributes + ---------- + name : str, default is Undefined, required + Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. + """ + + + name: str + + diff --git a/library/k8s/api/core/v1/resource_field_selector.k b/library/k8s/api/core/v1/resource_field_selector.k new file mode 100644 index 0000000..9e0ae89 --- /dev/null +++ b/library/k8s/api/core/v1/resource_field_selector.k @@ -0,0 +1,29 @@ +""" +This is the resource_field_selector module in k8s.api.core.v1 package. +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 ResourceFieldSelector: + """ + ResourceFieldSelector represents container resources (cpu, memory) and their output format + + Attributes + ---------- + containerName : str, default is Undefined, optional + Container name: required for volumes, optional for env vars + divisor : str, default is Undefined, optional + Specifies the output format of the exposed resources, defaults to "1" + resource : str, default is Undefined, required + Required: resource to select + """ + + + containerName?: str + + divisor?: str + + resource: str + + diff --git a/library/k8s/api/core/v1/resource_quota.k b/library/k8s/api/core/v1/resource_quota.k new file mode 100644 index 0000000..b7da49d --- /dev/null +++ b/library/k8s/api/core/v1/resource_quota.k @@ -0,0 +1,34 @@ +""" +This is the resource_quota module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ResourceQuota: + """ + ResourceQuota sets aggregate quota restrictions enforced per namespace + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "ResourceQuota", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : ResourceQuotaSpec, default is Undefined, optional + Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "v1" = "v1" + + kind: "ResourceQuota" = "ResourceQuota" + + metadata?: v1.ObjectMeta + + spec?: ResourceQuotaSpec + + diff --git a/library/k8s/api/core/v1/resource_quota_list.k b/library/k8s/api/core/v1/resource_quota_list.k new file mode 100644 index 0000000..ca1424b --- /dev/null +++ b/library/k8s/api/core/v1/resource_quota_list.k @@ -0,0 +1,34 @@ +""" +This is the resource_quota_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ResourceQuotaList: + """ + ResourceQuotaList is a list of ResourceQuota items. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ResourceQuota], default is Undefined, required + Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + kind : str, default is "ResourceQuotaList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [ResourceQuota] + + kind: "ResourceQuotaList" = "ResourceQuotaList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/resource_quota_spec.k b/library/k8s/api/core/v1/resource_quota_spec.k new file mode 100644 index 0000000..b02bd35 --- /dev/null +++ b/library/k8s/api/core/v1/resource_quota_spec.k @@ -0,0 +1,29 @@ +""" +This is the resource_quota_spec module in k8s.api.core.v1 package. +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 ResourceQuotaSpec: + """ + ResourceQuotaSpec defines the desired hard limits to enforce for Quota. + + Attributes + ---------- + hard : {str:str}, default is Undefined, optional + hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + scopeSelector : ScopeSelector, default is Undefined, optional + scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. + scopes : [str], default is Undefined, optional + A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + """ + + + hard?: {str:str} + + scopeSelector?: ScopeSelector + + scopes?: [str] + + diff --git a/library/k8s/api/core/v1/resource_quota_status.k b/library/k8s/api/core/v1/resource_quota_status.k new file mode 100644 index 0000000..9910f00 --- /dev/null +++ b/library/k8s/api/core/v1/resource_quota_status.k @@ -0,0 +1,25 @@ +""" +This is the resource_quota_status module in k8s.api.core.v1 package. +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 ResourceQuotaStatus: + """ + ResourceQuotaStatus defines the enforced hard limits and observed use. + + Attributes + ---------- + hard : {str:str}, default is Undefined, optional + Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + used : {str:str}, default is Undefined, optional + Used is the current observed total usage of the resource in the namespace. + """ + + + hard?: {str:str} + + used?: {str:str} + + diff --git a/library/k8s/api/core/v1/resource_requirements.k b/library/k8s/api/core/v1/resource_requirements.k new file mode 100644 index 0000000..f046334 --- /dev/null +++ b/library/k8s/api/core/v1/resource_requirements.k @@ -0,0 +1,33 @@ +""" +This is the resource_requirements module in k8s.api.core.v1 package. +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 ResourceRequirements: + """ + ResourceRequirements describes the compute resource requirements. + + Attributes + ---------- + claims : [ResourceClaim], default is Undefined, optional + Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. + + This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. + + This field is immutable. It can only be set for containers. + limits : {str:str}, default is Undefined, optional + Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + requests : {str:str}, default is Undefined, optional + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + """ + + + claims?: [ResourceClaim] + + limits?: {str:str} + + requests?: {str:str} + + diff --git a/library/k8s/api/core/v1/scale_io_persistent_volume_source.k b/library/k8s/api/core/v1/scale_io_persistent_volume_source.k new file mode 100644 index 0000000..1908213 --- /dev/null +++ b/library/k8s/api/core/v1/scale_io_persistent_volume_source.k @@ -0,0 +1,57 @@ +""" +This is the scale_io_persistent_volume_source module in k8s.api.core.v1 package. +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 ScaleIOPersistentVolumeSource: + """ + ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + gateway : str, default is Undefined, required + gateway is the host address of the ScaleIO API Gateway. + protectionDomain : str, default is Undefined, optional + protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. + readOnly : bool, default is Undefined, optional + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + secretRef : SecretReference, default is Undefined, required + secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + sslEnabled : bool, default is Undefined, optional + sslEnabled is the flag to enable/disable SSL communication with Gateway, default false + storageMode : str, default is Undefined, optional + storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + storagePool : str, default is Undefined, optional + storagePool is the ScaleIO Storage Pool associated with the protection domain. + system : str, default is Undefined, required + system is the name of the storage system as configured in ScaleIO. + volumeName : str, default is Undefined, optional + volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. + """ + + + fsType?: str + + gateway: str + + protectionDomain?: str + + readOnly?: bool + + secretRef: SecretReference + + sslEnabled?: bool + + storageMode?: str + + storagePool?: str + + system: str + + volumeName?: str + + diff --git a/library/k8s/api/core/v1/scale_io_volume_source.k b/library/k8s/api/core/v1/scale_io_volume_source.k new file mode 100644 index 0000000..50447d9 --- /dev/null +++ b/library/k8s/api/core/v1/scale_io_volume_source.k @@ -0,0 +1,57 @@ +""" +This is the scale_io_volume_source module in k8s.api.core.v1 package. +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 ScaleIOVolumeSource: + """ + ScaleIOVolumeSource represents a persistent ScaleIO volume + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + gateway : str, default is Undefined, required + gateway is the host address of the ScaleIO API Gateway. + protectionDomain : str, default is Undefined, optional + protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. + readOnly : bool, default is Undefined, optional + readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + secretRef : LocalObjectReference, default is Undefined, required + secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + sslEnabled : bool, default is Undefined, optional + sslEnabled Flag enable/disable SSL communication with Gateway, default false + storageMode : str, default is Undefined, optional + storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + storagePool : str, default is Undefined, optional + storagePool is the ScaleIO Storage Pool associated with the protection domain. + system : str, default is Undefined, required + system is the name of the storage system as configured in ScaleIO. + volumeName : str, default is Undefined, optional + volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. + """ + + + fsType?: str + + gateway: str + + protectionDomain?: str + + readOnly?: bool + + secretRef: LocalObjectReference + + sslEnabled?: bool + + storageMode?: str + + storagePool?: str + + system: str + + volumeName?: str + + diff --git a/library/k8s/api/core/v1/scope_selector.k b/library/k8s/api/core/v1/scope_selector.k new file mode 100644 index 0000000..3c4a6d1 --- /dev/null +++ b/library/k8s/api/core/v1/scope_selector.k @@ -0,0 +1,21 @@ +""" +This is the scope_selector module in k8s.api.core.v1 package. +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 ScopeSelector: + """ + A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. + + Attributes + ---------- + matchExpressions : [ScopedResourceSelectorRequirement], default is Undefined, optional + A list of scope selector requirements by scope of the resources. + """ + + + matchExpressions?: [ScopedResourceSelectorRequirement] + + diff --git a/library/k8s/api/core/v1/scoped_resource_selector_requirement.k b/library/k8s/api/core/v1/scoped_resource_selector_requirement.k new file mode 100644 index 0000000..3ff50ad --- /dev/null +++ b/library/k8s/api/core/v1/scoped_resource_selector_requirement.k @@ -0,0 +1,29 @@ +""" +This is the scoped_resource_selector_requirement module in k8s.api.core.v1 package. +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 ScopedResourceSelectorRequirement: + """ + A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. + + Attributes + ---------- + operator : str, default is Undefined, required + Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. + scopeName : str, default is Undefined, required + The name of the scope that the selector applies to. + values : [str], default is Undefined, optional + An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + """ + + + operator: str + + scopeName: str + + values?: [str] + + diff --git a/library/k8s/api/core/v1/se_linux_options.k b/library/k8s/api/core/v1/se_linux_options.k new file mode 100644 index 0000000..1c97bb5 --- /dev/null +++ b/library/k8s/api/core/v1/se_linux_options.k @@ -0,0 +1,33 @@ +""" +This is the se_linux_options module in k8s.api.core.v1 package. +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 SELinuxOptions: + """ + SELinuxOptions are the labels to be applied to the container + + Attributes + ---------- + level : str, default is Undefined, optional + Level is SELinux level label that applies to the container. + role : str, default is Undefined, optional + Role is a SELinux role label that applies to the container. + $type : str, default is Undefined, optional + Type is a SELinux type label that applies to the container. + user : str, default is Undefined, optional + User is a SELinux user label that applies to the container. + """ + + + level?: str + + role?: str + + $type?: str + + user?: str + + diff --git a/library/k8s/api/core/v1/seccomp_profile.k b/library/k8s/api/core/v1/seccomp_profile.k new file mode 100644 index 0000000..892ea1c --- /dev/null +++ b/library/k8s/api/core/v1/seccomp_profile.k @@ -0,0 +1,27 @@ +""" +This is the seccomp_profile module in k8s.api.core.v1 package. +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 SeccompProfile: + """ + SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. + + Attributes + ---------- + localhostProfile : str, default is Undefined, optional + localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is "Localhost". + $type : str, default is Undefined, required + type indicates which kind of seccomp profile will be applied. Valid options are: + + Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. + """ + + + localhostProfile?: str + + $type: str + + diff --git a/library/k8s/api/core/v1/secret.k b/library/k8s/api/core/v1/secret.k new file mode 100644 index 0000000..315e5f7 --- /dev/null +++ b/library/k8s/api/core/v1/secret.k @@ -0,0 +1,46 @@ +""" +This is the secret module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Secret: + """ + Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + data : {str:str}, default is Undefined, optional + Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + immutable : bool, default is Undefined, optional + Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. + kind : str, default is "Secret", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + stringData : {str:str}, default is Undefined, optional + stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. + $type : str, default is Undefined, optional + Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types + """ + + + apiVersion: "v1" = "v1" + + data?: {str:str} + + immutable?: bool + + kind: "Secret" = "Secret" + + metadata?: v1.ObjectMeta + + stringData?: {str:str} + + $type?: str + + diff --git a/library/k8s/api/core/v1/secret_env_source.k b/library/k8s/api/core/v1/secret_env_source.k new file mode 100644 index 0000000..a015ea0 --- /dev/null +++ b/library/k8s/api/core/v1/secret_env_source.k @@ -0,0 +1,27 @@ +""" +This is the secret_env_source module in k8s.api.core.v1 package. +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 SecretEnvSource: + """ + SecretEnvSource selects a Secret to populate the environment variables with. + + The contents of the target Secret's Data field will represent the key-value pairs as environment variables. + + Attributes + ---------- + name : str, default is Undefined, optional + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + optional : bool, default is Undefined, optional + Specify whether the Secret must be defined + """ + + + name?: str + + optional?: bool + + diff --git a/library/k8s/api/core/v1/secret_key_selector.k b/library/k8s/api/core/v1/secret_key_selector.k new file mode 100644 index 0000000..9cd8cca --- /dev/null +++ b/library/k8s/api/core/v1/secret_key_selector.k @@ -0,0 +1,29 @@ +""" +This is the secret_key_selector module in k8s.api.core.v1 package. +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 SecretKeySelector: + """ + SecretKeySelector selects a key of a Secret. + + Attributes + ---------- + key : str, default is Undefined, required + The key of the secret to select from. Must be a valid secret key. + name : str, default is Undefined, optional + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + optional : bool, default is Undefined, optional + Specify whether the Secret or its key must be defined + """ + + + key: str + + name?: str + + optional?: bool + + diff --git a/library/k8s/api/core/v1/secret_list.k b/library/k8s/api/core/v1/secret_list.k new file mode 100644 index 0000000..335c47b --- /dev/null +++ b/library/k8s/api/core/v1/secret_list.k @@ -0,0 +1,34 @@ +""" +This is the secret_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema SecretList: + """ + SecretList is a list of Secret. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [Secret], default is Undefined, required + Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret + kind : str, default is "SecretList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [Secret] + + kind: "SecretList" = "SecretList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/secret_projection.k b/library/k8s/api/core/v1/secret_projection.k new file mode 100644 index 0000000..c0c7589 --- /dev/null +++ b/library/k8s/api/core/v1/secret_projection.k @@ -0,0 +1,31 @@ +""" +This is the secret_projection module in k8s.api.core.v1 package. +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 SecretProjection: + """ + Adapts a secret into a projected volume. + + The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. + + Attributes + ---------- + items : [KeyToPath], default is Undefined, optional + items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + name : str, default is Undefined, optional + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + optional : bool, default is Undefined, optional + optional field specify whether the Secret or its key must be defined + """ + + + items?: [KeyToPath] + + name?: str + + optional?: bool + + diff --git a/library/k8s/api/core/v1/secret_reference.k b/library/k8s/api/core/v1/secret_reference.k new file mode 100644 index 0000000..6c809d2 --- /dev/null +++ b/library/k8s/api/core/v1/secret_reference.k @@ -0,0 +1,25 @@ +""" +This is the secret_reference module in k8s.api.core.v1 package. +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 SecretReference: + """ + SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace + + Attributes + ---------- + name : str, default is Undefined, optional + name is unique within a namespace to reference a secret resource. + namespace : str, default is Undefined, optional + namespace defines the space within which the secret name must be unique. + """ + + + name?: str + + namespace?: str + + diff --git a/library/k8s/api/core/v1/secret_volume_source.k b/library/k8s/api/core/v1/secret_volume_source.k new file mode 100644 index 0000000..fccd11a --- /dev/null +++ b/library/k8s/api/core/v1/secret_volume_source.k @@ -0,0 +1,35 @@ +""" +This is the secret_volume_source module in k8s.api.core.v1 package. +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 SecretVolumeSource: + """ + Adapts a Secret into a volume. + + The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. + + Attributes + ---------- + defaultMode : int, default is Undefined, optional + defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + items : [KeyToPath], default is Undefined, optional + items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + optional : bool, default is Undefined, optional + optional field specify whether the Secret or its keys must be defined + secretName : str, default is Undefined, optional + secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + """ + + + defaultMode?: int + + items?: [KeyToPath] + + optional?: bool + + secretName?: str + + diff --git a/library/k8s/api/core/v1/security_context.k b/library/k8s/api/core/v1/security_context.k new file mode 100644 index 0000000..5901428 --- /dev/null +++ b/library/k8s/api/core/v1/security_context.k @@ -0,0 +1,61 @@ +""" +This is the security_context module in k8s.api.core.v1 package. +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 SecurityContext: + """ + SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. + + Attributes + ---------- + allowPrivilegeEscalation : bool, default is Undefined, optional + AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. + capabilities : Capabilities, default is Undefined, optional + The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. + privileged : bool, default is Undefined, optional + Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. + procMount : str, default is Undefined, optional + procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. + readOnlyRootFilesystem : bool, default is Undefined, optional + Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. + runAsGroup : int, default is Undefined, optional + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. + runAsNonRoot : bool, default is Undefined, optional + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + runAsUser : int, default is Undefined, optional + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. + seLinuxOptions : SELinuxOptions, default is Undefined, optional + The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. + seccompProfile : SeccompProfile, default is Undefined, optional + The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows. + windowsOptions : WindowsSecurityContextOptions, default is Undefined, optional + The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. + """ + + + allowPrivilegeEscalation?: bool + + capabilities?: Capabilities + + privileged?: bool + + procMount?: str + + readOnlyRootFilesystem?: bool + + runAsGroup?: int + + runAsNonRoot?: bool + + runAsUser?: int + + seLinuxOptions?: SELinuxOptions + + seccompProfile?: SeccompProfile + + windowsOptions?: WindowsSecurityContextOptions + + diff --git a/library/k8s/api/core/v1/service.k b/library/k8s/api/core/v1/service.k new file mode 100644 index 0000000..1f259a8 --- /dev/null +++ b/library/k8s/api/core/v1/service.k @@ -0,0 +1,34 @@ +""" +This is the service module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Service: + """ + Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "Service", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : ServiceSpec, default is Undefined, optional + Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "v1" = "v1" + + kind: "Service" = "Service" + + metadata?: v1.ObjectMeta + + spec?: ServiceSpec + + diff --git a/library/k8s/api/core/v1/service_account.k b/library/k8s/api/core/v1/service_account.k new file mode 100644 index 0000000..3ffd21b --- /dev/null +++ b/library/k8s/api/core/v1/service_account.k @@ -0,0 +1,42 @@ +""" +This is the service_account module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ServiceAccount: + """ + ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + automountServiceAccountToken : bool, default is Undefined, optional + AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + imagePullSecrets : [LocalObjectReference], default is Undefined, optional + ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + kind : str, default is "ServiceAccount", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + secrets : [ObjectReference], default is Undefined, optional + Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret + """ + + + apiVersion: "v1" = "v1" + + automountServiceAccountToken?: bool + + imagePullSecrets?: [LocalObjectReference] + + kind: "ServiceAccount" = "ServiceAccount" + + metadata?: v1.ObjectMeta + + secrets?: [ObjectReference] + + diff --git a/library/k8s/api/core/v1/service_account_list.k b/library/k8s/api/core/v1/service_account_list.k new file mode 100644 index 0000000..26a9319 --- /dev/null +++ b/library/k8s/api/core/v1/service_account_list.k @@ -0,0 +1,34 @@ +""" +This is the service_account_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ServiceAccountList: + """ + ServiceAccountList is a list of ServiceAccount objects + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ServiceAccount], default is Undefined, required + List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + kind : str, default is "ServiceAccountList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [ServiceAccount] + + kind: "ServiceAccountList" = "ServiceAccountList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/service_account_token_projection.k b/library/k8s/api/core/v1/service_account_token_projection.k new file mode 100644 index 0000000..b35eb7b --- /dev/null +++ b/library/k8s/api/core/v1/service_account_token_projection.k @@ -0,0 +1,29 @@ +""" +This is the service_account_token_projection module in k8s.api.core.v1 package. +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 ServiceAccountTokenProjection: + """ + ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise). + + Attributes + ---------- + audience : str, default is Undefined, optional + audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + expirationSeconds : int, default is Undefined, optional + expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + path : str, default is Undefined, required + path is the path relative to the mount point of the file to project the token into. + """ + + + audience?: str + + expirationSeconds?: int + + path: str + + diff --git a/library/k8s/api/core/v1/service_list.k b/library/k8s/api/core/v1/service_list.k new file mode 100644 index 0000000..0c1e31b --- /dev/null +++ b/library/k8s/api/core/v1/service_list.k @@ -0,0 +1,34 @@ +""" +This is the service_list module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ServiceList: + """ + ServiceList holds a list of services. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [Service], default is Undefined, required + List of services + kind : str, default is "ServiceList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + items: [Service] + + kind: "ServiceList" = "ServiceList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/core/v1/service_port.k b/library/k8s/api/core/v1/service_port.k new file mode 100644 index 0000000..7c7ba6f --- /dev/null +++ b/library/k8s/api/core/v1/service_port.k @@ -0,0 +1,41 @@ +""" +This is the service_port module in k8s.api.core.v1 package. +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 ServicePort: + """ + ServicePort contains information on service's port. + + Attributes + ---------- + appProtocol : str, default is Undefined, optional + The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. + name : str, default is Undefined, optional + The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. + nodePort : int, default is Undefined, optional + The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + port : int, default is Undefined, required + The port that will be exposed by this service. + $protocol : str, default is Undefined, optional + The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. + targetPort : int | str, default is Undefined, optional + Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service + """ + + + appProtocol?: str + + name?: str + + nodePort?: int + + port: int + + $protocol?: str + + targetPort?: int | str + + diff --git a/library/k8s/api/core/v1/service_spec.k b/library/k8s/api/core/v1/service_spec.k new file mode 100644 index 0000000..5ef49d8 --- /dev/null +++ b/library/k8s/api/core/v1/service_spec.k @@ -0,0 +1,97 @@ +""" +This is the service_spec module in k8s.api.core.v1 package. +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 ServiceSpec: + """ + ServiceSpec describes the attributes that a user creates on a service. + + Attributes + ---------- + allocateLoadBalancerNodePorts : bool, default is Undefined, optional + allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is "true". It may be set to "false" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. + clusterIP : str, default is Undefined, optional + clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + clusterIPs : [str], default is Undefined, optional + ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. + + This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + externalIPs : [str], default is Undefined, optional + externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. + externalName : str, default is Undefined, optional + externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName". + externalTrafficPolicy : str, default is Undefined, optional + externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get "Cluster" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. + healthCheckNodePort : int, default is Undefined, optional + healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. + internalTrafficPolicy : str, default is Undefined, optional + InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to "Local", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). + ipFamilies : [str], default is Undefined, optional + IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are "IPv4" and "IPv6". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to "headless" services. This field will be wiped when updating a Service to type ExternalName. + + This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. + ipFamilyPolicy : str, default is Undefined, optional + IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be "SingleStack" (a single IP family), "PreferDualStack" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or "RequireDualStack" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName. + loadBalancerClass : str, default is Undefined, optional + loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. + loadBalancerIP : str, default is Undefined, optional + Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations, and it cannot support dual-stack. As of Kubernetes v1.24, users are encouraged to use implementation-specific annotations when available. This field may be removed in a future API version. + loadBalancerSourceRanges : [str], default is Undefined, optional + If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ + ports : [ServicePort], default is Undefined, optional + The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + publishNotReadyAddresses : bool, default is Undefined, optional + publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered "ready" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior. + selector : {str:str}, default is Undefined, optional + Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ + sessionAffinity : str, default is Undefined, optional + Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + sessionAffinityConfig : SessionAffinityConfig, default is Undefined, optional + sessionAffinityConfig contains the configurations of session affinity. + $type : str, default is Undefined, optional + type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. "ExternalName" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types + """ + + + allocateLoadBalancerNodePorts?: bool + + clusterIP?: str + + clusterIPs?: [str] + + externalIPs?: [str] + + externalName?: str + + externalTrafficPolicy?: str + + healthCheckNodePort?: int + + internalTrafficPolicy?: str + + ipFamilies?: [str] + + ipFamilyPolicy?: str + + loadBalancerClass?: str + + loadBalancerIP?: str + + loadBalancerSourceRanges?: [str] + + ports?: [ServicePort] + + publishNotReadyAddresses?: bool + + selector?: {str:str} + + sessionAffinity?: str + + sessionAffinityConfig?: SessionAffinityConfig + + $type?: str + + diff --git a/library/k8s/api/core/v1/service_status.k b/library/k8s/api/core/v1/service_status.k new file mode 100644 index 0000000..029dda8 --- /dev/null +++ b/library/k8s/api/core/v1/service_status.k @@ -0,0 +1,26 @@ +""" +This is the service_status module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ServiceStatus: + """ + ServiceStatus represents the current status of a service. + + Attributes + ---------- + conditions : [v1.Condition], default is Undefined, optional + Current service state + loadBalancer : LoadBalancerStatus, default is Undefined, optional + LoadBalancer contains the current status of the load-balancer, if one is present. + """ + + + conditions?: [v1.Condition] + + loadBalancer?: LoadBalancerStatus + + diff --git a/library/k8s/api/core/v1/session_affinity_config.k b/library/k8s/api/core/v1/session_affinity_config.k new file mode 100644 index 0000000..fd12d59 --- /dev/null +++ b/library/k8s/api/core/v1/session_affinity_config.k @@ -0,0 +1,21 @@ +""" +This is the session_affinity_config module in k8s.api.core.v1 package. +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 SessionAffinityConfig: + """ + SessionAffinityConfig represents the configurations of session affinity. + + Attributes + ---------- + clientIP : ClientIPConfig, default is Undefined, optional + clientIP contains the configurations of Client IP based session affinity. + """ + + + clientIP?: ClientIPConfig + + diff --git a/library/k8s/api/core/v1/storage_os_persistent_volume_source.k b/library/k8s/api/core/v1/storage_os_persistent_volume_source.k new file mode 100644 index 0000000..5aaa44b --- /dev/null +++ b/library/k8s/api/core/v1/storage_os_persistent_volume_source.k @@ -0,0 +1,37 @@ +""" +This is the storage_os_persistent_volume_source module in k8s.api.core.v1 package. +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 StorageOSPersistentVolumeSource: + """ + Represents a StorageOS persistent volume resource. + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + readOnly : bool, default is Undefined, optional + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + secretRef : ObjectReference, default is Undefined, optional + secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + volumeName : str, default is Undefined, optional + volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + volumeNamespace : str, default is Undefined, optional + volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + """ + + + fsType?: str + + readOnly?: bool + + secretRef?: ObjectReference + + volumeName?: str + + volumeNamespace?: str + + diff --git a/library/k8s/api/core/v1/storage_os_volume_source.k b/library/k8s/api/core/v1/storage_os_volume_source.k new file mode 100644 index 0000000..897be31 --- /dev/null +++ b/library/k8s/api/core/v1/storage_os_volume_source.k @@ -0,0 +1,37 @@ +""" +This is the storage_os_volume_source module in k8s.api.core.v1 package. +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 StorageOSVolumeSource: + """ + Represents a StorageOS persistent volume resource. + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + readOnly : bool, default is Undefined, optional + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + secretRef : LocalObjectReference, default is Undefined, optional + secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + volumeName : str, default is Undefined, optional + volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + volumeNamespace : str, default is Undefined, optional + volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + """ + + + fsType?: str + + readOnly?: bool + + secretRef?: LocalObjectReference + + volumeName?: str + + volumeNamespace?: str + + diff --git a/library/k8s/api/core/v1/sysctl.k b/library/k8s/api/core/v1/sysctl.k new file mode 100644 index 0000000..355af4c --- /dev/null +++ b/library/k8s/api/core/v1/sysctl.k @@ -0,0 +1,25 @@ +""" +This is the sysctl module in k8s.api.core.v1 package. +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 Sysctl: + """ + Sysctl defines a kernel parameter to be set + + Attributes + ---------- + name : str, default is Undefined, required + Name of a property to set + value : str, default is Undefined, required + Value of a property to set + """ + + + name: str + + value: str + + diff --git a/library/k8s/api/core/v1/taint.k b/library/k8s/api/core/v1/taint.k new file mode 100644 index 0000000..91ecf36 --- /dev/null +++ b/library/k8s/api/core/v1/taint.k @@ -0,0 +1,33 @@ +""" +This is the taint module in k8s.api.core.v1 package. +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 Taint: + """ + The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint. + + Attributes + ---------- + effect : str, default is Undefined, required + Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + key : str, default is Undefined, required + Required. The taint key to be applied to a node. + timeAdded : str, default is Undefined, optional + TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. + value : str, default is Undefined, optional + The taint value corresponding to the taint key. + """ + + + effect: str + + key: str + + timeAdded?: str + + value?: str + + diff --git a/library/k8s/api/core/v1/tcp_socket_action.k b/library/k8s/api/core/v1/tcp_socket_action.k new file mode 100644 index 0000000..e01ddcf --- /dev/null +++ b/library/k8s/api/core/v1/tcp_socket_action.k @@ -0,0 +1,25 @@ +""" +This is the tcp_socket_action module in k8s.api.core.v1 package. +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 TCPSocketAction: + """ + TCPSocketAction describes an action based on opening a socket + + Attributes + ---------- + host : str, default is Undefined, optional + Optional: Host name to connect to, defaults to the pod IP. + port : int | str, default is Undefined, required + Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + """ + + + host?: str + + port: int | str + + diff --git a/library/k8s/api/core/v1/toleration.k b/library/k8s/api/core/v1/toleration.k new file mode 100644 index 0000000..7e63eea --- /dev/null +++ b/library/k8s/api/core/v1/toleration.k @@ -0,0 +1,37 @@ +""" +This is the toleration module in k8s.api.core.v1 package. +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 Toleration: + """ + The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . + + Attributes + ---------- + effect : str, default is Undefined, optional + Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + key : str, default is Undefined, optional + Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + operator : str, default is Undefined, optional + Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + tolerationSeconds : int, default is Undefined, optional + TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + value : str, default is Undefined, optional + Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + """ + + + effect?: str + + key?: str + + operator?: str + + tolerationSeconds?: int + + value?: str + + diff --git a/library/k8s/api/core/v1/topology_selector_label_requirement.k b/library/k8s/api/core/v1/topology_selector_label_requirement.k new file mode 100644 index 0000000..bda9ae8 --- /dev/null +++ b/library/k8s/api/core/v1/topology_selector_label_requirement.k @@ -0,0 +1,25 @@ +""" +This is the topology_selector_label_requirement module in k8s.api.core.v1 package. +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 TopologySelectorLabelRequirement: + """ + A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. + + Attributes + ---------- + key : str, default is Undefined, required + The label key that the selector applies to. + values : [str], default is Undefined, required + An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + """ + + + key: str + + values: [str] + + diff --git a/library/k8s/api/core/v1/topology_selector_term.k b/library/k8s/api/core/v1/topology_selector_term.k new file mode 100644 index 0000000..fc0366c --- /dev/null +++ b/library/k8s/api/core/v1/topology_selector_term.k @@ -0,0 +1,21 @@ +""" +This is the topology_selector_term module in k8s.api.core.v1 package. +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 TopologySelectorTerm: + """ + A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future. + + Attributes + ---------- + matchLabelExpressions : [TopologySelectorLabelRequirement], default is Undefined, optional + A list of topology selector requirements by labels. + """ + + + matchLabelExpressions?: [TopologySelectorLabelRequirement] + + diff --git a/library/k8s/api/core/v1/topology_spread_constraint.k b/library/k8s/api/core/v1/topology_spread_constraint.k new file mode 100644 index 0000000..12fb14e --- /dev/null +++ b/library/k8s/api/core/v1/topology_spread_constraint.k @@ -0,0 +1,63 @@ +""" +This is the topology_spread_constraint module in k8s.api.core.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema TopologySpreadConstraint: + """ + TopologySpreadConstraint specifies how to spread matching pods among the given topology. + + Attributes + ---------- + labelSelector : v1.LabelSelector, default is Undefined, optional + LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + matchLabelKeys : [str], default is Undefined, optional + MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. + + This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). + maxSkew : int, default is Undefined, required + MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. + minDomains : int, default is Undefined, optional + MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. + + For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. + + This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). + nodeAffinityPolicy : str, default is Undefined, optional + NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. + + If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + nodeTaintsPolicy : str, default is Undefined, optional + NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. + + If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + topologyKey : str, default is Undefined, required + TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field. + whenUnsatisfiable : str, default is Undefined, required + WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, + but giving higher precedence to topologies that would help reduce the + skew. + A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + """ + + + labelSelector?: v1.LabelSelector + + matchLabelKeys?: [str] + + maxSkew: int + + minDomains?: int + + nodeAffinityPolicy?: str + + nodeTaintsPolicy?: str + + topologyKey: str + + whenUnsatisfiable: str + + diff --git a/library/k8s/api/core/v1/typed_local_object_reference.k b/library/k8s/api/core/v1/typed_local_object_reference.k new file mode 100644 index 0000000..5e0c313 --- /dev/null +++ b/library/k8s/api/core/v1/typed_local_object_reference.k @@ -0,0 +1,29 @@ +""" +This is the typed_local_object_reference module in k8s.api.core.v1 package. +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 TypedLocalObjectReference: + """ + TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. + + Attributes + ---------- + apiGroup : str, default is Undefined, optional + APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + kind : str, default is Undefined, required + Kind is the type of resource being referenced + name : str, default is Undefined, required + Name is the name of resource being referenced + """ + + + apiGroup?: str + + kind: str + + name: str + + diff --git a/library/k8s/api/core/v1/typed_object_reference.k b/library/k8s/api/core/v1/typed_object_reference.k new file mode 100644 index 0000000..4d3e7c0 --- /dev/null +++ b/library/k8s/api/core/v1/typed_object_reference.k @@ -0,0 +1,33 @@ +""" +This is the typed_object_reference module in k8s.api.core.v1 package. +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 TypedObjectReference: + """ + k8s api core v1 typed object reference + + Attributes + ---------- + apiGroup : str, default is Undefined, optional + APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + kind : str, default is Undefined, required + Kind is the type of resource being referenced + name : str, default is Undefined, required + Name is the name of resource being referenced + namespace : str, default is Undefined, optional + Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. + """ + + + apiGroup?: str + + kind: str + + name: str + + namespace?: str + + diff --git a/library/k8s/api/core/v1/volume.k b/library/k8s/api/core/v1/volume.k new file mode 100644 index 0000000..c58f4d2 --- /dev/null +++ b/library/k8s/api/core/v1/volume.k @@ -0,0 +1,150 @@ +""" +This is the volume module in k8s.api.core.v1 package. +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 Volume: + """ + Volume represents a named volume in a pod that may be accessed by any container in the pod. + + Attributes + ---------- + awsElasticBlockStore : AWSElasticBlockStoreVolumeSource, default is Undefined, optional + awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + azureDisk : AzureDiskVolumeSource, default is Undefined, optional + azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + azureFile : AzureFileVolumeSource, default is Undefined, optional + azureFile represents an Azure File Service mount on the host and bind mount to the pod. + cephfs : CephFSVolumeSource, default is Undefined, optional + cephFS represents a Ceph FS mount on the host that shares a pod's lifetime + cinder : CinderVolumeSource, default is Undefined, optional + cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + configMap : ConfigMapVolumeSource, default is Undefined, optional + configMap represents a configMap that should populate this volume + csi : CSIVolumeSource, default is Undefined, optional + csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature). + downwardAPI : DownwardAPIVolumeSource, default is Undefined, optional + downwardAPI represents downward API about the pod that should populate this volume + emptyDir : EmptyDirVolumeSource, default is Undefined, optional + emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + ephemeral : EphemeralVolumeSource, default is Undefined, optional + ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed. + + Use this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity + tracking are needed, + c) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through + a PersistentVolumeClaim (see EphemeralVolumeSource for more + information on the connection between this volume type + and PersistentVolumeClaim). + + Use PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod. + + Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information. + + A pod can use both types of ephemeral volumes and persistent volumes at the same time. + fc : FCVolumeSource, default is Undefined, optional + fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + flexVolume : FlexVolumeSource, default is Undefined, optional + flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + flocker : FlockerVolumeSource, default is Undefined, optional + flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + gcePersistentDisk : GCEPersistentDiskVolumeSource, default is Undefined, optional + gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + gitRepo : GitRepoVolumeSource, default is Undefined, optional + gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + glusterfs : GlusterfsVolumeSource, default is Undefined, optional + glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + hostPath : HostPathVolumeSource, default is Undefined, optional + hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + iscsi : ISCSIVolumeSource, default is Undefined, optional + iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + name : str, default is Undefined, required + name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + nfs : NFSVolumeSource, default is Undefined, optional + nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + persistentVolumeClaim : PersistentVolumeClaimVolumeSource, default is Undefined, optional + persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + photonPersistentDisk : PhotonPersistentDiskVolumeSource, default is Undefined, optional + photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + portworxVolume : PortworxVolumeSource, default is Undefined, optional + portworxVolume represents a portworx volume attached and mounted on kubelets host machine + projected : ProjectedVolumeSource, default is Undefined, optional + projected items for all in one resources secrets, configmaps, and downward API + quobyte : QuobyteVolumeSource, default is Undefined, optional + quobyte represents a Quobyte mount on the host that shares a pod's lifetime + rbd : RBDVolumeSource, default is Undefined, optional + rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + scaleIO : ScaleIOVolumeSource, default is Undefined, optional + scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + secret : SecretVolumeSource, default is Undefined, optional + secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + storageos : StorageOSVolumeSource, default is Undefined, optional + storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + vsphereVolume : VsphereVirtualDiskVolumeSource, default is Undefined, optional + vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + """ + + + awsElasticBlockStore?: AWSElasticBlockStoreVolumeSource + + azureDisk?: AzureDiskVolumeSource + + azureFile?: AzureFileVolumeSource + + cephfs?: CephFSVolumeSource + + cinder?: CinderVolumeSource + + configMap?: ConfigMapVolumeSource + + csi?: CSIVolumeSource + + downwardAPI?: DownwardAPIVolumeSource + + emptyDir?: EmptyDirVolumeSource + + ephemeral?: EphemeralVolumeSource + + fc?: FCVolumeSource + + flexVolume?: FlexVolumeSource + + flocker?: FlockerVolumeSource + + gcePersistentDisk?: GCEPersistentDiskVolumeSource + + gitRepo?: GitRepoVolumeSource + + glusterfs?: GlusterfsVolumeSource + + hostPath?: HostPathVolumeSource + + iscsi?: ISCSIVolumeSource + + name: str + + nfs?: NFSVolumeSource + + persistentVolumeClaim?: PersistentVolumeClaimVolumeSource + + photonPersistentDisk?: PhotonPersistentDiskVolumeSource + + portworxVolume?: PortworxVolumeSource + + projected?: ProjectedVolumeSource + + quobyte?: QuobyteVolumeSource + + rbd?: RBDVolumeSource + + scaleIO?: ScaleIOVolumeSource + + secret?: SecretVolumeSource + + storageos?: StorageOSVolumeSource + + vsphereVolume?: VsphereVirtualDiskVolumeSource + + diff --git a/library/k8s/api/core/v1/volume_device.k b/library/k8s/api/core/v1/volume_device.k new file mode 100644 index 0000000..df06836 --- /dev/null +++ b/library/k8s/api/core/v1/volume_device.k @@ -0,0 +1,25 @@ +""" +This is the volume_device module in k8s.api.core.v1 package. +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 VolumeDevice: + """ + volumeDevice describes a mapping of a raw block device within a container. + + Attributes + ---------- + devicePath : str, default is Undefined, required + devicePath is the path inside of the container that the device will be mapped to. + name : str, default is Undefined, required + name must match the name of a persistentVolumeClaim in the pod + """ + + + devicePath: str + + name: str + + diff --git a/library/k8s/api/core/v1/volume_mount.k b/library/k8s/api/core/v1/volume_mount.k new file mode 100644 index 0000000..067590f --- /dev/null +++ b/library/k8s/api/core/v1/volume_mount.k @@ -0,0 +1,41 @@ +""" +This is the volume_mount module in k8s.api.core.v1 package. +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 VolumeMount: + """ + VolumeMount describes a mounting of a Volume within a container. + + Attributes + ---------- + mountPath : str, default is Undefined, required + Path within the container at which the volume should be mounted. Must not contain ':'. + mountPropagation : str, default is Undefined, optional + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + name : str, default is Undefined, required + This must match the Name of a Volume. + readOnly : bool, default is Undefined, optional + Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + subPath : str, default is Undefined, optional + Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + subPathExpr : str, default is Undefined, optional + Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + """ + + + mountPath: str + + mountPropagation?: str + + name: str + + readOnly?: bool + + subPath?: str + + subPathExpr?: str + + diff --git a/library/k8s/api/core/v1/volume_node_affinity.k b/library/k8s/api/core/v1/volume_node_affinity.k new file mode 100644 index 0000000..e2eb169 --- /dev/null +++ b/library/k8s/api/core/v1/volume_node_affinity.k @@ -0,0 +1,21 @@ +""" +This is the volume_node_affinity module in k8s.api.core.v1 package. +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 VolumeNodeAffinity: + """ + VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. + + Attributes + ---------- + required : NodeSelector, default is Undefined, optional + required specifies hard node constraints that must be met. + """ + + + required?: NodeSelector + + diff --git a/library/k8s/api/core/v1/volume_projection.k b/library/k8s/api/core/v1/volume_projection.k new file mode 100644 index 0000000..952eca1 --- /dev/null +++ b/library/k8s/api/core/v1/volume_projection.k @@ -0,0 +1,33 @@ +""" +This is the volume_projection module in k8s.api.core.v1 package. +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 VolumeProjection: + """ + Projection that may be projected along with other supported volume types + + Attributes + ---------- + configMap : ConfigMapProjection, default is Undefined, optional + configMap information about the configMap data to project + downwardAPI : DownwardAPIProjection, default is Undefined, optional + downwardAPI information about the downwardAPI data to project + secret : SecretProjection, default is Undefined, optional + secret information about the secret data to project + serviceAccountToken : ServiceAccountTokenProjection, default is Undefined, optional + serviceAccountToken is information about the serviceAccountToken data to project + """ + + + configMap?: ConfigMapProjection + + downwardAPI?: DownwardAPIProjection + + secret?: SecretProjection + + serviceAccountToken?: ServiceAccountTokenProjection + + diff --git a/library/k8s/api/core/v1/vsphere_virtual_disk_volume_source.k b/library/k8s/api/core/v1/vsphere_virtual_disk_volume_source.k new file mode 100644 index 0000000..470f688 --- /dev/null +++ b/library/k8s/api/core/v1/vsphere_virtual_disk_volume_source.k @@ -0,0 +1,33 @@ +""" +This is the vsphere_virtual_disk_volume_source module in k8s.api.core.v1 package. +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 VsphereVirtualDiskVolumeSource: + """ + Represents a vSphere volume resource. + + Attributes + ---------- + fsType : str, default is Undefined, optional + fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + storagePolicyID : str, default is Undefined, optional + storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + storagePolicyName : str, default is Undefined, optional + storagePolicyName is the storage Policy Based Management (SPBM) profile name. + volumePath : str, default is Undefined, required + volumePath is the path that identifies vSphere volume vmdk + """ + + + fsType?: str + + storagePolicyID?: str + + storagePolicyName?: str + + volumePath: str + + diff --git a/library/k8s/api/core/v1/weighted_pod_affinity_term.k b/library/k8s/api/core/v1/weighted_pod_affinity_term.k new file mode 100644 index 0000000..148903e --- /dev/null +++ b/library/k8s/api/core/v1/weighted_pod_affinity_term.k @@ -0,0 +1,25 @@ +""" +This is the weighted_pod_affinity_term module in k8s.api.core.v1 package. +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 WeightedPodAffinityTerm: + """ + The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) + + Attributes + ---------- + podAffinityTerm : PodAffinityTerm, default is Undefined, required + Required. A pod affinity term, associated with the corresponding weight. + weight : int, default is Undefined, required + weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + """ + + + podAffinityTerm: PodAffinityTerm + + weight: int + + diff --git a/library/k8s/api/core/v1/windows_security_context_options.k b/library/k8s/api/core/v1/windows_security_context_options.k new file mode 100644 index 0000000..3b22eae --- /dev/null +++ b/library/k8s/api/core/v1/windows_security_context_options.k @@ -0,0 +1,33 @@ +""" +This is the windows_security_context_options module in k8s.api.core.v1 package. +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 WindowsSecurityContextOptions: + """ + WindowsSecurityContextOptions contain Windows-specific options and credentials. + + Attributes + ---------- + gmsaCredentialSpec : str, default is Undefined, optional + GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + gmsaCredentialSpecName : str, default is Undefined, optional + GMSACredentialSpecName is the name of the GMSA credential spec to use. + hostProcess : bool, default is Undefined, optional + HostProcess determines if a container should be run as a 'Host Process' container. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. + runAsUserName : str, default is Undefined, optional + The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + """ + + + gmsaCredentialSpec?: str + + gmsaCredentialSpecName?: str + + hostProcess?: bool + + runAsUserName?: str + + diff --git a/library/k8s/api/discovery/v1/endpoint.k b/library/k8s/api/discovery/v1/endpoint.k new file mode 100644 index 0000000..77dc0d6 --- /dev/null +++ b/library/k8s/api/discovery/v1/endpoint.k @@ -0,0 +1,50 @@ +""" +This is the endpoint module in k8s.api.discovery.v1 package. +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. +""" +import api.core.v1 + + +schema Endpoint: + """ + Endpoint represents a single logical "backend" implementing a service. + + Attributes + ---------- + addresses : [str], default is Undefined, required + addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267 + conditions : EndpointConditions, default is Undefined, optional + conditions contains information about the current status of the endpoint. + deprecatedTopology : {str:str}, default is Undefined, optional + deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. + hints : EndpointHints, default is Undefined, optional + hints contains information associated with how an endpoint should be consumed. + hostname : str, default is Undefined, optional + hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. + nodeName : str, default is Undefined, optional + nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. + targetRef : v1.ObjectReference, default is Undefined, optional + targetRef is a reference to a Kubernetes object that represents this endpoint. + zone : str, default is Undefined, optional + zone is the name of the Zone this endpoint exists in. + """ + + + addresses: [str] + + conditions?: EndpointConditions + + deprecatedTopology?: {str:str} + + hints?: EndpointHints + + hostname?: str + + nodeName?: str + + targetRef?: v1.ObjectReference + + zone?: str + + diff --git a/library/k8s/api/discovery/v1/endpoint_conditions.k b/library/k8s/api/discovery/v1/endpoint_conditions.k new file mode 100644 index 0000000..55ce286 --- /dev/null +++ b/library/k8s/api/discovery/v1/endpoint_conditions.k @@ -0,0 +1,29 @@ +""" +This is the endpoint_conditions module in k8s.api.discovery.v1 package. +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 EndpointConditions: + """ + EndpointConditions represents the current condition of an endpoint. + + Attributes + ---------- + ready : bool, default is Undefined, optional + ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag. + serving : bool, default is Undefined, optional + serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. + terminating : bool, default is Undefined, optional + terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. + """ + + + ready?: bool + + serving?: bool + + terminating?: bool + + diff --git a/library/k8s/api/discovery/v1/endpoint_hints.k b/library/k8s/api/discovery/v1/endpoint_hints.k new file mode 100644 index 0000000..9827654 --- /dev/null +++ b/library/k8s/api/discovery/v1/endpoint_hints.k @@ -0,0 +1,21 @@ +""" +This is the endpoint_hints module in k8s.api.discovery.v1 package. +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 EndpointHints: + """ + EndpointHints provides hints describing how an endpoint should be consumed. + + Attributes + ---------- + forZones : [ForZone], default is Undefined, optional + forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. + """ + + + forZones?: [ForZone] + + diff --git a/library/k8s/api/discovery/v1/endpoint_port.k b/library/k8s/api/discovery/v1/endpoint_port.k new file mode 100644 index 0000000..7b14d95 --- /dev/null +++ b/library/k8s/api/discovery/v1/endpoint_port.k @@ -0,0 +1,40 @@ +""" +This is the endpoint_port module in k8s.api.discovery.v1 package. +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 EndpointPort: + """ + EndpointPort represents a Port used by an EndpointSlice + + Attributes + ---------- + appProtocol : str, default is Undefined, optional + The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: + + * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). + + * Kubernetes-defined prefixed names: + * 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 + + * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. + name : str, default is Undefined, optional + name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. + port : int, default is Undefined, optional + port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. + $protocol : str, default is Undefined, optional + protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + """ + + + appProtocol?: str + + name?: str + + port?: int + + $protocol?: str + + diff --git a/library/k8s/api/discovery/v1/endpoint_slice.k b/library/k8s/api/discovery/v1/endpoint_slice.k new file mode 100644 index 0000000..77d8a1e --- /dev/null +++ b/library/k8s/api/discovery/v1/endpoint_slice.k @@ -0,0 +1,42 @@ +""" +This is the endpoint_slice module in k8s.api.discovery.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema EndpointSlice: + """ + EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. + + Attributes + ---------- + addressType : str, default is Undefined, required + addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + apiVersion : str, default is "discovery.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + endpoints : [Endpoint], default is Undefined, required + endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + kind : str, default is "EndpointSlice", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. + ports : [EndpointPort], default is Undefined, optional + ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + """ + + + addressType: str + + apiVersion: "discovery.k8s.io/v1" = "discovery.k8s.io/v1" + + endpoints: [Endpoint] + + kind: "EndpointSlice" = "EndpointSlice" + + metadata?: v1.ObjectMeta + + ports?: [EndpointPort] + + diff --git a/library/k8s/api/discovery/v1/endpoint_slice_list.k b/library/k8s/api/discovery/v1/endpoint_slice_list.k new file mode 100644 index 0000000..a33ad36 --- /dev/null +++ b/library/k8s/api/discovery/v1/endpoint_slice_list.k @@ -0,0 +1,34 @@ +""" +This is the endpoint_slice_list module in k8s.api.discovery.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema EndpointSliceList: + """ + EndpointSliceList represents a list of endpoint slices + + Attributes + ---------- + apiVersion : str, default is "discovery.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [EndpointSlice], default is Undefined, required + items is the list of endpoint slices + kind : str, default is "EndpointSliceList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. + """ + + + apiVersion: "discovery.k8s.io/v1" = "discovery.k8s.io/v1" + + items: [EndpointSlice] + + kind: "EndpointSliceList" = "EndpointSliceList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/discovery/v1/for_zone.k b/library/k8s/api/discovery/v1/for_zone.k new file mode 100644 index 0000000..bfeeda1 --- /dev/null +++ b/library/k8s/api/discovery/v1/for_zone.k @@ -0,0 +1,21 @@ +""" +This is the for_zone module in k8s.api.discovery.v1 package. +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 ForZone: + """ + ForZone provides information about which zones should consume this endpoint. + + Attributes + ---------- + name : str, default is Undefined, required + name represents the name of the zone. + """ + + + name: str + + diff --git a/library/k8s/api/events/v1/event.k b/library/k8s/api/events/v1/event.k new file mode 100644 index 0000000..0141a1f --- /dev/null +++ b/library/k8s/api/events/v1/event.k @@ -0,0 +1,87 @@ +""" +This is the event module in k8s.api.events.v1 package. +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. +""" +import api.core.v1 +import apimachinery.pkg.apis.meta.v1 as metaV1 + + +schema Event: + """ + Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. + + Attributes + ---------- + action : str, default is Undefined, optional + action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. + apiVersion : str, default is "events.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + deprecatedCount : int, default is Undefined, optional + deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. + deprecatedFirstTimestamp : str, default is Undefined, optional + deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + deprecatedLastTimestamp : str, default is Undefined, optional + deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. + eventTime : str, default is Undefined, required + eventTime is the time when this Event was first observed. It is required. + kind : str, default is "Event", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : metaV1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + note : str, default is Undefined, optional + note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + reason : str, default is Undefined, optional + reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. + regarding : v1.ObjectReference, default is Undefined, optional + regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + related : v1.ObjectReference, default is Undefined, optional + related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + reportingController : str, default is Undefined, optional + reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. + reportingInstance : str, default is Undefined, optional + reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. + series : EventSeries, default is Undefined, optional + series is data about the Event series this event represents or nil if it's a singleton Event. + $type : str, default is Undefined, optional + type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. + """ + + + action?: str + + apiVersion: "events.k8s.io/v1" = "events.k8s.io/v1" + + deprecatedCount?: int + + deprecatedFirstTimestamp?: str + + deprecatedLastTimestamp?: str + + deprecatedSource?: v1.EventSource + + eventTime: str + + kind: "Event" = "Event" + + metadata?: metaV1.ObjectMeta + + note?: str + + reason?: str + + regarding?: v1.ObjectReference + + related?: v1.ObjectReference + + reportingController?: str + + reportingInstance?: str + + series?: EventSeries + + $type?: str + + diff --git a/library/k8s/api/events/v1/event_list.k b/library/k8s/api/events/v1/event_list.k new file mode 100644 index 0000000..6d5e7da --- /dev/null +++ b/library/k8s/api/events/v1/event_list.k @@ -0,0 +1,34 @@ +""" +This is the event_list module in k8s.api.events.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema EventList: + """ + EventList is a list of Event objects. + + Attributes + ---------- + apiVersion : str, default is "events.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [Event], default is Undefined, required + items is a list of schema objects. + kind : str, default is "EventList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "events.k8s.io/v1" = "events.k8s.io/v1" + + items: [Event] + + kind: "EventList" = "EventList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/events/v1/event_series.k b/library/k8s/api/events/v1/event_series.k new file mode 100644 index 0000000..85db558 --- /dev/null +++ b/library/k8s/api/events/v1/event_series.k @@ -0,0 +1,25 @@ +""" +This is the event_series module in k8s.api.events.v1 package. +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 EventSeries: + """ + EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations. + + Attributes + ---------- + count : int, default is Undefined, required + count is the number of occurrences in this series up to the last heartbeat time. + lastObservedTime : str, default is Undefined, required + lastObservedTime is the time when last Event from the series was seen before last heartbeat. + """ + + + count: int + + lastObservedTime: str + + diff --git a/library/k8s/api/flowcontrol/v1beta2/flow_distinguisher_method.k b/library/k8s/api/flowcontrol/v1beta2/flow_distinguisher_method.k new file mode 100644 index 0000000..4060ab4 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/flow_distinguisher_method.k @@ -0,0 +1,21 @@ +""" +This is the flow_distinguisher_method module in k8s.api.flowcontrol.v1beta2 package. +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 FlowDistinguisherMethod: + """ + FlowDistinguisherMethod specifies the method of a flow distinguisher. + + Attributes + ---------- + $type : str, default is Undefined, required + `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. + """ + + + $type: str + + diff --git a/library/k8s/api/flowcontrol/v1beta2/flow_schema.k b/library/k8s/api/flowcontrol/v1beta2/flow_schema.k new file mode 100644 index 0000000..38841e2 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/flow_schema.k @@ -0,0 +1,34 @@ +""" +This is the flow_schema module in k8s.api.flowcontrol.v1beta2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema FlowSchema: + """ + FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + + Attributes + ---------- + apiVersion : str, default is "flowcontrol.apiserver.k8s.io/v1beta2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "FlowSchema", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : FlowSchemaSpec, default is Undefined, optional + `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "flowcontrol.apiserver.k8s.io/v1beta2" = "flowcontrol.apiserver.k8s.io/v1beta2" + + kind: "FlowSchema" = "FlowSchema" + + metadata?: v1.ObjectMeta + + spec?: FlowSchemaSpec + + diff --git a/library/k8s/api/flowcontrol/v1beta2/flow_schema_condition.k b/library/k8s/api/flowcontrol/v1beta2/flow_schema_condition.k new file mode 100644 index 0000000..67fa880 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/flow_schema_condition.k @@ -0,0 +1,37 @@ +""" +This is the flow_schema_condition module in k8s.api.flowcontrol.v1beta2 package. +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 FlowSchemaCondition: + """ + FlowSchemaCondition describes conditions for a FlowSchema. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + `lastTransitionTime` is the last time the condition transitioned from one status to another. + message : str, default is Undefined, optional + `message` is a human-readable message indicating details about last transition. + reason : str, default is Undefined, optional + `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + status : str, default is Undefined, optional + `status` is the status of the condition. Can be True, False, Unknown. Required. + $type : str, default is Undefined, optional + `type` is the type of the condition. Required. + """ + + + lastTransitionTime?: str + + message?: str + + reason?: str + + status?: str + + $type?: str + + diff --git a/library/k8s/api/flowcontrol/v1beta2/flow_schema_list.k b/library/k8s/api/flowcontrol/v1beta2/flow_schema_list.k new file mode 100644 index 0000000..41f1f45 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/flow_schema_list.k @@ -0,0 +1,34 @@ +""" +This is the flow_schema_list module in k8s.api.flowcontrol.v1beta2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema FlowSchemaList: + """ + FlowSchemaList is a list of FlowSchema objects. + + Attributes + ---------- + apiVersion : str, default is "flowcontrol.apiserver.k8s.io/v1beta2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [FlowSchema], default is Undefined, required + `items` is a list of FlowSchemas. + kind : str, default is "FlowSchemaList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "flowcontrol.apiserver.k8s.io/v1beta2" = "flowcontrol.apiserver.k8s.io/v1beta2" + + items: [FlowSchema] + + kind: "FlowSchemaList" = "FlowSchemaList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/flowcontrol/v1beta2/flow_schema_spec.k b/library/k8s/api/flowcontrol/v1beta2/flow_schema_spec.k new file mode 100644 index 0000000..cbd97f9 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/flow_schema_spec.k @@ -0,0 +1,33 @@ +""" +This is the flow_schema_spec module in k8s.api.flowcontrol.v1beta2 package. +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 FlowSchemaSpec: + """ + FlowSchemaSpec describes how the FlowSchema's specification looks like. + + Attributes + ---------- + distinguisherMethod : FlowDistinguisherMethod, default is Undefined, optional + `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. + matchingPrecedence : int, default is Undefined, optional + `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. + priorityLevelConfiguration : PriorityLevelConfigurationReference, default is Undefined, required + `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. + rules : [PolicyRulesWithSubjects], default is Undefined, optional + `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. + """ + + + distinguisherMethod?: FlowDistinguisherMethod + + matchingPrecedence?: int + + priorityLevelConfiguration: PriorityLevelConfigurationReference + + rules?: [PolicyRulesWithSubjects] + + diff --git a/library/k8s/api/flowcontrol/v1beta2/flow_schema_status.k b/library/k8s/api/flowcontrol/v1beta2/flow_schema_status.k new file mode 100644 index 0000000..c3c3549 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/flow_schema_status.k @@ -0,0 +1,21 @@ +""" +This is the flow_schema_status module in k8s.api.flowcontrol.v1beta2 package. +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 FlowSchemaStatus: + """ + FlowSchemaStatus represents the current state of a FlowSchema. + + Attributes + ---------- + conditions : [FlowSchemaCondition], default is Undefined, optional + `conditions` is a list of the current states of FlowSchema. + """ + + + conditions?: [FlowSchemaCondition] + + diff --git a/library/k8s/api/flowcontrol/v1beta2/group_subject.k b/library/k8s/api/flowcontrol/v1beta2/group_subject.k new file mode 100644 index 0000000..d04ad4b --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/group_subject.k @@ -0,0 +1,21 @@ +""" +This is the group_subject module in k8s.api.flowcontrol.v1beta2 package. +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 GroupSubject: + """ + GroupSubject holds detailed information for group-kind subject. + + Attributes + ---------- + name : str, default is Undefined, required + name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. + """ + + + name: str + + diff --git a/library/k8s/api/flowcontrol/v1beta2/limit_response.k b/library/k8s/api/flowcontrol/v1beta2/limit_response.k new file mode 100644 index 0000000..721b136 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/limit_response.k @@ -0,0 +1,25 @@ +""" +This is the limit_response module in k8s.api.flowcontrol.v1beta2 package. +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 LimitResponse: + """ + LimitResponse defines how to handle requests that can not be executed right now. + + Attributes + ---------- + queuing : QueuingConfiguration, default is Undefined, optional + `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. + $type : str, default is Undefined, required + `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. + """ + + + queuing?: QueuingConfiguration + + $type: str + + diff --git a/library/k8s/api/flowcontrol/v1beta2/limited_priority_level_configuration.k b/library/k8s/api/flowcontrol/v1beta2/limited_priority_level_configuration.k new file mode 100644 index 0000000..96e866e --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/limited_priority_level_configuration.k @@ -0,0 +1,45 @@ +""" +This is the limited_priority_level_configuration module in k8s.api.flowcontrol.v1beta2 package. +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 LimitedPriorityLevelConfiguration: + """ + LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: + - How are requests for this priority level limited? + - What should be done with requests that exceed the limit? + + Attributes + ---------- + assuredConcurrencyShares : int, default is Undefined, optional + `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: + + ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) + + bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. + borrowingLimitPercent : int, default is Undefined, optional + `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. + + BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) + + The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. + lendablePercent : int, default is Undefined, optional + `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. + + LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) + limitResponse : LimitResponse, default is Undefined, optional + `limitResponse` indicates what to do with requests that can not be executed right now + """ + + + assuredConcurrencyShares?: int + + borrowingLimitPercent?: int + + lendablePercent?: int + + limitResponse?: LimitResponse + + diff --git a/library/k8s/api/flowcontrol/v1beta2/non_resource_policy_rule.k b/library/k8s/api/flowcontrol/v1beta2/non_resource_policy_rule.k new file mode 100644 index 0000000..45eefff --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/non_resource_policy_rule.k @@ -0,0 +1,31 @@ +""" +This is the non_resource_policy_rule module in k8s.api.flowcontrol.v1beta2 package. +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 NonResourcePolicyRule: + """ + NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. + + Attributes + ---------- + nonResourceURLs : [str], default is Undefined, required + `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: + - "/healthz" is legal + - "/hea*" is illegal + - "/hea" is legal but matches nothing + - "/hea/*" also matches nothing + - "/healthz/*" matches all per-component health checks. + "*" matches all non-resource urls. if it is present, it must be the only entry. Required. + verbs : [str], default is Undefined, required + `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. + """ + + + nonResourceURLs: [str] + + verbs: [str] + + diff --git a/library/k8s/api/flowcontrol/v1beta2/policy_rules_with_subjects.k b/library/k8s/api/flowcontrol/v1beta2/policy_rules_with_subjects.k new file mode 100644 index 0000000..d5b3ebc --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/policy_rules_with_subjects.k @@ -0,0 +1,29 @@ +""" +This is the policy_rules_with_subjects module in k8s.api.flowcontrol.v1beta2 package. +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 PolicyRulesWithSubjects: + """ + PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request. + + Attributes + ---------- + nonResourceRules : [NonResourcePolicyRule], default is Undefined, optional + `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. + resourceRules : [ResourcePolicyRule], default is Undefined, optional + `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. + subjects : [Subject], default is Undefined, required + subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. + """ + + + nonResourceRules?: [NonResourcePolicyRule] + + resourceRules?: [ResourcePolicyRule] + + subjects: [Subject] + + diff --git a/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration.k b/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration.k new file mode 100644 index 0000000..adfdc55 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration.k @@ -0,0 +1,34 @@ +""" +This is the priority_level_configuration module in k8s.api.flowcontrol.v1beta2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PriorityLevelConfiguration: + """ + PriorityLevelConfiguration represents the configuration of a priority level. + + Attributes + ---------- + apiVersion : str, default is "flowcontrol.apiserver.k8s.io/v1beta2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "PriorityLevelConfiguration", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : PriorityLevelConfigurationSpec, default is Undefined, optional + `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "flowcontrol.apiserver.k8s.io/v1beta2" = "flowcontrol.apiserver.k8s.io/v1beta2" + + kind: "PriorityLevelConfiguration" = "PriorityLevelConfiguration" + + metadata?: v1.ObjectMeta + + spec?: PriorityLevelConfigurationSpec + + diff --git a/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_condition.k b/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_condition.k new file mode 100644 index 0000000..d6a5bd3 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_condition.k @@ -0,0 +1,37 @@ +""" +This is the priority_level_configuration_condition module in k8s.api.flowcontrol.v1beta2 package. +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 PriorityLevelConfigurationCondition: + """ + PriorityLevelConfigurationCondition defines the condition of priority level. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + `lastTransitionTime` is the last time the condition transitioned from one status to another. + message : str, default is Undefined, optional + `message` is a human-readable message indicating details about last transition. + reason : str, default is Undefined, optional + `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + status : str, default is Undefined, optional + `status` is the status of the condition. Can be True, False, Unknown. Required. + $type : str, default is Undefined, optional + `type` is the type of the condition. Required. + """ + + + lastTransitionTime?: str + + message?: str + + reason?: str + + status?: str + + $type?: str + + diff --git a/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_list.k b/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_list.k new file mode 100644 index 0000000..3677c84 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_list.k @@ -0,0 +1,34 @@ +""" +This is the priority_level_configuration_list module in k8s.api.flowcontrol.v1beta2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PriorityLevelConfigurationList: + """ + PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + + Attributes + ---------- + apiVersion : str, default is "flowcontrol.apiserver.k8s.io/v1beta2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [PriorityLevelConfiguration], default is Undefined, required + `items` is a list of request-priorities. + kind : str, default is "PriorityLevelConfigurationList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "flowcontrol.apiserver.k8s.io/v1beta2" = "flowcontrol.apiserver.k8s.io/v1beta2" + + items: [PriorityLevelConfiguration] + + kind: "PriorityLevelConfigurationList" = "PriorityLevelConfigurationList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_reference.k b/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_reference.k new file mode 100644 index 0000000..c9a64b6 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_reference.k @@ -0,0 +1,21 @@ +""" +This is the priority_level_configuration_reference module in k8s.api.flowcontrol.v1beta2 package. +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 PriorityLevelConfigurationReference: + """ + PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. + + Attributes + ---------- + name : str, default is Undefined, required + `name` is the name of the priority level configuration being referenced Required. + """ + + + name: str + + diff --git a/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_spec.k b/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_spec.k new file mode 100644 index 0000000..7773f24 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_spec.k @@ -0,0 +1,25 @@ +""" +This is the priority_level_configuration_spec module in k8s.api.flowcontrol.v1beta2 package. +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 PriorityLevelConfigurationSpec: + """ + PriorityLevelConfigurationSpec specifies the configuration of a priority level. + + Attributes + ---------- + limited : LimitedPriorityLevelConfiguration, default is Undefined, optional + `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. + $type : str, default is Undefined, required + `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. + """ + + + limited?: LimitedPriorityLevelConfiguration + + $type: str + + diff --git a/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_status.k b/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_status.k new file mode 100644 index 0000000..c2bb1c2 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/priority_level_configuration_status.k @@ -0,0 +1,21 @@ +""" +This is the priority_level_configuration_status module in k8s.api.flowcontrol.v1beta2 package. +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 PriorityLevelConfigurationStatus: + """ + PriorityLevelConfigurationStatus represents the current state of a "request-priority". + + Attributes + ---------- + conditions : [PriorityLevelConfigurationCondition], default is Undefined, optional + `conditions` is the current state of "request-priority". + """ + + + conditions?: [PriorityLevelConfigurationCondition] + + diff --git a/library/k8s/api/flowcontrol/v1beta2/queuing_configuration.k b/library/k8s/api/flowcontrol/v1beta2/queuing_configuration.k new file mode 100644 index 0000000..152adec --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/queuing_configuration.k @@ -0,0 +1,29 @@ +""" +This is the queuing_configuration module in k8s.api.flowcontrol.v1beta2 package. +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 QueuingConfiguration: + """ + QueuingConfiguration holds the configuration parameters for queuing + + Attributes + ---------- + handSize : int, default is Undefined, optional + `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. + queueLengthLimit : int, default is Undefined, optional + `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. + queues : int, default is Undefined, optional + `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. + """ + + + handSize?: int + + queueLengthLimit?: int + + queues?: int + + diff --git a/library/k8s/api/flowcontrol/v1beta2/resource_policy_rule.k b/library/k8s/api/flowcontrol/v1beta2/resource_policy_rule.k new file mode 100644 index 0000000..1a7d0b6 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/resource_policy_rule.k @@ -0,0 +1,37 @@ +""" +This is the resource_policy_rule module in k8s.api.flowcontrol.v1beta2 package. +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 ResourcePolicyRule: + """ + ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. + + Attributes + ---------- + apiGroups : [str], default is Undefined, required + `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. + clusterScope : bool, default is Undefined, optional + `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. + namespaces : [str], default is Undefined, optional + `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. + resources : [str], default is Undefined, required + `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. + verbs : [str], default is Undefined, required + `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. + """ + + + apiGroups: [str] + + clusterScope?: bool + + namespaces?: [str] + + resources: [str] + + verbs: [str] + + diff --git a/library/k8s/api/flowcontrol/v1beta2/service_account_subject.k b/library/k8s/api/flowcontrol/v1beta2/service_account_subject.k new file mode 100644 index 0000000..c47737b --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/service_account_subject.k @@ -0,0 +1,25 @@ +""" +This is the service_account_subject module in k8s.api.flowcontrol.v1beta2 package. +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 ServiceAccountSubject: + """ + ServiceAccountSubject holds detailed information for service-account-kind subject. + + Attributes + ---------- + name : str, default is Undefined, required + `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. + namespace : str, default is Undefined, required + `namespace` is the namespace of matching ServiceAccount objects. Required. + """ + + + name: str + + namespace: str + + diff --git a/library/k8s/api/flowcontrol/v1beta2/subject.k b/library/k8s/api/flowcontrol/v1beta2/subject.k new file mode 100644 index 0000000..5999b02 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/subject.k @@ -0,0 +1,33 @@ +""" +This is the subject module in k8s.api.flowcontrol.v1beta2 package. +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 Subject: + """ + Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. + + Attributes + ---------- + group : GroupSubject, default is Undefined, optional + `group` matches based on user group name. + kind : str, default is Undefined, required + `kind` indicates which one of the other fields is non-empty. Required + serviceAccount : ServiceAccountSubject, default is Undefined, optional + `serviceAccount` matches ServiceAccounts. + user : UserSubject, default is Undefined, optional + `user` matches based on username. + """ + + + group?: GroupSubject + + kind: str + + serviceAccount?: ServiceAccountSubject + + user?: UserSubject + + diff --git a/library/k8s/api/flowcontrol/v1beta2/user_subject.k b/library/k8s/api/flowcontrol/v1beta2/user_subject.k new file mode 100644 index 0000000..db5d7be --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta2/user_subject.k @@ -0,0 +1,21 @@ +""" +This is the user_subject module in k8s.api.flowcontrol.v1beta2 package. +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 UserSubject: + """ + UserSubject holds detailed information for user-kind subject. + + Attributes + ---------- + name : str, default is Undefined, required + `name` is the username that matches, or "*" to match all usernames. Required. + """ + + + name: str + + diff --git a/library/k8s/api/flowcontrol/v1beta3/flow_distinguisher_method.k b/library/k8s/api/flowcontrol/v1beta3/flow_distinguisher_method.k new file mode 100644 index 0000000..3478622 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/flow_distinguisher_method.k @@ -0,0 +1,21 @@ +""" +This is the flow_distinguisher_method module in k8s.api.flowcontrol.v1beta3 package. +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 FlowDistinguisherMethod: + """ + FlowDistinguisherMethod specifies the method of a flow distinguisher. + + Attributes + ---------- + $type : str, default is Undefined, required + `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. + """ + + + $type: str + + diff --git a/library/k8s/api/flowcontrol/v1beta3/flow_schema.k b/library/k8s/api/flowcontrol/v1beta3/flow_schema.k new file mode 100644 index 0000000..c76a8e1 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/flow_schema.k @@ -0,0 +1,34 @@ +""" +This is the flow_schema module in k8s.api.flowcontrol.v1beta3 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema FlowSchema: + """ + FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + + Attributes + ---------- + apiVersion : str, default is "flowcontrol.apiserver.k8s.io/v1beta3", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "FlowSchema", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : FlowSchemaSpec, default is Undefined, optional + `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "flowcontrol.apiserver.k8s.io/v1beta3" = "flowcontrol.apiserver.k8s.io/v1beta3" + + kind: "FlowSchema" = "FlowSchema" + + metadata?: v1.ObjectMeta + + spec?: FlowSchemaSpec + + diff --git a/library/k8s/api/flowcontrol/v1beta3/flow_schema_condition.k b/library/k8s/api/flowcontrol/v1beta3/flow_schema_condition.k new file mode 100644 index 0000000..054ee4e --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/flow_schema_condition.k @@ -0,0 +1,37 @@ +""" +This is the flow_schema_condition module in k8s.api.flowcontrol.v1beta3 package. +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 FlowSchemaCondition: + """ + FlowSchemaCondition describes conditions for a FlowSchema. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + `lastTransitionTime` is the last time the condition transitioned from one status to another. + message : str, default is Undefined, optional + `message` is a human-readable message indicating details about last transition. + reason : str, default is Undefined, optional + `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + status : str, default is Undefined, optional + `status` is the status of the condition. Can be True, False, Unknown. Required. + $type : str, default is Undefined, optional + `type` is the type of the condition. Required. + """ + + + lastTransitionTime?: str + + message?: str + + reason?: str + + status?: str + + $type?: str + + diff --git a/library/k8s/api/flowcontrol/v1beta3/flow_schema_list.k b/library/k8s/api/flowcontrol/v1beta3/flow_schema_list.k new file mode 100644 index 0000000..fafe330 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/flow_schema_list.k @@ -0,0 +1,34 @@ +""" +This is the flow_schema_list module in k8s.api.flowcontrol.v1beta3 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema FlowSchemaList: + """ + FlowSchemaList is a list of FlowSchema objects. + + Attributes + ---------- + apiVersion : str, default is "flowcontrol.apiserver.k8s.io/v1beta3", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [FlowSchema], default is Undefined, required + `items` is a list of FlowSchemas. + kind : str, default is "FlowSchemaList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "flowcontrol.apiserver.k8s.io/v1beta3" = "flowcontrol.apiserver.k8s.io/v1beta3" + + items: [FlowSchema] + + kind: "FlowSchemaList" = "FlowSchemaList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/flowcontrol/v1beta3/flow_schema_spec.k b/library/k8s/api/flowcontrol/v1beta3/flow_schema_spec.k new file mode 100644 index 0000000..24bb1bc --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/flow_schema_spec.k @@ -0,0 +1,33 @@ +""" +This is the flow_schema_spec module in k8s.api.flowcontrol.v1beta3 package. +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 FlowSchemaSpec: + """ + FlowSchemaSpec describes how the FlowSchema's specification looks like. + + Attributes + ---------- + distinguisherMethod : FlowDistinguisherMethod, default is Undefined, optional + `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. + matchingPrecedence : int, default is Undefined, optional + `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. + priorityLevelConfiguration : PriorityLevelConfigurationReference, default is Undefined, required + `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. + rules : [PolicyRulesWithSubjects], default is Undefined, optional + `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. + """ + + + distinguisherMethod?: FlowDistinguisherMethod + + matchingPrecedence?: int + + priorityLevelConfiguration: PriorityLevelConfigurationReference + + rules?: [PolicyRulesWithSubjects] + + diff --git a/library/k8s/api/flowcontrol/v1beta3/flow_schema_status.k b/library/k8s/api/flowcontrol/v1beta3/flow_schema_status.k new file mode 100644 index 0000000..c370647 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/flow_schema_status.k @@ -0,0 +1,21 @@ +""" +This is the flow_schema_status module in k8s.api.flowcontrol.v1beta3 package. +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 FlowSchemaStatus: + """ + FlowSchemaStatus represents the current state of a FlowSchema. + + Attributes + ---------- + conditions : [FlowSchemaCondition], default is Undefined, optional + `conditions` is a list of the current states of FlowSchema. + """ + + + conditions?: [FlowSchemaCondition] + + diff --git a/library/k8s/api/flowcontrol/v1beta3/group_subject.k b/library/k8s/api/flowcontrol/v1beta3/group_subject.k new file mode 100644 index 0000000..983bc9e --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/group_subject.k @@ -0,0 +1,21 @@ +""" +This is the group_subject module in k8s.api.flowcontrol.v1beta3 package. +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 GroupSubject: + """ + GroupSubject holds detailed information for group-kind subject. + + Attributes + ---------- + name : str, default is Undefined, required + name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. + """ + + + name: str + + diff --git a/library/k8s/api/flowcontrol/v1beta3/limit_response.k b/library/k8s/api/flowcontrol/v1beta3/limit_response.k new file mode 100644 index 0000000..5af0743 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/limit_response.k @@ -0,0 +1,25 @@ +""" +This is the limit_response module in k8s.api.flowcontrol.v1beta3 package. +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 LimitResponse: + """ + LimitResponse defines how to handle requests that can not be executed right now. + + Attributes + ---------- + queuing : QueuingConfiguration, default is Undefined, optional + `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. + $type : str, default is Undefined, required + `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. + """ + + + queuing?: QueuingConfiguration + + $type: str + + diff --git a/library/k8s/api/flowcontrol/v1beta3/limited_priority_level_configuration.k b/library/k8s/api/flowcontrol/v1beta3/limited_priority_level_configuration.k new file mode 100644 index 0000000..5b5538f --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/limited_priority_level_configuration.k @@ -0,0 +1,45 @@ +""" +This is the limited_priority_level_configuration module in k8s.api.flowcontrol.v1beta3 package. +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 LimitedPriorityLevelConfiguration: + """ + LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: + - How are requests for this priority level limited? + - What should be done with requests that exceed the limit? + + Attributes + ---------- + borrowingLimitPercent : int, default is Undefined, optional + `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. + + BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) + + The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. + lendablePercent : int, default is Undefined, optional + `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. + + LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) + limitResponse : LimitResponse, default is Undefined, optional + `limitResponse` indicates what to do with requests that can not be executed right now + nominalConcurrencyShares : int, default is Undefined, optional + `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: + + NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[limited priority level k] NCS(k) + + Bigger numbers mean a larger nominal concurrency limit, at the expense of every other Limited priority level. This field has a default value of 30. + """ + + + borrowingLimitPercent?: int + + lendablePercent?: int + + limitResponse?: LimitResponse + + nominalConcurrencyShares?: int + + diff --git a/library/k8s/api/flowcontrol/v1beta3/non_resource_policy_rule.k b/library/k8s/api/flowcontrol/v1beta3/non_resource_policy_rule.k new file mode 100644 index 0000000..cffcc48 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/non_resource_policy_rule.k @@ -0,0 +1,31 @@ +""" +This is the non_resource_policy_rule module in k8s.api.flowcontrol.v1beta3 package. +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 NonResourcePolicyRule: + """ + NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. + + Attributes + ---------- + nonResourceURLs : [str], default is Undefined, required + `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: + - "/healthz" is legal + - "/hea*" is illegal + - "/hea" is legal but matches nothing + - "/hea/*" also matches nothing + - "/healthz/*" matches all per-component health checks. + "*" matches all non-resource urls. if it is present, it must be the only entry. Required. + verbs : [str], default is Undefined, required + `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. + """ + + + nonResourceURLs: [str] + + verbs: [str] + + diff --git a/library/k8s/api/flowcontrol/v1beta3/policy_rules_with_subjects.k b/library/k8s/api/flowcontrol/v1beta3/policy_rules_with_subjects.k new file mode 100644 index 0000000..24e3c94 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/policy_rules_with_subjects.k @@ -0,0 +1,29 @@ +""" +This is the policy_rules_with_subjects module in k8s.api.flowcontrol.v1beta3 package. +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 PolicyRulesWithSubjects: + """ + PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request. + + Attributes + ---------- + nonResourceRules : [NonResourcePolicyRule], default is Undefined, optional + `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. + resourceRules : [ResourcePolicyRule], default is Undefined, optional + `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. + subjects : [Subject], default is Undefined, required + subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. + """ + + + nonResourceRules?: [NonResourcePolicyRule] + + resourceRules?: [ResourcePolicyRule] + + subjects: [Subject] + + diff --git a/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration.k b/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration.k new file mode 100644 index 0000000..15f67df --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration.k @@ -0,0 +1,34 @@ +""" +This is the priority_level_configuration module in k8s.api.flowcontrol.v1beta3 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PriorityLevelConfiguration: + """ + PriorityLevelConfiguration represents the configuration of a priority level. + + Attributes + ---------- + apiVersion : str, default is "flowcontrol.apiserver.k8s.io/v1beta3", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "PriorityLevelConfiguration", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : PriorityLevelConfigurationSpec, default is Undefined, optional + `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "flowcontrol.apiserver.k8s.io/v1beta3" = "flowcontrol.apiserver.k8s.io/v1beta3" + + kind: "PriorityLevelConfiguration" = "PriorityLevelConfiguration" + + metadata?: v1.ObjectMeta + + spec?: PriorityLevelConfigurationSpec + + diff --git a/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_condition.k b/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_condition.k new file mode 100644 index 0000000..01bcf2b --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_condition.k @@ -0,0 +1,37 @@ +""" +This is the priority_level_configuration_condition module in k8s.api.flowcontrol.v1beta3 package. +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 PriorityLevelConfigurationCondition: + """ + PriorityLevelConfigurationCondition defines the condition of priority level. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + `lastTransitionTime` is the last time the condition transitioned from one status to another. + message : str, default is Undefined, optional + `message` is a human-readable message indicating details about last transition. + reason : str, default is Undefined, optional + `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + status : str, default is Undefined, optional + `status` is the status of the condition. Can be True, False, Unknown. Required. + $type : str, default is Undefined, optional + `type` is the type of the condition. Required. + """ + + + lastTransitionTime?: str + + message?: str + + reason?: str + + status?: str + + $type?: str + + diff --git a/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_list.k b/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_list.k new file mode 100644 index 0000000..1239656 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_list.k @@ -0,0 +1,34 @@ +""" +This is the priority_level_configuration_list module in k8s.api.flowcontrol.v1beta3 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PriorityLevelConfigurationList: + """ + PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + + Attributes + ---------- + apiVersion : str, default is "flowcontrol.apiserver.k8s.io/v1beta3", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [PriorityLevelConfiguration], default is Undefined, required + `items` is a list of request-priorities. + kind : str, default is "PriorityLevelConfigurationList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "flowcontrol.apiserver.k8s.io/v1beta3" = "flowcontrol.apiserver.k8s.io/v1beta3" + + items: [PriorityLevelConfiguration] + + kind: "PriorityLevelConfigurationList" = "PriorityLevelConfigurationList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_reference.k b/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_reference.k new file mode 100644 index 0000000..4a41167 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_reference.k @@ -0,0 +1,21 @@ +""" +This is the priority_level_configuration_reference module in k8s.api.flowcontrol.v1beta3 package. +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 PriorityLevelConfigurationReference: + """ + PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. + + Attributes + ---------- + name : str, default is Undefined, required + `name` is the name of the priority level configuration being referenced Required. + """ + + + name: str + + diff --git a/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_spec.k b/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_spec.k new file mode 100644 index 0000000..9ff04f0 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_spec.k @@ -0,0 +1,25 @@ +""" +This is the priority_level_configuration_spec module in k8s.api.flowcontrol.v1beta3 package. +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 PriorityLevelConfigurationSpec: + """ + PriorityLevelConfigurationSpec specifies the configuration of a priority level. + + Attributes + ---------- + limited : LimitedPriorityLevelConfiguration, default is Undefined, optional + `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. + $type : str, default is Undefined, required + `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. + """ + + + limited?: LimitedPriorityLevelConfiguration + + $type: str + + diff --git a/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_status.k b/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_status.k new file mode 100644 index 0000000..c8c2cf9 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/priority_level_configuration_status.k @@ -0,0 +1,21 @@ +""" +This is the priority_level_configuration_status module in k8s.api.flowcontrol.v1beta3 package. +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 PriorityLevelConfigurationStatus: + """ + PriorityLevelConfigurationStatus represents the current state of a "request-priority". + + Attributes + ---------- + conditions : [PriorityLevelConfigurationCondition], default is Undefined, optional + `conditions` is the current state of "request-priority". + """ + + + conditions?: [PriorityLevelConfigurationCondition] + + diff --git a/library/k8s/api/flowcontrol/v1beta3/queuing_configuration.k b/library/k8s/api/flowcontrol/v1beta3/queuing_configuration.k new file mode 100644 index 0000000..d489327 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/queuing_configuration.k @@ -0,0 +1,29 @@ +""" +This is the queuing_configuration module in k8s.api.flowcontrol.v1beta3 package. +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 QueuingConfiguration: + """ + QueuingConfiguration holds the configuration parameters for queuing + + Attributes + ---------- + handSize : int, default is Undefined, optional + `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. + queueLengthLimit : int, default is Undefined, optional + `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. + queues : int, default is Undefined, optional + `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. + """ + + + handSize?: int + + queueLengthLimit?: int + + queues?: int + + diff --git a/library/k8s/api/flowcontrol/v1beta3/resource_policy_rule.k b/library/k8s/api/flowcontrol/v1beta3/resource_policy_rule.k new file mode 100644 index 0000000..4676533 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/resource_policy_rule.k @@ -0,0 +1,37 @@ +""" +This is the resource_policy_rule module in k8s.api.flowcontrol.v1beta3 package. +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 ResourcePolicyRule: + """ + ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. + + Attributes + ---------- + apiGroups : [str], default is Undefined, required + `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. + clusterScope : bool, default is Undefined, optional + `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. + namespaces : [str], default is Undefined, optional + `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. + resources : [str], default is Undefined, required + `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. + verbs : [str], default is Undefined, required + `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. + """ + + + apiGroups: [str] + + clusterScope?: bool + + namespaces?: [str] + + resources: [str] + + verbs: [str] + + diff --git a/library/k8s/api/flowcontrol/v1beta3/service_account_subject.k b/library/k8s/api/flowcontrol/v1beta3/service_account_subject.k new file mode 100644 index 0000000..06cf7d5 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/service_account_subject.k @@ -0,0 +1,25 @@ +""" +This is the service_account_subject module in k8s.api.flowcontrol.v1beta3 package. +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 ServiceAccountSubject: + """ + ServiceAccountSubject holds detailed information for service-account-kind subject. + + Attributes + ---------- + name : str, default is Undefined, required + `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. + namespace : str, default is Undefined, required + `namespace` is the namespace of matching ServiceAccount objects. Required. + """ + + + name: str + + namespace: str + + diff --git a/library/k8s/api/flowcontrol/v1beta3/subject.k b/library/k8s/api/flowcontrol/v1beta3/subject.k new file mode 100644 index 0000000..cb37ae7 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/subject.k @@ -0,0 +1,33 @@ +""" +This is the subject module in k8s.api.flowcontrol.v1beta3 package. +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 Subject: + """ + Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. + + Attributes + ---------- + group : GroupSubject, default is Undefined, optional + `group` matches based on user group name. + kind : str, default is Undefined, required + `kind` indicates which one of the other fields is non-empty. Required + serviceAccount : ServiceAccountSubject, default is Undefined, optional + `serviceAccount` matches ServiceAccounts. + user : UserSubject, default is Undefined, optional + `user` matches based on username. + """ + + + group?: GroupSubject + + kind: str + + serviceAccount?: ServiceAccountSubject + + user?: UserSubject + + diff --git a/library/k8s/api/flowcontrol/v1beta3/user_subject.k b/library/k8s/api/flowcontrol/v1beta3/user_subject.k new file mode 100644 index 0000000..cbe62c9 --- /dev/null +++ b/library/k8s/api/flowcontrol/v1beta3/user_subject.k @@ -0,0 +1,21 @@ +""" +This is the user_subject module in k8s.api.flowcontrol.v1beta3 package. +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 UserSubject: + """ + UserSubject holds detailed information for user-kind subject. + + Attributes + ---------- + name : str, default is Undefined, required + `name` is the username that matches, or "*" to match all usernames. Required. + """ + + + name: str + + diff --git a/library/k8s/api/networking/v1/http_ingress_path.k b/library/k8s/api/networking/v1/http_ingress_path.k new file mode 100644 index 0000000..8773974 --- /dev/null +++ b/library/k8s/api/networking/v1/http_ingress_path.k @@ -0,0 +1,39 @@ +""" +This is the http_ingress_path module in k8s.api.networking.v1 package. +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 HTTPIngressPath: + """ + HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend. + + Attributes + ---------- + backend : IngressBackend, default is Undefined, required + backend defines the referenced service endpoint to which the traffic will be forwarded to. + path : str, default is Undefined, optional + path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value "Exact" or "Prefix". + pathType : str, default is Undefined, required + pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is + done on a path element by element basis. A path element refers is the + list of labels in the path split by the '/' separator. A request is a + match for path p if every p is an element-wise prefix of p of the + request path. Note that if the last element of the path is a substring + of the last element in request path, it is not a match (e.g. /foo/bar + matches /foo/bar/baz, but does not match /foo/barbaz). + * ImplementationSpecific: Interpretation of the Path matching is up to + the IngressClass. Implementations can treat this as a separate PathType + or treat it identically to Prefix or Exact path types. + Implementations are required to support all path types. + """ + + + backend: IngressBackend + + path?: str + + pathType: str + + diff --git a/library/k8s/api/networking/v1/http_ingress_rule_value.k b/library/k8s/api/networking/v1/http_ingress_rule_value.k new file mode 100644 index 0000000..ad06df9 --- /dev/null +++ b/library/k8s/api/networking/v1/http_ingress_rule_value.k @@ -0,0 +1,21 @@ +""" +This is the http_ingress_rule_value module in k8s.api.networking.v1 package. +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 HTTPIngressRuleValue: + """ + HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. + + Attributes + ---------- + paths : [HTTPIngressPath], default is Undefined, required + paths is a collection of paths that map requests to backends. + """ + + + paths: [HTTPIngressPath] + + diff --git a/library/k8s/api/networking/v1/ingress.k b/library/k8s/api/networking/v1/ingress.k new file mode 100644 index 0000000..a224b70 --- /dev/null +++ b/library/k8s/api/networking/v1/ingress.k @@ -0,0 +1,34 @@ +""" +This is the ingress module in k8s.api.networking.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Ingress: + """ + Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + + Attributes + ---------- + apiVersion : str, default is "networking.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "Ingress", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : IngressSpec, default is Undefined, optional + spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "networking.k8s.io/v1" = "networking.k8s.io/v1" + + kind: "Ingress" = "Ingress" + + metadata?: v1.ObjectMeta + + spec?: IngressSpec + + diff --git a/library/k8s/api/networking/v1/ingress_backend.k b/library/k8s/api/networking/v1/ingress_backend.k new file mode 100644 index 0000000..15df5a9 --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_backend.k @@ -0,0 +1,26 @@ +""" +This is the ingress_backend module in k8s.api.networking.v1 package. +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. +""" +import api.core.v1 + + +schema IngressBackend: + """ + IngressBackend describes all endpoints for a given service and port. + + Attributes + ---------- + resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". + service : IngressServiceBackend, default is Undefined, optional + service references a service as a backend. This is a mutually exclusive setting with "Resource". + """ + + + resource?: v1.TypedLocalObjectReference + + service?: IngressServiceBackend + + diff --git a/library/k8s/api/networking/v1/ingress_class.k b/library/k8s/api/networking/v1/ingress_class.k new file mode 100644 index 0000000..19d34da --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_class.k @@ -0,0 +1,34 @@ +""" +This is the ingress_class module in k8s.api.networking.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema IngressClass: + """ + IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. + + Attributes + ---------- + apiVersion : str, default is "networking.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "IngressClass", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : IngressClassSpec, default is Undefined, optional + spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "networking.k8s.io/v1" = "networking.k8s.io/v1" + + kind: "IngressClass" = "IngressClass" + + metadata?: v1.ObjectMeta + + spec?: IngressClassSpec + + diff --git a/library/k8s/api/networking/v1/ingress_class_list.k b/library/k8s/api/networking/v1/ingress_class_list.k new file mode 100644 index 0000000..8962fe0 --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_class_list.k @@ -0,0 +1,34 @@ +""" +This is the ingress_class_list module in k8s.api.networking.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema IngressClassList: + """ + IngressClassList is a collection of IngressClasses. + + Attributes + ---------- + apiVersion : str, default is "networking.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [IngressClass], default is Undefined, required + items is the list of IngressClasses. + kind : str, default is "IngressClassList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. + """ + + + apiVersion: "networking.k8s.io/v1" = "networking.k8s.io/v1" + + items: [IngressClass] + + kind: "IngressClassList" = "IngressClassList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/networking/v1/ingress_class_parameters_reference.k b/library/k8s/api/networking/v1/ingress_class_parameters_reference.k new file mode 100644 index 0000000..cbbb370 --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_class_parameters_reference.k @@ -0,0 +1,37 @@ +""" +This is the ingress_class_parameters_reference module in k8s.api.networking.v1 package. +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 IngressClassParametersReference: + """ + IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. + + Attributes + ---------- + apiGroup : str, default is Undefined, optional + apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + kind : str, default is Undefined, required + kind is the type of resource being referenced. + name : str, default is Undefined, required + name is the name of resource being referenced. + namespace : str, default is Undefined, optional + namespace is the namespace of the resource being referenced. This field is required when scope is set to "Namespace" and must be unset when scope is set to "Cluster". + scope : str, default is Undefined, optional + scope represents if this refers to a cluster or namespace scoped resource. This may be set to "Cluster" (default) or "Namespace". + """ + + + apiGroup?: str + + kind: str + + name: str + + namespace?: str + + scope?: str + + diff --git a/library/k8s/api/networking/v1/ingress_class_spec.k b/library/k8s/api/networking/v1/ingress_class_spec.k new file mode 100644 index 0000000..537c99a --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_class_spec.k @@ -0,0 +1,25 @@ +""" +This is the ingress_class_spec module in k8s.api.networking.v1 package. +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 IngressClassSpec: + """ + IngressClassSpec provides information about the class of an Ingress. + + Attributes + ---------- + controller : str, default is Undefined, optional + controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. + parameters : IngressClassParametersReference, default is Undefined, optional + parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. + """ + + + controller?: str + + parameters?: IngressClassParametersReference + + diff --git a/library/k8s/api/networking/v1/ingress_list.k b/library/k8s/api/networking/v1/ingress_list.k new file mode 100644 index 0000000..ad9f5f1 --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_list.k @@ -0,0 +1,34 @@ +""" +This is the ingress_list module in k8s.api.networking.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema IngressList: + """ + IngressList is a collection of Ingress. + + Attributes + ---------- + apiVersion : str, default is "networking.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [Ingress], default is Undefined, required + items is the list of Ingress. + kind : str, default is "IngressList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "networking.k8s.io/v1" = "networking.k8s.io/v1" + + items: [Ingress] + + kind: "IngressList" = "IngressList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/networking/v1/ingress_load_balancer_ingress.k b/library/k8s/api/networking/v1/ingress_load_balancer_ingress.k new file mode 100644 index 0000000..e9b69a8 --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_load_balancer_ingress.k @@ -0,0 +1,29 @@ +""" +This is the ingress_load_balancer_ingress module in k8s.api.networking.v1 package. +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 IngressLoadBalancerIngress: + """ + IngressLoadBalancerIngress represents the status of a load-balancer ingress point. + + Attributes + ---------- + hostname : str, default is Undefined, optional + hostname is set for load-balancer ingress points that are DNS based. + ip : str, default is Undefined, optional + ip is set for load-balancer ingress points that are IP based. + ports : [IngressPortStatus], default is Undefined, optional + ports provides information about the ports exposed by this LoadBalancer. + """ + + + hostname?: str + + ip?: str + + ports?: [IngressPortStatus] + + diff --git a/library/k8s/api/networking/v1/ingress_load_balancer_status.k b/library/k8s/api/networking/v1/ingress_load_balancer_status.k new file mode 100644 index 0000000..f43be56 --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_load_balancer_status.k @@ -0,0 +1,21 @@ +""" +This is the ingress_load_balancer_status module in k8s.api.networking.v1 package. +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 IngressLoadBalancerStatus: + """ + IngressLoadBalancerStatus represents the status of a load-balancer. + + Attributes + ---------- + ingress : [IngressLoadBalancerIngress], default is Undefined, optional + ingress is a list containing ingress points for the load-balancer. + """ + + + ingress?: [IngressLoadBalancerIngress] + + diff --git a/library/k8s/api/networking/v1/ingress_port_status.k b/library/k8s/api/networking/v1/ingress_port_status.k new file mode 100644 index 0000000..51688b1 --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_port_status.k @@ -0,0 +1,32 @@ +""" +This is the ingress_port_status module in k8s.api.networking.v1 package. +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 IngressPortStatus: + """ + IngressPortStatus represents the error condition of a service port + + Attributes + ---------- + error : str, default is Undefined, optional + error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use + CamelCase names + - cloud provider specific error values must have names that comply with the + format foo.example.com/CamelCase. + port : int, default is Undefined, required + port is the port number of the ingress port. + $protocol : str, default is Undefined, required + protocol is the protocol of the ingress port. The supported values are: "TCP", "UDP", "SCTP" + """ + + + error?: str + + port: int + + $protocol: str + + diff --git a/library/k8s/api/networking/v1/ingress_rule.k b/library/k8s/api/networking/v1/ingress_rule.k new file mode 100644 index 0000000..8a16e65 --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_rule.k @@ -0,0 +1,32 @@ +""" +This is the ingress_rule module in k8s.api.networking.v1 package. +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 IngressRule: + """ + IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. + + Attributes + ---------- + host : str, default is Undefined, optional + host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to + the IP in the Spec of the parent Ingress. + 2. The `:` delimiter is not respected because ports are not allowed. + Currently the port of an Ingress is implicitly :80 for http and + :443 for https. + Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + + host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. + http : HTTPIngressRuleValue, default is Undefined, optional + http + """ + + + host?: str + + http?: HTTPIngressRuleValue + + diff --git a/library/k8s/api/networking/v1/ingress_service_backend.k b/library/k8s/api/networking/v1/ingress_service_backend.k new file mode 100644 index 0000000..8fa1ba5 --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_service_backend.k @@ -0,0 +1,25 @@ +""" +This is the ingress_service_backend module in k8s.api.networking.v1 package. +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 IngressServiceBackend: + """ + IngressServiceBackend references a Kubernetes Service as a Backend. + + Attributes + ---------- + name : str, default is Undefined, required + name is the referenced service. The service must exist in the same namespace as the Ingress object. + port : ServiceBackendPort, default is Undefined, optional + port of the referenced service. A port name or port number is required for a IngressServiceBackend. + """ + + + name: str + + port?: ServiceBackendPort + + diff --git a/library/k8s/api/networking/v1/ingress_spec.k b/library/k8s/api/networking/v1/ingress_spec.k new file mode 100644 index 0000000..23b9703 --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_spec.k @@ -0,0 +1,33 @@ +""" +This is the ingress_spec module in k8s.api.networking.v1 package. +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 IngressSpec: + """ + IngressSpec describes the Ingress the user wishes to exist. + + Attributes + ---------- + defaultBackend : IngressBackend, default is Undefined, optional + defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller. + ingressClassName : str, default is Undefined, optional + ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present. + rules : [IngressRule], default is Undefined, optional + rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + tls : [IngressTLS], default is Undefined, optional + tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + """ + + + defaultBackend?: IngressBackend + + ingressClassName?: str + + rules?: [IngressRule] + + tls?: [IngressTLS] + + diff --git a/library/k8s/api/networking/v1/ingress_status.k b/library/k8s/api/networking/v1/ingress_status.k new file mode 100644 index 0000000..75c7563 --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_status.k @@ -0,0 +1,21 @@ +""" +This is the ingress_status module in k8s.api.networking.v1 package. +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 IngressStatus: + """ + IngressStatus describe the current state of the Ingress. + + Attributes + ---------- + loadBalancer : IngressLoadBalancerStatus, default is Undefined, optional + loadBalancer contains the current status of the load-balancer. + """ + + + loadBalancer?: IngressLoadBalancerStatus + + diff --git a/library/k8s/api/networking/v1/ingress_tls.k b/library/k8s/api/networking/v1/ingress_tls.k new file mode 100644 index 0000000..3cb7733 --- /dev/null +++ b/library/k8s/api/networking/v1/ingress_tls.k @@ -0,0 +1,25 @@ +""" +This is the ingress_tls module in k8s.api.networking.v1 package. +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 IngressTLS: + """ + IngressTLS describes the transport layer security associated with an ingress. + + Attributes + ---------- + hosts : [str], default is Undefined, optional + hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + secretName : str, default is Undefined, optional + secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the "Host" header is used for routing. + """ + + + hosts?: [str] + + secretName?: str + + diff --git a/library/k8s/api/networking/v1/ip_block.k b/library/k8s/api/networking/v1/ip_block.k new file mode 100644 index 0000000..68de3f1 --- /dev/null +++ b/library/k8s/api/networking/v1/ip_block.k @@ -0,0 +1,25 @@ +""" +This is the ip_block module in k8s.api.networking.v1 package. +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 IPBlock: + """ + IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. + + Attributes + ---------- + cidr : str, default is Undefined, required + cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" + except : [str], default is Undefined, optional + except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range + """ + + + cidr: str + + except?: [str] + + diff --git a/library/k8s/api/networking/v1/network_policy.k b/library/k8s/api/networking/v1/network_policy.k new file mode 100644 index 0000000..b8b576d --- /dev/null +++ b/library/k8s/api/networking/v1/network_policy.k @@ -0,0 +1,34 @@ +""" +This is the network_policy module in k8s.api.networking.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema NetworkPolicy: + """ + NetworkPolicy describes what network traffic is allowed for a set of Pods + + Attributes + ---------- + apiVersion : str, default is "networking.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "NetworkPolicy", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : NetworkPolicySpec, default is Undefined, optional + spec represents the specification of the desired behavior for this NetworkPolicy. + """ + + + apiVersion: "networking.k8s.io/v1" = "networking.k8s.io/v1" + + kind: "NetworkPolicy" = "NetworkPolicy" + + metadata?: v1.ObjectMeta + + spec?: NetworkPolicySpec + + diff --git a/library/k8s/api/networking/v1/network_policy_egress_rule.k b/library/k8s/api/networking/v1/network_policy_egress_rule.k new file mode 100644 index 0000000..8911b55 --- /dev/null +++ b/library/k8s/api/networking/v1/network_policy_egress_rule.k @@ -0,0 +1,25 @@ +""" +This is the network_policy_egress_rule module in k8s.api.networking.v1 package. +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 NetworkPolicyEgressRule: + """ + NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 + + Attributes + ---------- + ports : [NetworkPolicyPort], default is Undefined, optional + ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + to : [NetworkPolicyPeer], default is Undefined, optional + to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + """ + + + ports?: [NetworkPolicyPort] + + to?: [NetworkPolicyPeer] + + diff --git a/library/k8s/api/networking/v1/network_policy_ingress_rule.k b/library/k8s/api/networking/v1/network_policy_ingress_rule.k new file mode 100644 index 0000000..e599760 --- /dev/null +++ b/library/k8s/api/networking/v1/network_policy_ingress_rule.k @@ -0,0 +1,25 @@ +""" +This is the network_policy_ingress_rule module in k8s.api.networking.v1 package. +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 NetworkPolicyIngressRule: + """ + NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. + + Attributes + ---------- + from : [NetworkPolicyPeer], default is Undefined, optional + from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. + ports : [NetworkPolicyPort], default is Undefined, optional + ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + """ + + + from?: [NetworkPolicyPeer] + + ports?: [NetworkPolicyPort] + + diff --git a/library/k8s/api/networking/v1/network_policy_list.k b/library/k8s/api/networking/v1/network_policy_list.k new file mode 100644 index 0000000..7d57481 --- /dev/null +++ b/library/k8s/api/networking/v1/network_policy_list.k @@ -0,0 +1,34 @@ +""" +This is the network_policy_list module in k8s.api.networking.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema NetworkPolicyList: + """ + NetworkPolicyList is a list of NetworkPolicy objects. + + Attributes + ---------- + apiVersion : str, default is "networking.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [NetworkPolicy], default is Undefined, required + items is a list of schema objects. + kind : str, default is "NetworkPolicyList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "networking.k8s.io/v1" = "networking.k8s.io/v1" + + items: [NetworkPolicy] + + kind: "NetworkPolicyList" = "NetworkPolicyList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/networking/v1/network_policy_peer.k b/library/k8s/api/networking/v1/network_policy_peer.k new file mode 100644 index 0000000..9f1cb09 --- /dev/null +++ b/library/k8s/api/networking/v1/network_policy_peer.k @@ -0,0 +1,34 @@ +""" +This is the network_policy_peer module in k8s.api.networking.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema NetworkPolicyPeer: + """ + NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed + + Attributes + ---------- + ipBlock : IPBlock, default is Undefined, optional + ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + namespaceSelector : v1.LabelSelector, default is Undefined, optional + namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. + + If podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector. + podSelector : v1.LabelSelector, default is Undefined, optional + podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods. + + If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace. + """ + + + ipBlock?: IPBlock + + namespaceSelector?: v1.LabelSelector + + podSelector?: v1.LabelSelector + + diff --git a/library/k8s/api/networking/v1/network_policy_port.k b/library/k8s/api/networking/v1/network_policy_port.k new file mode 100644 index 0000000..b5b4aaa --- /dev/null +++ b/library/k8s/api/networking/v1/network_policy_port.k @@ -0,0 +1,29 @@ +""" +This is the network_policy_port module in k8s.api.networking.v1 package. +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 NetworkPolicyPort: + """ + NetworkPolicyPort describes a port to allow traffic on + + Attributes + ---------- + endPort : int, default is Undefined, optional + endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. + port : int | str, default is Undefined, optional + port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. + $protocol : str, default is Undefined, optional + protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + """ + + + endPort?: int + + port?: int | str + + $protocol?: str + + diff --git a/library/k8s/api/networking/v1/network_policy_spec.k b/library/k8s/api/networking/v1/network_policy_spec.k new file mode 100644 index 0000000..1977450 --- /dev/null +++ b/library/k8s/api/networking/v1/network_policy_spec.k @@ -0,0 +1,34 @@ +""" +This is the network_policy_spec module in k8s.api.networking.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema NetworkPolicySpec: + """ + NetworkPolicySpec provides the specification of a NetworkPolicy + + Attributes + ---------- + egress : [NetworkPolicyEgressRule], default is Undefined, optional + egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + ingress : [NetworkPolicyIngressRule], default is Undefined, optional + ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) + podSelector : v1.LabelSelector, default is Undefined, required + podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + policyTypes : [str], default is Undefined, optional + policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 + """ + + + egress?: [NetworkPolicyEgressRule] + + ingress?: [NetworkPolicyIngressRule] + + podSelector: v1.LabelSelector + + policyTypes?: [str] + + diff --git a/library/k8s/api/networking/v1/network_policy_status.k b/library/k8s/api/networking/v1/network_policy_status.k new file mode 100644 index 0000000..5467d2a --- /dev/null +++ b/library/k8s/api/networking/v1/network_policy_status.k @@ -0,0 +1,22 @@ +""" +This is the network_policy_status module in k8s.api.networking.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema NetworkPolicyStatus: + """ + NetworkPolicyStatus describes the current state of the NetworkPolicy. + + Attributes + ---------- + conditions : [v1.Condition], default is Undefined, optional + conditions holds an array of metav1.Condition that describe the state of the NetworkPolicy. Current service state + """ + + + conditions?: [v1.Condition] + + diff --git a/library/k8s/api/networking/v1/service_backend_port.k b/library/k8s/api/networking/v1/service_backend_port.k new file mode 100644 index 0000000..c878823 --- /dev/null +++ b/library/k8s/api/networking/v1/service_backend_port.k @@ -0,0 +1,25 @@ +""" +This is the service_backend_port module in k8s.api.networking.v1 package. +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 ServiceBackendPort: + """ + ServiceBackendPort is the service port being referenced. + + Attributes + ---------- + name : str, default is Undefined, optional + name is the name of the port on the Service. This is a mutually exclusive setting with "Number". + number : int, default is Undefined, optional + number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with "Name". + """ + + + name?: str + + number?: int + + diff --git a/library/k8s/api/networking/v1alpha1/cluster_cidr.k b/library/k8s/api/networking/v1alpha1/cluster_cidr.k new file mode 100644 index 0000000..bfb9dfd --- /dev/null +++ b/library/k8s/api/networking/v1alpha1/cluster_cidr.k @@ -0,0 +1,34 @@ +""" +This is the cluster_cidr module in k8s.api.networking.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ClusterCIDR: + """ + ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used. + + Attributes + ---------- + apiVersion : str, default is "networking.k8s.io/v1alpha1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "ClusterCIDR", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : ClusterCIDRSpec, default is Undefined, optional + spec is the desired state of the ClusterCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "networking.k8s.io/v1alpha1" = "networking.k8s.io/v1alpha1" + + kind: "ClusterCIDR" = "ClusterCIDR" + + metadata?: v1.ObjectMeta + + spec?: ClusterCIDRSpec + + diff --git a/library/k8s/api/networking/v1alpha1/cluster_cidr_list.k b/library/k8s/api/networking/v1alpha1/cluster_cidr_list.k new file mode 100644 index 0000000..38007fa --- /dev/null +++ b/library/k8s/api/networking/v1alpha1/cluster_cidr_list.k @@ -0,0 +1,34 @@ +""" +This is the cluster_cidr_list module in k8s.api.networking.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ClusterCIDRList: + """ + ClusterCIDRList contains a list of ClusterCIDR. + + Attributes + ---------- + apiVersion : str, default is "networking.k8s.io/v1alpha1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ClusterCIDR], default is Undefined, required + items is the list of ClusterCIDRs. + kind : str, default is "ClusterCIDRList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "networking.k8s.io/v1alpha1" = "networking.k8s.io/v1alpha1" + + items: [ClusterCIDR] + + kind: "ClusterCIDRList" = "ClusterCIDRList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/networking/v1alpha1/cluster_cidr_spec.k b/library/k8s/api/networking/v1alpha1/cluster_cidr_spec.k new file mode 100644 index 0000000..4c47bc1 --- /dev/null +++ b/library/k8s/api/networking/v1alpha1/cluster_cidr_spec.k @@ -0,0 +1,34 @@ +""" +This is the cluster_cidr_spec module in k8s.api.networking.v1alpha1 package. +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. +""" +import api.core.v1 + + +schema ClusterCIDRSpec: + """ + ClusterCIDRSpec defines the desired state of ClusterCIDR. + + Attributes + ---------- + ipv4 : str, default is Undefined, optional + ipv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8"). At least one of ipv4 and ipv6 must be specified. This field is immutable. + ipv6 : str, default is Undefined, optional + ipv6 defines an IPv6 IP block in CIDR notation(e.g. "2001:db8::/64"). At least one of ipv4 and ipv6 must be specified. This field is immutable. + nodeSelector : v1.NodeSelector, default is Undefined, optional + nodeSelector defines which nodes the config is applicable to. An empty or nil nodeSelector selects all nodes. This field is immutable. + perNodeHostBits : int, default is Undefined, required + perNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. + """ + + + ipv4?: str + + ipv6?: str + + nodeSelector?: v1.NodeSelector + + perNodeHostBits: int + + diff --git a/library/k8s/api/networking/v1alpha1/ip_address.k b/library/k8s/api/networking/v1alpha1/ip_address.k new file mode 100644 index 0000000..75366ea --- /dev/null +++ b/library/k8s/api/networking/v1alpha1/ip_address.k @@ -0,0 +1,34 @@ +""" +This is the ip_address module in k8s.api.networking.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema IPAddress: + """ + IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 + + Attributes + ---------- + apiVersion : str, default is "networking.k8s.io/v1alpha1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "IPAddress", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : IPAddressSpec, default is Undefined, optional + spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion: "networking.k8s.io/v1alpha1" = "networking.k8s.io/v1alpha1" + + kind: "IPAddress" = "IPAddress" + + metadata?: v1.ObjectMeta + + spec?: IPAddressSpec + + diff --git a/library/k8s/api/networking/v1alpha1/ip_address_list.k b/library/k8s/api/networking/v1alpha1/ip_address_list.k new file mode 100644 index 0000000..75e2aaa --- /dev/null +++ b/library/k8s/api/networking/v1alpha1/ip_address_list.k @@ -0,0 +1,34 @@ +""" +This is the ip_address_list module in k8s.api.networking.v1alpha1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema IPAddressList: + """ + IPAddressList contains a list of IPAddress. + + Attributes + ---------- + apiVersion : str, default is "networking.k8s.io/v1alpha1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [IPAddress], default is Undefined, required + items is the list of IPAddresses. + kind : str, default is "IPAddressList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "networking.k8s.io/v1alpha1" = "networking.k8s.io/v1alpha1" + + items: [IPAddress] + + kind: "IPAddressList" = "IPAddressList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/networking/v1alpha1/ip_address_spec.k b/library/k8s/api/networking/v1alpha1/ip_address_spec.k new file mode 100644 index 0000000..7d295e1 --- /dev/null +++ b/library/k8s/api/networking/v1alpha1/ip_address_spec.k @@ -0,0 +1,21 @@ +""" +This is the ip_address_spec module in k8s.api.networking.v1alpha1 package. +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 IPAddressSpec: + """ + IPAddressSpec describe the attributes in an IP Address. + + Attributes + ---------- + parentRef : ParentReference, default is Undefined, optional + ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object. + """ + + + parentRef?: ParentReference + + diff --git a/library/k8s/api/networking/v1alpha1/parent_reference.k b/library/k8s/api/networking/v1alpha1/parent_reference.k new file mode 100644 index 0000000..e2556c3 --- /dev/null +++ b/library/k8s/api/networking/v1alpha1/parent_reference.k @@ -0,0 +1,37 @@ +""" +This is the parent_reference module in k8s.api.networking.v1alpha1 package. +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 ParentReference: + """ + ParentReference describes a reference to a parent object. + + Attributes + ---------- + group : str, default is Undefined, optional + Group is the group of the object being referenced. + name : str, default is Undefined, optional + Name is the name of the object being referenced. + namespace : str, default is Undefined, optional + Namespace is the namespace of the object being referenced. + resource : str, default is Undefined, optional + Resource is the resource of the object being referenced. + uid : str, default is Undefined, optional + UID is the uid of the object being referenced. + """ + + + group?: str + + name?: str + + namespace?: str + + resource?: str + + uid?: str + + diff --git a/library/k8s/api/node/v1/overhead.k b/library/k8s/api/node/v1/overhead.k new file mode 100644 index 0000000..cc6d601 --- /dev/null +++ b/library/k8s/api/node/v1/overhead.k @@ -0,0 +1,21 @@ +""" +This is the overhead module in k8s.api.node.v1 package. +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 Overhead: + """ + Overhead structure represents the resource overhead associated with running a pod. + + Attributes + ---------- + podFixed : {str:str}, default is Undefined, optional + podFixed represents the fixed resource overhead associated with running a pod. + """ + + + podFixed?: {str:str} + + diff --git a/library/k8s/api/node/v1/runtime_class.k b/library/k8s/api/node/v1/runtime_class.k new file mode 100644 index 0000000..c890b03 --- /dev/null +++ b/library/k8s/api/node/v1/runtime_class.k @@ -0,0 +1,43 @@ +""" +This is the runtime_class module in k8s.api.node.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema RuntimeClass: + """ + RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ + + Attributes + ---------- + apiVersion : str, default is "node.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + handler : str, default is Undefined, required + handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. + kind : str, default is "RuntimeClass", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + overhead : Overhead, default is Undefined, optional + overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see + https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/ + scheduling : Scheduling, default is Undefined, optional + scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + """ + + + apiVersion: "node.k8s.io/v1" = "node.k8s.io/v1" + + handler: str + + kind: "RuntimeClass" = "RuntimeClass" + + metadata?: v1.ObjectMeta + + overhead?: Overhead + + scheduling?: Scheduling + + diff --git a/library/k8s/api/node/v1/runtime_class_list.k b/library/k8s/api/node/v1/runtime_class_list.k new file mode 100644 index 0000000..ef56265 --- /dev/null +++ b/library/k8s/api/node/v1/runtime_class_list.k @@ -0,0 +1,34 @@ +""" +This is the runtime_class_list module in k8s.api.node.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema RuntimeClassList: + """ + RuntimeClassList is a list of RuntimeClass objects. + + Attributes + ---------- + apiVersion : str, default is "node.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [RuntimeClass], default is Undefined, required + items is a list of schema objects. + kind : str, default is "RuntimeClassList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "node.k8s.io/v1" = "node.k8s.io/v1" + + items: [RuntimeClass] + + kind: "RuntimeClassList" = "RuntimeClassList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/node/v1/scheduling.k b/library/k8s/api/node/v1/scheduling.k new file mode 100644 index 0000000..b7904f8 --- /dev/null +++ b/library/k8s/api/node/v1/scheduling.k @@ -0,0 +1,26 @@ +""" +This is the scheduling module in k8s.api.node.v1 package. +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. +""" +import api.core.v1 + + +schema Scheduling: + """ + Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. + + Attributes + ---------- + nodeSelector : {str:str}, default is Undefined, optional + nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. + tolerations : [v1.Toleration], default is Undefined, optional + tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. + """ + + + nodeSelector?: {str:str} + + tolerations?: [v1.Toleration] + + diff --git a/library/k8s/api/policy/v1/eviction.k b/library/k8s/api/policy/v1/eviction.k new file mode 100644 index 0000000..e87c2ee --- /dev/null +++ b/library/k8s/api/policy/v1/eviction.k @@ -0,0 +1,34 @@ +""" +This is the eviction module in k8s.api.policy.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Eviction: + """ + Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions. + + Attributes + ---------- + apiVersion : str, default is "policy/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + deleteOptions : v1.DeleteOptions, default is Undefined, optional + DeleteOptions may be provided + kind : str, default is "Eviction", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + ObjectMeta describes the pod that is being evicted. + """ + + + apiVersion: "policy/v1" = "policy/v1" + + deleteOptions?: v1.DeleteOptions + + kind: "Eviction" = "Eviction" + + metadata?: v1.ObjectMeta + + diff --git a/library/k8s/api/policy/v1/pod_disruption_budget.k b/library/k8s/api/policy/v1/pod_disruption_budget.k new file mode 100644 index 0000000..08151f4 --- /dev/null +++ b/library/k8s/api/policy/v1/pod_disruption_budget.k @@ -0,0 +1,34 @@ +""" +This is the pod_disruption_budget module in k8s.api.policy.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PodDisruptionBudget: + """ + PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods + + Attributes + ---------- + apiVersion : str, default is "policy/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "PodDisruptionBudget", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : PodDisruptionBudgetSpec, default is Undefined, optional + Specification of the desired behavior of the PodDisruptionBudget. + """ + + + apiVersion: "policy/v1" = "policy/v1" + + kind: "PodDisruptionBudget" = "PodDisruptionBudget" + + metadata?: v1.ObjectMeta + + spec?: PodDisruptionBudgetSpec + + diff --git a/library/k8s/api/policy/v1/pod_disruption_budget_list.k b/library/k8s/api/policy/v1/pod_disruption_budget_list.k new file mode 100644 index 0000000..9075ecd --- /dev/null +++ b/library/k8s/api/policy/v1/pod_disruption_budget_list.k @@ -0,0 +1,34 @@ +""" +This is the pod_disruption_budget_list module in k8s.api.policy.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PodDisruptionBudgetList: + """ + PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + + Attributes + ---------- + apiVersion : str, default is "policy/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [PodDisruptionBudget], default is Undefined, required + Items is a list of PodDisruptionBudgets + kind : str, default is "PodDisruptionBudgetList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "policy/v1" = "policy/v1" + + items: [PodDisruptionBudget] + + kind: "PodDisruptionBudgetList" = "PodDisruptionBudgetList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/policy/v1/pod_disruption_budget_spec.k b/library/k8s/api/policy/v1/pod_disruption_budget_spec.k new file mode 100644 index 0000000..e32c316 --- /dev/null +++ b/library/k8s/api/policy/v1/pod_disruption_budget_spec.k @@ -0,0 +1,44 @@ +""" +This is the pod_disruption_budget_spec module in k8s.api.policy.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PodDisruptionBudgetSpec: + """ + PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. + + Attributes + ---------- + maxUnavailable : int | str, default is Undefined, optional + An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". + minAvailable : int | str, default is Undefined, optional + An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". + selector : v1.LabelSelector, default is Undefined, optional + Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace. + unhealthyPodEvictionPolicy : str, default is Undefined, optional + UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type="Ready",status="True". + + Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. + + IfHealthyBudget policy means that running pods (status.phase="Running"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. + + AlwaysAllow policy means that all running pods (status.phase="Running"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. + + Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. + + This field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). + """ + + + maxUnavailable?: int | str + + minAvailable?: int | str + + selector?: v1.LabelSelector + + unhealthyPodEvictionPolicy?: str + + diff --git a/library/k8s/api/policy/v1/pod_disruption_budget_status.k b/library/k8s/api/policy/v1/pod_disruption_budget_status.k new file mode 100644 index 0000000..58d0ef8 --- /dev/null +++ b/library/k8s/api/policy/v1/pod_disruption_budget_status.k @@ -0,0 +1,54 @@ +""" +This is the pod_disruption_budget_status module in k8s.api.policy.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PodDisruptionBudgetStatus: + """ + PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. + + Attributes + ---------- + conditions : [v1.Condition], default is Undefined, optional + Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute + the number of allowed disruptions. Therefore no disruptions are + allowed and the status of the condition will be False. + - InsufficientPods: The number of pods are either at or below the number + required by the PodDisruptionBudget. No disruptions are + allowed and the status of the condition will be False. + - SufficientPods: There are more pods than required by the PodDisruptionBudget. + The condition will be True, and the number of allowed + disruptions are provided by the disruptionsAllowed property. + currentHealthy : int, default is Undefined, required + current number of healthy pods + desiredHealthy : int, default is Undefined, required + minimum desired number of healthy pods + disruptedPods : {str:str}, default is Undefined, optional + DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. + disruptionsAllowed : int, default is Undefined, required + Number of pod disruptions that are currently allowed. + expectedPods : int, default is Undefined, required + total number of pods counted by this disruption budget + observedGeneration : int, default is Undefined, optional + Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. + """ + + + conditions?: [v1.Condition] + + currentHealthy: int + + desiredHealthy: int + + disruptedPods?: {str:str} + + disruptionsAllowed: int + + expectedPods: int + + observedGeneration?: int + + diff --git a/library/k8s/api/rbac/v1/aggregation_rule.k b/library/k8s/api/rbac/v1/aggregation_rule.k new file mode 100644 index 0000000..c7969ee --- /dev/null +++ b/library/k8s/api/rbac/v1/aggregation_rule.k @@ -0,0 +1,22 @@ +""" +This is the aggregation_rule module in k8s.api.rbac.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema AggregationRule: + """ + AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole + + Attributes + ---------- + clusterRoleSelectors : [v1.LabelSelector], default is Undefined, optional + ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + """ + + + clusterRoleSelectors?: [v1.LabelSelector] + + diff --git a/library/k8s/api/rbac/v1/cluster_role.k b/library/k8s/api/rbac/v1/cluster_role.k new file mode 100644 index 0000000..fcf42d1 --- /dev/null +++ b/library/k8s/api/rbac/v1/cluster_role.k @@ -0,0 +1,38 @@ +""" +This is the cluster_role module in k8s.api.rbac.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ClusterRole: + """ + ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. + + Attributes + ---------- + aggregationRule : AggregationRule, default is Undefined, optional + AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + apiVersion : str, default is "rbac.authorization.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "ClusterRole", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. + rules : [PolicyRule], default is Undefined, optional + Rules holds all the PolicyRules for this ClusterRole + """ + + + aggregationRule?: AggregationRule + + apiVersion: "rbac.authorization.k8s.io/v1" = "rbac.authorization.k8s.io/v1" + + kind: "ClusterRole" = "ClusterRole" + + metadata?: v1.ObjectMeta + + rules?: [PolicyRule] + + diff --git a/library/k8s/api/rbac/v1/cluster_role_binding.k b/library/k8s/api/rbac/v1/cluster_role_binding.k new file mode 100644 index 0000000..e670588 --- /dev/null +++ b/library/k8s/api/rbac/v1/cluster_role_binding.k @@ -0,0 +1,38 @@ +""" +This is the cluster_role_binding module in k8s.api.rbac.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ClusterRoleBinding: + """ + ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. + + Attributes + ---------- + apiVersion : str, default is "rbac.authorization.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "ClusterRoleBinding", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. + roleRef : RoleRef, default is Undefined, required + RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + subjects : [Subject], default is Undefined, optional + Subjects holds references to the objects the role applies to. + """ + + + apiVersion: "rbac.authorization.k8s.io/v1" = "rbac.authorization.k8s.io/v1" + + kind: "ClusterRoleBinding" = "ClusterRoleBinding" + + metadata?: v1.ObjectMeta + + roleRef: RoleRef + + subjects?: [Subject] + + diff --git a/library/k8s/api/rbac/v1/cluster_role_binding_list.k b/library/k8s/api/rbac/v1/cluster_role_binding_list.k new file mode 100644 index 0000000..fd53865 --- /dev/null +++ b/library/k8s/api/rbac/v1/cluster_role_binding_list.k @@ -0,0 +1,34 @@ +""" +This is the cluster_role_binding_list module in k8s.api.rbac.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ClusterRoleBindingList: + """ + ClusterRoleBindingList is a collection of ClusterRoleBindings + + Attributes + ---------- + apiVersion : str, default is "rbac.authorization.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ClusterRoleBinding], default is Undefined, required + Items is a list of ClusterRoleBindings + kind : str, default is "ClusterRoleBindingList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard object's metadata. + """ + + + apiVersion: "rbac.authorization.k8s.io/v1" = "rbac.authorization.k8s.io/v1" + + items: [ClusterRoleBinding] + + kind: "ClusterRoleBindingList" = "ClusterRoleBindingList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/rbac/v1/cluster_role_list.k b/library/k8s/api/rbac/v1/cluster_role_list.k new file mode 100644 index 0000000..8be0e1a --- /dev/null +++ b/library/k8s/api/rbac/v1/cluster_role_list.k @@ -0,0 +1,34 @@ +""" +This is the cluster_role_list module in k8s.api.rbac.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ClusterRoleList: + """ + ClusterRoleList is a collection of ClusterRoles + + Attributes + ---------- + apiVersion : str, default is "rbac.authorization.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ClusterRole], default is Undefined, required + Items is a list of ClusterRoles + kind : str, default is "ClusterRoleList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard object's metadata. + """ + + + apiVersion: "rbac.authorization.k8s.io/v1" = "rbac.authorization.k8s.io/v1" + + items: [ClusterRole] + + kind: "ClusterRoleList" = "ClusterRoleList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/rbac/v1/policy_rule.k b/library/k8s/api/rbac/v1/policy_rule.k new file mode 100644 index 0000000..5e54bd5 --- /dev/null +++ b/library/k8s/api/rbac/v1/policy_rule.k @@ -0,0 +1,37 @@ +""" +This is the policy_rule module in k8s.api.rbac.v1 package. +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 PolicyRule: + """ + PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. + + Attributes + ---------- + apiGroups : [str], default is Undefined, optional + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. + nonResourceURLs : [str], default is Undefined, optional + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + resourceNames : [str], default is Undefined, optional + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + resources : [str], default is Undefined, optional + Resources is a list of resources this rule applies to. '*' represents all resources. + verbs : [str], default is Undefined, required + Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. + """ + + + apiGroups?: [str] + + nonResourceURLs?: [str] + + resourceNames?: [str] + + resources?: [str] + + verbs: [str] + + diff --git a/library/k8s/api/rbac/v1/role.k b/library/k8s/api/rbac/v1/role.k new file mode 100644 index 0000000..f72c1ab --- /dev/null +++ b/library/k8s/api/rbac/v1/role.k @@ -0,0 +1,34 @@ +""" +This is the role module in k8s.api.rbac.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema Role: + """ + Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. + + Attributes + ---------- + apiVersion : str, default is "rbac.authorization.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "Role", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. + rules : [PolicyRule], default is Undefined, optional + Rules holds all the PolicyRules for this Role + """ + + + apiVersion: "rbac.authorization.k8s.io/v1" = "rbac.authorization.k8s.io/v1" + + kind: "Role" = "Role" + + metadata?: v1.ObjectMeta + + rules?: [PolicyRule] + + diff --git a/library/k8s/api/rbac/v1/role_binding.k b/library/k8s/api/rbac/v1/role_binding.k new file mode 100644 index 0000000..a305e8b --- /dev/null +++ b/library/k8s/api/rbac/v1/role_binding.k @@ -0,0 +1,38 @@ +""" +This is the role_binding module in k8s.api.rbac.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema RoleBinding: + """ + RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. + + Attributes + ---------- + apiVersion : str, default is "rbac.authorization.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "RoleBinding", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. + roleRef : RoleRef, default is Undefined, required + RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + subjects : [Subject], default is Undefined, optional + Subjects holds references to the objects the role applies to. + """ + + + apiVersion: "rbac.authorization.k8s.io/v1" = "rbac.authorization.k8s.io/v1" + + kind: "RoleBinding" = "RoleBinding" + + metadata?: v1.ObjectMeta + + roleRef: RoleRef + + subjects?: [Subject] + + diff --git a/library/k8s/api/rbac/v1/role_binding_list.k b/library/k8s/api/rbac/v1/role_binding_list.k new file mode 100644 index 0000000..ef8b7fc --- /dev/null +++ b/library/k8s/api/rbac/v1/role_binding_list.k @@ -0,0 +1,34 @@ +""" +This is the role_binding_list module in k8s.api.rbac.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema RoleBindingList: + """ + RoleBindingList is a collection of RoleBindings + + Attributes + ---------- + apiVersion : str, default is "rbac.authorization.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [RoleBinding], default is Undefined, required + Items is a list of RoleBindings + kind : str, default is "RoleBindingList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard object's metadata. + """ + + + apiVersion: "rbac.authorization.k8s.io/v1" = "rbac.authorization.k8s.io/v1" + + items: [RoleBinding] + + kind: "RoleBindingList" = "RoleBindingList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/rbac/v1/role_list.k b/library/k8s/api/rbac/v1/role_list.k new file mode 100644 index 0000000..6e7826e --- /dev/null +++ b/library/k8s/api/rbac/v1/role_list.k @@ -0,0 +1,34 @@ +""" +This is the role_list module in k8s.api.rbac.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema RoleList: + """ + RoleList is a collection of Roles + + Attributes + ---------- + apiVersion : str, default is "rbac.authorization.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [Role], default is Undefined, required + Items is a list of Roles + kind : str, default is "RoleList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard object's metadata. + """ + + + apiVersion: "rbac.authorization.k8s.io/v1" = "rbac.authorization.k8s.io/v1" + + items: [Role] + + kind: "RoleList" = "RoleList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/rbac/v1/role_ref.k b/library/k8s/api/rbac/v1/role_ref.k new file mode 100644 index 0000000..7d4a8d6 --- /dev/null +++ b/library/k8s/api/rbac/v1/role_ref.k @@ -0,0 +1,29 @@ +""" +This is the role_ref module in k8s.api.rbac.v1 package. +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 RoleRef: + """ + RoleRef contains information that points to the role being used + + Attributes + ---------- + apiGroup : str, default is Undefined, required + APIGroup is the group for the resource being referenced + kind : str, default is Undefined, required + Kind is the type of resource being referenced + name : str, default is Undefined, required + Name is the name of resource being referenced + """ + + + apiGroup: str + + kind: str + + name: str + + diff --git a/library/k8s/api/rbac/v1/subject.k b/library/k8s/api/rbac/v1/subject.k new file mode 100644 index 0000000..d1830e7 --- /dev/null +++ b/library/k8s/api/rbac/v1/subject.k @@ -0,0 +1,33 @@ +""" +This is the subject module in k8s.api.rbac.v1 package. +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 Subject: + """ + Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. + + Attributes + ---------- + apiGroup : str, default is Undefined, optional + APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + kind : str, default is Undefined, required + Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + name : str, default is Undefined, required + Name of the object being referenced. + namespace : str, default is Undefined, optional + Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + + + apiGroup?: str + + kind: str + + name: str + + namespace?: str + + diff --git a/library/k8s/api/resource/v1alpha2/allocation_result.k b/library/k8s/api/resource/v1alpha2/allocation_result.k new file mode 100644 index 0000000..e1d5a6f --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/allocation_result.k @@ -0,0 +1,34 @@ +""" +This is the allocation_result module in k8s.api.resource.v1alpha2 package. +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. +""" +import api.core.v1 + + +schema AllocationResult: + """ + AllocationResult contains attributes of an allocated resource. + + Attributes + ---------- + availableOnNodes : v1.NodeSelector, default is Undefined, optional + This field will get set by the resource driver after it has allocated the resource to inform the scheduler where it can schedule Pods using the ResourceClaim. + + Setting this field is optional. If null, the resource is available everywhere. + resourceHandles : [ResourceHandle], default is Undefined, optional + ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed. + + Setting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in. + shareable : bool, default is Undefined, optional + Shareable determines whether the resource supports more than one consumer at a time. + """ + + + availableOnNodes?: v1.NodeSelector + + resourceHandles?: [ResourceHandle] + + shareable?: bool + + diff --git a/library/k8s/api/resource/v1alpha2/pod_scheduling_context.k b/library/k8s/api/resource/v1alpha2/pod_scheduling_context.k new file mode 100644 index 0000000..ff8e77c --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/pod_scheduling_context.k @@ -0,0 +1,36 @@ +""" +This is the pod_scheduling_context module in k8s.api.resource.v1alpha2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PodSchedulingContext: + """ + PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode. + + This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + + Attributes + ---------- + apiVersion : str, default is "resource.k8s.io/v1alpha2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "PodSchedulingContext", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object metadata + spec : PodSchedulingContextSpec, default is Undefined, required + Spec describes where resources for the Pod are needed. + """ + + + apiVersion: "resource.k8s.io/v1alpha2" = "resource.k8s.io/v1alpha2" + + kind: "PodSchedulingContext" = "PodSchedulingContext" + + metadata?: v1.ObjectMeta + + spec: PodSchedulingContextSpec + + diff --git a/library/k8s/api/resource/v1alpha2/pod_scheduling_context_list.k b/library/k8s/api/resource/v1alpha2/pod_scheduling_context_list.k new file mode 100644 index 0000000..5d5a2d8 --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/pod_scheduling_context_list.k @@ -0,0 +1,34 @@ +""" +This is the pod_scheduling_context_list module in k8s.api.resource.v1alpha2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PodSchedulingContextList: + """ + PodSchedulingContextList is a collection of Pod scheduling objects. + + Attributes + ---------- + apiVersion : str, default is "resource.k8s.io/v1alpha2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [PodSchedulingContext], default is Undefined, required + Items is the list of PodSchedulingContext objects. + kind : str, default is "PodSchedulingContextList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata + """ + + + apiVersion: "resource.k8s.io/v1alpha2" = "resource.k8s.io/v1alpha2" + + items: [PodSchedulingContext] + + kind: "PodSchedulingContextList" = "PodSchedulingContextList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/resource/v1alpha2/pod_scheduling_context_spec.k b/library/k8s/api/resource/v1alpha2/pod_scheduling_context_spec.k new file mode 100644 index 0000000..d7828ff --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/pod_scheduling_context_spec.k @@ -0,0 +1,27 @@ +""" +This is the pod_scheduling_context_spec module in k8s.api.resource.v1alpha2 package. +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 PodSchedulingContextSpec: + """ + PodSchedulingContextSpec describes where resources for the Pod are needed. + + Attributes + ---------- + potentialNodes : [str], default is Undefined, optional + PotentialNodes lists nodes where the Pod might be able to run. + + The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced. + selectedNode : str, default is Undefined, optional + SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted. + """ + + + potentialNodes?: [str] + + selectedNode?: str + + diff --git a/library/k8s/api/resource/v1alpha2/pod_scheduling_context_status.k b/library/k8s/api/resource/v1alpha2/pod_scheduling_context_status.k new file mode 100644 index 0000000..448b11c --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/pod_scheduling_context_status.k @@ -0,0 +1,21 @@ +""" +This is the pod_scheduling_context_status module in k8s.api.resource.v1alpha2 package. +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 PodSchedulingContextStatus: + """ + PodSchedulingContextStatus describes where resources for the Pod can be allocated. + + Attributes + ---------- + resourceClaims : [ResourceClaimSchedulingStatus], default is Undefined, optional + ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode. + """ + + + resourceClaims?: [ResourceClaimSchedulingStatus] + + diff --git a/library/k8s/api/resource/v1alpha2/resource_claim.k b/library/k8s/api/resource/v1alpha2/resource_claim.k new file mode 100644 index 0000000..016cd55 --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_claim.k @@ -0,0 +1,36 @@ +""" +This is the resource_claim module in k8s.api.resource.v1alpha2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ResourceClaim: + """ + ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are. + + This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + + Attributes + ---------- + apiVersion : str, default is "resource.k8s.io/v1alpha2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "ResourceClaim", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object metadata + spec : ResourceClaimSpec, default is Undefined, required + Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim. + """ + + + apiVersion: "resource.k8s.io/v1alpha2" = "resource.k8s.io/v1alpha2" + + kind: "ResourceClaim" = "ResourceClaim" + + metadata?: v1.ObjectMeta + + spec: ResourceClaimSpec + + diff --git a/library/k8s/api/resource/v1alpha2/resource_claim_consumer_reference.k b/library/k8s/api/resource/v1alpha2/resource_claim_consumer_reference.k new file mode 100644 index 0000000..96a0b02 --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_claim_consumer_reference.k @@ -0,0 +1,33 @@ +""" +This is the resource_claim_consumer_reference module in k8s.api.resource.v1alpha2 package. +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 ResourceClaimConsumerReference: + """ + ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim. + + Attributes + ---------- + apiGroup : str, default is Undefined, optional + APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. + name : str, default is Undefined, required + Name is the name of resource being referenced. + resource : str, default is Undefined, required + Resource is the type of resource being referenced, for example "pods". + uid : str, default is Undefined, required + UID identifies exactly one incarnation of the resource. + """ + + + apiGroup?: str + + name: str + + resource: str + + uid: str + + diff --git a/library/k8s/api/resource/v1alpha2/resource_claim_list.k b/library/k8s/api/resource/v1alpha2/resource_claim_list.k new file mode 100644 index 0000000..c16c381 --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_claim_list.k @@ -0,0 +1,34 @@ +""" +This is the resource_claim_list module in k8s.api.resource.v1alpha2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ResourceClaimList: + """ + ResourceClaimList is a collection of claims. + + Attributes + ---------- + apiVersion : str, default is "resource.k8s.io/v1alpha2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ResourceClaim], default is Undefined, required + Items is the list of resource claims. + kind : str, default is "ResourceClaimList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata + """ + + + apiVersion: "resource.k8s.io/v1alpha2" = "resource.k8s.io/v1alpha2" + + items: [ResourceClaim] + + kind: "ResourceClaimList" = "ResourceClaimList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/resource/v1alpha2/resource_claim_parameters_reference.k b/library/k8s/api/resource/v1alpha2/resource_claim_parameters_reference.k new file mode 100644 index 0000000..69c328b --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_claim_parameters_reference.k @@ -0,0 +1,29 @@ +""" +This is the resource_claim_parameters_reference module in k8s.api.resource.v1alpha2 package. +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 ResourceClaimParametersReference: + """ + ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim. + + Attributes + ---------- + apiGroup : str, default is Undefined, optional + APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. + kind : str, default is Undefined, required + Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example "ConfigMap". + name : str, default is Undefined, required + Name is the name of resource being referenced. + """ + + + apiGroup?: str + + kind: str + + name: str + + diff --git a/library/k8s/api/resource/v1alpha2/resource_claim_scheduling_status.k b/library/k8s/api/resource/v1alpha2/resource_claim_scheduling_status.k new file mode 100644 index 0000000..0297b36 --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_claim_scheduling_status.k @@ -0,0 +1,27 @@ +""" +This is the resource_claim_scheduling_status module in k8s.api.resource.v1alpha2 package. +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 ResourceClaimSchedulingStatus: + """ + ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode. + + Attributes + ---------- + name : str, default is Undefined, optional + Name matches the pod.spec.resourceClaims[*].Name field. + unsuitableNodes : [str], default is Undefined, optional + UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for. + + The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced. + """ + + + name?: str + + unsuitableNodes?: [str] + + diff --git a/library/k8s/api/resource/v1alpha2/resource_claim_spec.k b/library/k8s/api/resource/v1alpha2/resource_claim_spec.k new file mode 100644 index 0000000..7b9c98c --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_claim_spec.k @@ -0,0 +1,31 @@ +""" +This is the resource_claim_spec module in k8s.api.resource.v1alpha2 package. +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 ResourceClaimSpec: + """ + ResourceClaimSpec defines how a resource is to be allocated. + + Attributes + ---------- + allocationMode : str, default is Undefined, optional + Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default. + parametersRef : ResourceClaimParametersReference, default is Undefined, optional + ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim. + + The object must be in the same namespace as the ResourceClaim. + resourceClassName : str, default is Undefined, required + ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment. + """ + + + allocationMode?: str + + parametersRef?: ResourceClaimParametersReference + + resourceClassName: str + + diff --git a/library/k8s/api/resource/v1alpha2/resource_claim_status.k b/library/k8s/api/resource/v1alpha2/resource_claim_status.k new file mode 100644 index 0000000..bb21661 --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_claim_status.k @@ -0,0 +1,39 @@ +""" +This is the resource_claim_status module in k8s.api.resource.v1alpha2 package. +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 ResourceClaimStatus: + """ + ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are. + + Attributes + ---------- + allocation : AllocationResult, default is Undefined, optional + Allocation is set by the resource driver once a resource or set of resources has been allocated successfully. If this is not specified, the resources have not been allocated yet. + deallocationRequested : bool, default is Undefined, optional + DeallocationRequested indicates that a ResourceClaim is to be deallocated. + + The driver then must deallocate this claim and reset the field together with clearing the Allocation field. + + While DeallocationRequested is set, no new consumers may be added to ReservedFor. + driverName : str, default is Undefined, optional + DriverName is a copy of the driver name from the ResourceClass at the time when allocation started. + reservedFor : [ResourceClaimConsumerReference], default is Undefined, optional + ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. + + There can be at most 32 such reservations. This may get increased in the future, but not reduced. + """ + + + allocation?: AllocationResult + + deallocationRequested?: bool + + driverName?: str + + reservedFor?: [ResourceClaimConsumerReference] + + diff --git a/library/k8s/api/resource/v1alpha2/resource_claim_template.k b/library/k8s/api/resource/v1alpha2/resource_claim_template.k new file mode 100644 index 0000000..e35780a --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_claim_template.k @@ -0,0 +1,36 @@ +""" +This is the resource_claim_template module in k8s.api.resource.v1alpha2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ResourceClaimTemplate: + """ + ResourceClaimTemplate is used to produce ResourceClaim objects. + + Attributes + ---------- + apiVersion : str, default is "resource.k8s.io/v1alpha2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "ResourceClaimTemplate", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object metadata + spec : ResourceClaimTemplateSpec, default is Undefined, required + Describes the ResourceClaim that is to be generated. + + This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore. + """ + + + apiVersion: "resource.k8s.io/v1alpha2" = "resource.k8s.io/v1alpha2" + + kind: "ResourceClaimTemplate" = "ResourceClaimTemplate" + + metadata?: v1.ObjectMeta + + spec: ResourceClaimTemplateSpec + + diff --git a/library/k8s/api/resource/v1alpha2/resource_claim_template_list.k b/library/k8s/api/resource/v1alpha2/resource_claim_template_list.k new file mode 100644 index 0000000..bb8639c --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_claim_template_list.k @@ -0,0 +1,34 @@ +""" +This is the resource_claim_template_list module in k8s.api.resource.v1alpha2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ResourceClaimTemplateList: + """ + ResourceClaimTemplateList is a collection of claim templates. + + Attributes + ---------- + apiVersion : str, default is "resource.k8s.io/v1alpha2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ResourceClaimTemplate], default is Undefined, required + Items is the list of resource claim templates. + kind : str, default is "ResourceClaimTemplateList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata + """ + + + apiVersion: "resource.k8s.io/v1alpha2" = "resource.k8s.io/v1alpha2" + + items: [ResourceClaimTemplate] + + kind: "ResourceClaimTemplateList" = "ResourceClaimTemplateList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/resource/v1alpha2/resource_claim_template_spec.k b/library/k8s/api/resource/v1alpha2/resource_claim_template_spec.k new file mode 100644 index 0000000..9ac79c8 --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_claim_template_spec.k @@ -0,0 +1,26 @@ +""" +This is the resource_claim_template_spec module in k8s.api.resource.v1alpha2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ResourceClaimTemplateSpec: + """ + ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. + + Attributes + ---------- + metadata : v1.ObjectMeta, default is Undefined, optional + ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation. + spec : ResourceClaimSpec, default is Undefined, required + Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here. + """ + + + metadata?: v1.ObjectMeta + + spec: ResourceClaimSpec + + diff --git a/library/k8s/api/resource/v1alpha2/resource_class.k b/library/k8s/api/resource/v1alpha2/resource_class.k new file mode 100644 index 0000000..73a8fe0 --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_class.k @@ -0,0 +1,49 @@ +""" +This is the resource_class module in k8s.api.resource.v1alpha2 package. +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. +""" +import api.core.v1 as coreV1 +import apimachinery.pkg.apis.meta.v1 + + +schema ResourceClass: + """ + ResourceClass is used by administrators to influence how resources are allocated. + + This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + + Attributes + ---------- + apiVersion : str, default is "resource.k8s.io/v1alpha2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + driverName : str, default is Undefined, required + DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class. + + Resource drivers have a unique name in forward domain order (acme.example.com). + kind : str, default is "ResourceClass", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object metadata + parametersRef : ResourceClassParametersReference, default is Undefined, optional + ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec. + suitableNodes : coreV1.NodeSelector, default is Undefined, optional + Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet. + + Setting this field is optional. If null, all nodes are candidates. + """ + + + apiVersion: "resource.k8s.io/v1alpha2" = "resource.k8s.io/v1alpha2" + + driverName: str + + kind: "ResourceClass" = "ResourceClass" + + metadata?: v1.ObjectMeta + + parametersRef?: ResourceClassParametersReference + + suitableNodes?: coreV1.NodeSelector + + diff --git a/library/k8s/api/resource/v1alpha2/resource_class_list.k b/library/k8s/api/resource/v1alpha2/resource_class_list.k new file mode 100644 index 0000000..1dd6c5b --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_class_list.k @@ -0,0 +1,34 @@ +""" +This is the resource_class_list module in k8s.api.resource.v1alpha2 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema ResourceClassList: + """ + ResourceClassList is a collection of classes. + + Attributes + ---------- + apiVersion : str, default is "resource.k8s.io/v1alpha2", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [ResourceClass], default is Undefined, required + Items is the list of resource classes. + kind : str, default is "ResourceClassList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata + """ + + + apiVersion: "resource.k8s.io/v1alpha2" = "resource.k8s.io/v1alpha2" + + items: [ResourceClass] + + kind: "ResourceClassList" = "ResourceClassList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/resource/v1alpha2/resource_class_parameters_reference.k b/library/k8s/api/resource/v1alpha2/resource_class_parameters_reference.k new file mode 100644 index 0000000..5558c10 --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_class_parameters_reference.k @@ -0,0 +1,33 @@ +""" +This is the resource_class_parameters_reference module in k8s.api.resource.v1alpha2 package. +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 ResourceClassParametersReference: + """ + ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass. + + Attributes + ---------- + apiGroup : str, default is Undefined, optional + APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. + kind : str, default is Undefined, required + Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata. + name : str, default is Undefined, required + Name is the name of resource being referenced. + namespace : str, default is Undefined, optional + Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources. + """ + + + apiGroup?: str + + kind: str + + name: str + + namespace?: str + + diff --git a/library/k8s/api/resource/v1alpha2/resource_handle.k b/library/k8s/api/resource/v1alpha2/resource_handle.k new file mode 100644 index 0000000..3d7a520 --- /dev/null +++ b/library/k8s/api/resource/v1alpha2/resource_handle.k @@ -0,0 +1,27 @@ +""" +This is the resource_handle module in k8s.api.resource.v1alpha2 package. +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 ResourceHandle: + """ + ResourceHandle holds opaque resource data for processing by a specific kubelet plugin. + + Attributes + ---------- + data : str, default is Undefined, optional + Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle. + + The maximum size of this field is 16KiB. This may get increased in the future, but not reduced. + driverName : str, default is Undefined, optional + DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in. + """ + + + data?: str + + driverName?: str + + diff --git a/library/k8s/api/scheduling/v1/priority_class.k b/library/k8s/api/scheduling/v1/priority_class.k new file mode 100644 index 0000000..5011343 --- /dev/null +++ b/library/k8s/api/scheduling/v1/priority_class.k @@ -0,0 +1,46 @@ +""" +This is the priority_class module in k8s.api.scheduling.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PriorityClass: + """ + PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + + Attributes + ---------- + apiVersion : str, default is "scheduling.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + description : str, default is Undefined, optional + description is an arbitrary string that usually provides guidelines on when this priority class should be used. + globalDefault : bool, default is Undefined, optional + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + kind : str, default is "PriorityClass", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + preemptionPolicy : str, default is Undefined, optional + preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. + value : int, default is Undefined, required + value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + + + apiVersion: "scheduling.k8s.io/v1" = "scheduling.k8s.io/v1" + + description?: str + + globalDefault?: bool + + kind: "PriorityClass" = "PriorityClass" + + metadata?: v1.ObjectMeta + + preemptionPolicy?: str + + value: int + + diff --git a/library/k8s/api/scheduling/v1/priority_class_list.k b/library/k8s/api/scheduling/v1/priority_class_list.k new file mode 100644 index 0000000..ff80204 --- /dev/null +++ b/library/k8s/api/scheduling/v1/priority_class_list.k @@ -0,0 +1,34 @@ +""" +This is the priority_class_list module in k8s.api.scheduling.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema PriorityClassList: + """ + PriorityClassList is a collection of priority classes. + + Attributes + ---------- + apiVersion : str, default is "scheduling.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [PriorityClass], default is Undefined, required + items is the list of PriorityClasses + kind : str, default is "PriorityClassList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "scheduling.k8s.io/v1" = "scheduling.k8s.io/v1" + + items: [PriorityClass] + + kind: "PriorityClassList" = "PriorityClassList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/storage/v1/csi_driver.k b/library/k8s/api/storage/v1/csi_driver.k new file mode 100644 index 0000000..36dd1c3 --- /dev/null +++ b/library/k8s/api/storage/v1/csi_driver.k @@ -0,0 +1,34 @@ +""" +This is the csi_driver module in k8s.api.storage.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema CSIDriver: + """ + CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + + Attributes + ---------- + apiVersion : str, default is "storage.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "CSIDriver", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : CSIDriverSpec, default is Undefined, required + spec represents the specification of the CSI Driver. + """ + + + apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" + + kind: "CSIDriver" = "CSIDriver" + + metadata?: v1.ObjectMeta + + spec: CSIDriverSpec + + diff --git a/library/k8s/api/storage/v1/csi_driver_list.k b/library/k8s/api/storage/v1/csi_driver_list.k new file mode 100644 index 0000000..91531b3 --- /dev/null +++ b/library/k8s/api/storage/v1/csi_driver_list.k @@ -0,0 +1,34 @@ +""" +This is the csi_driver_list module in k8s.api.storage.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema CSIDriverList: + """ + CSIDriverList is a collection of CSIDriver objects. + + Attributes + ---------- + apiVersion : str, default is "storage.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [CSIDriver], default is Undefined, required + items is the list of CSIDriver + kind : str, default is "CSIDriverList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" + + items: [CSIDriver] + + kind: "CSIDriverList" = "CSIDriverList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/storage/v1/csi_driver_spec.k b/library/k8s/api/storage/v1/csi_driver_spec.k new file mode 100644 index 0000000..68c2cb5 --- /dev/null +++ b/library/k8s/api/storage/v1/csi_driver_spec.k @@ -0,0 +1,92 @@ +""" +This is the csi_driver_spec module in k8s.api.storage.v1 package. +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 CSIDriverSpec: + """ + CSIDriverSpec is the specification of a CSIDriver. + + Attributes + ---------- + attachRequired : bool, default is Undefined, optional + attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + + This field is immutable. + fsGroupPolicy : str, default is Undefined, optional + fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. + + This field is immutable. + + Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. + podInfoOnMount : bool, default is Undefined, optional + podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. + + The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. + + The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume + defined by a CSIVolumeSource, otherwise "false" + + "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. + + This field is immutable. + requiresRepublish : bool, default is Undefined, optional + requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. + + Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. + seLinuxMount : bool, default is Undefined, optional + seLinuxMount specifies if the CSI driver supports "-o context" mount option. + + When "true", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. + + When "false", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. + + Default is "false". + storageCapacity : bool, default is Undefined, optional + storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true. + + The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object. + + Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. + + This field was immutable in Kubernetes <= 1.22 and now is mutable. + tokenRequests : [TokenRequest], default is Undefined, optional + tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: "csi.storage.k8s.io/serviceAccount.tokens": { + "": { + "token": , + "expirationTimestamp": , + }, + ... + } + + Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically. + volumeLifecycleModes : [str], default is Undefined, optional + volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. + + The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. + + For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. + + This field is beta. This field is immutable. + """ + + + attachRequired?: bool + + fsGroupPolicy?: str + + podInfoOnMount?: bool + + requiresRepublish?: bool + + seLinuxMount?: bool + + storageCapacity?: bool + + tokenRequests?: [TokenRequest] + + volumeLifecycleModes?: [str] + + diff --git a/library/k8s/api/storage/v1/csi_node.k b/library/k8s/api/storage/v1/csi_node.k new file mode 100644 index 0000000..097308e --- /dev/null +++ b/library/k8s/api/storage/v1/csi_node.k @@ -0,0 +1,34 @@ +""" +This is the csi_node module in k8s.api.storage.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema CSINode: + """ + CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + + Attributes + ---------- + apiVersion : str, default is "storage.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "CSINode", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. metadata.name must be the Kubernetes node name. + spec : CSINodeSpec, default is Undefined, required + spec is the specification of CSINode + """ + + + apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" + + kind: "CSINode" = "CSINode" + + metadata?: v1.ObjectMeta + + spec: CSINodeSpec + + diff --git a/library/k8s/api/storage/v1/csi_node_driver.k b/library/k8s/api/storage/v1/csi_node_driver.k new file mode 100644 index 0000000..6501879 --- /dev/null +++ b/library/k8s/api/storage/v1/csi_node_driver.k @@ -0,0 +1,33 @@ +""" +This is the csi_node_driver module in k8s.api.storage.v1 package. +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 CSINodeDriver: + """ + CSINodeDriver holds information about the specification of one CSI driver installed on a node + + Attributes + ---------- + allocatable : VolumeNodeResources, default is Undefined, optional + allocatable represents the volume resources of a node that are available for scheduling. This field is beta. + name : str, default is Undefined, required + name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + nodeID : str, default is Undefined, required + nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. + topologyKeys : [str], default is Undefined, optional + topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + """ + + + allocatable?: VolumeNodeResources + + name: str + + nodeID: str + + topologyKeys?: [str] + + diff --git a/library/k8s/api/storage/v1/csi_node_list.k b/library/k8s/api/storage/v1/csi_node_list.k new file mode 100644 index 0000000..ce5793c --- /dev/null +++ b/library/k8s/api/storage/v1/csi_node_list.k @@ -0,0 +1,34 @@ +""" +This is the csi_node_list module in k8s.api.storage.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema CSINodeList: + """ + CSINodeList is a collection of CSINode objects. + + Attributes + ---------- + apiVersion : str, default is "storage.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [CSINode], default is Undefined, required + items is the list of CSINode + kind : str, default is "CSINodeList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" + + items: [CSINode] + + kind: "CSINodeList" = "CSINodeList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/storage/v1/csi_node_spec.k b/library/k8s/api/storage/v1/csi_node_spec.k new file mode 100644 index 0000000..8cd1e55 --- /dev/null +++ b/library/k8s/api/storage/v1/csi_node_spec.k @@ -0,0 +1,21 @@ +""" +This is the csi_node_spec module in k8s.api.storage.v1 package. +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 CSINodeSpec: + """ + CSINodeSpec holds information about the specification of all CSI drivers installed on a node + + Attributes + ---------- + drivers : [CSINodeDriver], default is Undefined, required + drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + """ + + + drivers: [CSINodeDriver] + + diff --git a/library/k8s/api/storage/v1/csi_storage_capacity.k b/library/k8s/api/storage/v1/csi_storage_capacity.k new file mode 100644 index 0000000..1a098e0 --- /dev/null +++ b/library/k8s/api/storage/v1/csi_storage_capacity.k @@ -0,0 +1,62 @@ +""" +This is the csi_storage_capacity module in k8s.api.storage.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema CSIStorageCapacity: + """ + CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. + + For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" + + The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero + + The producer of these objects can decide which approach is more suitable. + + They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. + + Attributes + ---------- + apiVersion : str, default is "storage.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + capacity : str, default is Undefined, optional + capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + + The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable. + kind : str, default is "CSIStorageCapacity", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + maximumVolumeSize : str, default is Undefined, optional + maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + + This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name. + + Objects are namespaced. + + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + nodeTopology : v1.LabelSelector, default is Undefined, optional + nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. + storageClassName : str, default is Undefined, required + storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. + """ + + + apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" + + capacity?: str + + kind: "CSIStorageCapacity" = "CSIStorageCapacity" + + maximumVolumeSize?: str + + metadata?: v1.ObjectMeta + + nodeTopology?: v1.LabelSelector + + storageClassName: str + + diff --git a/library/k8s/api/storage/v1/csi_storage_capacity_list.k b/library/k8s/api/storage/v1/csi_storage_capacity_list.k new file mode 100644 index 0000000..0b95b42 --- /dev/null +++ b/library/k8s/api/storage/v1/csi_storage_capacity_list.k @@ -0,0 +1,34 @@ +""" +This is the csi_storage_capacity_list module in k8s.api.storage.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema CSIStorageCapacityList: + """ + CSIStorageCapacityList is a collection of CSIStorageCapacity objects. + + Attributes + ---------- + apiVersion : str, default is "storage.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [CSIStorageCapacity], default is Undefined, required + items is the list of CSIStorageCapacity objects. + kind : str, default is "CSIStorageCapacityList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" + + items: [CSIStorageCapacity] + + kind: "CSIStorageCapacityList" = "CSIStorageCapacityList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/storage/v1/storage_class.k b/library/k8s/api/storage/v1/storage_class.k new file mode 100644 index 0000000..ba7a666 --- /dev/null +++ b/library/k8s/api/storage/v1/storage_class.k @@ -0,0 +1,61 @@ +""" +This is the storage_class module in k8s.api.storage.v1 package. +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. +""" +import api.core.v1 +import apimachinery.pkg.apis.meta.v1 as metaV1 + + +schema StorageClass: + """ + StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. + + StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + + Attributes + ---------- + allowVolumeExpansion : bool, default is Undefined, optional + allowVolumeExpansion shows whether the storage class allow volume expand. + allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + apiVersion : str, default is "storage.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "StorageClass", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : metaV1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + mountOptions : [str], default is Undefined, optional + mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + parameters : {str:str}, default is Undefined, optional + parameters holds the parameters for the provisioner that should create volumes of this storage class. + provisioner : str, default is Undefined, required + provisioner indicates the type of the provisioner. + reclaimPolicy : str, default is Undefined, optional + reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete. + volumeBindingMode : str, default is Undefined, optional + volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """ + + + allowVolumeExpansion?: bool + + allowedTopologies?: [v1.TopologySelectorTerm] + + apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" + + kind: "StorageClass" = "StorageClass" + + metadata?: metaV1.ObjectMeta + + mountOptions?: [str] + + parameters?: {str:str} + + provisioner: str + + reclaimPolicy?: str + + volumeBindingMode?: str + + diff --git a/library/k8s/api/storage/v1/storage_class_list.k b/library/k8s/api/storage/v1/storage_class_list.k new file mode 100644 index 0000000..9644734 --- /dev/null +++ b/library/k8s/api/storage/v1/storage_class_list.k @@ -0,0 +1,34 @@ +""" +This is the storage_class_list module in k8s.api.storage.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema StorageClassList: + """ + StorageClassList is a collection of storage classes. + + Attributes + ---------- + apiVersion : str, default is "storage.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [StorageClass], default is Undefined, required + items is the list of StorageClasses + kind : str, default is "StorageClassList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" + + items: [StorageClass] + + kind: "StorageClassList" = "StorageClassList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/storage/v1/token_request.k b/library/k8s/api/storage/v1/token_request.k new file mode 100644 index 0000000..48d4354 --- /dev/null +++ b/library/k8s/api/storage/v1/token_request.k @@ -0,0 +1,25 @@ +""" +This is the token_request module in k8s.api.storage.v1 package. +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 TokenRequest: + """ + TokenRequest contains parameters of a service account token. + + Attributes + ---------- + audience : str, default is Undefined, required + audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver. + expirationSeconds : int, default is Undefined, optional + expirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec". + """ + + + audience: str + + expirationSeconds?: int + + diff --git a/library/k8s/api/storage/v1/volume_attachment.k b/library/k8s/api/storage/v1/volume_attachment.k new file mode 100644 index 0000000..8014f40 --- /dev/null +++ b/library/k8s/api/storage/v1/volume_attachment.k @@ -0,0 +1,36 @@ +""" +This is the volume_attachment module in k8s.api.storage.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema VolumeAttachment: + """ + VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + + VolumeAttachment objects are non-namespaced. + + Attributes + ---------- + apiVersion : str, default is "storage.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "VolumeAttachment", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : VolumeAttachmentSpec, default is Undefined, required + spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """ + + + apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" + + kind: "VolumeAttachment" = "VolumeAttachment" + + metadata?: v1.ObjectMeta + + spec: VolumeAttachmentSpec + + diff --git a/library/k8s/api/storage/v1/volume_attachment_list.k b/library/k8s/api/storage/v1/volume_attachment_list.k new file mode 100644 index 0000000..d8a605d --- /dev/null +++ b/library/k8s/api/storage/v1/volume_attachment_list.k @@ -0,0 +1,34 @@ +""" +This is the volume_attachment_list module in k8s.api.storage.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema VolumeAttachmentList: + """ + VolumeAttachmentList is a collection of VolumeAttachment objects. + + Attributes + ---------- + apiVersion : str, default is "storage.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [VolumeAttachment], default is Undefined, required + items is the list of VolumeAttachments + kind : str, default is "VolumeAttachmentList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" + + items: [VolumeAttachment] + + kind: "VolumeAttachmentList" = "VolumeAttachmentList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/api/storage/v1/volume_attachment_source.k b/library/k8s/api/storage/v1/volume_attachment_source.k new file mode 100644 index 0000000..0926219 --- /dev/null +++ b/library/k8s/api/storage/v1/volume_attachment_source.k @@ -0,0 +1,26 @@ +""" +This is the volume_attachment_source module in k8s.api.storage.v1 package. +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. +""" +import api.core.v1 + + +schema VolumeAttachmentSource: + """ + VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. + + Attributes + ---------- + inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. + persistentVolumeName : str, default is Undefined, optional + persistentVolumeName represents the name of the persistent volume to attach. + """ + + + inlineVolumeSpec?: v1.PersistentVolumeSpec + + persistentVolumeName?: str + + diff --git a/library/k8s/api/storage/v1/volume_attachment_spec.k b/library/k8s/api/storage/v1/volume_attachment_spec.k new file mode 100644 index 0000000..5765f2c --- /dev/null +++ b/library/k8s/api/storage/v1/volume_attachment_spec.k @@ -0,0 +1,29 @@ +""" +This is the volume_attachment_spec module in k8s.api.storage.v1 package. +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 VolumeAttachmentSpec: + """ + VolumeAttachmentSpec is the specification of a VolumeAttachment request. + + Attributes + ---------- + attacher : str, default is Undefined, required + attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + nodeName : str, default is Undefined, required + nodeName represents the node that the volume should be attached to. + source : VolumeAttachmentSource, default is Undefined, required + source represents the volume that should be attached. + """ + + + attacher: str + + nodeName: str + + source: VolumeAttachmentSource + + diff --git a/library/k8s/api/storage/v1/volume_attachment_status.k b/library/k8s/api/storage/v1/volume_attachment_status.k new file mode 100644 index 0000000..b4fe559 --- /dev/null +++ b/library/k8s/api/storage/v1/volume_attachment_status.k @@ -0,0 +1,33 @@ +""" +This is the volume_attachment_status module in k8s.api.storage.v1 package. +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 VolumeAttachmentStatus: + """ + VolumeAttachmentStatus is the status of a VolumeAttachment request. + + Attributes + ---------- + attachError : VolumeError, default is Undefined, optional + attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + attached : bool, default is Undefined, required + attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + attachmentMetadata : {str:str}, default is Undefined, optional + attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + detachError : VolumeError, default is Undefined, optional + detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + """ + + + attachError?: VolumeError + + attached: bool + + attachmentMetadata?: {str:str} + + detachError?: VolumeError + + diff --git a/library/k8s/api/storage/v1/volume_error.k b/library/k8s/api/storage/v1/volume_error.k new file mode 100644 index 0000000..146e4a3 --- /dev/null +++ b/library/k8s/api/storage/v1/volume_error.k @@ -0,0 +1,25 @@ +""" +This is the volume_error module in k8s.api.storage.v1 package. +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 VolumeError: + """ + VolumeError captures an error encountered during a volume operation. + + Attributes + ---------- + message : str, default is Undefined, optional + message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. + time : str, default is Undefined, optional + time represents the time the error was encountered. + """ + + + message?: str + + time?: str + + diff --git a/library/k8s/api/storage/v1/volume_node_resources.k b/library/k8s/api/storage/v1/volume_node_resources.k new file mode 100644 index 0000000..5960ed4 --- /dev/null +++ b/library/k8s/api/storage/v1/volume_node_resources.k @@ -0,0 +1,21 @@ +""" +This is the volume_node_resources module in k8s.api.storage.v1 package. +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 VolumeNodeResources: + """ + VolumeNodeResources is a set of resource limits for scheduling of volumes. + + Attributes + ---------- + count : int, default is Undefined, optional + count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. + """ + + + count?: int + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_column_definition.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_column_definition.k new file mode 100644 index 0000000..bcf0662 --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_column_definition.k @@ -0,0 +1,41 @@ +""" +This is the custom_resource_column_definition module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 CustomResourceColumnDefinition: + """ + CustomResourceColumnDefinition specifies a column for server side printing. + + Attributes + ---------- + description : str, default is Undefined, optional + description is a human readable description of this column. + format : str, default is Undefined, optional + format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + jsonPath : str, default is Undefined, required + jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. + name : str, default is Undefined, required + name is a human readable name for the column. + priority : int, default is Undefined, optional + priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. + $type : str, default is Undefined, required + type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + """ + + + description?: str + + format?: str + + jsonPath: str + + name: str + + priority?: int + + $type: str + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_conversion.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_conversion.k new file mode 100644 index 0000000..248b85c --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_conversion.k @@ -0,0 +1,26 @@ +""" +This is the custom_resource_conversion module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 CustomResourceConversion: + """ + CustomResourceConversion describes how to convert different versions of a CR. + + Attributes + ---------- + strategy : str, default is Undefined, required + strategy specifies how custom resources are converted between versions. Allowed values are: - `"None"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `"Webhook"`: API Server will call to an external webhook to do the conversion. Additional information + is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. + webhook : WebhookConversion, default is Undefined, optional + webhook describes how to call the conversion webhook. Required when `strategy` is set to `"Webhook"`. + """ + + + strategy: str + + webhook?: WebhookConversion + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition.k new file mode 100644 index 0000000..f348f6d --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition.k @@ -0,0 +1,34 @@ +""" +This is the custom_resource_definition module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema CustomResourceDefinition: + """ + CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. + + Attributes + ---------- + apiVersion : str, default is "apiextensions.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "CustomResourceDefinition", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : CustomResourceDefinitionSpec, default is Undefined, required + spec describes how the user wants the resources to appear + """ + + + apiVersion: "apiextensions.k8s.io/v1" = "apiextensions.k8s.io/v1" + + kind: "CustomResourceDefinition" = "CustomResourceDefinition" + + metadata?: v1.ObjectMeta + + spec: CustomResourceDefinitionSpec + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_condition.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_condition.k new file mode 100644 index 0000000..c49f80e --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_condition.k @@ -0,0 +1,37 @@ +""" +This is the custom_resource_definition_condition module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 CustomResourceDefinitionCondition: + """ + CustomResourceDefinitionCondition contains details for the current condition of this pod. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + lastTransitionTime last time the condition transitioned from one status to another. + message : str, default is Undefined, optional + message is a human-readable message indicating details about last transition. + reason : str, default is Undefined, optional + reason is a unique, one-word, CamelCase reason for the condition's last transition. + status : str, default is Undefined, required + status is the status of the condition. Can be True, False, Unknown. + $type : str, default is Undefined, required + type is the type of the condition. Types include Established, NamesAccepted and Terminating. + """ + + + lastTransitionTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_list.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_list.k new file mode 100644 index 0000000..ca3c928 --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_list.k @@ -0,0 +1,34 @@ +""" +This is the custom_resource_definition_list module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema CustomResourceDefinitionList: + """ + CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + + Attributes + ---------- + apiVersion : str, default is "apiextensions.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [CustomResourceDefinition], default is Undefined, required + items list individual CustomResourceDefinition objects + kind : str, default is "CustomResourceDefinitionList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "apiextensions.k8s.io/v1" = "apiextensions.k8s.io/v1" + + items: [CustomResourceDefinition] + + kind: "CustomResourceDefinitionList" = "CustomResourceDefinitionList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_names.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_names.k new file mode 100644 index 0000000..a6fd080 --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_names.k @@ -0,0 +1,41 @@ +""" +This is the custom_resource_definition_names module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 CustomResourceDefinitionNames: + """ + CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition + + Attributes + ---------- + categories : [str], default is Undefined, optional + categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + kind : str, default is Undefined, required + kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + listKind : str, default is Undefined, optional + listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + plural : str, default is Undefined, required + plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + shortNames : [str], default is Undefined, optional + shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + singular : str, default is Undefined, optional + singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + """ + + + categories?: [str] + + kind: str + + listKind?: str + + plural: str + + shortNames?: [str] + + singular?: str + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_spec.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_spec.k new file mode 100644 index 0000000..edda20a --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_spec.k @@ -0,0 +1,41 @@ +""" +This is the custom_resource_definition_spec module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 CustomResourceDefinitionSpec: + """ + CustomResourceDefinitionSpec describes how a user wants their resource to appear + + Attributes + ---------- + conversion : CustomResourceConversion, default is Undefined, optional + conversion defines conversion settings for the CRD. + group : str, default is Undefined, required + group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). + names : CustomResourceDefinitionNames, default is Undefined, required + names specify the resource and kind names for the custom resource. + preserveUnknownFields : bool, default is Undefined, optional + preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details. + scope : str, default is Undefined, required + scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. + versions : [CustomResourceDefinitionVersion], default is Undefined, required + versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + """ + + + conversion?: CustomResourceConversion + + group: str + + names: CustomResourceDefinitionNames + + preserveUnknownFields?: bool + + scope: str + + versions: [CustomResourceDefinitionVersion] + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_status.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_status.k new file mode 100644 index 0000000..5007b6e --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_status.k @@ -0,0 +1,29 @@ +""" +This is the custom_resource_definition_status module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 CustomResourceDefinitionStatus: + """ + CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition + + Attributes + ---------- + acceptedNames : CustomResourceDefinitionNames, default is Undefined, optional + acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. + conditions : [CustomResourceDefinitionCondition], default is Undefined, optional + conditions indicate state for particular aspects of a CustomResourceDefinition + storedVersions : [str], default is Undefined, optional + storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. + """ + + + acceptedNames?: CustomResourceDefinitionNames + + conditions?: [CustomResourceDefinitionCondition] + + storedVersions?: [str] + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_version.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_version.k new file mode 100644 index 0000000..d71d7bd --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_definition_version.k @@ -0,0 +1,49 @@ +""" +This is the custom_resource_definition_version module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 CustomResourceDefinitionVersion: + """ + CustomResourceDefinitionVersion describes a version for CRD. + + Attributes + ---------- + additionalPrinterColumns : [CustomResourceColumnDefinition], default is Undefined, optional + additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. + deprecated : bool, default is Undefined, optional + deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false. + deprecationWarning : str, default is Undefined, optional + deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists. + name : str, default is Undefined, required + name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. + $schema : CustomResourceValidation, default is Undefined, optional + schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. + served : bool, default is Undefined, required + served is a flag enabling/disabling this version from being served via REST APIs + storage : bool, default is Undefined, required + storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. + subresources : CustomResourceSubresources, default is Undefined, optional + subresources specify what subresources this version of the defined custom resource have. + """ + + + additionalPrinterColumns?: [CustomResourceColumnDefinition] + + deprecated?: bool + + deprecationWarning?: str + + name: str + + $schema?: CustomResourceValidation + + served: bool + + storage: bool + + subresources?: CustomResourceSubresources + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_subresource_scale.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_subresource_scale.k new file mode 100644 index 0000000..26678df --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_subresource_scale.k @@ -0,0 +1,29 @@ +""" +This is the custom_resource_subresource_scale module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 CustomResourceSubresourceScale: + """ + CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. + + Attributes + ---------- + labelSelectorPath : str, default is Undefined, optional + labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. + specReplicasPath : str, default is Undefined, required + specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. + statusReplicasPath : str, default is Undefined, required + statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. + """ + + + labelSelectorPath?: str + + specReplicasPath: str + + statusReplicasPath: str + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_subresources.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_subresources.k new file mode 100644 index 0000000..2c080f6 --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_subresources.k @@ -0,0 +1,25 @@ +""" +This is the custom_resource_subresources module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 CustomResourceSubresources: + """ + CustomResourceSubresources defines the status and scale subresources for CustomResources. + + Attributes + ---------- + scale : CustomResourceSubresourceScale, default is Undefined, optional + scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. + status : any, default is Undefined, optional + status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. + """ + + + scale?: CustomResourceSubresourceScale + + status?: any + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_validation.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_validation.k new file mode 100644 index 0000000..df06fd8 --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/custom_resource_validation.k @@ -0,0 +1,21 @@ +""" +This is the custom_resource_validation module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 CustomResourceValidation: + """ + CustomResourceValidation is a list of validation methods for CustomResources. + + Attributes + ---------- + openAPIV3Schema : JSONSchemaProps, default is Undefined, optional + openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. + """ + + + openAPIV3Schema?: JSONSchemaProps + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/external_documentation.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/external_documentation.k new file mode 100644 index 0000000..fb1a330 --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/external_documentation.k @@ -0,0 +1,25 @@ +""" +This is the external_documentation module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 ExternalDocumentation: + """ + ExternalDocumentation allows referencing an external resource for extended documentation. + + Attributes + ---------- + description : str, default is Undefined, optional + description + url : str, default is Undefined, optional + url + """ + + + description?: str + + url?: str + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/json_schema_props.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/json_schema_props.k new file mode 100644 index 0000000..384762a --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/json_schema_props.k @@ -0,0 +1,228 @@ +""" +This is the json_schema_props module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 JSONSchemaProps: + """ + JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). + + Attributes + ---------- + $ref : str, default is Undefined, optional + dollar ref + $schema : str, default is Undefined, optional + dollar schema + additionalItems : any, default is Undefined, optional + JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. + additionalProperties : any, default is Undefined, optional + JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. + allOf : [JSONSchemaProps], default is Undefined, optional + all of + anyOf : [JSONSchemaProps], default is Undefined, optional + any of + default : any, default is Undefined, optional + default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. + definitions : {str:JSONSchemaProps}, default is Undefined, optional + definitions + dependencies : {str:any}, default is Undefined, optional + dependencies + description : str, default is Undefined, optional + description + enum : [any], default is Undefined, optional + enum + example : any, default is Undefined, optional + JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. + exclusiveMaximum : bool, default is Undefined, optional + exclusive maximum + exclusiveMinimum : bool, default is Undefined, optional + exclusive minimum + externalDocs : ExternalDocumentation, default is Undefined, optional + external docs + format : str, default is Undefined, optional + format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: + + - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. + id : str, default is Undefined, optional + id + items : any, default is Undefined, optional + JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. + maxItems : int, default is Undefined, optional + max items + maxLength : int, default is Undefined, optional + max length + maxProperties : int, default is Undefined, optional + max properties + maximum : float, default is Undefined, optional + maximum + minItems : int, default is Undefined, optional + min items + minLength : int, default is Undefined, optional + min length + minProperties : int, default is Undefined, optional + min properties + minimum : float, default is Undefined, optional + minimum + multipleOf : float, default is Undefined, optional + multiple of + $not : JSONSchemaProps, default is Undefined, optional + not + nullable : bool, default is Undefined, optional + nullable + oneOf : [JSONSchemaProps], default is Undefined, optional + one of + pattern : str, default is Undefined, optional + pattern + patternProperties : {str:JSONSchemaProps}, default is Undefined, optional + pattern properties + properties : {str:JSONSchemaProps}, default is Undefined, optional + properties + required : [str], default is Undefined, optional + required + title : str, default is Undefined, optional + title + $type : str, default is Undefined, optional + type + uniqueItems : bool, default is Undefined, optional + unique items + x_kubernetes_embedded_resource : bool, default is Undefined, optional + x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). + x_kubernetes_int_or_string : bool, default is Undefined, optional + x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: + + 1) anyOf: + - type: integer + - type: string + 2) allOf: + - anyOf: + - type: integer + - type: string + - ... zero or more + x_kubernetes_list_map_keys : [str], default is Undefined, optional + x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. + + This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). + + The properties specified must either be required or have a default value, to ensure those properties are present for all list items. + x_kubernetes_list_type : str, default is Undefined, optional + x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: + + 1) `atomic`: the list is treated as a single entity, like a scalar. + Atomic lists will be entirely replaced when updated. This extension + may be used on any type of list (struct, scalar, ...). + 2) `set`: + Sets are lists that must not have multiple items with the same value. Each + value must be a scalar, an object with x-kubernetes-map-type `atomic` or an + array with x-kubernetes-list-type `atomic`. + 3) `map`: + These lists are like maps in that their elements have a non-index key + used to identify them. Order is preserved upon merge. The map tag + must only be used on a list with elements of type object. + Defaults to atomic for arrays. + x_kubernetes_map_type : str, default is Undefined, optional + x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: + + 1) `granular`: + These maps are actual maps (key-value pairs) and each fields are independent + from each other (they can each be manipulated by separate actors). This is + the default behaviour for all maps. + 2) `atomic`: the list is treated as a single entity, like a scalar. + Atomic maps will be entirely replaced when updated. + x_kubernetes_preserve_unknown_fields : bool, default is Undefined, optional + x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. + x_kubernetes_validations : [ValidationRule], default is Undefined, optional + x-kubernetes-validations describes a list of validation rules written in the CEL expression language. This field is an alpha-level. Using this field requires the feature gate `CustomResourceValidationExpressions` to be enabled. + """ + + + $ref?: str + + $schema?: str + + additionalItems?: any + + additionalProperties?: any + + allOf?: [JSONSchemaProps] + + anyOf?: [JSONSchemaProps] + + default?: any + + definitions?: {str:JSONSchemaProps} + + dependencies?: {str:any} + + description?: str + + enum?: [any] + + example?: any + + exclusiveMaximum?: bool + + exclusiveMinimum?: bool + + externalDocs?: ExternalDocumentation + + format?: str + + id?: str + + items?: any + + maxItems?: int + + maxLength?: int + + maxProperties?: int + + maximum?: float + + minItems?: int + + minLength?: int + + minProperties?: int + + minimum?: float + + multipleOf?: float + + $not?: JSONSchemaProps + + nullable?: bool + + oneOf?: [JSONSchemaProps] + + pattern?: str + + patternProperties?: {str:JSONSchemaProps} + + properties?: {str:JSONSchemaProps} + + required?: [str] + + title?: str + + $type?: str + + uniqueItems?: bool + + x_kubernetes_embedded_resource?: bool + + x_kubernetes_int_or_string?: bool + + x_kubernetes_list_map_keys?: [str] + + x_kubernetes_list_type?: str + + x_kubernetes_map_type?: str + + x_kubernetes_preserve_unknown_fields?: bool + + x_kubernetes_validations?: [ValidationRule] + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/service_reference.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/service_reference.k new file mode 100644 index 0000000..717b851 --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/service_reference.k @@ -0,0 +1,33 @@ +""" +This is the service_reference module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 ServiceReference: + """ + ServiceReference holds a reference to Service.legacy.k8s.io + + Attributes + ---------- + name : str, default is Undefined, required + name is the name of the service. Required + namespace : str, default is Undefined, required + namespace is the namespace of the service. Required + path : str, default is Undefined, optional + path is an optional URL path at which the webhook will be contacted. + port : int, default is Undefined, optional + port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. + """ + + + name: str + + namespace: str + + path?: str + + port?: int + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/validation_rule.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/validation_rule.k new file mode 100644 index 0000000..61132f9 --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/validation_rule.k @@ -0,0 +1,53 @@ +""" +This is the validation_rule module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 ValidationRule: + """ + ValidationRule describes a validation rule written in the CEL expression language. + + Attributes + ---------- + message : str, default is Undefined, optional + Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" + messageExpression : str, default is Undefined, optional + MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: "x must be less than max ("+string(self.max)+")" + $rule : str, default is Undefined, required + Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {"rule": "self.status.actual <= self.spec.maxDesired"} + + If the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {"rule": "self.components['Widget'].priority < 10"} - Rule scoped to a list of integers: {"rule": "self.values.all(value, value >= 0 && value < 100)"} - Rule scoped to a string value: {"rule": "self.startsWith('kube')"} + + The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible. + + Unknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an "unknown type". An "unknown type" is recursively defined as: + - A schema with no type and x-kubernetes-preserve-unknown-fields set to true + - An array where the items schema is of an "unknown type" + - An object where the additionalProperties schema is of an "unknown type" + + Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: + "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", + "import", "let", "loop", "package", "namespace", "return". + Examples: + - Rule accessing a property named "namespace": {"rule": "self.__namespace__ > 0"} + - Rule accessing a property named "x-prop": {"rule": "self.x__dash__prop > 0"} + - Rule accessing a property named "redact__d": {"rule": "self.redact__underscores__d > 0"} + + Equality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: + - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and + non-intersecting elements in `Y` are appended, retaining their partial order. + - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values + are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with + non-intersecting keys are appended, retaining their partial order. + """ + + + message?: str + + messageExpression?: str + + $rule: str + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/webhook_client_config.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/webhook_client_config.k new file mode 100644 index 0000000..e9d295e --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/webhook_client_config.k @@ -0,0 +1,41 @@ +""" +This is the webhook_client_config module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 WebhookClientConfig: + """ + WebhookClientConfig contains the information to make a TLS connection with the webhook. + + Attributes + ---------- + caBundle : str, default is Undefined, optional + caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + service : ServiceReference, default is Undefined, optional + service is a reference to the service for this webhook. Either service or url must be specified. + + If the webhook is running within the cluster, then you should use `service`. + url : str, default is Undefined, optional + url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + """ + + + caBundle?: str + + service?: ServiceReference + + url?: str + + diff --git a/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/webhook_conversion.k b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/webhook_conversion.k new file mode 100644 index 0000000..db6df6f --- /dev/null +++ b/library/k8s/apiextensions_apiserver/pkg/apis/apiextensions/v1/webhook_conversion.k @@ -0,0 +1,25 @@ +""" +This is the webhook_conversion module in k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1 package. +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 WebhookConversion: + """ + WebhookConversion describes how to call a conversion webhook + + Attributes + ---------- + clientConfig : WebhookClientConfig, default is Undefined, optional + clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. + conversionReviewVersions : [str], default is Undefined, required + conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. + """ + + + clientConfig?: WebhookClientConfig + + conversionReviewVersions: [str] + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/api_group.k b/library/k8s/apimachinery/pkg/apis/meta/v1/api_group.k new file mode 100644 index 0000000..30917e0 --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/api_group.k @@ -0,0 +1,41 @@ +""" +This is the api_group module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 APIGroup: + """ + APIGroup contains the name, the supported versions, and the preferred version of a group. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "APIGroup", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + name : str, default is Undefined, required + name is the name of the group. + preferredVersion : GroupVersionForDiscovery, default is Undefined, optional + preferredVersion is the version preferred by the API server, which probably is the storage version. + serverAddressByClientCIDRs : [ServerAddressByClientCIDR], default is Undefined, optional + a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + versions : [GroupVersionForDiscovery], default is Undefined, required + versions are the versions supported in this group. + """ + + + apiVersion: "v1" = "v1" + + kind: "APIGroup" = "APIGroup" + + name: str + + preferredVersion?: GroupVersionForDiscovery + + serverAddressByClientCIDRs?: [ServerAddressByClientCIDR] + + versions: [GroupVersionForDiscovery] + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/api_group_list.k b/library/k8s/apimachinery/pkg/apis/meta/v1/api_group_list.k new file mode 100644 index 0000000..3ba55dc --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/api_group_list.k @@ -0,0 +1,29 @@ +""" +This is the api_group_list module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 APIGroupList: + """ + APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + groups : [APIGroup], default is Undefined, required + groups is a list of APIGroup. + kind : str, default is "APIGroupList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + + + apiVersion: "v1" = "v1" + + groups: [APIGroup] + + kind: "APIGroupList" = "APIGroupList" + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/api_resource.k b/library/k8s/apimachinery/pkg/apis/meta/v1/api_resource.k new file mode 100644 index 0000000..f7dd6ef --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/api_resource.k @@ -0,0 +1,57 @@ +""" +This is the api_resource module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 APIResource: + """ + APIResource specifies the name of a resource and whether it is namespaced. + + Attributes + ---------- + categories : [str], default is Undefined, optional + categories is a list of the grouped resources this resource belongs to (e.g. 'all') + group : str, default is Undefined, optional + group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale". + kind : str, default is Undefined, required + kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + name : str, default is Undefined, required + name is the plural name of the resource. + namespaced : bool, default is Undefined, required + namespaced indicates if a resource is namespaced or not. + shortNames : [str], default is Undefined, optional + shortNames is a list of suggested short names of the resource. + singularName : str, default is Undefined, required + singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. + storageVersionHash : str, default is Undefined, optional + The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. + verbs : [str], default is Undefined, required + verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) + version : str, default is Undefined, optional + version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)". + """ + + + categories?: [str] + + group?: str + + kind: str + + name: str + + namespaced: bool + + shortNames?: [str] + + singularName: str + + storageVersionHash?: str + + verbs: [str] + + version?: str + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/api_resource_list.k b/library/k8s/apimachinery/pkg/apis/meta/v1/api_resource_list.k new file mode 100644 index 0000000..f2d1f1b --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/api_resource_list.k @@ -0,0 +1,33 @@ +""" +This is the api_resource_list module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 APIResourceList: + """ + APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + groupVersion : str, default is Undefined, required + groupVersion is the group and version this APIResourceList is for. + kind : str, default is "APIResourceList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + resources : [APIResource], default is Undefined, required + resources contains the name of the resources and if they are namespaced. + """ + + + apiVersion: "v1" = "v1" + + groupVersion: str + + kind: "APIResourceList" = "APIResourceList" + + resources: [APIResource] + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/api_versions.k b/library/k8s/apimachinery/pkg/apis/meta/v1/api_versions.k new file mode 100644 index 0000000..1ea3dae --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/api_versions.k @@ -0,0 +1,33 @@ +""" +This is the api_versions module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 APIVersions: + """ + APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API. + + Attributes + ---------- + apiVersion : str, default is "v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "APIVersions", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + serverAddressByClientCIDRs : [ServerAddressByClientCIDR], default is Undefined, required + a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + versions : [str], default is Undefined, required + versions are the api versions that are available. + """ + + + apiVersion: "v1" = "v1" + + kind: "APIVersions" = "APIVersions" + + serverAddressByClientCIDRs: [ServerAddressByClientCIDR] + + versions: [str] + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/condition.k b/library/k8s/apimachinery/pkg/apis/meta/v1/condition.k new file mode 100644 index 0000000..1042c59 --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/condition.k @@ -0,0 +1,41 @@ +""" +This is the condition module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 Condition: + """ + Condition contains details for one aspect of the current state of this API Resource. + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, required + lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + message : str, default is Undefined, required + message is a human readable message indicating details about the transition. This may be an empty string. + observedGeneration : int, default is Undefined, optional + observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. + reason : str, default is Undefined, required + reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. + status : str, default is Undefined, required + status of the condition, one of True, False, Unknown. + $type : str, default is Undefined, required + type of condition in CamelCase or in foo.example.com/CamelCase. + """ + + + lastTransitionTime: str + + message: str + + observedGeneration?: int + + reason: str + + status: str + + $type: str + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/delete_options.k b/library/k8s/apimachinery/pkg/apis/meta/v1/delete_options.k new file mode 100644 index 0000000..a394b0e --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/delete_options.k @@ -0,0 +1,45 @@ +""" +This is the delete_options module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 DeleteOptions: + """ + DeleteOptions may be provided when deleting an API object. + + Attributes + ---------- + apiVersion : str, default is Undefined, optional + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + dryRun : [str], default is Undefined, optional + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + gracePeriodSeconds : int, default is Undefined, optional + The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + kind : str, default is Undefined, optional + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + orphanDependents : bool, default is Undefined, optional + Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + preconditions : Preconditions, default is Undefined, optional + Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. + propagationPolicy : str, default is Undefined, optional + Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + """ + + + apiVersion?: str + + dryRun?: [str] + + gracePeriodSeconds?: int + + kind?: str + + orphanDependents?: bool + + preconditions?: Preconditions + + propagationPolicy?: str + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/group_version_for_discovery.k b/library/k8s/apimachinery/pkg/apis/meta/v1/group_version_for_discovery.k new file mode 100644 index 0000000..eaff998 --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/group_version_for_discovery.k @@ -0,0 +1,25 @@ +""" +This is the group_version_for_discovery module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 GroupVersionForDiscovery: + """ + GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility. + + Attributes + ---------- + groupVersion : str, default is Undefined, required + groupVersion specifies the API group and version in the form "group/version" + version : str, default is Undefined, required + version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion. + """ + + + groupVersion: str + + version: str + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/label_selector.k b/library/k8s/apimachinery/pkg/apis/meta/v1/label_selector.k new file mode 100644 index 0000000..85ad89a --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/label_selector.k @@ -0,0 +1,25 @@ +""" +This is the label_selector module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 LabelSelector: + """ + 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 + ---------- + matchExpressions : [LabelSelectorRequirement], default is Undefined, optional + matchExpressions is a list of label selector requirements. The requirements are ANDed. + matchLabels : {str:str}, default is Undefined, optional + matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + """ + + + matchExpressions?: [LabelSelectorRequirement] + + matchLabels?: {str:str} + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/label_selector_requirement.k b/library/k8s/apimachinery/pkg/apis/meta/v1/label_selector_requirement.k new file mode 100644 index 0000000..a9243a2 --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/label_selector_requirement.k @@ -0,0 +1,29 @@ +""" +This is the label_selector_requirement module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 LabelSelectorRequirement: + """ + A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + + Attributes + ---------- + key : str, default is Undefined, required + key is the label key that the selector applies to. + operator : str, default is Undefined, required + operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + values : [str], default is Undefined, optional + values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + """ + + + key: str + + operator: str + + values?: [str] + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/list_meta.k b/library/k8s/apimachinery/pkg/apis/meta/v1/list_meta.k new file mode 100644 index 0000000..1c6f4fd --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/list_meta.k @@ -0,0 +1,33 @@ +""" +This is the list_meta module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 ListMeta: + """ + ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. + + Attributes + ---------- + continue : str, default is Undefined, optional + continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + remainingItemCount : int, default is Undefined, optional + remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + resourceVersion : str, default is Undefined, optional + String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + selfLink : str, default is Undefined, optional + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + """ + + + continue?: str + + remainingItemCount?: int + + resourceVersion?: str + + selfLink?: str + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k b/library/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k new file mode 100644 index 0000000..6446a94 --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/managed_fields_entry.k @@ -0,0 +1,45 @@ +""" +This is the managed_fields_entry module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 ManagedFieldsEntry: + """ + ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. + + Attributes + ---------- + apiVersion : str, default is Undefined, optional + APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + fieldsType : str, default is Undefined, optional + FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + fieldsV1 : any, default is Undefined, optional + FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + manager : str, default is Undefined, optional + Manager is an identifier of the workflow managing these fields. + operation : str, default is Undefined, optional + Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + subresource : str, default is Undefined, optional + Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. + time : str, default is Undefined, optional + Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. + """ + + + apiVersion?: str + + fieldsType?: str + + fieldsV1?: any + + manager?: str + + operation?: str + + subresource?: str + + time?: str + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k b/library/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k new file mode 100644 index 0000000..6cb92d9 --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/object_meta.k @@ -0,0 +1,91 @@ +""" +This is the object_meta module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 ObjectMeta: + """ + ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. + + Attributes + ---------- + annotations : {str:str}, default is Undefined, optional + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations + creationTimestamp : str, default is Undefined, optional + CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + deletionGracePeriodSeconds : int, default is Undefined, optional + Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + deletionTimestamp : str, default is Undefined, optional + DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + finalizers : [str], default is Undefined, optional + Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + generateName : str, default is Undefined, optional + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will return a 409. + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + generation : int, default is Undefined, optional + A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + labels : {str:str}, default is Undefined, optional + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels + managedFields : [ManagedFieldsEntry], default is Undefined, optional + ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + name : str, default is Undefined, optional + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names + namespace : str, default is Undefined, optional + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces + ownerReferences : [OwnerReference], default is Undefined, optional + List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + resourceVersion : str, default is Undefined, optional + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + selfLink : str, default is Undefined, optional + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + uid : str, default is Undefined, optional + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids + """ + + + annotations?: {str:str} + + creationTimestamp?: str + + deletionGracePeriodSeconds?: int + + deletionTimestamp?: str + + finalizers?: [str] + + generateName?: str + + generation?: int + + labels?: {str:str} + + managedFields?: [ManagedFieldsEntry] + + name?: str + + namespace?: str + + ownerReferences?: [OwnerReference] + + resourceVersion?: str + + selfLink?: str + + uid?: str + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k b/library/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k new file mode 100644 index 0000000..59fada5 --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/owner_reference.k @@ -0,0 +1,41 @@ +""" +This is the owner_reference module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 OwnerReference: + """ + 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 + ---------- + apiVersion : str, default is Undefined, required + API version of the referent. + blockOwnerDeletion : bool, default is Undefined, optional + If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + controller : bool, default is Undefined, optional + If true, this reference points to the managing controller. + kind : str, default is Undefined, required + Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + name : str, default is Undefined, required + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names + uid : str, default is Undefined, required + UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids + """ + + + apiVersion: str + + blockOwnerDeletion?: bool + + controller?: bool + + kind: str + + name: str + + uid: str + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/preconditions.k b/library/k8s/apimachinery/pkg/apis/meta/v1/preconditions.k new file mode 100644 index 0000000..34170b7 --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/preconditions.k @@ -0,0 +1,25 @@ +""" +This is the preconditions module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 Preconditions: + """ + Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. + + Attributes + ---------- + resourceVersion : str, default is Undefined, optional + Specifies the target ResourceVersion + uid : str, default is Undefined, optional + Specifies the target UID. + """ + + + resourceVersion?: str + + uid?: str + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/server_address_by_client_cidr.k b/library/k8s/apimachinery/pkg/apis/meta/v1/server_address_by_client_cidr.k new file mode 100644 index 0000000..30c2501 --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/server_address_by_client_cidr.k @@ -0,0 +1,25 @@ +""" +This is the server_address_by_client_cidr module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 ServerAddressByClientCIDR: + """ + ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. + + Attributes + ---------- + clientCIDR : str, default is Undefined, required + The CIDR with which clients can match their IP to figure out the server address that they should use. + serverAddress : str, default is Undefined, required + Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. + """ + + + clientCIDR: str + + serverAddress: str + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/status.k b/library/k8s/apimachinery/pkg/apis/meta/v1/status.k new file mode 100644 index 0000000..69a18d3 --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/status.k @@ -0,0 +1,49 @@ +""" +This is the status module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 Status: + """ + Status is a return value for calls that don't return other objects. + + Attributes + ---------- + apiVersion : str, default is Undefined, optional + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + code : int, default is Undefined, optional + Suggested HTTP return code for this status, 0 if not set. + details : StatusDetails, default is Undefined, optional + Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + kind : str, default is Undefined, optional + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + message : str, default is Undefined, optional + A human-readable description of the status of this operation. + metadata : ListMeta, default is Undefined, optional + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + reason : str, default is Undefined, optional + A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + status : str, default is Undefined, optional + Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + + + apiVersion?: str + + code?: int + + details?: StatusDetails + + kind?: str + + message?: str + + metadata?: ListMeta + + reason?: str + + status?: str + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/status_cause.k b/library/k8s/apimachinery/pkg/apis/meta/v1/status_cause.k new file mode 100644 index 0000000..707af8c --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/status_cause.k @@ -0,0 +1,33 @@ +""" +This is the status_cause module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 StatusCause: + """ + StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. + + Attributes + ---------- + field : str, default is Undefined, optional + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. + + Examples: + "name" - the field "name" on the current resource + "items[0].name" - the field "name" on the first array entry in "items" + message : str, default is Undefined, optional + A human-readable description of the cause of the error. This field may be presented as-is to a reader. + reason : str, default is Undefined, optional + A machine-readable description of the cause of the error. If this value is empty there is no information available. + """ + + + field?: str + + message?: str + + reason?: str + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/status_details.k b/library/k8s/apimachinery/pkg/apis/meta/v1/status_details.k new file mode 100644 index 0000000..7b6191d --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/status_details.k @@ -0,0 +1,41 @@ +""" +This is the status_details module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 StatusDetails: + """ + StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. + + Attributes + ---------- + causes : [StatusCause], default is Undefined, optional + The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + group : str, default is Undefined, optional + The group attribute of the resource associated with the status StatusReason. + kind : str, default is Undefined, optional + The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + name : str, default is Undefined, optional + The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + retryAfterSeconds : int, default is Undefined, optional + If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. + uid : str, default is Undefined, optional + UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids + """ + + + causes?: [StatusCause] + + group?: str + + kind?: str + + name?: str + + retryAfterSeconds?: int + + uid?: str + + diff --git a/library/k8s/apimachinery/pkg/apis/meta/v1/watch_event.k b/library/k8s/apimachinery/pkg/apis/meta/v1/watch_event.k new file mode 100644 index 0000000..46a9aaf --- /dev/null +++ b/library/k8s/apimachinery/pkg/apis/meta/v1/watch_event.k @@ -0,0 +1,29 @@ +""" +This is the watch_event module in k8s.apimachinery.pkg.apis.meta.v1 package. +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 WatchEvent: + """ + Event represents a single event to a watched resource. + + Attributes + ---------- + object : any, default is Undefined, required + Object is: + * If Type is Added or Modified: the new state of the object. + * If Type is Deleted: the state of the object immediately before deletion. + * If Type is Error: *Status is recommended; other types may make sense + depending on context. + $type : str, default is Undefined, required + type + """ + + + object: any + + $type: str + + diff --git a/library/k8s/apimachinery/pkg/version/info.k b/library/k8s/apimachinery/pkg/version/info.k new file mode 100644 index 0000000..ddb968d --- /dev/null +++ b/library/k8s/apimachinery/pkg/version/info.k @@ -0,0 +1,53 @@ +""" +This is the info module in k8s.apimachinery.pkg.version package. +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 Info: + """ + Info contains versioning information. how we'll want to distribute that information. + + Attributes + ---------- + buildDate : str, default is Undefined, required + build date + compiler : str, default is Undefined, required + compiler + gitCommit : str, default is Undefined, required + git commit + gitTreeState : str, default is Undefined, required + git tree state + gitVersion : str, default is Undefined, required + git version + goVersion : str, default is Undefined, required + go version + major : str, default is Undefined, required + major + minor : str, default is Undefined, required + minor + platform : str, default is Undefined, required + platform + """ + + + buildDate: str + + compiler: str + + gitCommit: str + + gitTreeState: str + + gitVersion: str + + goVersion: str + + major: str + + minor: str + + platform: str + + diff --git a/library/k8s/kcl.mod b/library/k8s/kcl.mod new file mode 100644 index 0000000..b0f2029 --- /dev/null +++ b/library/k8s/kcl.mod @@ -0,0 +1,5 @@ +[package] +name = "k8s" +edition = "*" +version = "1.28" + diff --git a/library/k8s/kcl.mod.lock b/library/k8s/kcl.mod.lock new file mode 100644 index 0000000..e69de29 diff --git a/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service.k b/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service.k new file mode 100644 index 0000000..89028f1 --- /dev/null +++ b/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service.k @@ -0,0 +1,34 @@ +""" +This is the api_service module in k8s.kube_aggregator.pkg.apis.apiregistration.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema APIService: + """ + APIService represents a server for a particular GroupVersion. Name must be "version.group". + + Attributes + ---------- + apiVersion : str, default is "apiregistration.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + kind : str, default is "APIService", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ObjectMeta, default is Undefined, optional + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + spec : APIServiceSpec, default is Undefined, optional + Spec contains information for locating and communicating with a server + """ + + + apiVersion: "apiregistration.k8s.io/v1" = "apiregistration.k8s.io/v1" + + kind: "APIService" = "APIService" + + metadata?: v1.ObjectMeta + + spec?: APIServiceSpec + + diff --git a/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service_condition.k b/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service_condition.k new file mode 100644 index 0000000..5647ca0 --- /dev/null +++ b/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service_condition.k @@ -0,0 +1,37 @@ +""" +This is the api_service_condition module in k8s.kube_aggregator.pkg.apis.apiregistration.v1 package. +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 APIServiceCondition: + """ + APIServiceCondition describes the state of an APIService at a particular point + + Attributes + ---------- + lastTransitionTime : str, default is Undefined, optional + Last time the condition transitioned from one status to another. + message : str, default is Undefined, optional + Human-readable message indicating details about last transition. + reason : str, default is Undefined, optional + Unique, one-word, CamelCase reason for the condition's last transition. + status : str, default is Undefined, required + Status is the status of the condition. Can be True, False, Unknown. + $type : str, default is Undefined, required + Type is the type of the condition. + """ + + + lastTransitionTime?: str + + message?: str + + reason?: str + + status: str + + $type: str + + diff --git a/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service_list.k b/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service_list.k new file mode 100644 index 0000000..acf0253 --- /dev/null +++ b/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service_list.k @@ -0,0 +1,34 @@ +""" +This is the api_service_list module in k8s.kube_aggregator.pkg.apis.apiregistration.v1 package. +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. +""" +import apimachinery.pkg.apis.meta.v1 + + +schema APIServiceList: + """ + APIServiceList is a list of APIService objects. + + Attributes + ---------- + apiVersion : str, default is "apiregistration.k8s.io/v1", required + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + items : [APIService], default is Undefined, required + Items is the list of APIService + kind : str, default is "APIServiceList", required + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + metadata : v1.ListMeta, default is Undefined, optional + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + + + apiVersion: "apiregistration.k8s.io/v1" = "apiregistration.k8s.io/v1" + + items: [APIService] + + kind: "APIServiceList" = "APIServiceList" + + metadata?: v1.ListMeta + + diff --git a/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service_spec.k b/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service_spec.k new file mode 100644 index 0000000..b505e43 --- /dev/null +++ b/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service_spec.k @@ -0,0 +1,45 @@ +""" +This is the api_service_spec module in k8s.kube_aggregator.pkg.apis.apiregistration.v1 package. +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 APIServiceSpec: + """ + APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. + + Attributes + ---------- + caBundle : str, default is Undefined, optional + CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + group : str, default is Undefined, optional + Group is the API group name this server hosts + groupPriorityMinimum : int, default is Undefined, required + GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + insecureSkipTLSVerify : bool, default is Undefined, optional + InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + service : ServiceReference, default is Undefined, optional + Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. + version : str, default is Undefined, optional + Version is the API version this server hosts. For example, "v1" + versionPriority : int, default is Undefined, required + VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + """ + + + caBundle?: str + + group?: str + + groupPriorityMinimum: int + + insecureSkipTLSVerify?: bool + + service?: ServiceReference + + version?: str + + versionPriority: int + + diff --git a/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service_status.k b/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service_status.k new file mode 100644 index 0000000..1cd0a28 --- /dev/null +++ b/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/api_service_status.k @@ -0,0 +1,21 @@ +""" +This is the api_service_status module in k8s.kube_aggregator.pkg.apis.apiregistration.v1 package. +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 APIServiceStatus: + """ + APIServiceStatus contains derived information about an API server + + Attributes + ---------- + conditions : [APIServiceCondition], default is Undefined, optional + Current service state of apiService. + """ + + + conditions?: [APIServiceCondition] + + diff --git a/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/service_reference.k b/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/service_reference.k new file mode 100644 index 0000000..badb12d --- /dev/null +++ b/library/k8s/kube_aggregator/pkg/apis/apiregistration/v1/service_reference.k @@ -0,0 +1,29 @@ +""" +This is the service_reference module in k8s.kube_aggregator.pkg.apis.apiregistration.v1 package. +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 ServiceReference: + """ + ServiceReference holds a reference to Service.legacy.k8s.io + + Attributes + ---------- + name : str, default is Undefined, optional + Name is the name of the service + namespace : str, default is Undefined, optional + Namespace is the namespace of the service + port : int, default is Undefined, optional + If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + """ + + + name?: str + + namespace?: str + + port?: int + +