Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Standards/scs-0214-v1-k8s-node-distribution.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: Kubernetes Node Distribution and Availability
type: Standard
status: Stable
status: Deprecated
stabilized_at: 2024-02-08
deprecated_at: 2024-11-20
track: KaaS
---

Expand Down
6 changes: 6 additions & 0 deletions Tests/chk_adrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def print_usage(file=sys.stderr):
class Checker:
def __init__(self):
self.errors = 0
self.stable = collections.defaultdict(set)

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

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


def _load_front_matter(path):
Expand Down