Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Add ClusterIssuerName configuration option
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergesundheit committed Sep 27, 2023
1 parent 1a5d7d8 commit de30004
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Possibility to configure used ClusterIssuer name for Ingresses.

## [1.20.0] - 2023-07-04

### Changed
Expand Down
3 changes: 3 additions & 0 deletions helm/promxy-app/templates/ingress-basic-auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ metadata:
annotations:
{{- if .Values.monitoring.prometheus.letsencrypt }}
kubernetes.io/tls-acme: "true"
{{- with .Values.monitoring.prometheus.clusterIssuerName }}
cert-manager.io/cluster-issuer: "{{ . }}"
{{- end }}
{{- end }}
nginx.ingress.kubernetes.io/rewrite-target: /$2
# basic-auth for global Promxy to be able to access all installation-level
Expand Down
3 changes: 3 additions & 0 deletions helm/promxy-app/templates/ingress-oauth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ metadata:
annotations:
{{- if .Values.monitoring.prometheus.letsencrypt }}
kubernetes.io/tls-acme: "true"
{{- with .Values.monitoring.prometheus.clusterIssuerName }}
cert-manager.io/cluster-issuer: "{{ . }}"
{{- end }}
{{- end }}
# OAuth2 SSO access for humans
nginx.ingress.kubernetes.io/auth-signin: https://$host/oauth2/start?rd=$escaped_request_uri
Expand Down
3 changes: 3 additions & 0 deletions helm/promxy-app/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"prometheus": {
"type": "object",
"properties": {
"clusterIssuerName": {
"type": "string"
},
"host": {
"type": "string"
},
Expand Down
1 change: 1 addition & 0 deletions helm/promxy-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ monitoring:
prometheus:
host: ""
letsencrypt: true
clusterIssuerName: ""
promxy:
htpasswd: ""

Expand Down

0 comments on commit de30004

Please sign in to comment.