Skip to content

Commit 6998b91

Browse files
committed
use github builtins as fallback
Signed-off-by: Frank Jogeleit <[email protected]>
1 parent 5fb0f50 commit 6998b91

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

backend/pkg/server/api/engine/request.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,12 @@ func (r *EngineRequest) ResourceLoader(cluster cluster.Cluster, kubeVersion stri
8181
if err != nil {
8282
return nil, err
8383
}
84-
clients = append(clients, openapiclient.NewHardcodedBuiltins(kubeVersion))
84+
client := openapiclient.NewHardcodedBuiltins(kubeVersion)
85+
if _, err := client.Paths(); err == nil {
86+
clients = append(clients, client)
87+
} else {
88+
clients = append(clients, openapiclient.NewGitHubBuiltins(kubeVersion))
89+
}
8590
}
8691
clients = append(clients, openapiclient.NewLocalSchemaFiles(data.Schemas(), "schemas"))
8792
if len(r.CustomResourceDefinitions) != 0 {

charts/kyverno-playground/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
22
name: kyverno-playground
33
type: application
4-
version: 0.3.8
5-
appVersion: v0.3.8
4+
version: 0.3.9
5+
appVersion: v0.3.9
66
icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png
77
description: Kyverno Playground Web Application
88
keywords:

charts/kyverno-playground/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Kyverno Playground Web Application
44

5-
![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)
5+
![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)
66

77
## About
88

release-notes/v0.3.9.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Release notes
2+
3+
Release notes for `v0.3.9`.
4+
5+
## :wrench: Fixes :wrench:
6+
- Use Github buildins as fallback for unknown Kubernetes versions

0 commit comments

Comments
 (0)