mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Update kubernetes.rb and add versions available
Previously only the latest and v1.20 was available, this change adds the latest version 1.29 and the previous five versions through 1.24 which are common K8S releases in circulation.
This commit is contained in:
parent
c1bcb7e384
commit
e328e5a1fb
1 changed files with 27 additions and 2 deletions
|
@ -20,15 +20,40 @@ 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.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
|
||||
|
|
Loading…
Reference in a new issue