cert-manager/docs/deploy/rbac
jetstack-ci-bot 362735f8f1
Merge pull request #312 from Mikulas/pr/cert-crd-alias
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add default shortNames to certificates CRD

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

**What this PR does / why we need it**:

Simplifies manual certificate management with kubectl.

Fixes #311

<div name="review-notes" />

**Special notes for your reviewer**:

Instead of a boolean switch do/dont include the shortNames, the value defines the aliases. This may be handy if anybody prefers `[crt, crts]` instead.

I'm not too keen on the `certificateCRDShortNames` variable name. It might be better to use `Resource` instead of `CRD` to be consistent with the `createCustomResource` var.

Other CRDs are probably ok without an alias, but other people workflows may differ. Should these also be configurable? In that case, the variables could be `shortNames: {certificates: [], …}`.

**Release note**:

```release-note
Add Certificate CRD shortnames `cert` and `certs`. This is configurable in the Helm Chart with `certificateResourceShortNames`.
```
2018-02-21 20:48:17 +00:00
..
certificate-crd.yaml Add default shortNames to certificates CRD 2018-02-21 20:37:25 +01:00
clusterissuer-crd.yaml Run hack/update-deploy-gen.sh 2018-02-05 19:16:47 +00:00
deployment.yaml Run hack/update-deploy-gen.sh 2018-02-05 19:16:47 +00:00
issuer-crd.yaml Run hack/update-deploy-gen.sh 2018-02-05 19:16:47 +00:00
rbac.yaml fix: Use ConfigMaps for leaderelection 2018-02-21 17:48:13 +00:00
serviceaccount.yaml Run hack/update-deploy-gen.sh 2018-02-05 19:16:47 +00:00