diff --git a/.release-notes/main.md b/.release-notes/main.md index 702a8641..6924ee64 100644 --- a/.release-notes/main.md +++ b/.release-notes/main.md @@ -2,22 +2,28 @@ Release notes for `TODO`. + -## :wrench: Fixes :wrench: +## 💫 New features 💫 -## :guitar: Misc :guitar: ---> +- Kyverno-JSON is now available via brew +- Added a GitHub action to install Kyverno-JSON + +## 🔧 Fixes 🔧 + +- Fixed an index not found error -## :books: Docs :books: +## 📚 Docs 📚 -- Added multi version docs support +- Added multi-version docs support diff --git a/pkg/policy/load.go b/pkg/policy/load.go index ef16210f..8cd6a58f 100644 --- a/pkg/policy/load.go +++ b/pkg/policy/load.go @@ -18,7 +18,7 @@ import ( var ( gv_v1alpha1 = schema.GroupVersion{Group: "json.kyverno.io", Version: "v1alpha1"} - validationPolicy_v1alpha1 = gv_v1alpha1.WithKind("ValidatingPolicy") + validatingPolicy_v1alpha1 = gv_v1alpha1.WithKind("ValidatingPolicy") ) func Load(path ...string) ([]*v1alpha1.ValidatingPolicy, error) { @@ -79,7 +79,7 @@ func Parse(content []byte) ([]*v1alpha1.ValidatingPolicy, error) { return nil, err } switch gvk { - case validationPolicy_v1alpha1: + case validatingPolicy_v1alpha1: policy, err := convert.To[v1alpha1.ValidatingPolicy](untyped) if err != nil { return nil, err diff --git a/website/docs/policies/asserts.md b/website/docs/policies/asserts.md index 70c7cd11..72be0ee4 100644 --- a/website/docs/policies/asserts.md +++ b/website/docs/policies/asserts.md @@ -201,7 +201,7 @@ spec: ($sum): 10 ``` -Finally, we can always access the current payload, policy and rule being evaluated using the builtin `$payload`, `$policy` and `$rule` bindings. No protection is made to prevent you from overriding those bindings though. +Finally, we can always access the current payload, policy and rule being evaluated using the built-in `$payload`, `$policy` and `$rule` bindings. No protection is made to prevent you from overriding those bindings though. ## Escaping projection