diff --git a/common/templates.yaml b/common/templates.yaml index 8da5335..d6c7bfa 100644 --- a/common/templates.yaml +++ b/common/templates.yaml @@ -1,5 +1,5 @@ -helmDefaults: - kubeContext: "{{ .StateValues.kubeContext }}" +#helmDefaults: +# kubeContext: "{{ `{{ .StateValues.kubeContext }}` }}" templates: # --------------------------- diff --git a/helmfile.yaml.gotmpl b/helmfile.yaml.gotmpl index 0fc45c0..c47e329 100644 --- a/helmfile.yaml.gotmpl +++ b/helmfile.yaml.gotmpl @@ -20,3 +20,7 @@ helmfiles: values: - kubeContext: "{{ .Environment.KubeContext }}" - {{ toYaml .Environment.Values | nindent 8 }} + - path: ./helmfiles/applications.yaml + values: + - kubeContext: "{{ .Environment.KubeContext }}" + - {{ toYaml .Environment.Values | nindent 8 }} diff --git a/helmfiles/applications.yaml b/helmfiles/applications.yaml new file mode 100644 index 0000000..e03e226 --- /dev/null +++ b/helmfiles/applications.yaml @@ -0,0 +1,15 @@ +bases: + - ../common/templates.yaml + +repositories: + - name: gitea + url: https://dl.gitea.io/charts/ + +releases: + - name: app-gitea + chart: gitea/gitea + version: 11.0.0 + namespace: org-badhouseplants + inherit: + - template: env-values + - template: env-secrets diff --git a/values/badhouseplants/org-badhouseplants/app-gitea/values.yaml b/values/badhouseplants/org-badhouseplants/app-gitea/values.yaml index 8f802f3..71156ec 100644 --- a/values/badhouseplants/org-badhouseplants/app-gitea/values.yaml +++ b/values/badhouseplants/org-badhouseplants/app-gitea/values.yaml @@ -41,8 +41,7 @@ gitea: metrics: enabled: true serviceMonitor: - # -- TODO(@allanger): Enable it once prometheus is configured - enabled: false + enabled: true config: database: DB_TYPE: postgres @@ -66,6 +65,7 @@ gitea: LFS_START_SERVER: true LANDING_PAGE: explore START_SSH_SERVER: true + ENABLE_PPROF: true storage: STORAGE_TYPE: minio MINIO_ENDPOINT: "s3.badhouseplants.net:443" diff --git a/values/badhouseplants/values.gitea.yaml b/values/badhouseplants/values.gitea.yaml index 49e42e2..4a10a2b 100644 --- a/values/badhouseplants/values.gitea.yaml +++ b/values/badhouseplants/values.gitea.yaml @@ -57,8 +57,7 @@ gitea: metrics: enabled: true serviceMonitor: - # -- TODO(@allanger): Enable it once prometheus is configured - enabled: false + enabled: true config: database: DB_TYPE: postgres @@ -82,6 +81,7 @@ gitea: LFS_START_SERVER: true LANDING_PAGE: explore START_SSH_SERVER: true + ENABLE_PPROF: true storage: STORAGE_TYPE: minio MINIO_ENDPOINT: "s3.badhouseplants.net:443"