|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "$id": "https://github.com/openstack-k8s-operators/gitops/charts/rhoso-apps/values.schema.json", |
| 4 | + "title": "rhoso-apps Helm chart values", |
| 5 | + "description": "Validated against templates/ and the documentation block in values.yaml.", |
| 6 | + "type": "object", |
| 7 | + "required": [ |
| 8 | + "applicationNamespace", |
| 9 | + "destinationServer", |
| 10 | + "applications" |
| 11 | + ], |
| 12 | + "additionalProperties": false, |
| 13 | + "properties": { |
| 14 | + "applicationNamespace": { |
| 15 | + "type": "string", |
| 16 | + "minLength": 1, |
| 17 | + "description": "Namespace for Argo CD Application CRs (metadata.namespace).", |
| 18 | + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" |
| 19 | + }, |
| 20 | + "destinationServer": { |
| 21 | + "type": "string", |
| 22 | + "minLength": 1, |
| 23 | + "description": "Kubernetes API server URL for spec.destination.server.", |
| 24 | + "format": "uri", |
| 25 | + "pattern": "^https://" |
| 26 | + }, |
| 27 | + "applications": { |
| 28 | + "type": "object", |
| 29 | + "minProperties": 1, |
| 30 | + "description": "Map of Application name to Argo CD Application settings.", |
| 31 | + "propertyNames": { |
| 32 | + "description": "DNS-1123 label: lowercase alphanumeric and hyphens (e.g. openstack-operator-cr).", |
| 33 | + "pattern": "^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?$" |
| 34 | + }, |
| 35 | + "additionalProperties": { |
| 36 | + "$ref": "#/definitions/application" |
| 37 | + } |
| 38 | + } |
| 39 | + }, |
| 40 | + "definitions": { |
| 41 | + "application": { |
| 42 | + "type": "object", |
| 43 | + "description": "Per-application values under applications.<name>.", |
| 44 | + "required": [ |
| 45 | + "enabled", |
| 46 | + "repoURL", |
| 47 | + "path", |
| 48 | + "targetRevision", |
| 49 | + "syncWave", |
| 50 | + "syncOptions" |
| 51 | + ], |
| 52 | + "additionalProperties": false, |
| 53 | + "properties": { |
| 54 | + "enabled": { |
| 55 | + "type": "boolean", |
| 56 | + "description": "If true, render an Application CR." |
| 57 | + }, |
| 58 | + "repoURL": { |
| 59 | + "type": "string", |
| 60 | + "minLength": 1, |
| 61 | + "description": "Git repository URL for spec.source.repoURL.", |
| 62 | + "format": "uri", |
| 63 | + "pattern": "^https://" |
| 64 | + }, |
| 65 | + "path": { |
| 66 | + "type": "string", |
| 67 | + "description": "Path inside the repo; empty string uses chart default '.'." |
| 68 | + }, |
| 69 | + "targetRevision": { |
| 70 | + "type": "string", |
| 71 | + "description": "Branch, tag, or commit; empty string uses chart default 'HEAD'." |
| 72 | + }, |
| 73 | + "syncWave": { |
| 74 | + "type": "string", |
| 75 | + "description": "Value for argocd.argoproj.io/sync-wave annotation." |
| 76 | + }, |
| 77 | + "syncOptions": { |
| 78 | + "type": "array", |
| 79 | + "description": "Argo CD sync option strings merged into spec.syncPolicy.syncOptions.", |
| 80 | + "minItems": 0, |
| 81 | + "items": { |
| 82 | + "type": "string", |
| 83 | + "minLength": 1 |
| 84 | + } |
| 85 | + }, |
| 86 | + "project": { |
| 87 | + "type": "string", |
| 88 | + "description": "Optional Argo CD AppProject; default in chart is 'default' if omitted." |
| 89 | + }, |
| 90 | + "syncPolicy": { |
| 91 | + "type": "object", |
| 92 | + "description": "Optional map merged with syncOptions into spec.syncPolicy.", |
| 93 | + "additionalProperties": true |
| 94 | + } |
| 95 | + } |
| 96 | + } |
| 97 | + } |
| 98 | +} |
0 commit comments