fix: indents for schema and cmd help description

Signed-off-by: Eugene Zuev <zhekazuev@gmail.com>
pull/12094/head
Eugene Zuev 2 years ago
parent b1ae41af15
commit 4de3493587
No known key found for this signature in database
GPG Key ID: 626CD63AB135FF49

@ -41,7 +41,7 @@ something like this:
Chart.yaml # Information about your chart Chart.yaml # Information about your chart
values.yaml # The default values for your templates values.yaml # The default values for your templates
values.schema.json # The default scheme for the chart values values.schema.json # The default scheme for the chart values
charts/ # Charts that this chart depends on charts/ # Charts that this chart depends on
templates/ # The template files templates/ # The template files
tests/ # The test files tests/ # The test files

@ -187,342 +187,342 @@ affinity: {}
` `
const defaultSchema = `{ const defaultSchema = `{
"$schema": "http://json-schema.org/draft-07/schema", "$schema": "http://json-schema.org/draft-07/schema",
"title": "%s", "title": "%s",
"description": "The default scheme for the chart values.", "description": "The default scheme for the chart values.",
"type": "object", "type": "object",
"required": [ "required": [
"replicaCount", "replicaCount",
"image", "image",
"serviceAccount", "serviceAccount",
"service" "service"
], ],
"properties": { "properties": {
"replicaCount": { "replicaCount": {
"description": "Number of desired pods.", "description": "Number of desired pods.",
"type": "integer", "type": "integer",
"default": 1, "default": 1,
"minimum": 0 "minimum": 0
}, },
"image": { "image": {
"description": "Container image parameters.", "description": "Container image parameters.",
"type": "object", "type": "object",
"required": [ "required": [
"repository" "repository"
], ],
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"repository": { "repository": {
"description": "Image repository. Path to the image with registry(quay.io) or without(nginx) for docker.io.", "description": "Image repository. Path to the image with registry(quay.io) or without(nginx) for docker.io.",
"type": "string" "type": "string"
}, },
"pullPolicy": { "pullPolicy": {
"description": "Image pull policy. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated.", "description": "Image pull policy. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated.",
"type": "string", "type": "string",
"enum": [ "enum": [
"Never", "Never",
"IfNotPresent", "IfNotPresent",
"Always" "Always"
], ],
"default": "IfNotPresent" "default": "IfNotPresent"
}, },
"tag": { "tag": {
"description": "Use chart appVersion by default.", "description": "Use chart appVersion by default.",
"type": "string", "type": "string",
"default": "" "default": ""
} }
} }
}, },
"imagePullSecrets": { "imagePullSecrets": {
"description": "The property allows you to configure multiple image pull secrets.", "description": "The property allows you to configure multiple image pull secrets.",
"type": "array", "type": "array",
"default": [], "default": [],
"items": { "items": {
"type": "object", "type": "object",
"required": [ "required": [
"name" "name"
], ],
"properties": { "properties": {
"name": { "name": {
"description": "Specifies the Secret name of the image pull secret.", "description": "Specifies the Secret name of the image pull secret.",
"type": "string" "type": "string"
} }
} }
} }
}, },
"nameOverride": { "nameOverride": {
"description": "Override value for the name of the Helm chart.", "description": "Override value for the name of the Helm chart.",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"fullnameOverride": { "fullnameOverride": {
"description": "Override value for the fully qualified app name.", "description": "Override value for the fully qualified app name.",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"serviceAccount": { "serviceAccount": {
"description": "Contains properties related to the service account configuration.", "description": "Contains properties related to the service account configuration.",
"type": "object", "type": "object",
"required": ["create"], "required": ["create"],
"properties": { "properties": {
"create": { "create": {
"description": "Specifies whether a service account should be created.", "description": "Specifies whether a service account should be created.",
"type": "boolean", "type": "boolean",
"default": true "default": true
}, },
"annotations": { "annotations": {
"description": "Annotations to add to the service account.", "description": "Annotations to add to the service account.",
"type": "object", "type": "object",
"default": {} "default": {}
}, },
"name": { "name": {
"description": "The name of the service account to use. If not set and create is true, a name is generated using the fullname template.", "description": "The name of the service account to use. If not set and create is true, a name is generated using the fullname template.",
"type": "string", "type": "string",
"default": "" "default": ""
} }
} }
}, },
"podAnnotations": { "podAnnotations": {
"description": "Annotations to add to the pods.", "description": "Annotations to add to the pods.",
"type": "object" "type": "object"
}, },
"podSecurityContext": { "podSecurityContext": {
"description": "Pod security context configuration.", "description": "Pod security context configuration.",
"type": "object", "type": "object",
"properties": { "properties": {
"fsGroup": { "fsGroup": {
"description": "The fsGroup value for the pod's security context.", "description": "The fsGroup value for the pod's security context.",
"type": "integer", "type": "integer",
"default": 65534 "default": 65534
}, },
"runAsUser": { "runAsUser": {
"description": "The UID to run the pod's containers as.", "description": "The UID to run the pod's containers as.",
"type": "integer" "type": "integer"
}, },
"runAsGroup": { "runAsGroup": {
"description": "The GID to run the pod's containers as.", "description": "The GID to run the pod's containers as.",
"type": "integer" "type": "integer"
} }
} }
}, },
"securityContext": { "securityContext": {
"description": "Security context for the container.", "description": "Security context for the container.",
"type": "object", "type": "object",
"properties": { "properties": {
"capabilities": { "capabilities": {
"description": "Specifies the capabilities to be dropped by the container.", "description": "Specifies the capabilities to be dropped by the container.",
"type": "object", "type": "object",
"properties": { "properties": {
"drop": { "drop": {
"description": "List of capabilities to be dropped.", "description": "List of capabilities to be dropped.",
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
} }
} }
}, },
"readOnlyRootFilesystem": { "readOnlyRootFilesystem": {
"description": "Specifies whether the root file system should be mounted as read-only.", "description": "Specifies whether the root file system should be mounted as read-only.",
"type": "boolean" "type": "boolean"
}, },
"runAsUser": { "runAsUser": {
"description": "Specifies the UID (User ID) to run the container as.", "description": "Specifies the UID (User ID) to run the container as.",
"type": "integer" "type": "integer"
}, },
"runAsNonRoot": { "runAsNonRoot": {
"description": "Specifies whether to run the container as a non-root user.", "description": "Specifies whether to run the container as a non-root user.",
"type": "boolean" "type": "boolean"
}, },
"runAsGroup": { "runAsGroup": {
"description": "Specifies the GID (Group ID) to run the container as.", "description": "Specifies the GID (Group ID) to run the container as.",
"type": "integer" "type": "integer"
} }
} }
}, },
"service": { "service": {
"description": "Service configuration.", "description": "Service configuration.",
"type": "object", "type": "object",
"required": ["type", "port"], "required": ["type", "port"],
"properties": { "properties": {
"annotations": { "annotations": {
"description": "Annotations to add to the service.", "description": "Annotations to add to the service.",
"type": "object" "type": "object"
}, },
"type": { "type": {
"description": "Service type.", "description": "Service type.",
"type": "string" "type": "string"
}, },
"port": { "port": {
"description": "Port number for the service.", "description": "Port number for the service.",
"type": "integer" "type": "integer"
}, },
"clusterPort": { "clusterPort": {
"description": "Port number for the cluster.", "description": "Port number for the cluster.",
"type": "integer" "type": "integer"
}, },
"loadBalancerIP": { "loadBalancerIP": {
"description": "External IP to assign when the service type is LoadBalancer.", "description": "External IP to assign when the service type is LoadBalancer.",
"type": "string" "type": "string"
}, },
"loadBalancerSourceRanges": { "loadBalancerSourceRanges": {
"description": "IP ranges to allow access to the loadBalancerIP.", "description": "IP ranges to allow access to the loadBalancerIP.",
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
}, },
"nodePort": { "nodePort": {
"description": "Specific nodePort to force when service type is NodePort.", "description": "Specific nodePort to force when service type is NodePort.",
"type": "integer" "type": "integer"
} }
} }
}, },
"ingress": { "ingress": {
"description": "Ingress configuration.", "description": "Ingress configuration.",
"type": "object", "type": "object",
"properties": { "properties": {
"enabled": { "enabled": {
"description": "Indicates if Ingress is enabled.", "description": "Indicates if Ingress is enabled.",
"type": "boolean" "type": "boolean"
}, },
"className": { "className": {
"description": "Ingress class name.", "description": "Ingress class name.",
"type": "string" "type": "string"
}, },
"annotations": { "annotations": {
"description": "Annotations to add to the Ingress.", "description": "Annotations to add to the Ingress.",
"type": "object" "type": "object"
}, },
"hosts": { "hosts": {
"description": "Host and path configuration for the Ingress.", "description": "Host and path configuration for the Ingress.",
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
"properties": { "properties": {
"host": { "host": {
"description": "Host name for the Ingress.", "description": "Host name for the Ingress.",
"type": "string" "type": "string"
}, },
"paths": { "paths": {
"description": "Path configuration for the Ingress.", "description": "Path configuration for the Ingress.",
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
"properties": { "properties": {
"path": { "path": {
"description": "Path for the Ingress.", "description": "Path for the Ingress.",
"type": "string" "type": "string"
}, },
"pathType": { "pathType": {
"description": "Path type for the Ingress.", "description": "Path type for the Ingress.",
"type": "string" "type": "string"
} }
} }
} }
} }
} }
} }
}, },
"tls": { "tls": {
"description": "TLS configuration for the Ingress.", "description": "TLS configuration for the Ingress.",
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
"properties": { "properties": {
"secretName": { "secretName": {
"description": "Name of the secret for TLS.", "description": "Name of the secret for TLS.",
"type": "string" "type": "string"
}, },
"hosts": { "hosts": {
"description": "Host names for the TLS configuration.", "description": "Host names for the TLS configuration.",
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
} }
} }
} }
} }
} }
}, },
"resources": { "resources": {
"description": "Resource limits and requests for the Container.", "description": "Resource limits and requests for the Container.",
"type": "object", "type": "object",
"properties": { "properties": {
"limits": { "limits": {
"description": "Resource limits for the Container.", "description": "Resource limits for the Container.",
"type": "object", "type": "object",
"properties": { "properties": {
"cpu": { "cpu": {
"description": "CPU request for the Container.", "description": "CPU request for the Container.",
"type": "string" "type": "string"
}, },
"memory": { "memory": {
"description": "Memory request for the Container.", "description": "Memory request for the Container.",
"type": "string" "type": "string"
} }
} }
}, },
"requests": { "requests": {
"description": "Resource requests for the Container.", "description": "Resource requests for the Container.",
"type": "object", "type": "object",
"properties": { "properties": {
"cpu": { "cpu": {
"description": "CPU request for the Container.", "description": "CPU request for the Container.",
"type": "string" "type": "string"
}, },
"memory": { "memory": {
"description": "Memory request for the Container.", "description": "Memory request for the Container.",
"type": "string" "type": "string"
} }
} }
} }
} }
}, },
"autoscaling": { "autoscaling": {
"description": "Configuration for autoscaling the resource based on resource utilization.", "description": "Configuration for autoscaling the resource based on resource utilization.",
"type": "object", "type": "object",
"properties": { "properties": {
"enabled": { "enabled": {
"description": "Specifies whether autoscaling is enabled.", "description": "Specifies whether autoscaling is enabled.",
"type": "boolean" "type": "boolean"
}, },
"minReplicas": { "minReplicas": {
"description": "Minimum number of replicas for the resource.", "description": "Minimum number of replicas for the resource.",
"type": "integer" "type": "integer"
}, },
"maxReplicas": { "maxReplicas": {
"description": "Maximum number of replicas for the resource.", "description": "Maximum number of replicas for the resource.",
"type": "integer" "type": "integer"
}, },
"targetCPUUtilizationPercentage": { "targetCPUUtilizationPercentage": {
"description": "Target CPU utilization percentage for autoscaling.", "description": "Target CPU utilization percentage for autoscaling.",
"type": "integer", "type": "integer",
"minimum": 0, "minimum": 0,
"maximum": 100 "maximum": 100
}, },
"targetMemoryUtilizationPercentage": { "targetMemoryUtilizationPercentage": {
"description": "Target memory utilization percentage for autoscaling.", "description": "Target memory utilization percentage for autoscaling.",
"type": "integer", "type": "integer",
"minimum": 0, "minimum": 0,
"maximum": 100 "maximum": 100
} }
} }
}, },
"nodeSelector": { "nodeSelector": {
"description": "Node selector for pod assignment.", "description": "Node selector for pod assignment.",
"type": "object" "type": "object"
}, },
"tolerations": { "tolerations": {
"description": "Tolerations for pod assignment.", "description": "Tolerations for pod assignment.",
"type": "array" "type": "array"
}, },
"affinity": { "affinity": {
"description": "Affinity rules for pod assignment.", "description": "Affinity rules for pod assignment.",
"type": "object" "type": "object"
} }
} }
} }
` `

Loading…
Cancel
Save