diff --git a/Makefile b/Makefile index 3a986d2d..731aeace 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ KIND_IMAGE ?= kindest/node:v1.31.0 KIND_NAME ?= kind -KYVERNO_VERSION ?= v1.13.0 +KYVERNO_VERSION ?= v1.13.1 KOCACHE ?= /tmp/ko-cache USE_CONFIG ?= standard,no-ingress,in-cluster,all-read-rbac KUBECONFIG ?= "" diff --git a/backend/go.mod b/backend/go.mod index a19a06a6..da33328c 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -8,7 +8,7 @@ require ( github.com/gin-contrib/cors v1.7.2 github.com/gin-gonic/gin v1.10.0 github.com/go-logr/logr v1.4.2 - github.com/kyverno/kyverno v1.13.0 + github.com/kyverno/kyverno v1.13.1 github.com/loopfz/gadgeto v0.11.4 github.com/spf13/cobra v1.8.1 github.com/stretchr/testify v1.9.0 diff --git a/backend/go.sum b/backend/go.sum index 8bada62c..7302a4f1 100644 --- a/backend/go.sum +++ b/backend/go.sum @@ -605,8 +605,8 @@ github.com/kyverno/go-jmespath v0.4.1-0.20231124160150-95e59c162877 h1:XOLJNGX/q github.com/kyverno/go-jmespath v0.4.1-0.20231124160150-95e59c162877/go.mod h1:yzDHaKovQy16rjN4kFnjF+IdNoN4p1ndw+va6+B8zUU= github.com/kyverno/go-jmespath/internal/testify v1.5.2-0.20230630133209-945021c749d9 h1:lL311dF3a2aeNibJj8v+uhFU3XkvRHZmCtAdSPOrQYY= github.com/kyverno/go-jmespath/internal/testify v1.5.2-0.20230630133209-945021c749d9/go.mod h1:XRxUGHIiCy1WYma1CdfdO1WOhIe8dLPTENaZr5D1ex4= -github.com/kyverno/kyverno v1.13.0 h1:/yDsoAox+UwHzWPsGZeCTKxMARICs1+kIren+cRegWs= -github.com/kyverno/kyverno v1.13.0/go.mod h1:iC+KA2dfcNOy/hbOnadZ+usSac0rCS+BZ9/1zLU0YPM= +github.com/kyverno/kyverno v1.13.1 h1:JYVheBtrrAIb7IEA3aISY1nzLt8YRnsJ5TyPyw9yJJg= +github.com/kyverno/kyverno v1.13.1/go.mod h1:iC+KA2dfcNOy/hbOnadZ+usSac0rCS+BZ9/1zLU0YPM= github.com/kyverno/kyverno-json v0.0.4-0.20240730143747-aade3d42fc0e h1:gh9iMuJS8yloxo3JIzvgLWZWwy5iRjEkA8/U7rK3iu8= github.com/kyverno/kyverno-json v0.0.4-0.20240730143747-aade3d42fc0e/go.mod h1:3LgZogzltja+Sx0o5CIa7d7+991v8sWXHskU0fWSOsQ= github.com/kyverno/pkg/ext v0.0.0-20240418121121-df8add26c55c h1:lAolpR9H8BwM5lRRvgCQ8JowswyxZRH+fgtIQzHFVCk= diff --git a/backend/pkg/engine/models/ruleresponse.go b/backend/pkg/engine/models/ruleresponse.go index e8d62c75..539a318a 100644 --- a/backend/pkg/engine/models/ruleresponse.go +++ b/backend/pkg/engine/models/ruleresponse.go @@ -27,5 +27,5 @@ type RuleResponse struct { // podSecurityChecks contains pod security checks (only if this is a pod security rule) PodSecurityChecks *engineapi.PodSecurityChecks `json:"podSecurityChecks"` // exception is the exception applied (if any) - Exceptions []v2.PolicyException `json:"exception s"` + Exceptions []v2.PolicyException `json:"exceptions"` } diff --git a/backend/pkg/resource/namespace.go b/backend/pkg/resource/namespace.go index 3c5066b5..b0483e4a 100644 --- a/backend/pkg/resource/namespace.go +++ b/backend/pkg/resource/namespace.go @@ -88,17 +88,3 @@ func FilterNamespaces(objects []runtime.Object) []runtime.Object { return namespaces } - -func Combine(objects []unstructured.Unstructured, namespaces []runtime.Object) []runtime.Object { - resources := make([]runtime.Object, 0, len(objects)) - - for _, res := range objects { - if res.GetKind() == "Namespace" { - continue - } - - resources = append(resources, &res) - } - - return append(resources, namespaces...) -} diff --git a/charts/kyverno-playground/Chart.yaml b/charts/kyverno-playground/Chart.yaml index 3f15fb64..fab32aef 100644 --- a/charts/kyverno-playground/Chart.yaml +++ b/charts/kyverno-playground/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 name: kyverno-playground type: application -version: 0.5.0 -appVersion: v0.5.0 +version: 0.5.1 +appVersion: v0.5.1 icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png description: Kyverno Playground Web Application keywords: diff --git a/charts/kyverno-playground/README.md b/charts/kyverno-playground/README.md index df621d74..95f17321 100644 --- a/charts/kyverno-playground/README.md +++ b/charts/kyverno-playground/README.md @@ -2,7 +2,7 @@ Kyverno Playground Web Application -![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.5.0](https://img.shields.io/badge/AppVersion-v0.5.0-informational?style=flat-square) +![Version: 0.5.1](https://img.shields.io/badge/Version-0.5.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.5.1](https://img.shields.io/badge/AppVersion-v0.5.1-informational?style=flat-square) ## About diff --git a/frontend/src/components/AppBar/AppBar.vue b/frontend/src/components/AppBar/AppBar.vue index c768d226..732c6e9f 100644 --- a/frontend/src/components/AppBar/AppBar.vue +++ b/frontend/src/components/AppBar/AppBar.vue @@ -6,12 +6,12 @@ diff --git a/frontend/src/main.ts b/frontend/src/main.ts index 732fd6c9..b94f0dc5 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -34,8 +34,8 @@ configureMonacoYaml(monaco, { { $ref: '#/definitions/policy-v1' }, { $ref: '#/definitions/clusterpolicy-v2beta1' }, { $ref: '#/definitions/policy-v2beta1' }, - { $ref: '#/definitions/vap-v1beta1' }, - { $ref: '#/definitions/vapb-v1beta1' } + { $ref: '#/definitions/vap-v1' }, + { $ref: '#/definitions/vapb-v1' } ], definitions: { 'clusterpolicy-v1': clusterpolicyv1 as JSONSchema, diff --git a/release-notes/v0.5.1.md b/release-notes/v0.5.1.md new file mode 100644 index 00000000..f1f243bf --- /dev/null +++ b/release-notes/v0.5.1.md @@ -0,0 +1,9 @@ +# Release notes + +Release notes for `v0.5.0`. + +## :wrench: Fixes :wrench: +- Fixed broken Policy Schema validation + +## :guitar: Misc :guitar: +- Bump Kyverno to `v1.13.1`