Last active
June 29, 2020 16:46
-
-
Save wwitzel3/65f5506266b7a6cb0eaf551d5e6b79ae to your computer and use it in GitHub Desktop.
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
import * as octant from "./octant"; | |
let podGVK = {version: "v1", kind: "Pod"} | |
export default class MyPlugin implements octant.Plugin { | |
name = "typescript plugin"; | |
description = "typescript plugin description"; | |
isModule = false; | |
capabilities = {supportPrinterConfig: [podGVK]}; | |
printHandler(request: octant.PrintRequest): octant.PrintResponse { | |
return {config: [{ | |
header: "from-plugin", | |
content: { | |
metadata: {type: "text"}, | |
config: {value: "lorem ipsum"} | |
} | |
}]}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment