- Replace gopkg.in/yaml.v3 with github.com/BurntSushi/toml - Update struct tags from yaml to toml - Update config tests to use TOML syntax - Add testdata/config.toml, update Helm configmap template
29 lines
696 B
YAML
29 lines
696 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ .Release.Name }}-config
|
|
data:
|
|
config.toml: |
|
|
[server]
|
|
addr = ":8080"
|
|
|
|
[git]
|
|
type = "gitea"
|
|
base_url = "{{ .Values.git.baseUrl }}"
|
|
token = "${GIT_TOKEN}"
|
|
|
|
[cluster]
|
|
kubeconfig = "/etc/proto-gen/kubeconfig"
|
|
namespace = "{{ .Values.cluster.namespace }}"
|
|
job_timeout = {{ .Values.cluster.jobTimeout }}
|
|
max_concurrent = {{ .Values.cluster.maxConcurrent }}
|
|
|
|
toolchain_registry = "{{ .Values.toolchainRegistry }}"
|
|
target_repo_template = "{{ .Values.targetRepoTemplate }}"
|
|
|
|
{{- range .Values.plugins }}
|
|
[[plugins]]
|
|
language = "{{ .language }}"
|
|
image = "{{ .image }}"
|
|
{{- end }}
|