Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions charts/drone/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ data:
{{- range $envKey, $envVal := .Values.env }}
{{ $envKey | upper }}: {{ $envVal | quote }}
{{- end }}
{{- if .Values.port }}
DRONE_SERVER_PORT: :{{ .Values.port }}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the : prefix.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 can we merge that?

{{- end }}
2 changes: 1 addition & 1 deletion charts/drone/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 80
containerPort: {{ .Values.port }}
protocol: TCP
livenessProbe:
httpGet:
Expand Down
5 changes: 5 additions & 0 deletions charts/drone/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ emptyDir:
extraSecretNamesForEnvFrom: []
# - my-drone-secrets

# The port for the Drone web server. Set this to a high port such as 8080 if a
# custom securityContext (either specified above or in a PodSecurityPolicy)
# would prevent Drone server from running as root.
port: 80

## The keys within the "env" map are mounted as environment variables on the Drone server pod.
## See the full reference of Drone server environment variables here:
## Ref: https://docs.drone.io/installation/reference/
Expand Down