Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync values file and template. Add error handling #29

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: add jsonschema file for proper errors when using wrong values.
5nafu committed Mar 15, 2024
commit e58712beafd193fa96b38422792f3ae75e56c099
246 changes: 246 additions & 0 deletions charts/docker-hub-rate-limit-exporter-chart/values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"affinity": {
"properties": {},
"type": "object"
},
"config": {
"properties": {
"dockerhub": {
"properties": {
"password": {
"type": "string"
},
"username": {
"type": "string"
}
},
"type": "object"
},
"verbosity": {
"type": "integer"
}
},
"type": "object"
},
"daemonset": {
"properties": {
"enabled": {
"type": "boolean"
}
},
"type": "object",
"additionalProperties": false
},
"deployment": {
"properties": {
"enabled": {
"type": "boolean"
}
},
"type": "object",
"additionalProperties": false
},
"fullnameOverride": {
"type": "string"
},
"hostNetwork": {
"type": "boolean"
},
"hostPID": {
"type": "boolean"
},
"image": {
"properties": {
"pullPolicy": {
"type": "string"
},
"repository": {
"type": "string"
},
"tag": {
"type": "string"
}
},
"type": "object"
},
"imagePullSecrets": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": { "type": "string" }
}
}
},
"livenessProbeTimeoutSeconds": {
"type": "integer"
},
"nameOverride": {
"type": "string"
},
"nodeSelector": {
"properties": {},
"type": "object"
},
"podAnnotations": {
"type": "array",
"items": {
"type": "object",
"properties": {}
}
},
"podSecurityContext": {
"properties": {},
"type": "object"
},
"priorityClassName": {
"type": "string"
},
"readinessProbeTimeoutSeconds": {
"type": "integer"
},
"replicaCount": {
"type": "integer"
},
"resources": {
"properties": {
"limits": {
"properties": {
"cpu": {
"type": "string"
},
"memory": {
"type": "string"
}
},
"type": "object"
},
"requests": {
"properties": {
"cpu": {
"type": "string"
},
"memory": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"securityContext": {
"properties": {},
"type": "object"
},
"service": {
"properties": {
"annotations": {
"properties": {},
"type": "object"
},
"nodePort": {
"type": "integer"
},
"port": {
"type": "integer"
},
"portName": {
"type": "string"
},
"targetPort": {
"type": "integer"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"serviceAccount": {
"properties": {
"annotations": {
"properties": {},
"type": "object"
},
"create": {
"type": "boolean"
},
"imagePullSecrets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" }
}
}
},
"name": {
"type": "string"
}
},
"type": "object"
},
"serviceMonitor": {
"properties": {
"additionalLabels": {
"properties": {},
"type": "object"
},
"bearerTokenFile": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"interval": {
"type": "string"
},
"jobLabel": {
"type": "string"
},
"metricRelabelings": {
"type": "array"
},
"namespace": {
"type": "string"
},
"proxyUrl": {
"type": "string"
},
"relabelings": {
"type": "array"
},
"scheme": {
"type": "string"
},
"scrapeTimeout": {
"type": "string"
},
"selectorOverride": {
"properties": {},
"type": "object"
},
"tlsConfig": {
"properties": {},
"type": "object"
}
},
"type": "object"
},
"tolerations": {
"type": "array",
"items": {
"type": "object",
"properties": {}
}
},
"updateStrategy": {
"type": "string"
}
},
"type": "object"
}