feat: add cluster auditing, management, and upgrade scripts

This commit is contained in:
2026-11-04 17:58:07 -05:00
parent 8117326b14
commit 1b378b29f3
128 changed files with 4744 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
import urllib.request
import json
url = "https://update.k3s.io/v1-release/channels"
try:
req = urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0', 'Accept': 'application/json'})
with urllib.request.urlopen(req, timeout=10) as resp:
data = json.loads(resp.read().decode())
for item in data.get('data', []):
print(f"{item.get('id')}: {item.get('latest')}")
except Exception as e:
print("Error:", e)