Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions content/docs/configuration/venafi.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,3 +304,36 @@ metadata:
]
...
```
Starting `v1.20`, you can use `venafi.cert-manager.io/custom-fields` annotation on `Issuer` or `ClusterIssuer` objects.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest that you put this into it's own heading so it's clear it is additional new functionality but also optional:

Suggested change
Starting `v1.20`, you can use `venafi.cert-manager.io/custom-fields` annotation on `Issuer` or `ClusterIssuer` objects.
### Issuer Custom Fields
Starting `v1.20`, you can use `venafi.cert-manager.io/custom-fields` annotation on an `Issuer` or `ClusterIssuer` resource.

This configuration would be applied to all Certificate requests created from `Issuer`.

It is possible to override or append custom configuration to a specific `Certificate`, in example.
given following `Issuer`
```yaml
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: corp-issuer
annotations:
[
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[
venafi.cert-manager.io/custom-fields: |-
[

{"name": "Environemnt", "value": "Dev"},
]
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```
```

and `Certificate`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
and `Certificate`
and a `Certificate` resource:

```yaml
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: example-com-certificate
annotations:
venafi.cert-manager.io/custom-fields: |-
[
{"name": "Team", "value": "amber"},
]
...
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```
```

Final configuration will be:
```json
{"name": "Environemnt", "value": "Dev"},
{"name": "Team", "value": "amber"}
```