Add default shortNames to certificates CRD
Defaults to [cert, certs] and is configurable with `certificateCRDShortNames` parameter. [Closes #311]
This commit is contained in:
parent
e1aa30e467
commit
d884404159
@ -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`
|
||||
|
||||
@ -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 -}}
|
||||
|
||||
@ -10,6 +10,8 @@ image:
|
||||
|
||||
createCustomResource: true
|
||||
|
||||
certificateResourceShortNames: ["cert", "certs"]
|
||||
|
||||
rbac:
|
||||
# Specifies whether RBAC resources should be created
|
||||
create: true
|
||||
|
||||
@ -12,7 +12,11 @@ metadata:
|
||||
spec:
|
||||
group: certmanager.k8s.io
|
||||
version: v1alpha1
|
||||
scope: Namespaced
|
||||
names:
|
||||
kind: Certificate
|
||||
plural: certificates
|
||||
scope: Namespaced
|
||||
shortNames:
|
||||
- cert
|
||||
- certs
|
||||
|
||||
@ -12,7 +12,11 @@ metadata:
|
||||
spec:
|
||||
group: certmanager.k8s.io
|
||||
version: v1alpha1
|
||||
scope: Namespaced
|
||||
names:
|
||||
kind: Certificate
|
||||
plural: certificates
|
||||
scope: Namespaced
|
||||
shortNames:
|
||||
- cert
|
||||
- certs
|
||||
|
||||
Loading…
Reference in New Issue
Block a user