sensu / sensu-plugin-sdk

A framework for creating Sensu plugins
MIT License
7 stars 8 forks source link

support downcased annotations #48

Closed agoddard closed 3 years ago

agoddard commented 3 years ago

Any annotations read from agent.yml are automatically downcased, so we should figure out if it's possible to load these annotations in plugins which require them. Presently we recommend camelCase annotation keys in docs, and these are silently downcased only in the case of loading from agent.yml. If a camelCase key is already present on the entity, loading the same key regardless of case will cause the camelCase key to be overwritten by a lowercase key.