Skip to content

Commit

Permalink
[golinks] Add values.schema.json
Browse files Browse the repository at this point in the history
- Bump common to 0.1.13
- Simplify values.yaml
- Change tag to version-154c581 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 773d994 commit 1250e8c
Show file tree
Hide file tree
Showing 4 changed files with 244 additions and 40 deletions.
15 changes: 11 additions & 4 deletions charts/golinks/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
apiVersion: v2
appVersion: "154c581"
version: 0.1.1
version: 1.0.0
name: golinks
description: A web app that allows you to create smart bookmarks, commands and aliases by pointing your web browser's default search engine at a running instance.
type: application
home: "https://github.com/nicholaswilde/helm-charts/tree/main/charts/golinks"
icon: ""
dependencies:
- name: common
version: ~0.1.8
version: ~0.1.13
repository: https://nicholaswilde.github.io/helm-charts/
keywords:
- search
Expand All @@ -25,7 +25,14 @@ maintainers:
email: [email protected]
annotations:
artifacthub.io/changes: |
- Bumped tag to 154c581-ls2
- kind: added
description: values.schema.json
- kind: changed
description: Bump common to 0.1.13
- kind: changed
description: Simplify values.yaml
- kind: changed
description: Change tag to version-154c581 in order to reduce the number of chart updates.
artifacthub.io/images: |
- name: golinks
image: ghcr.io/nicholaswilde/golinks:154c581-ls2
image: ghcr.io/nicholaswilde/golinks:version-154c581
4 changes: 2 additions & 2 deletions charts/golinks/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# golinks

![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 154c581](https://img.shields.io/badge/AppVersion-154c581-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: 154c581](https://img.shields.io/badge/AppVersion-154c581-informational?style=flat-square)

A web app that allows you to create smart bookmarks, commands and aliases by pointing your web browser's default search engine at a running instance.

Expand All @@ -11,7 +11,7 @@ A web app that allows you to create smart bookmarks, commands and aliases by poi

| Repository | Name | Version |
|------------|------|---------|
| https://nicholaswilde.github.io/helm-charts/ | common | ~0.1.8 |
| https://nicholaswilde.github.io/helm-charts/ | common | ~0.1.13 |

## TL;DR
```console
Expand Down
218 changes: 218 additions & 0 deletions charts/golinks/values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,218 @@
{
"$schema": "http://json-schema.org/schema#",
"required": [
"image",
"service",
"ingress"
],
"title": "golinks 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/golinks",
"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-154c581",
"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": 8000,
"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"
}
}
},
"persistence": {
"$id": "#/properties/persistence",
"description": "An explanation about the purpose of this instance.",
"required": [],
"title": "Persistence object",
"type": "object",
"properties": {
"app": {
"$id": "#/properties/persistence/properties/app",
"type": "object",
"title": "app PVC",
"description": "An explanation about the purpose of this instance.",
"required": [
"enabled",
"emptyDir",
"mountPath",
"accessMode",
"size"
],
"properties": {
"enabled": {
"$id": "#/properties/persistence/properties/app/properties/enabled",
"type": "boolean",
"title": "Enable app PVC",
"description": "An explanation about the purpose of this instance.",
"default": false
},
"emptyDir": {
"$id": "#/properties/persistence/properties/app/properties/emptyDir",
"type": "boolean",
"title": "app emptyDir",
"description": "An explanation about the purpose of this instance.",
"default": false
},
"mountPath": {
"$id": "#/properties/persistence/properties/app/properties/mountPath",
"default": "/app",
"description": "An explanation about the purpose of this instance.",
"title": "app mount path",
"type": "string"
},
"accessMode": {
"$id": "#/properties/persistence/properties/app/properties/accessMode",
"default": "ReadWriteOnce",
"description": "An explanation about the purpose of this instance.",
"title": "app access mode",
"type": "string"
},
"size": {
"$id": "#/properties/persistence/properties/app/properties/size",
"default": "1Gi",
"description": "An explanation about the purpose of this instance.",
"title": "app size",
"type": "string"
}
}
},
"data": {
"$id": "#/properties/persistence/properties/data",
"type": "object",
"title": "data PVC",
"description": "An explanation about the purpose of this instance.",
"required": [
"enabled",
"emptyDir",
"mountPath",
"accessMode",
"size"
],
"properties": {
"enabled": {
"$id": "#/properties/persistence/properties/data/properties/enabled",
"type": "boolean",
"title": "Enable data PVC",
"description": "An explanation about the purpose of this instance.",
"default": false
},
"emptyDir": {
"$id": "#/properties/persistence/properties/data/properties/emptyDir",
"type": "boolean",
"title": "data emptyDir",
"description": "An explanation about the purpose of this instance.",
"default": false
},
"mountPath": {
"$id": "#/properties/persistence/properties/data/properties/mountPath",
"default": "/data",
"description": "An explanation about the purpose of this instance.",
"title": "data mount path",
"type": "string"
},
"accessMode": {
"$id": "#/properties/persistence/properties/data/properties/accessMode",
"default": "ReadWriteOnce",
"description": "An explanation about the purpose of this instance.",
"title": "data access mode",
"type": "string"
},
"size": {
"$id": "#/properties/persistence/properties/data/properties/size",
"default": "1Gi",
"description": "An explanation about the purpose of this instance.",
"title": "data size",
"type": "string"
}
}
}
}
}
}
}
47 changes: 13 additions & 34 deletions charts/golinks/values.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
---
# Default values for golinks.
# 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/golinks
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "154c581-ls2"
tag: "version-154c581"

secret: {}

env:
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ: "America/Los_Angeles"
# See more environment variables in the golinks documentation
# https://github.com/nicholaswilde/docker-golinks
env: {}
# TZ: "America/Los_Angeles"
# PUID: "1000"
# PGID: "1000"
# SUGGEST=https://suggestqueries.google.com/complete/search?client=firefox&q=%s `# optional` \
Expand All @@ -24,43 +28,18 @@ service:
port: 8000

ingress:
enabled: true
hosts:
- host: "golinks.192.168.1.203.nip.io"
paths:
- path: /
# Ignored if not kubeVersion >= 1.14-0
pathType: Prefix
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
enabled: false

persistence:
app:
enabled: false
emptyDir: false
mountPath: /app
## Template downloads data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
# storageClass: "-"
##
## If you want to reuse an existing claim, you can pass the name of the PVC using
## the existingClaim variable
# existingClaim: your-claim
accessMode: ReadWriteOnce
size: 1Gi
## Do not delete the pvc upon helm uninstall
skipuninstall: false
data:
enabled: false
emptyDir: false
mountPath: /data
accessMode: ReadWriteOnce
size: 1Gi
skipuninstall: false

0 comments on commit 1250e8c

Please sign in to comment.