Skip to content

Commit

Permalink
values.yaml support
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Jan 24, 2022
1 parent 1117cd6 commit 8ba7b5b
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 3 deletions.
7 changes: 6 additions & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ maintainers:

type: application

version: 0.1.1
version: 0.2.0

appVersion: "latest"

keywords:
- olivetin
- shell
- commands
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# OliveTin-HelmChart
# OliveTin (Helm Chart)

Give safe and simple access to predefined shell commands from a web interface.

[Instructions for using the OliveTin Helm chart](https://docs.olivetin.app/install-helm.html)

## Quickstart

user@host: helm repo add olivetin https://olivetin.github.io/OliveTin-HelmChart/
user@host: helm install olivetin olivetin/olivetin

4 changes: 3 additions & 1 deletion templates/k8s_ingress.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand All @@ -9,7 +10,7 @@ spec:
port:
number: 1337
rules:
- host: olivetin.example.com
- host: {{ .Values.ingress.host }}
http:
paths:
- path: /
Expand All @@ -19,3 +20,4 @@ spec:
name: olivetin
port:
number: 1337
{{- end }}
12 changes: 12 additions & 0 deletions templates/k8s_service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: olivetin
spec:
ports:
- port: 1337
protocol: TCP
targetPort: 1337
selector:
app: olivetin
type: ClusterIP
62 changes: 62 additions & 0 deletions values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "object",
"title": "OliveTin-HelmChart schema",
"description": "The root schema comprises the entire JSON document.",
"default": {},
"examples": [
{
"ingress": {
"enabled": true,
"host": "olivetin.example.com"
}
}
],
"required": [
"ingress"
],
"properties": {
"ingress": {
"$id": "#/properties/ingress",
"type": "object",
"title": "The ingress schema",
"description": "Options for controlling ingress.",
"default": {},
"examples": [
{
"enabled": true,
"host": "olivetin.example.com"
}
],
"required": [
"enabled",
"host"
],
"properties": {
"enabled": {
"$id": "#/properties/ingress/properties/enabled",
"type": "boolean",
"title": "The enabled schema",
"description": "Should this helm chart create a ingress resource?",
"default": false,
"examples": [
true
]
},
"host": {
"$id": "#/properties/ingress/properties/host",
"type": "string",
"title": "The host schema",
"description": "What hostname should be used in the ingress?",
"default": "",
"examples": [
"olivetin.example.com"
]
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ingress:
enabled: true
host: olivetin.example.com

0 comments on commit 8ba7b5b

Please sign in to comment.