Files
argocd-apps/schemas/postgresql.cnpg.io/backup_v1.json
T
unkinben d497db04be
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
Add JSON schema generation for kubeconform CRD validation
- ci/generate-schemas.sh generates schemas from CRD manifests and K8s swagger
- Sources: ArgoCD v3.3.2, Gateway API v1.5.1, Kubernetes v1.33.7
- Optionally fetches live cluster CRDs via kubectl when available
- Generated schemas committed to schemas/ for CI use
- Run `make schemas` to regenerate after CRD version bumps
- validate-apps.sh and validate-clusters.sh check local schemas first
- Remove all kubeconform skip lists — all resource types now have schemas
2026-06-28 17:18:21 +10:00

382 lines
8.5 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"cluster": {
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"method": {
"default": "barmanObjectStore",
"enum": [
"barmanObjectStore",
"volumeSnapshot",
"plugin"
],
"type": "string"
},
"online": {
"type": "boolean"
},
"onlineConfiguration": {
"properties": {
"immediateCheckpoint": {
"type": "boolean"
},
"waitForArchive": {
"default": true,
"type": "boolean"
}
},
"type": "object"
},
"pluginConfiguration": {
"properties": {
"name": {
"type": "string"
},
"parameters": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"required": [
"name"
],
"type": "object"
},
"target": {
"enum": [
"primary",
"prefer-standby"
],
"type": "string"
}
},
"required": [
"cluster"
],
"type": "object",
"x-kubernetes-validations": [
{
"message": "BackupSpec is immutable once set",
"rule": "oldSelf == self"
}
]
},
"status": {
"properties": {
"azureCredentials": {
"properties": {
"connectionString": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"type": "object"
},
"inheritFromAzureAD": {
"type": "boolean"
},
"storageAccount": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"type": "object"
},
"storageKey": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"type": "object"
},
"storageSasToken": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"type": "object"
}
},
"type": "object"
},
"backupId": {
"type": "string"
},
"backupLabelFile": {
"format": "byte",
"type": "string"
},
"backupName": {
"type": "string"
},
"beginLSN": {
"type": "string"
},
"beginWal": {
"type": "string"
},
"commandError": {
"type": "string"
},
"commandOutput": {
"type": "string"
},
"destinationPath": {
"type": "string"
},
"encryption": {
"type": "string"
},
"endLSN": {
"type": "string"
},
"endWal": {
"type": "string"
},
"endpointCA": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"type": "object"
},
"endpointURL": {
"type": "string"
},
"error": {
"type": "string"
},
"googleCredentials": {
"properties": {
"applicationCredentials": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"type": "object"
},
"gkeEnvironment": {
"type": "boolean"
}
},
"type": "object"
},
"instanceID": {
"properties": {
"ContainerID": {
"type": "string"
},
"podName": {
"type": "string"
}
},
"type": "object"
},
"majorVersion": {
"type": "integer"
},
"method": {
"type": "string"
},
"online": {
"type": "boolean"
},
"phase": {
"type": "string"
},
"pluginMetadata": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"s3Credentials": {
"properties": {
"accessKeyId": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"type": "object"
},
"inheritFromIAMRole": {
"type": "boolean"
},
"region": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"type": "object"
},
"secretAccessKey": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"type": "object"
},
"sessionToken": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"type": "object"
}
},
"type": "object"
},
"serverName": {
"type": "string"
},
"snapshotBackupStatus": {
"properties": {
"elements": {
"items": {
"properties": {
"name": {
"type": "string"
},
"tablespaceName": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"name",
"type"
],
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"startedAt": {
"format": "date-time",
"type": "string"
},
"stoppedAt": {
"format": "date-time",
"type": "string"
},
"tablespaceMapFile": {
"format": "byte",
"type": "string"
}
},
"type": "object"
}
},
"required": [
"metadata",
"spec"
],
"type": "object"
}