Skip to content

feat: add downloadBaseURL input to support custom download mirrors - #260

Closed
Alexis Couvreur (acouvreur) wants to merge 1 commit into
Azure:mainfrom
acouvreur:feature/download-base-url
Closed

Alexis Couvreur (acouvreur) wants to merge 1 commit into
Azure:mainfrom
acouvreur:feature/download-base-url

Conversation

@acouvreur

@acouvreur Alexis Couvreur (acouvreur) commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #206

Adds a new optional downloadBaseURL action input that allows users to specify a custom or private mirror for kubectl downloads, useful in air-gapped or enterprise environments.

Changes

  • action.yml — new optional input downloadBaseURL (default: https://dl.k8s.io)
  • src/helpers.ts — getkubectlDownloadURL() accepts a baseURL parameter (trailing slashes are stripped)
  • src/run.ts — downloadKubectl() accepts and forwards downloadBaseURL; run() reads the input and passes it through
  • src/run.test.ts — 7 new tests covering custom base URL and trailing-slash normalization

Usage

- uses: Azure/setup-kubectl@v4
  with:
    version: 'v1.30.0'
    downloadBaseURL: 'https://my-mirror.example.com'

Tests

All 37 tests pass.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add downloadBaseURL input

4 participants