Skip to content

Commit

Permalink
use github builtins as fallback
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <[email protected]>
  • Loading branch information
fjogeleit committed Jan 27, 2025
1 parent 5fb0f50 commit 6998b91
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
7 changes: 6 additions & 1 deletion backend/pkg/server/api/engine/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ func (r *EngineRequest) ResourceLoader(cluster cluster.Cluster, kubeVersion stri
if err != nil {
return nil, err
}
clients = append(clients, openapiclient.NewHardcodedBuiltins(kubeVersion))
client := openapiclient.NewHardcodedBuiltins(kubeVersion)
if _, err := client.Paths(); err == nil {
clients = append(clients, client)
} else {
clients = append(clients, openapiclient.NewGitHubBuiltins(kubeVersion))
}
}
clients = append(clients, openapiclient.NewLocalSchemaFiles(data.Schemas(), "schemas"))
if len(r.CustomResourceDefinitions) != 0 {
Expand Down
4 changes: 2 additions & 2 deletions charts/kyverno-playground/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: kyverno-playground
type: application
version: 0.3.8
appVersion: v0.3.8
version: 0.3.9
appVersion: v0.3.9
icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png
description: Kyverno Playground Web Application
keywords:
Expand Down
2 changes: 1 addition & 1 deletion charts/kyverno-playground/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Kyverno Playground Web Application

![Version: 0.3.8](https://img.shields.io/badge/Version-0.3.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.3.8](https://img.shields.io/badge/AppVersion-v0.3.8-informational?style=flat-square)
![Version: 0.3.9](https://img.shields.io/badge/Version-0.3.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.3.9](https://img.shields.io/badge/AppVersion-v0.3.9-informational?style=flat-square)

## About

Expand Down
6 changes: 6 additions & 0 deletions release-notes/v0.3.9.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Release notes

Release notes for `v0.3.9`.

## :wrench: Fixes :wrench:
- Use Github buildins as fallback for unknown Kubernetes versions

0 comments on commit 6998b91

Please sign in to comment.