Add JSON schema generation for kubeconform CRD validation (#212)

## Summary
- New `ci/generate-schemas.sh` script that generates JSON schemas from three sources:
  1. Live cluster CRDs via `kubectl get crds`
  2. Offline CRD manifests (ArgoCD v3.3.2, Gateway API v1.5.1)
  3. Kubernetes v1.33.7 swagger spec for native types
- Schemas follow Datree catalog convention (`<group>/<Kind>_<version>.json`)
- `validate-apps.sh` and `validate-clusters.sh` check local schemas first, falling back to remote
- Fixes TLSRoute (and other CRD) schema validation failures in kubeconform

## Sources
- ArgoCD: `artifactapi.../argoproj/argo-cd/refs/tags/v3.3.2/manifests/ha/install.yaml`
- Gateway API: `artifactapi.../kubernetes-sigs/gateway-api/releases/download/v1.5.1/standard-install.yaml`
- Kubernetes: `artifactapi.../kubernetes/kubernetes/refs/tags/v1.33.7/api/openapi-spec/swagger.json`

Reviewed-on: #212
Co-authored-by: Ben Vincent <ben@unkin.net>
Co-committed-by: Ben Vincent <ben@unkin.net>
This commit was merged in pull request #212.
This commit is contained in:
2026-06-28 17:26:08 +10:00
committed by BenVincent
parent cfca1e5278
commit 784c3b5de1
264 changed files with 142907 additions and 2 deletions
@@ -0,0 +1,57 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"pathPrefixes": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"paths": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"secretName": {
"nullable": true,
"type": "string"
},
"secretNamespace": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"status": {
"properties": {
"serviceAccountName": {
"nullable": true,
"type": "string"
},
"serviceAccountNamespace": {
"nullable": true,
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
}
@@ -0,0 +1,21 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"x-kubernetes-preserve-unknown-fields": true
},
"status": {
"x-kubernetes-preserve-unknown-fields": true
}
},
"type": "object"
}
@@ -0,0 +1,21 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"required": [
"enabled"
],
"type": "object"
}
@@ -0,0 +1,61 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"clusterName": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"status": {
"properties": {
"command": {
"nullable": true,
"type": "string"
},
"insecureCommand": {
"nullable": true,
"type": "string"
},
"insecureNodeCommand": {
"nullable": true,
"type": "string"
},
"insecureWindowsNodeCommand": {
"nullable": true,
"type": "string"
},
"manifestUrl": {
"nullable": true,
"type": "string"
},
"nodeCommand": {
"nullable": true,
"type": "string"
},
"token": {
"nullable": true,
"type": "string"
},
"windowsNodeCommand": {
"nullable": true,
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,156 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"clusterName": {
"type": "string"
},
"groupName": {
"type": "string"
},
"groupPrincipalName": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"roleTemplateName": {
"type": "string"
},
"status": {
"properties": {
"lastUpdateTime": {
"type": "string"
},
"localConditions": {
"items": {
"properties": {
"lastTransitionTime": {
"format": "date-time",
"type": "string"
},
"message": {
"maxLength": 32768,
"type": "string"
},
"observedGeneration": {
"format": "int64",
"minimum": 0,
"type": "integer"
},
"reason": {
"maxLength": 1024,
"minLength": 1,
"pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
"type": "string"
},
"status": {
"enum": [
"True",
"False",
"Unknown"
],
"type": "string"
},
"type": {
"maxLength": 316,
"pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
"type": "string"
}
},
"required": [
"lastTransitionTime",
"message",
"reason",
"status",
"type"
],
"type": "object"
},
"type": "array"
},
"observedGenerationLocal": {
"format": "int64",
"type": "integer"
},
"observedGenerationRemote": {
"format": "int64",
"type": "integer"
},
"remoteConditions": {
"items": {
"properties": {
"lastTransitionTime": {
"format": "date-time",
"type": "string"
},
"message": {
"maxLength": 32768,
"type": "string"
},
"observedGeneration": {
"format": "int64",
"minimum": 0,
"type": "integer"
},
"reason": {
"maxLength": 1024,
"minLength": 1,
"pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
"type": "string"
},
"status": {
"enum": [
"True",
"False",
"Unknown"
],
"type": "string"
},
"type": {
"maxLength": 316,
"pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
"type": "string"
}
},
"required": [
"lastTransitionTime",
"message",
"reason",
"status",
"type"
],
"type": "object"
},
"type": "array"
},
"summary": {
"type": "string"
},
"summaryLocal": {
"type": "string"
},
"summaryRemote": {
"type": "string"
}
},
"type": "object"
},
"userName": {
"type": "string"
},
"userPrincipalName": {
"type": "string"
}
},
"required": [
"clusterName",
"roleTemplateName"
],
"type": "object"
}
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
}
@@ -0,0 +1,262 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"collectionActions": {
"additionalProperties": {
"properties": {
"input": {
"type": "string"
},
"output": {
"type": "string"
}
},
"type": "object"
},
"type": "object"
},
"collectionFields": {
"additionalProperties": {
"properties": {
"create": {
"type": "boolean"
},
"default": {
"properties": {
"boolValue": {
"type": "boolean"
},
"intValue": {
"type": "integer"
},
"stringSliceValue": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"stringValue": {
"type": "string"
}
},
"type": "object"
},
"dynamicField": {
"type": "boolean"
},
"invalidChars": {
"type": "string"
},
"max": {
"format": "int64",
"type": "integer"
},
"maxLength": {
"format": "int64",
"type": "integer"
},
"min": {
"format": "int64",
"type": "integer"
},
"minLength": {
"format": "int64",
"type": "integer"
},
"nullable": {
"type": "boolean"
},
"options": {
"items": {
"type": "string"
},
"type": "array"
},
"required": {
"type": "boolean"
},
"type": {
"type": "string"
},
"unique": {
"type": "boolean"
},
"update": {
"type": "boolean"
},
"validChars": {
"type": "string"
}
},
"type": "object"
},
"type": "object"
},
"collectionFilters": {
"additionalProperties": {
"properties": {
"modifiers": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"type": "object"
},
"collectionMethods": {
"items": {
"type": "string"
},
"type": "array"
},
"dynamicSchemaVersion": {
"type": "string"
},
"embed": {
"type": "boolean"
},
"embedType": {
"type": "string"
},
"includeableLinks": {
"items": {
"type": "string"
},
"type": "array"
},
"pluralName": {
"type": "string"
},
"resourceActions": {
"additionalProperties": {
"properties": {
"input": {
"type": "string"
},
"output": {
"type": "string"
}
},
"type": "object"
},
"type": "object"
},
"resourceFields": {
"additionalProperties": {
"properties": {
"create": {
"type": "boolean"
},
"default": {
"properties": {
"boolValue": {
"type": "boolean"
},
"intValue": {
"type": "integer"
},
"stringSliceValue": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"stringValue": {
"type": "string"
}
},
"type": "object"
},
"dynamicField": {
"type": "boolean"
},
"invalidChars": {
"type": "string"
},
"max": {
"format": "int64",
"type": "integer"
},
"maxLength": {
"format": "int64",
"type": "integer"
},
"min": {
"format": "int64",
"type": "integer"
},
"minLength": {
"format": "int64",
"type": "integer"
},
"nullable": {
"type": "boolean"
},
"options": {
"items": {
"type": "string"
},
"type": "array"
},
"required": {
"type": "boolean"
},
"type": {
"type": "string"
},
"unique": {
"type": "boolean"
},
"update": {
"type": "boolean"
},
"validChars": {
"type": "string"
}
},
"type": "object"
},
"type": "object"
},
"resourceMethods": {
"items": {
"type": "string"
},
"type": "array"
},
"schemaName": {
"type": "string"
}
},
"type": "object"
},
"status": {
"properties": {
"fake": {
"type": "string"
}
},
"type": "object"
}
},
"required": [
"spec"
],
"type": "object"
}
@@ -0,0 +1,39 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"value": {
"nullable": true,
"type": "boolean"
}
},
"type": "object"
},
"status": {
"properties": {
"default": {
"type": "boolean"
},
"dynamic": {
"type": "boolean"
},
"lockedValue": {
"nullable": true,
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,18 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"status": {
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,244 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"builtin": {
"type": "boolean"
},
"displayName": {
"type": "string"
},
"inheritedClusterRoles": {
"items": {
"type": "string"
},
"type": "array"
},
"inheritedFleetWorkspacePermissions": {
"properties": {
"resourceRules": {
"items": {
"properties": {
"apiGroups": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"nonResourceURLs": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resourceNames": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resources": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"verbs": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"verbs"
],
"type": "object"
},
"type": "array"
},
"workspaceVerbs": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"namespacedRules": {
"additionalProperties": {
"items": {
"properties": {
"apiGroups": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"nonResourceURLs": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resourceNames": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resources": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"verbs": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"verbs"
],
"type": "object"
},
"type": "array"
},
"type": "object"
},
"newUserDefault": {
"type": "boolean"
},
"rules": {
"items": {
"properties": {
"apiGroups": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"nonResourceURLs": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resourceNames": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resources": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"verbs": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"verbs"
],
"type": "object"
},
"type": "array"
},
"status": {
"properties": {
"conditions": {
"items": {
"properties": {
"lastTransitionTime": {
"format": "date-time",
"type": "string"
},
"message": {
"maxLength": 32768,
"type": "string"
},
"observedGeneration": {
"format": "int64",
"minimum": 0,
"type": "integer"
},
"reason": {
"maxLength": 1024,
"minLength": 1,
"pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
"type": "string"
},
"status": {
"enum": [
"True",
"False",
"Unknown"
],
"type": "string"
},
"type": {
"maxLength": 316,
"pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
"type": "string"
}
},
"required": [
"lastTransitionTime",
"message",
"reason",
"status",
"type"
],
"type": "object"
},
"type": "array"
},
"lastUpdateTime": {
"type": "string"
},
"observedGeneration": {
"format": "int64",
"type": "integer"
},
"summary": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,149 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"globalRoleName": {
"type": "string"
},
"groupPrincipalName": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"status": {
"properties": {
"lastUpdateTime": {
"type": "string"
},
"localConditions": {
"items": {
"properties": {
"lastTransitionTime": {
"format": "date-time",
"type": "string"
},
"message": {
"maxLength": 32768,
"type": "string"
},
"observedGeneration": {
"format": "int64",
"minimum": 0,
"type": "integer"
},
"reason": {
"maxLength": 1024,
"minLength": 1,
"pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
"type": "string"
},
"status": {
"enum": [
"True",
"False",
"Unknown"
],
"type": "string"
},
"type": {
"maxLength": 316,
"pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
"type": "string"
}
},
"required": [
"lastTransitionTime",
"message",
"reason",
"status",
"type"
],
"type": "object"
},
"type": "array"
},
"observedGenerationLocal": {
"format": "int64",
"type": "integer"
},
"observedGenerationRemote": {
"format": "int64",
"type": "integer"
},
"remoteConditions": {
"items": {
"properties": {
"lastTransitionTime": {
"format": "date-time",
"type": "string"
},
"message": {
"maxLength": 32768,
"type": "string"
},
"observedGeneration": {
"format": "int64",
"minimum": 0,
"type": "integer"
},
"reason": {
"maxLength": 1024,
"minLength": 1,
"pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
"type": "string"
},
"status": {
"enum": [
"True",
"False",
"Unknown"
],
"type": "string"
},
"type": {
"maxLength": 316,
"pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
"type": "string"
}
},
"required": [
"lastTransitionTime",
"message",
"reason",
"status",
"type"
],
"type": "object"
},
"type": "array"
},
"summary": {
"type": "string"
},
"summaryLocal": {
"type": "string"
},
"summaryRemote": {
"type": "string"
}
},
"type": "object"
},
"userName": {
"type": "string"
},
"userPrincipalName": {
"type": "string"
}
},
"required": [
"globalRoleName"
],
"type": "object"
}
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
}
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
}
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
}
File diff suppressed because it is too large Load Diff
+16
View File
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
}
@@ -0,0 +1,122 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"active": {
"type": "boolean"
},
"addCloudCredential": {
"type": "boolean"
},
"builtin": {
"type": "boolean"
},
"checksum": {
"maxLength": 128,
"pattern": "^$|^[a-fA-F0-9]{32,128}$",
"type": "string"
},
"displayName": {
"maxLength": 57,
"type": "string"
},
"externalId": {
"type": "string"
},
"uiUrl": {
"type": "string"
},
"url": {
"type": "string"
},
"whitelistDomains": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"active",
"url"
],
"type": "object",
"x-kubernetes-validations": [
{
"message": "Checksum must be an md5, sha1, sha256, or sha512 digest.",
"rule": "!has(self.checksum) || (self.checksum.size() in [0, 32, 40, 64, 128])"
}
]
},
"status": {
"properties": {
"appliedChecksum": {
"type": "string"
},
"appliedDockerMachineVersion": {
"type": "string"
},
"appliedURL": {
"type": "string"
},
"conditions": {
"items": {
"properties": {
"lastTransitionTime": {
"format": "date-time",
"type": "string"
},
"lastUpdateTime": {
"format": "date-time",
"type": "string"
},
"message": {
"maxLength": 32768,
"type": "string"
},
"reason": {
"maxLength": 1024,
"pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
"type": "string"
},
"status": {
"enum": [
"True",
"False",
"Unknown"
],
"type": "string"
},
"type": {
"maxLength": 316,
"pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
"type": "string"
}
},
"required": [
"status",
"type"
],
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
},
"required": [
"spec"
],
"type": "object"
}
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
}
@@ -0,0 +1,78 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"configuration": {
"properties": {
"defaults": {
"properties": {
"audit": {
"nullable": true,
"type": "string"
},
"audit-version": {
"nullable": true,
"type": "string"
},
"enforce": {
"nullable": true,
"type": "string"
},
"enforce-version": {
"nullable": true,
"type": "string"
},
"warn": {
"nullable": true,
"type": "string"
},
"warn-version": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"exemptions": {
"properties": {
"namespaces": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"runtimeClasses": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"usernames": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
}
},
"type": "object"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,19 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"value": {
"nullable": true,
"type": "string"
}
},
"type": "object"
}
@@ -0,0 +1,227 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"clusterName": {
"type": "string"
},
"containerDefaultResourceLimit": {
"properties": {
"limitsCpu": {
"type": "string"
},
"limitsMemory": {
"type": "string"
},
"requestsCpu": {
"type": "string"
},
"requestsMemory": {
"type": "string"
}
},
"type": "object"
},
"displayName": {
"type": "string"
},
"namespaceDefaultResourceQuota": {
"properties": {
"limit": {
"properties": {
"configMaps": {
"type": "string"
},
"limitsCpu": {
"type": "string"
},
"limitsMemory": {
"type": "string"
},
"persistentVolumeClaims": {
"type": "string"
},
"pods": {
"type": "string"
},
"replicationControllers": {
"type": "string"
},
"requestsCpu": {
"type": "string"
},
"requestsMemory": {
"type": "string"
},
"requestsStorage": {
"type": "string"
},
"secrets": {
"type": "string"
},
"services": {
"type": "string"
},
"servicesLoadBalancers": {
"type": "string"
},
"servicesNodePorts": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"resourceQuota": {
"properties": {
"limit": {
"properties": {
"configMaps": {
"type": "string"
},
"limitsCpu": {
"type": "string"
},
"limitsMemory": {
"type": "string"
},
"persistentVolumeClaims": {
"type": "string"
},
"pods": {
"type": "string"
},
"replicationControllers": {
"type": "string"
},
"requestsCpu": {
"type": "string"
},
"requestsMemory": {
"type": "string"
},
"requestsStorage": {
"type": "string"
},
"secrets": {
"type": "string"
},
"services": {
"type": "string"
},
"servicesLoadBalancers": {
"type": "string"
},
"servicesNodePorts": {
"type": "string"
}
},
"type": "object"
},
"usedLimit": {
"properties": {
"configMaps": {
"type": "string"
},
"limitsCpu": {
"type": "string"
},
"limitsMemory": {
"type": "string"
},
"persistentVolumeClaims": {
"type": "string"
},
"pods": {
"type": "string"
},
"replicationControllers": {
"type": "string"
},
"requestsCpu": {
"type": "string"
},
"requestsMemory": {
"type": "string"
},
"requestsStorage": {
"type": "string"
},
"secrets": {
"type": "string"
},
"services": {
"type": "string"
},
"servicesLoadBalancers": {
"type": "string"
},
"servicesNodePorts": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
},
"required": [
"clusterName",
"displayName"
],
"type": "object"
},
"status": {
"properties": {
"backingNamespace": {
"type": "string"
},
"conditions": {
"items": {
"properties": {
"lastTransitionTime": {
"type": "string"
},
"lastUpdateTime": {
"type": "string"
},
"message": {
"type": "string"
},
"reason": {
"type": "string"
},
"status": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"status",
"type"
],
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
}
@@ -0,0 +1,40 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"groupName": {
"type": "string"
},
"groupPrincipalName": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"projectName": {
"type": "string"
},
"roleTemplateName": {
"type": "string"
},
"serviceAccount": {
"type": "string"
},
"userName": {
"type": "string"
},
"userPrincipalName": {
"type": "string"
}
},
"required": [
"projectName",
"roleTemplateName"
],
"type": "object"
}
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
}
@@ -0,0 +1,145 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"administrative": {
"type": "boolean"
},
"apiVersion": {
"type": "string"
},
"builtin": {
"type": "boolean"
},
"clusterCreatorDefault": {
"type": "boolean"
},
"context": {
"enum": [
"project",
"cluster",
""
],
"type": "string"
},
"displayName": {
"type": "string"
},
"external": {
"type": "boolean"
},
"externalRules": {
"items": {
"properties": {
"apiGroups": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"nonResourceURLs": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resourceNames": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resources": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"verbs": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"verbs"
],
"type": "object"
},
"type": "array"
},
"hidden": {
"type": "boolean"
},
"kind": {
"type": "string"
},
"locked": {
"type": "boolean"
},
"metadata": {
"type": "object"
},
"projectCreatorDefault": {
"type": "boolean"
},
"roleTemplateNames": {
"items": {
"type": "string"
},
"type": "array"
},
"rules": {
"items": {
"properties": {
"apiGroups": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"nonResourceURLs": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resourceNames": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resources": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"verbs": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"verbs"
],
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
}
@@ -0,0 +1,30 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"customized": {
"type": "boolean"
},
"default": {
"nullable": true,
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"source": {
"nullable": true,
"type": "string"
},
"value": {
"nullable": true,
"type": "string"
}
},
"type": "object"
}
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
}
+74
View File
@@ -0,0 +1,74 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"displayName": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"kind": {
"type": "string"
},
"me": {
"type": "boolean"
},
"metadata": {
"type": "object"
},
"mustChangePassword": {
"type": "boolean"
},
"password": {
"type": "string"
},
"principalIds": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"properties": {
"conditions": {
"items": {
"properties": {
"lastTransitionTime": {
"type": "string"
},
"lastUpdateTime": {
"type": "string"
},
"message": {
"type": "string"
},
"reason": {
"type": "string"
},
"status": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"status",
"type"
],
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"username": {
"type": "string"
}
},
"type": "object"
}
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
}