cockroachdb / cockroachdb/helm-charts
ValidationError(Certificate.spec): unknown field "organization" in io.cert-manager.v1.Certificate.spec
- Dominant language
- Go
- Stars
- 105
- Forks
- 152
- Avg merge
- 4d 23h
- Merged PRs (30d)
- 5
Description
When I install the Helm chart with the values:
```
- tls:
enabled: true
certs:
certManager: true
certManagerIssuer:
name: letsencrypt-prod
kind: ClusterIssuer
group: cert-manager.io
useCertManagerV1CRDs: true
```
I get the `ValidationError(Certificate.spec): unknown field "organization" in io.cert-manager.v1.Certificate.spec` error, probably because the `organization` section of the `Certificate` CRD is now under the `subject` property: https://cert-manager.io/docs/usage/certificate/ but in the Helm chart is straight under `spec`: https://github.com/cockroachdb/helm-charts/blob/3cd97971dc0effc4023eee7217609b883df14154/cockroachdb/templates/certificate.client.yaml#L35
## Solution fix:
Just put it under `subject` for `cert-manager.io/v1` at least and should work.
### Versions:
- cert-manager v1.5.2
- Cockroachdb Helm chart version: 6.0.8
### Detailed error message:
```
Comparing release=cockroachdb, chart=cockroachdb/cockroachdb
in applications/cockroachdb/helmfile.yaml: command "/usr/sbin/helm" exited with non-zero status:
PATH:
/usr/sbin/helm
ARGS:
0: helm (4 bytes)
1: diff (4 bytes)
2: upgrade (7 bytes)
3: --reset-values (14 bytes)
4: --allow-unreleased (18 bytes)
5: cockroachdb (11 bytes)
6: cockroachdb/cockroachdb (23 bytes)
7: --version (9 bytes)
8: 6.0.8 (5 bytes)
9: --namespace (11 bytes)
10: kube-system (11 bytes)
11: --values (8 bytes)
12: /tmp/helmfile002135761/kube-system-cockroachdb-values-559d977b55 (64 bytes)
13: --values (8 bytes)
14: /tmp/helmfile103528956/kube-system-cockroachdb-values-58cccd9ddd (64 bytes)
15: --values (8 bytes)
16: /tmp/helmfile619607851/kube-system-cockroachdb-values-69975879d7 (64 bytes)
17: --values (8 bytes)
18: /tmp/helmfile188868750/kube-system-cockroachdb-values-d7bc9c658 (63 bytes)
19: --values (8 bytes)
20: /tmp/helmfile343799957/kube-system-cockroachdb-values-7b798f8444 (64 bytes)
21: --detailed-exitcode (19 bytes)
ERROR:
exit status 1
EXIT STATUS
1
STDERR:
Error: Failed to render chart: exit status 1: Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Certificate.spec): unknown field "organization" in io.cert-manager.v1.Certificate.spec
Error: plugin "diff" exited with error
COMBINED OUTPUT:
Error: Failed to render chart: exit status 1: Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Certificate.spec): unknown field "organization" in io.cert-manager.v1.Certificate.spec
Error: plugin "diff" exited with error
```
Jira issue: HELM-7
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with cockroachdb/templates/certificate.client.yaml at the Certificate spec fields around line 35 and compare them with the cert-manager v1 Certificate schema. Render or diff the chart using the reported values, then confirm the generated Certificate validates without the unknown organization field error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- helm, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100