Skip to content

Commit

Permalink
add option for namespace (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-wmde authored Dec 20, 2024
1 parent d20ff7f commit 806b799
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/certificates/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 8 additions & 0 deletions charts/certificates/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#

## Changelog
# 0.1.1
- added `namespace` as a field for a `Certificate`

# 0.1.0
- initial version
2 changes: 1 addition & 1 deletion charts/certificates/templates/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: {{ .name }}
namespace: default
namespace: {{ .namespace | default "default" }}
spec:
commonName: {{ .commonName }}
dnsNames:
Expand Down
1 change: 1 addition & 0 deletions charts/certificates/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ certificates: []
# certificates:
# -
# name: wikibase-cloud-tls
# namespace: default
# commonName: somedomain.com
# dnsNames:
# - '*.somedomain.com'
Expand Down

0 comments on commit 806b799

Please sign in to comment.