- Added validation to `resolveKubectlVersion` to ensure input follows "major.minor" or "major.minor.patch" format.
- Moved `getLatestPatchVersion` from `run.ts` to `helpers.ts` to improve code organization and ensure a more robust testing process.
Replaced GitHub API Octo client with k8s CDN to fetch the latest security patch for improved reliability. Separated the API call logic from resolveKubectlVersion to enhance testability and readability.
Introduce resolveKubectlVersion function that enables automatic selection of the latest patch version when provided with major.minor version input (e.g., '1.27' resolves to 'v1.27.15')
Test Coverage:
- Major.minor version expansion to latest available patch
- Full version passthrough behavior (returns unchanged)
- Single matching version selection logic
- Comprehensive unit tests for kubectl version resolution scenarios
* Did some reorganizing of code in run.ts, moved run.test.ts into /src, and put some helpers into helpers.ts in /src.
* Did some reorganizing of code in run.ts, moved run.test.ts into /src, and put some helpers into helpers.ts in /src.
* Grabbed the upstream integration tests and brought them here. Removed bash script. Added validateKubectl.py to /test folder for integration tests.
* Ran npm run build
* Ran npm run build
* Updated on section for integration-tests.yml
* Removing ruby commands from integration tests yaml.
* Fixing discrepancies in integration test yaml.
* Fixing discrepancies in integration test yaml.
* Default to ubuntu-latest
* renamed python script according to workflow.
* renamed python script according to workflow.
* Fixing path parameters.
* Updated tsconfig.json
* Testing for int test failure.
* Validated that int tests work.
* Added new workflows.
* Testing release (#10)
* Did some reorganizing of code in run.ts, moved run.test.ts into /src, and put some helpers into helpers.ts in /src.
* Did some reorganizing of code in run.ts, moved run.test.ts into /src, and put some helpers into helpers.ts in /src.
* Grabbed the upstream integration tests and brought them here. Removed bash script. Added validateKubectl.py to /test folder for integration tests.
* Ran npm run build
* Ran npm run build
* Updated on section for integration-tests.yml
* Removing ruby commands from integration tests yaml.
* Fixing discrepancies in integration test yaml.
* Fixing discrepancies in integration test yaml.
* Default to ubuntu-latest
* renamed python script according to workflow.
* renamed python script according to workflow.
* Fixing path parameters.
* Updated tsconfig.json
* Testing for int test failure.
* Validated that int tests work.
* Added new workflows.
Co-authored-by: Tommy Barnes <thbarnes@microsoft.com>
* made changes reflected in comments
Co-authored-by: Tommy Barnes <thbarnes@microsoft.com>