Skip to content

feat: add label configuration and validation for key specs#126

Merged
jithinkunjachan merged 5 commits into
mainfrom
feat/labelconfiguration
May 7, 2026
Merged

feat: add label configuration and validation for key specs#126
jithinkunjachan merged 5 commits into
mainfrom
feat/labelconfiguration

Conversation

@jithinkunjachan
Copy link
Copy Markdown
Contributor

@jithinkunjachan jithinkunjachan commented Apr 27, 2026

Introduce LabelSpec, LabelRequirement, and LabelValidator types to support configurable label validation (regex and enum) on key hierarchy specs. Each KeySpec now carries a LabelSpec that is validated as part of the hierarchy configuration.

@jithinkunjachan jithinkunjachan self-assigned this Apr 27, 2026
@jithinkunjachan jithinkunjachan marked this pull request as ready for review April 27, 2026 07:19
@jithinkunjachan jithinkunjachan force-pushed the feat/labelconfiguration branch from 1080f66 to 0f3354e Compare April 30, 2026 09:56
@jithinkunjachan jithinkunjachan force-pushed the feat/labelconfiguration branch 3 times, most recently from 89daa97 to b318a52 Compare May 6, 2026 11:34
Introduce LabelSpec, LabelRequirement, and LabelValidator types to
support configurable label validation (regex and enum) on key hierarchy
specs. Each KeySpec now carries a LabelSpec that is validated as part of
the hierarchy configuration.
…tion tags

Rename Labels to SelectorLabels and LabelSpec to LabelSpecs, convert YAML
tags to snake_case, remove Labels from KeyBinding, and use model.Labels in
label validation.

# Conflicts:
#	internal/config/config_test.go

# Conflicts:
#	pkg/api/agents/deregister_test.go
#	pkg/api/agents/heartbeat_test.go
#	pkg/api/agents/register_test.go

# Conflicts:
#	internal/config/config.go
@jithinkunjachan jithinkunjachan force-pushed the feat/labelconfiguration branch from 6255a4e to b50f033 Compare May 7, 2026 10:22
@jithinkunjachan jithinkunjachan force-pushed the feat/labelconfiguration branch from b50f033 to 3e14e8c Compare May 7, 2026 10:24
@jithinkunjachan jithinkunjachan merged commit 7f93649 into main May 7, 2026
4 checks passed
@jithinkunjachan jithinkunjachan deleted the feat/labelconfiguration branch May 7, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants