Skip to content

Commit a291033

Browse files
author
noah
committed
fix: fix env for Gitploy
1 parent ef133e1 commit a291033

File tree

4 files changed

+27
-16
lines changed

4 files changed

+27
-16
lines changed

charts/gitploy/templates/configmap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ metadata:
66
{{ include "gitploy.labels" . | indent 4 }}
77
data:
88
{{- range $envKey, $envVal := .Values.env }}
9+
{{- if $envVal }}
910
{{ $envKey | upper }}: {{ $envVal | quote }}
11+
{{- end }}
1012
{{- end }}
1113

charts/gitploy/templates/deployment.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ spec:
3030
- name: http
3131
containerPort: 8080
3232
protocol: TCP
33-
livenessProbe:
34-
httpGet:
35-
path: /healthz
36-
port: http
3733
resources:
3834
{{- toYaml .Values.resources | nindent 12 }}
3935
envFrom:

charts/gitploy/values.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ replicaCount: 1
66

77
image:
88
repository: gitployio/gitploy
9-
tag: "0.1.0"
9+
tag: "0.1.0-alpha1"
1010
pullPolicy: IfNotPresent
1111

1212
imagePullSecrets: []
@@ -52,18 +52,24 @@ env:
5252
#
5353
GITPLOY_SERVER_PROTO: https
5454

55+
# REQUIRED: Identity users as admin.
56+
#
57+
GITPLOY_ADMIN_USERS: ""
5558

56-
# Slack-specific variables.
59+
# Github-specific variables.
60+
#
61+
# REQUIRED: Github oAuth client id.
5762
#
58-
GITPLOY_SLACK_CHANNEL: ""
59-
GITPLOY_SLACK_CLIENT_ID: ""
60-
GITPLOY_SLACK_CLIENT_SECRET: ""
63+
GITPLOY_GITHUB_CLIENT_ID: ""
64+
# REQUIRED: Github oAuth client secret.
65+
#
66+
GITPLOY_GITHUB_CLIENT_SECRET: ""
6167

6268
# DB-specific vairables.
6369
# If you are using SQLite as your DB for Gitploy, it is recommended to enable persistence.
6470
#
65-
# GITPLOY_STORE_DRIVER: ""
66-
# GITPLOY_STORE_SOURCE: ""
71+
# GITPLOY_STORE_DRIVER: "/data/sqlite3.db?cache=shared&_fk=1"
72+
# GITPLOY_STORE_SOURCE: "sqlite3"
6773

6874
# If you'd like to provide your own Kubernetes Secret object instead of passing your values
6975
# in un-encrypted, pass in the name of a created + populated Secret in the same Namespace
@@ -73,7 +79,7 @@ extraSecretNamesForEnvFrom: []
7379

7480
persistentVolume:
7581
# If you are using SQLite as your DB for Gitploy, it is recommended to enable persistence.
76-
enabled: true
82+
enabled: false
7783

7884
accessModes:
7985
- ReadWriteOnce

docs/install.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,18 @@ env:
1717
#
1818
GITPLOY_SERVER_PROTO: https
1919

20-
# Slack-specific variables.
20+
# REQUIRED: Identity users as admin.
2121
#
22-
GITPLOY_SLACK_CHANNEL:
23-
GITPLOY_SLACK_CLIENT_ID:
24-
GITPLOY_SLACK_CLIENT_SECRET:
22+
GITPLOY_ADMIN_USERS: ""
23+
24+
# Github-specific variables.
25+
#
26+
# REQUIRED: Github oAuth client id.
27+
#
28+
GITPLOY_GITHUB_CLIENT_ID: ""
29+
# REQUIRED: Github oAuth client secret.
30+
#
31+
GITPLOY_GITHUB_CLIENT_SECRET: ""
2532
```
2633
2734
Copy these into a new file, which we'll call `values.overrides.yaml`. Adjust the included defaults to reflect your environment.

0 commit comments

Comments
 (0)