harp
harp copied to clipboard
Fix yaml serialization from pb
Context
- Make
owner
not mandatory inRuleSet
JSON Schema - Add a Protobuf to YAML conversion helper who uses protojson as an intermediary encoder to get the right protobuf object annotations
- Apply fix to
RuleSet
andPatch
tasks which were producing anapi_version
property instead of the expectedapiVersion
format
$ harp from object --in ~/demo/219/input.json --out - | harp to ruleset --in -
apiVersion: harp.elastic.co/v1
kind: RuleSet
meta:
description: Generated from bundle content
name: qBiWpFkYKhkuBUXyIxxA1fSWCDXV8jHBJkgArt7D2dwqZ4mn_k7s2JbomfjzB_tNEI9CJXJ1n5cflhb96ao3lA
spec:
rules:
- constraints:
- p.has_secret("bar")
name: LINT-qBiWpF-1
path: secrets/foo/test
Reference(s)
fix https://github.com/elastic/harp/issues/219