Skip to content

Commit 4461765

Browse files
Fix
1 parent abe7055 commit 4461765

File tree

8 files changed

+44
-53
lines changed

8 files changed

+44
-53
lines changed

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
name: runboat
2+
name: runboat-controller
33

44
description: A Helm chart for OCA's Runboat
55

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Helm chart for OCA's Runboat controller
2+
3+
### Required Values
4+
5+
The Helm chart includes placeholder values, however following values **must be provided** for the chart to work correctly:
6+
7+
| Value | Description |
8+
|-------|-------------|
9+
| `controllerenv.runboatBuildEnv` | Postgres connection details (host, port, username, password, database) |
10+
| `runboatSecret.repos` | List of allowed repositories |
11+
| `ingress.host` | Hostname for base url for runboat controller & ingress |
12+
| `runboatSecret.apiAdminUser` | API admin username |
13+
| `runboatSecret.apiAdminPasswd` | API admin password |
14+
15+
## Installation
16+
17+
```bash
18+
helm upgrade --install runboat-controller \
19+
oci://ghcr.io/secretagentnull/runboat-helm \
20+
-f my-values.yaml
21+
```
22+
23+
### Enabling Ingress
24+
25+
The Helm chart includes an ingress resource, which is **disabled by default**. To enable ingress, pass:
26+
27+
```yaml
28+
ingress:
29+
enabled: true
30+
host: example.com

templates/NOTES.txt

Lines changed: 0 additions & 35 deletions
This file was deleted.

templates/_helpers.tpl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{/*
22
Expand the name of the chart.
33
*/}}
4-
{{- define "runboat.name" -}}
4+
{{- define "runboat-controller.name" -}}
55
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
66
{{- end }}
77

@@ -10,7 +10,7 @@ Create a default fully qualified app name.
1010
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
1111
If release name contains chart name it will be used as a full name.
1212
*/}}
13-
{{- define "runboat.fullname" -}}
13+
{{- define "runboat-controller.fullname" -}}
1414
{{- if .Values.fullnameOverride }}
1515
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
1616
{{- else }}
@@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
2626
{{/*
2727
Create chart name and version as used by the chart label.
2828
*/}}
29-
{{- define "runboat.chart" -}}
29+
{{- define "runboat-controller.chart" -}}
3030
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
3131
{{- end }}
3232

3333
{{/*
3434
Common labels
3535
*/}}
36-
{{- define "runboat.labels" -}}
37-
helm.sh/chart: {{ include "runboat.chart" . }}
38-
{{ include "runboat.selectorLabels" . }}
36+
{{- define "runboat-controller.labels" -}}
37+
helm.sh/chart: {{ include "runboat-controller.chart" . }}
38+
{{ include "runboat-controller.selectorLabels" . }}
3939
{{- if .Chart.AppVersion }}
4040
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4141
{{- end }}
@@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
4545
{{/*
4646
Selector labels
4747
*/}}
48-
{{- define "runboat.selectorLabels" -}}
49-
app.kubernetes.io/name: {{ include "runboat.name" . }}
48+
{{- define "runboat-controller.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "runboat-controller.name" . }}
5050
app.kubernetes.io/instance: {{ .Release.Name }}
5151
{{- end }}
5252

5353
{{/*
5454
Create the name of the service account to use
5555
*/}}
56-
{{- define "runboat.serviceAccountName" -}}
56+
{{- define "runboat-controller.serviceAccountName" -}}
5757
{{- if .Values.serviceAccount.create }}
58-
{{- default (include "runboat.fullname" .) .Values.serviceAccount.name }}
58+
{{- default (include "runboat-controller.fullname" .) .Values.serviceAccount.name }}
5959
{{- else }}
6060
{{- default "default" .Values.serviceAccount.name }}
6161
{{- end }}

templates/ingress.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ kind: Ingress
66
metadata:
77
name: runboat-controller-ingress
88
namespace: {{ .Release.Namespace }}
9-
annotations:
10-
cert-manager.io/cluster-issuer: letsencrypt-prod
11-
haproxy.org/config-snippet: |
12-
http-request redirect code 301 location /webui/builds.html if { path -m str / }
139
spec:
1410
tls:
1511
- hosts:

templates/secret-builds.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ metadata:
66
type: Opaque
77
stringData:
88
RUNBOAT_BUILD_SECRET_ENV: {{ .Values.runboatSecret.buildSecretEnv | toJson | quote }}
9-
RUNBOAT_GITHUB_TOKEN: {{ .Values.runboatSecret.githubToken | quote }}
9+
RUNBOAT_GITHUB_TOKEN: {{ .Values.runboatSecret.githubToken | quote }} # Not used in the "ghcr.io/sbidoul/runboat" image

templates/secret-controller.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ stringData:
1313

1414
# PostgreSQL & GitHub secrets
1515
RUNBOAT_BUILD_SECRET_ENV: {{ .Values.runboatSecret.buildSecretEnv | toJson | quote }}
16-
RUNBOAT_GITHUB_TOKEN: {{ .Values.runboatSecret.githubToken | quote }}
16+
RUNBOAT_GITHUB_TOKEN: {{ .Values.runboatSecret.githubToken | quote }} # Not used in the "ghcr.io/sbidoul/runboat" image
1717
RUNBOAT_GITHUB_WEBHOOK_SECRET: {{ .Values.runboatSecret.githubWebhookSecret | quote }}
1818

1919
# Allowed repositories

values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ runboatSecret:
6969
# PostgreSQL & GitHub secrets
7070
buildSecretEnv:
7171
PGPASSWORD: any_string
72-
githubToken: ghp_YOUR_TOKEN
72+
githubToken: ghp_YOUR_TOKEN # Not used in the "ghcr.io/sbidoul/runboat" image
7373
githubWebhookSecret: any_string
7474

7575

0 commit comments

Comments
 (0)