elastic / elastic/crd-ref-docs

Major.minor versions that end with 0 like 1.30 are truncated like floats

Open
#88 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.