validator-labs / validator-plugin-network

validator-plugin-network validates your network and creates ValidationResults for validator to consume.
https://validator-labs.github.io/docs
Apache License 2.0
3 stars 0 forks source link

fix: embedding structs related to `validationrule.Interface` #261

Closed mattwelke closed 3 months ago

mattwelke commented 3 months ago

Description

Noticed when trying to integrate latest plugin releases with validatorctl that tests started failing because the CRD couldn't be applied. It complained about unknown fields. This is because the json tag used when embedding the struct lacked "inline". This fixes that.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

@@           Coverage Diff           @@
##             main     #261   +/-   ##
=======================================
  Coverage   38.73%   38.73%           
=======================================
  Files           7        7           
  Lines         395      395           
=======================================
  Hits          153      153           
  Misses        228      228           
  Partials       14       14           
Files Coverage Δ
api/v1alpha1/networkvalidator_types.go 60.00% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 834c56f...2bebc09. Read the comment docs.