elastic / elastic/crd-ref-docs
Major.minor versions that end with 0 like 1.30 are truncated like floats
Open
- Dominant language
- Go
- Stars
- 173
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
### Problem statement
When a version that ends with `0` like `1.30` is used in the config e.g.
```
render:
kubernetesVersion: 1.30
```
then it will be truncated like a float number, i.e. `1.3`.
### Workaround
Use quotation marks:
```
render:
kubernetesVersion: "1.30"
```
### Proposed solution
Handle this inside `crd-ref-docs` so that users are not surprised.
Contributor guide
Assessment
This issue has not been assessed yet.