Merge pull request #2141 from daodennis/patch-1

Update kubernetes.rb to add versions available
This commit is contained in:
Simon Legner 2024-02-04 19:35:23 +01:00 committed by GitHub
commit 30cb1b5a28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,15 +20,35 @@ module Docs
# latest version has a special URL that does not include the version identifier
version do
self.release = "1.26"
self.release = "1.29"
self.base_url = "https://kubernetes.io/docs/reference/kubernetes-api/"
end
version '1.20' do
version '1.28' do
self.release = "#{version}"
self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/"
end
version '1.27' do
self.release = "#{version}"
self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/"
end
version '1.26' do
self.release = "#{version}"
self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/"
end
version '1.25' do
self.release = "#{version}"
self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/"
end
version '1.24' do
self.release = "#{version}"
self.base_url = "https://v#{version.sub('.', '-')}.docs.kubernetes.io/docs/reference/kubernetes-api/"
end
def get_latest_version(opts)
get_latest_github_release('kubernetes', 'kubernetes', opts)
end