diff options
| author | ming.tang <ming.tang@daocloud.io> | 2023-12-05 13:05:12 +0800 |
|---|---|---|
| committer | ming.tang <ming.tang@daocloud.io> | 2024-01-17 17:00:07 +0800 |
| commit | b73223139f4d10e80414d205dbc41f6a1d36ebfd (patch) | |
| tree | 8e7a8c2ccf71e1b93f9753aa195c56ec21cf3376 /build | |
| parent | Merge pull request #5321 from luomengY/ci-cri (diff) | |
| download | kubeedge-b73223139f4d10e80414d205dbc41f6a1d36ebfd.tar.gz | |
Update the EdgeApplication API definition. EdgeApplication Differential configuration Added support for command and arg fields.
Signed-off-by: ming.tang <ming.tang@daocloud.io>
Diffstat (limited to 'build')
| -rw-r--r-- | build/crds/apps/apps_v1alpha1_edgeapplication.yaml | 286 |
1 files changed, 286 insertions, 0 deletions
diff --git a/build/crds/apps/apps_v1alpha1_edgeapplication.yaml b/build/crds/apps/apps_v1alpha1_edgeapplication.yaml index 4114dceec..ce3e48f5f 100644 --- a/build/crds/apps/apps_v1alpha1_edgeapplication.yaml +++ b/build/crds/apps/apps_v1alpha1_edgeapplication.yaml @@ -57,6 +57,222 @@ spec: description: Overriders represents the override rules that would apply on workload. properties: + argsOverriders: + description: ArgsOverriders represents the rules dedicated + to handling container args + items: + description: CommandArgsOverrider represents the rules + dedicated to handling command/args overrides. + properties: + containerName: + description: The name of container + type: string + operator: + description: Operator represents the operator + which will apply on the command/args. + enum: + - add + - remove + type: string + value: + description: Value to be applied to command/args. + Items in Value which will be appended after + command/args when Operator is 'add'. Items in + Value which match in command/args will be deleted + when Operator is 'remove'. If Value is empty, + then the command/args will remain the same. + items: + type: string + type: array + required: + - containerName + - operator + type: object + type: array + commandOverriders: + description: CommandOverriders represents the rules + dedicated to handling container command + items: + description: CommandArgsOverrider represents the rules + dedicated to handling command/args overrides. + properties: + containerName: + description: The name of container + type: string + operator: + description: Operator represents the operator + which will apply on the command/args. + enum: + - add + - remove + type: string + value: + description: Value to be applied to command/args. + Items in Value which will be appended after + command/args when Operator is 'add'. Items in + Value which match in command/args will be deleted + when Operator is 'remove'. If Value is empty, + then the command/args will remain the same. + items: + type: string + type: array + required: + - containerName + - operator + type: object + type: array + envOverrides: + description: EnvOverrides will override the env field + of the container + items: + description: EnvOverrider represents the rules dedicated + to handling env overrides. + properties: + containerName: + description: The name of container + type: string + operator: + description: Operator represents the operator + which will apply on the env. + enum: + - add + - remove + - replace + type: string + value: + description: Value to be applied to env. Must + not be empty when operator is 'add' or 'replace'. + When the operator is 'remove', the matched value + in env will be deleted and only the name of + the value will be matched. If Value is empty, + then the env will remain the same. + items: + description: EnvVar represents an environment + variable present in a Container. + properties: + name: + description: Name of the environment variable. + Must be a C_IDENTIFIER. + type: string + value: + description: '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 "".' + type: string + valueFrom: + description: Source for the environment + variable's value. Cannot be used if value + is not empty. + properties: + configMapKeyRef: + description: Selects a key of a ConfigMap. + properties: + key: + description: The key to select. + type: string + name: + description: 'Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. + apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the + ConfigMap or its key must be defined + type: boolean + required: + - key + type: object + fieldRef: + description: 'Selects a field of the + pod: supports metadata.name, metadata.namespace, + `metadata.labels[''<KEY>'']`, `metadata.annotations[''<KEY>'']`, + spec.nodeName, spec.serviceAccountName, + status.hostIP, status.podIP, status.podIPs.' + properties: + apiVersion: + description: Version of the schema + the FieldPath is written in terms + of, defaults to "v1". + type: string + fieldPath: + description: Path of the field to + select in the specified API version. + type: string + required: + - fieldPath + type: object + resourceFieldRef: + description: '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.' + properties: + containerName: + description: 'Container name: required + for volumes, optional for env + vars' + type: string + divisor: + anyOf: + - type: integer + - type: string + description: Specifies the output + format of the exposed resources, + defaults to "1" + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + description: 'Required: resource + to select' + type: string + required: + - resource + type: object + secretKeyRef: + description: Selects a key of a secret + in the pod's namespace + properties: + key: + description: The key of the secret + to select from. Must be a valid + secret key. + type: string + name: + description: 'Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. + apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the + Secret or its key must be defined + type: boolean + required: + - key + type: object + type: object + required: + - name + type: object + type: array + required: + - containerName + - operator + type: object + type: array imageOverriders: description: ImageOverriders represents the rules dedicated to handling image overrides. @@ -122,6 +338,76 @@ spec: description: Replicas will override the replicas field of deployment type: integer + resourcesOverrides: + description: ResourcesOverrides will override the resources + field of the container + items: + description: ResourcesOverrider represents the rules + dedicated to handling resources overrides. + properties: + containerName: + description: The name of container + type: string + value: + description: Value to be applied to resources. + Must not be empty + properties: + claims: + description: "Claims lists the names of resources, + defined in spec.resourceClaims, that are + used by this container. \n This is an alpha + field and requires enabling the DynamicResourceAllocation + feature gate. \n This field is immutable. + It can only be set for containers." + items: + description: ResourceClaim references one + entry in PodSpec.ResourceClaims. + properties: + name: + description: 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. + type: string + required: + - name + type: object + type: array + x-kubernetes-list-map-keys: + - name + x-kubernetes-list-type: map + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Limits describes the maximum + amount of compute resources allowed. More + info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: '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/' + type: object + type: object + required: + - containerName + type: object + type: array type: object required: - name |
