Skip to content

Commit

Permalink
[installer] Add values.schema.json
Browse files Browse the repository at this point in the history
- Bump common to 0.1.13
- Simplify values.json
- Change tag to version-0.2.9 in order to reduce the number of chart updates

Signed-off-by: nιcнolaѕ wιlde <[email protected]>
  • Loading branch information
nicholaswilde committed Jun 27, 2021
1 parent 9c024f7 commit 0a1c5dc
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 22 deletions.
13 changes: 10 additions & 3 deletions charts/installer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v2
appVersion: "0.2.9"
version: 0.2.8
version: 1.0.0
name: installer
description: Quickly install pre-compiled binaries from Github releases.
home: "https://github.com/nicholaswilde/helm-charts/tree/main/charts/installer"
Expand All @@ -24,7 +24,14 @@ maintainers:
email: [email protected]
annotations:
artifacthub.io/changes: |
- Bump tag to 0.2.9-ls4
- kind: added
description: values.schema.json
- kind: changed
description: Bump common to 0.1.13
- kind: changed
description: Simplify values.json
- kind: changed
description: Change tag to version-0.2.9 in order to reduce the number of chart updates
artifacthub.io/images: |
- name: installer
image: ghcr.io/nicholaswilde/installer:0.2.9-ls4
image: ghcr.io/nicholaswilde/installer:version-0.2.9
2 changes: 1 addition & 1 deletion charts/installer/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# installer

![Version: 0.2.8](https://img.shields.io/badge/Version-0.2.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.9](https://img.shields.io/badge/AppVersion-0.2.9-informational?style=flat-square)
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.9](https://img.shields.io/badge/AppVersion-0.2.9-informational?style=flat-square)

Quickly install pre-compiled binaries from Github releases.

Expand Down
109 changes: 109 additions & 0 deletions charts/installer/values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"$schema": "http://json-schema.org/schema#",
"required": [
"image",
"service",
"ingress"
],
"title": "installer Chart JSON Schema",
"type": "object",
"properties": {
"image": {
"$id": "#/properties/image",
"type": "object",
"title": "Chart image object",
"description": "An explanation about the purpose of this instance.",
"required": [
"repository",
"pullPolicy",
"tag"
],
"properties": {
"repository": {
"$id": "#/properties/image/properties/repository",
"default": "ghcr.io/nicholaswilde/installer",
"description": "An explanation about the purpose of this instance.",
"title": "Image repository",
"type": "string"
},
"pullPolicy": {
"$id": "#/properties/image/properties/pullPolicy",
"default": "IfNotPresent",
"description": "An explanation about the purpose of this instance.",
"title": "Image pull policy",
"type": "string"
},
"tag": {
"$id": "#/properties/image/properties/tag",
"default": "version-0.2.9",
"description": "An explanation about the purpose of this instance.",
"title": "Image tag",
"type": "string"
}
}
},
"secret": {
"$id": "#/properties/secret",
"default": {},
"description": "An explanation about the purpose of this instance.",
"required": [],
"title": "Chart secret",
"type": "object"
},
"env": {
"$id": "#/properties/env",
"default": {},
"description": "An explanation about the purpose of this instance.",
"required": [],
"title": "Environmental variables",
"type": "object"
},
"service": {
"$id": "#/properties/service",
"description": "An explanation about the purpose of this instance.",
"required": [
"port"
],
"title": "Service object",
"type": "object",
"properties": {
"port": {
"$id": "#/properties/service/properties/port",
"description": "An explanation about the purpose of this instance.",
"required": [
"port"
],
"title": "Service port object",
"type": "object",
"properties": {
"port": {
"$id": "#/properties/service/properties/port/properties/port",
"default": 3000,
"description": "An explanation about the purpose of this instance.",
"title": "Service port number",
"type": "integer"
}
}
}
}
},
"ingress": {
"$id": "#/properties/ingress",
"description": "An explanation about the purpose of this instance.",
"required": [
"enabled"
],
"title": "Ingress object",
"type": "object",
"properties": {
"enabled": {
"$id": "#/properties/ingress/properties/enabled",
"default": false,
"description": "An explanation about the purpose of this instance.",
"title": "Enable ingress",
"type": "boolean"
}
}
}
}
}
35 changes: 17 additions & 18 deletions charts/installer/values.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
---
# Default values for installer.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
#
# IMPORTANT NOTE
#
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/nicholaswilde/helm-charts/tree/main/charts/common/values.yaml
#

image:
repository: ghcr.io/nicholaswilde/installer
pullPolicy: IfNotPresent
tag: "0.2.9-ls4"
tag: "version-0.2.9"

secret: {}
# USER: ""
# GH_TOKEN: ""
# USER: ""
# GH_TOKEN: ""

# See more environment variables in the installer documentation
# https://github.com/nicholaswilde/docker-installer
env: {}
# TZ: ""

service:
port:
port: 3000

ingress:
enabled: true
annotations:
nginx.ingress.kubernetes.io/whitelist-source-range: 192.168.1.0/24
hosts:
- host: "installer.192.168.1.199.nip.io"
paths:
- path: "/"
pathType: Prefix
# tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
enabled: false

0 comments on commit 0a1c5dc

Please sign in to comment.