mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
* feat(cluster-service): package tenant and operator API workloads Extend the pinned Helm generation flow to package existing API workloads with independent values, internal Services and scoped datastore identities. Add installation examples and render/source-propagation coverage for CLI-126. Created with AI assistance Signed-off-by: Mark Stillwell <mstillwell@nvidia.com> * fix(cluster-service): preserve Helm input types and opt-in behavior Quote custom API identities, keep null enable switches off, require an explicit datastore mode for enabled APIs, and preserve chart-only API defaults. Regenerate the chart and add render and source-propagation regressions. Relates to CLI-126 Created with AI assistance Signed-off-by: Mark Stillwell <mstillwell@nvidia.com> --------- Signed-off-by: Mark Stillwell <mstillwell@nvidia.com>
589 lines
14 KiB
JSON
589 lines
14 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"properties": {
|
|
"state": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"namespace": {
|
|
"type": "string",
|
|
"maxLength": 63,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
|
|
},
|
|
"configMaps": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"namespace",
|
|
"data"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"maxLength": 253,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
|
|
"minLength": 1
|
|
},
|
|
"namespace": {
|
|
"type": "string",
|
|
"maxLength": 63,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
|
|
"minLength": 1
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"rbac": {
|
|
"type": "object",
|
|
"properties": {
|
|
"metricsAuth": {
|
|
"type": "boolean"
|
|
},
|
|
"subjects": {
|
|
"$ref": "#/definitions/subjects"
|
|
},
|
|
"operatorAPISubjects": {
|
|
"$ref": "#/definitions/subjects"
|
|
},
|
|
"tenantAPIBindings": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"namespace",
|
|
"subjects"
|
|
],
|
|
"properties": {
|
|
"namespace": {
|
|
"type": "string",
|
|
"maxLength": 63,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
|
|
"minLength": 1
|
|
},
|
|
"subjects": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/subjects"
|
|
}
|
|
],
|
|
"minItems": 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"crds": {
|
|
"type": "object",
|
|
"properties": {
|
|
"install": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"controller": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"manager": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"stateAccess": {
|
|
"type": "object",
|
|
"properties": {
|
|
"mode": {
|
|
"enum": [
|
|
"inCluster",
|
|
"remote"
|
|
]
|
|
},
|
|
"kubeconfigSecret": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"maxLength": 253,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
|
},
|
|
"key": {
|
|
"type": "string",
|
|
"maxLength": 253,
|
|
"pattern": "^[a-zA-Z0-9._-]*$"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"stateNamespace": {
|
|
"type": "string",
|
|
"maxLength": 63,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
|
|
},
|
|
"args": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"env": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"allOf": [
|
|
{
|
|
"if": {
|
|
"properties": {
|
|
"name": {
|
|
"const": "STATE_NAMESPACE"
|
|
}
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"value": {
|
|
"type": "string",
|
|
"maxLength": 63,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
|
|
"minLength": 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"envOverrides": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": [
|
|
"string",
|
|
"number",
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
"nvkeController": {
|
|
"type": "object",
|
|
"properties": {
|
|
"endpoint": {
|
|
"type": "string",
|
|
"pattern": "^$|^https?://[^\\s]+$"
|
|
},
|
|
"tokenSecret": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"maxLength": 253,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
|
},
|
|
"key": {
|
|
"type": "string",
|
|
"maxLength": 253,
|
|
"pattern": "^[a-zA-Z0-9._-]*$"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"image": {
|
|
"type": "object",
|
|
"properties": {
|
|
"repository": {
|
|
"type": "string"
|
|
},
|
|
"tag": {
|
|
"type": "string"
|
|
},
|
|
"pullPolicy": {
|
|
"enum": [
|
|
"Always",
|
|
"IfNotPresent",
|
|
"Never"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"infrastructureTemplateConfigMap": {
|
|
"type": "string",
|
|
"maxLength": 253,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
|
}
|
|
}
|
|
},
|
|
"serviceAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"metrics": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"networkPolicy": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"prometheus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"tenantAPI": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/apiComponent"
|
|
},
|
|
{
|
|
"properties": {
|
|
"namespace": {
|
|
"type": "string",
|
|
"maxLength": 63,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"operatorAPI": {
|
|
"$ref": "#/definitions/apiComponent"
|
|
}
|
|
},
|
|
"definitions": {
|
|
"subjects": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"kind",
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"kind": {
|
|
"enum": [
|
|
"ServiceAccount",
|
|
"User",
|
|
"Group"
|
|
]
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
},
|
|
"apiGroup": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"allOf": [
|
|
{
|
|
"if": {
|
|
"properties": {
|
|
"kind": {
|
|
"const": "ServiceAccount"
|
|
}
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"namespace"
|
|
],
|
|
"properties": {
|
|
"namespace": {
|
|
"type": "string",
|
|
"maxLength": 63,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
|
|
"minLength": 1
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"maxLength": 253,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
|
|
"minLength": 1
|
|
},
|
|
"apiGroup": {
|
|
"const": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"if": {
|
|
"properties": {
|
|
"kind": {
|
|
"enum": [
|
|
"User",
|
|
"Group"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"apiGroup"
|
|
],
|
|
"properties": {
|
|
"apiGroup": {
|
|
"const": "rbac.authorization.k8s.io"
|
|
}
|
|
},
|
|
"not": {
|
|
"required": [
|
|
"namespace"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"apiComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"stateAccess": {
|
|
"type": "object",
|
|
"properties": {
|
|
"mode": {
|
|
"enum": [
|
|
"inCluster",
|
|
"remote"
|
|
]
|
|
},
|
|
"kubeconfigSecret": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"maxLength": 253,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
|
},
|
|
"key": {
|
|
"type": "string",
|
|
"maxLength": 253,
|
|
"pattern": "^[a-zA-Z0-9._-]*$"
|
|
}
|
|
}
|
|
},
|
|
"context": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"image": {
|
|
"type": "object",
|
|
"properties": {
|
|
"repository": {
|
|
"type": "string"
|
|
},
|
|
"tag": {
|
|
"type": "string"
|
|
},
|
|
"pullPolicy": {
|
|
"enum": [
|
|
"Always",
|
|
"IfNotPresent",
|
|
"Never"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"args": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"replicas": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"serviceAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"create": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"maxLength": 253,
|
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
|
}
|
|
}
|
|
},
|
|
"service": {
|
|
"type": "object",
|
|
"properties": {
|
|
"port": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 65535
|
|
}
|
|
}
|
|
},
|
|
"resources": {
|
|
"type": "object"
|
|
},
|
|
"livenessProbe": {
|
|
"type": "object"
|
|
},
|
|
"readinessProbe": {
|
|
"type": "object"
|
|
},
|
|
"securityContext": {
|
|
"type": "object"
|
|
},
|
|
"nodeSelector": {
|
|
"type": "object"
|
|
},
|
|
"affinity": {
|
|
"type": "object"
|
|
},
|
|
"labels": {
|
|
"type": "object"
|
|
},
|
|
"annotations": {
|
|
"type": "object"
|
|
},
|
|
"envOverrides": {
|
|
"type": "object"
|
|
},
|
|
"tolerations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"env": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"extraVolumes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"extraVolumeMounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"podSecurityContext": {
|
|
"type": "object"
|
|
},
|
|
"pod": {
|
|
"type": "object",
|
|
"properties": {
|
|
"labels": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"annotations": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"strategy": {
|
|
"type": "object"
|
|
},
|
|
"imagePullSecrets": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"topologySpreadConstraints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"allOf": [
|
|
{
|
|
"if": {
|
|
"required": [
|
|
"enabled"
|
|
],
|
|
"properties": {
|
|
"enabled": {
|
|
"const": true
|
|
}
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"stateAccess"
|
|
],
|
|
"properties": {
|
|
"stateAccess": {
|
|
"required": [
|
|
"mode"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|