Skip to content

Commit 8295bfc

Browse files
committed
Bugfix: double Stable
Signed-off-by: Matthias Büchse <[email protected]>
1 parent 2e182fb commit 8295bfc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Standards/scs-0214-v1-k8s-node-distribution.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
title: Kubernetes Node Distribution and Availability
33
type: Standard
4-
status: Stable
4+
status: Deprecated
55
stabilized_at: 2024-02-08
6+
deprecated_at: 2024-11-20
67
track: KaaS
78
---
89

Tests/chk_adrs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def print_usage(file=sys.stderr):
6464
class Checker:
6565
def __init__(self):
6666
self.errors = 0
67+
self.stable = collections.defaultdict(set)
6768

6869
def emit(self, s):
6970
print(f"ERROR: {s}", file=sys.stderr)
@@ -91,6 +92,9 @@ def check_names(self, mds):
9192
duplicates = sorted([fn for fn in mds if counts[fn[:12]] > 1])
9293
if duplicates:
9394
self.emit(f"duplicates found: {', '.join(duplicates)}")
95+
for key, fns in self.stable.items():
96+
if len(fns) > 1:
97+
self.emit(f"duplicate stable: {fns}")
9498

9599
def check_front_matter(self, fn, front):
96100
"""Check the dict `front` of front matter
@@ -122,6 +126,8 @@ def check_front_matter(self, fn, front):
122126
self.emit(f"in {fn}: status is Stable or Deprecated, but stabilized_at date is missing")
123127
if status == "Rejected" and "rejected_at" not in front:
124128
self.emit(f"in {fn}: status is Rejected, but rejected_at date is missing")
129+
if status == "Stable":
130+
self.stable[fn[4:8]].add(fn)
125131

126132

127133
def _load_front_matter(path):

0 commit comments

Comments
 (0)