Commit graph

8 commits

Author SHA1 Message Date
Alexis Couvreur
269ea0e4a1
feat: add version-file input to read kubectl version from .tool-versions
Implements https://github.com/Azure/setup-kubectl/issues/259

- Add `version-file` input to action.yml that accepts a path to a
  .tool-versions file (asdf/mise compatible format)
- Add `parseToolVersionsFile()` helper that reads kubectl version
  from a .tool-versions file, skipping comments and blank lines
- Update `run()` to check `version-file` before `version`; when
  provided, the resolved version goes through `resolveKubectlVersion()`
  supporting both full (1.27.15) and major.minor (1.27) forms
- Add unit tests for `parseToolVersionsFile()` and the new run() path
2026-05-13 21:02:22 +02:00
Marten Kreienbrock
1dbc167e74
Update Node version from 20 to 24 in action.yml (#233)
To mitigate recent warnings in Github actions using azure/setup-kubectl regarding the EOL of node20
2026-03-12 13:34:30 -04:00
Matt Cavanagh
44bac4685f
Description was inaccurate, should have v prefix (#195) 2025-10-08 09:59:30 -04:00
Per Karlsson
796733b6bf
Bump node to version 20 (#90) 2024-01-26 16:23:31 -05:00
Vidya Reddy
2eb2a370ff
Vidya reddy prettier (#58)
* upgraded to Node16

* Enforce Prettier

* code fix

* jest version change and prettify code

Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com>
2022-06-27 15:31:07 -07:00
Vidya
09392910a9
upgraded to Node16 (#53)
Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com>
2022-06-16 14:48:20 -04:00
David Gamero
07e8ba6f62
switch to ncc files (#44) 2022-02-10 15:52:09 -05:00
Deepak Sattiraju
39fc719fd9 Port from k8s-actions 2019-09-10 15:40:21 +05:30