Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spec.hosts.k0sDownloadURL #677

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Add spec.hosts.k0sDownloadURL #677

merged 1 commit into from
Apr 25, 2024

Conversation

kke
Copy link
Contributor

@kke kke commented Apr 12, 2024

Adds a spec.hosts.[*].k0sDownloadURL field with support for token expansion:

  • %% - literal %
  • %p - host architecture (arm, arm64, amd64)
  • %v - k0s version (v1.21.0+k0s.0)
  • %x - k0s binary extension (currently always empty)

Example:

spec:
  hosts:
  - role: controller
    k0sDownloadURL: https://files.example.com/k0s%20files/k0s-%v-%p%x
    # Expands to https://files.example.com/k0s%20files/k0s-v1.21.0%2Bk0s.0-amd64

The token expansion also applies to spec.hosts.[*].files.[*].src when they're URLs.

@kke kke added the enhancement New feature or request label Apr 12, 2024
@kke kke force-pushed the k0sdownloadurl branch 3 times, most recently from 53dc9a7 to edfba8a Compare April 12, 2024 20:58
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
@kke kke marked this pull request as ready for review April 12, 2024 21:09
@kke kke merged commit 6e5655f into main Apr 25, 2024
36 checks passed
@kke kke deleted the k0sdownloadurl branch April 25, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant