prometheus/prometheus

Support YAML anchor <<: syntax

Open

#2,347 建立於 2017年1月17日

在 GitHub 查看
 (16 留言) (8 反應) (0 負責人)Go (64,042 star) (10,408 fork)batch import
component/confighelp wantedpriority/Pmaybe

描述

Currently most of our components depend on package config as that's where their configuration structs are defined. That's noisy for package reuse. In some places we work around it by specifying structs in the packages and mirroring them.

Package config should be similar to main in that it bundles together all packages and parses the YAML configuration into the package's own confiuguration structs. We should also get rid of the YAML-unmarshal-embedded validation and instead provide decicate ValidateX methods.

貢獻者指南

Support YAML anchor <<: syntax · prometheus/prometheus#2347 | Good First Issue