Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Fix putting tuples into configmap and secret #4

Merged
merged 4 commits into from
Dec 15, 2021
Merged
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
2 changes: 1 addition & 1 deletion charts/drone-runner-kube/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: Helm chart to deploy a Kubernetes runner for Drone
type: application
appVersion: 1.0.0-rc.2

version: 1.0.2
version: 1.0.3

maintainers:
- name: kang-makes
Expand Down
4 changes: 4 additions & 0 deletions charts/drone-runner-kube/ci/test-populate-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
env:
configMap:
KEY_1: value 1
KEY_2: value 2
4 changes: 4 additions & 0 deletions charts/drone-runner-kube/ci/test-populate-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
env:
secret:
KEY_1: value 1
KEY_2: value 2
6 changes: 4 additions & 2 deletions charts/drone-runner-kube/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{{- $fullName := include "drone-runner-kube.fullname" . -}}
{{- $namespace := .Release.Namespace -}}
{{- with .Values.env.configMap }}
---
kind: ConfigMap
apiVersion: v1
metadata:
name: {{ include "drone-runner-kube.fullname" . }}
namespace: {{ .Release.Namespace }}
name: {{ $fullName }}
namespace: {{ $namespace }}
data:
{{- toYaml . | nindent 2 }}
{{- end }}
6 changes: 4 additions & 2 deletions charts/drone-runner-kube/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{{- $fullName := include "drone-runner-kube.fullname" . -}}
{{- $namespace := .Release.Namespace -}}
{{- with .Values.env.secret }}
---
kind: Secret
apiVersion: v1
metadata:
name: {{ include "drone-runner-kube.fullname" . }}
namespace: {{ .Release.Namespace }}
name: {{ $fullName }}
namespace: {{ $namespace }}
stringData:
{{- toYaml . | nindent 2 }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/drone-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: Helm chart to deploy Drone CI in Kubernetes
type: application
appVersion: 2.5.0

version: 1.0.1
version: 1.0.2

maintainers:
- name: kang-makes
Expand Down
4 changes: 4 additions & 0 deletions charts/drone-server/ci/test-populate-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
env:
configMap:
KEY_1: value 1
KEY_2: value 2
4 changes: 4 additions & 0 deletions charts/drone-server/ci/test-populate-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
env:
secret:
KEY_1: value 1
KEY_2: value 2
6 changes: 4 additions & 2 deletions charts/drone-server/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{{- $fullName := include "drone-server.fullname" . -}}
{{- $namespace := .Release.Namespace -}}
{{- with .Values.env.configMap }}
---
kind: ConfigMap
apiVersion: v1
metadata:
name: {{ include "drone-server.fullname" . }}
namespace: {{ .Release.Namespace }}
name: {{ $fullName }}
namespace: {{ $namespace }}
data:
{{- toYaml . | nindent 2 }}
{{- end }}
6 changes: 4 additions & 2 deletions charts/drone-server/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{{- $fullName := include "drone-server.fullname" . -}}
{{- $namespace := .Release.Namespace -}}
{{- with .Values.env.secret }}
---
kind: Secret
apiVersion: v1
metadata:
name: {{ include "drone-server.fullname" . }}
namespace: {{ .Release.Namespace }}
name: {{ $fullName }}
namespace: {{ $namespace }}
stringData:
{{- toYaml . | nindent 2 }}
{{- end }}