-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add using example after default if it is defined (#56)
* add using example after default if it is defined * added release doc and rebuilt the WASM part * fixed the ID and regenerated the site
- Loading branch information
Showing
10 changed files
with
152 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# v0.3.3 Release | ||
|
||
- Add using `example`s if defined after `default` value in the schema. (#56) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.9.2 | ||
creationTimestamp: null | ||
name: krokcommands.delivery.krok.app | ||
spec: | ||
group: delivery.krok.app | ||
names: | ||
kind: KrokCommand | ||
listKind: KrokCommandList | ||
plural: krokcommands | ||
singular: krokcommand | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: KrokCommand is the Schema for the krokcommands API | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: KrokCommandSpec defines the desired state of KrokCommand | ||
properties: | ||
commandHasOutputToWrite: | ||
description: CommandHasOutputToWrite if defined, it signals the underlying | ||
Job, to put its output into a generated and created secret. | ||
type: boolean | ||
dependencies: | ||
description: Dependencies defines a list of command names that this | ||
command depends on. | ||
items: | ||
type: string | ||
type: array | ||
enabled: | ||
description: Enabled defines if this command can be executed or not. | ||
type: boolean | ||
complex: | ||
type: object | ||
example: {key: "value"} | ||
image: | ||
description: 'Image defines the image name and tag of the command | ||
example: krok-hook/slack-notification:v0.0.1' | ||
type: string | ||
example: krok-hook/slack-notification:v0.0.1 | ||
platforms: | ||
description: Platforms holds all the platforms which this command | ||
supports. | ||
items: | ||
type: string | ||
type: array | ||
readInputFromSecret: | ||
description: ReadInputFromSecret if defined, the command will take | ||
a list of key/value pairs in a secret and apply them as arguments | ||
to the command. | ||
properties: | ||
name: | ||
type: string | ||
namespace: | ||
type: string | ||
required: | ||
- name | ||
- namespace | ||
type: object | ||
schedule: | ||
description: 'Schedule of the command. example: 0 * * * * // follows | ||
cron job syntax.' | ||
type: string | ||
required: | ||
- image | ||
type: object | ||
status: | ||
description: KrokCommandStatus defines the observed state of KrokCommand | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: delivery.krok.app/v1alpha1 | ||
kind: KrokCommand | ||
metadata: {} | ||
spec: | ||
commandHasOutputToWrite: true | ||
complex: {"key":"value"} | ||
dependencies: ["string"] | ||
enabled: true | ||
image: "krok-hook/slack-notification:v0.0.1" | ||
platforms: ["string"] | ||
readInputFromSecret: | ||
name: string | ||
namespace: string | ||
schedule: string | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
const cacheName = "app-" + "88fd944df3b3589e7578486efd86022ea07b8649"; | ||
const cacheName = "app-" + "f12aae0089af3c57e2d86eef472876387bf42dc1"; | ||
const resourcesToCache = ["/","/app.css","/app.js","/manifest.webmanifest","/wasm_exec.js","/web/app.wasm","/web/css/alert.css","/web/img/logo.png","https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js","https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon.min.css","https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.11/clipboard.min.js","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-twilight.min.css"]; | ||
|
||
self.addEventListener("install", (event) => { | ||
console.log("installing app worker 88fd944df3b3589e7578486efd86022ea07b8649"); | ||
console.log("installing app worker f12aae0089af3c57e2d86eef472876387bf42dc1"); | ||
|
||
event.waitUntil( | ||
caches | ||
|
@@ -28,7 +28,7 @@ self.addEventListener("activate", (event) => { | |
); | ||
}) | ||
); | ||
console.log("app worker 88fd944df3b3589e7578486efd86022ea07b8649 is activated"); | ||
console.log("app worker f12aae0089af3c57e2d86eef472876387bf42dc1 is activated"); | ||
}); | ||
|
||
self.addEventListener("fetch", (event) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html data-bs-theme="dark" lang="en" data-bs-core="modern"> | ||
<html data-bs-core="modern" data-bs-theme="dark" lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="author" content="Gergely Brautigam"> | ||
<meta name="description" content> | ||
<meta name="keywords" content> | ||
<meta name="theme-color" content="#2d2c2c"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0, viewport-fit=cover"> | ||
<meta property="og:url" content="http://127.0.0.1:55377/"> | ||
<meta property="og:url" content="http://127.0.0.1:55423/"> | ||
<meta property="og:title" content="Preview CRDs"> | ||
<meta property="og:description" content> | ||
<meta property="og:type" content="website"> | ||
<meta property="og:image" content> | ||
<title>Preview CRDs</title> | ||
<link type="text/css" rel="preload" href="/app.css" as="style"> | ||
<link as="style" type="text/css" rel="preload" href="/app.css"> | ||
<link type="text/css" rel="preload" href="/web/css/alert.css" as="style"> | ||
<link type="text/css" rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-twilight.min.css" as="style"> | ||
<link as="style" type="text/css" rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon.min.css"> | ||
<link as="style" type="text/css" rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
<link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon.min.css" as="style" type="text/css"> | ||
<link type="text/css" rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" as="style"> | ||
<link rel="icon" href="https://raw.githubusercontent.com/maxence-charriere/go-app/master/docs/web/icon.svg"> | ||
<link rel="apple-touch-icon" href="/web/img/logo.png"> | ||
<link rel="manifest" href="/manifest.webmanifest"> | ||
<link href="/manifest.webmanifest" rel="manifest"> | ||
<link rel="stylesheet" type="text/css" href="/app.css"> | ||
<link rel="stylesheet" type="text/css" href="/web/css/alert.css"> | ||
<link type="text/css" href="/web/css/alert.css" rel="stylesheet"> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-twilight.min.css" rel="stylesheet" type="text/css"> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon.min.css"> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> | ||
<link type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon.min.css" rel="stylesheet"> | ||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
<script defer src="/wasm_exec.js"></script> | ||
<script defer src="/app.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> | ||
|
@@ -62,7 +62,7 @@ | |
<body> | ||
<main></main> | ||
<aside id="app-wasm-loader" class="goapp-app-info"> | ||
<img src="/web/img/logo.png" id="app-wasm-loader-icon" class="goapp-logo goapp-spin"> | ||
<img id="app-wasm-loader-icon" class="goapp-logo goapp-spin" src="/web/img/logo.png"> | ||
<p id="app-wasm-loader-label" class="goapp-label">0%</p> | ||
</aside> | ||
</body> | ||
|
Binary file not shown.