Add default shortNames to certificates CRD

Defaults to [cert, certs] and is configurable with
`certificateCRDShortNames` parameter.

[Closes #311]
This commit is contained in:
Mikuláš Dítě 2018-02-12 15:53:17 +01:00
parent e1aa30e467
commit d884404159
5 changed files with 18 additions and 3 deletions

View File

@ -58,6 +58,7 @@ The following tables lists the configurable parameters of the cert-manager chart
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `replicaCount` | Number of cert-manager replicas | `1` |
| `createCustomResource` | Create CRD/TPR with this release | `true` |
| `certificateResourceShortNames` | Custom aliases for Certificate CRD | `["cert", "certs"]` |
| `extraArgs` | Optional flags for cert-manager | `[]` |
| `rbac.create` | If `true`, create and use RBAC resources | `true`
| `serviceAccount.create` | If `true`, create a new service account | `true`

View File

@ -11,8 +11,12 @@ metadata:
spec:
group: certmanager.k8s.io
version: v1alpha1
scope: Namespaced
names:
kind: Certificate
plural: certificates
scope: Namespaced
{{- if .Values.certificateResourceShortNames }}
shortNames:
{{ toYaml .Values.certificateResourceShortNames | indent 6 }}
{{- end -}}
{{- end -}}

View File

@ -10,6 +10,8 @@ image:
createCustomResource: true
certificateResourceShortNames: ["cert", "certs"]
rbac:
# Specifies whether RBAC resources should be created
create: true

View File

@ -12,7 +12,11 @@ metadata:
spec:
group: certmanager.k8s.io
version: v1alpha1
scope: Namespaced
names:
kind: Certificate
plural: certificates
scope: Namespaced
shortNames:
- cert
- certs

View File

@ -12,7 +12,11 @@ metadata:
spec:
group: certmanager.k8s.io
version: v1alpha1
scope: Namespaced
names:
kind: Certificate
plural: certificates
scope: Namespaced
shortNames:
- cert
- certs