All Projects → cilium → k8s-1abel

cilium / k8s-1abel

Licence: Apache-2.0 License
Kubernetes YAML/JSON survival kit

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to k8s-1abel

yamlful
YAML-based HTTP client code generation
Stars: ✭ 77 (+266.67%)
Mutual labels:  yaml
online-resume
A Jekyll theme for resume / cv based on Markdown. Demo: https://tarrex.github.io/online-resume
Stars: ✭ 27 (+28.57%)
Mutual labels:  yaml
front
Frontmatter
Stars: ✭ 21 (+0%)
Mutual labels:  yaml
yaml-front-matter
A to the point yaml front matter parser
Stars: ✭ 200 (+852.38%)
Mutual labels:  yaml
doo
简单易用的接口管理解决方案,支持接口文档管理、Mock服务,接口测试等功能。接口文档采用 yaml 或 Excel 格式书写,简单快捷,Mock 基于该文档,无需数据库,一条命令秒变 Mock 服务。
Stars: ✭ 36 (+71.43%)
Mutual labels:  yaml
yajsv
Yet Another JSON Schema Validator [CLI]
Stars: ✭ 42 (+100%)
Mutual labels:  yaml
python-yamlordereddictloader
(DEPRECATED) YAML loader and dumper for PyYAML allowing to keep keys order.
Stars: ✭ 25 (+19.05%)
Mutual labels:  yaml
carvel-simple-app-on-kubernetes
K8s simple Go app example deployed with k14s tools
Stars: ✭ 23 (+9.52%)
Mutual labels:  yaml
PotentCodables
🧪 PotentCodables - A potent set of implementations and extensions to the Swift Codable system
Stars: ✭ 32 (+52.38%)
Mutual labels:  yaml
k8s-opa-boilerplate
Boilerplate example of managing OPA with kustomize
Stars: ✭ 14 (-33.33%)
Mutual labels:  yaml
examples
Example Prismatic components and integrations
Stars: ✭ 23 (+9.52%)
Mutual labels:  yaml
CoreFormatters
.NET Core Custom Formatter for Yaml
Stars: ✭ 21 (+0%)
Mutual labels:  yaml
dataconf
Simple dataclasses configuration management for Python with hocon/json/yaml/properties/env-vars/dict support.
Stars: ✭ 40 (+90.48%)
Mutual labels:  yaml
counsel-jq
Traverse complex JSON and YAML structures with live feedback
Stars: ✭ 99 (+371.43%)
Mutual labels:  yaml
conduit
Simplified Data Exchange for HPC Simulations
Stars: ✭ 114 (+442.86%)
Mutual labels:  yaml
openapiclientgen
Generate C# and TypeScript client codes from Open API / Swagger definitions
Stars: ✭ 31 (+47.62%)
Mutual labels:  yaml
nmap vscan
nmap service and application version detection (without nmap installation)
Stars: ✭ 105 (+400%)
Mutual labels:  services
yaml
A Laravel YAML parser and config loader
Stars: ✭ 100 (+376.19%)
Mutual labels:  yaml
yaml-test-suite
Comprehensive, language independent Test Suite for YAML
Stars: ✭ 93 (+342.86%)
Mutual labels:  yaml
pyyaml-include
yaml include other yaml
Stars: ✭ 49 (+133.33%)
Mutual labels:  yaml

k8s-1abel - Kubernetes YAML/JSON survival kit

The tool that helps you survive painful YAML days.

Kubernetes uses label selectors to create references between different resources such as services referring to pods or deployments. All references are loosely coupled using label names. Typos can lead to stale references between resources and can be very hard to find.

k8s-1abel ("k8s-label") validates all LabelSelector in Kubernetes resources such as Services, and automatically points out label references that cannot be associated with a target pod or target deployment.

Example - Validate all service references

screenshot

Installation & Usage

$ kubectl apply -f https://raw.githubusercontent.com/cilium/k8s-1abel/master/k8s-1abel.yaml
$ kubectl exec -it -n k8s-1abel k8s-1abel bash
$ k8s-1abel services
✘ default/amazing:{"isGlobal":false,"matchLabels":{"1abel":"amazing"}} does not select anything
  "1abel":"amazing" not found. Did you mean "label":"amazing"? "1label":"amazing"
ℹ Run with -v to see the list of services/pods

Supported Kubernetes Resources

Source Resource Target Resources
Service Pod (and all higher level constructs such as Deployments
CiliumNetworkPolicy Pod (and all higher level constructs such as Deployments

Requirements

  • kubectl must be installed in $PATH.

Build & Development Requirements

Install yarn, then

yarn

to install dependencies, then run

yarn test -h

to execute the CLI.

yarn build

to build all binaries.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].