Skip to content

Commit

Permalink
Merge pull request #6424 from gplessis/helm_extraObjects
Browse files Browse the repository at this point in the history
Helm chart: Allow the creation of extra manifests via values
  • Loading branch information
cert-manager-prow[bot] committed May 7, 2024
2 parents 4cae5b1 + b1767b4 commit 54aab4b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
18 changes: 18 additions & 0 deletions deploy/charts/cert-manager/README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,24 @@ Additional volume mounts to add to the cert-manager controller container.
> ```
enableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
#### **extraObjects** ~ `array`
> Default value:
> ```yaml
> []
> ```
Create dynamic manifests via values.
For example:
```yaml
extraObjects:
- |
apiVersion: v1
kind: ConfigMap
metadata:
name: '{{ template "cert-manager.name" . }}-extra-configmap'
```
<!-- /AUTO-GENERATED -->
### Default Security Contexts
Expand Down
4 changes: 4 additions & 0 deletions deploy/charts/cert-manager/templates/extras-objects.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ range .Values.extraObjects }}
---
{{ tpl . $ }}
{{ end }}
11 changes: 11 additions & 0 deletions deploy/charts/cert-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1308,3 +1308,14 @@ startupapicheck:
# injected into pod's environment variables, matching the syntax of Docker
# links.
enableServiceLinks: false

# Create dynamic manifests via values.
#
# For example:
# extraObjects:
# - |
# apiVersion: v1
# kind: ConfigMap
# metadata:
# name: '{{ template "cert-manager.name" . }}-extra-configmap'
extraObjects: []

0 comments on commit 54aab4b

Please sign in to comment.