netboot.xyz - Fixes for #2101 and #2104 (#2102)

This commit is contained in:
Kelly Shutt
2024-01-31 02:34:48 -05:00
committed by GitHub
parent 4c86f67aa4
commit 51fd7742ed
4 changed files with 6 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ description: netboot.xyz lets you PXE boot various operating system installers o
annotations:
title: netbootxyz
type: application
version: 1.0.0
version: 1.0.1
apiVersion: v2
appVersion: 2.0.76
kubeVersion: '>=1.16.0-0'

View File

@@ -15,6 +15,8 @@ capabilities:
description: TFTP requires this ability to switch user for sub-processes.
- name: SETGID
description: TFTP requires this ability to switch group for sub-processes.
- name: SYS_CHROOT
description: TFTP requires this ability to spawn child processes.
- name: NET_BIND_SERVICE
description: TFTP requires this ability to bind to port 69 for TFTP.
- name: KILL

View File

@@ -23,6 +23,7 @@ workload:
- FOWNER
- SETGID
- SETUID
- SYS_CHROOT
- NET_BIND_SERVICE
- KILL
env:

View File

@@ -6,12 +6,12 @@ import sys
from catalog_update.upgrade_strategy import semantic_versioning
RE_STABLE_VERSION = re.compile(r'\d+\.\d+\.\d+-nbxyz2')
RE_STABLE_VERSION = re.compile(r'\d+\.\d+\.\d+-nbxyz\d')
def newer_mapping(image_tags):
key = list(image_tags.keys())[0]
tags = {t.strip('-nbxyz2'): t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)}
tags = {t.replace("-nbxyz", "."): t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)}
version = semantic_versioning(list(tags))
if not version:
return {}