dev

command
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

README

Prompt Testing UI

Guide to start Prompt UI for development purpose. To try out, you need Kubernetes cluster accessible from your local machine and kubeconfig file to communicate with API server of a cluster.

You can debug prompt by using the development setup in internal/dev. Firstly, setup the prereqisites necessary:

ln -s ~/.kube/config internal/dev/kubeconfig.yaml # symlink/copy kube config for use in debug
export KUBECTL_BIN=$(which kubectl) # set kubectl bin path
export AUDIT_LOG_FILE=$(pwd)/audit.log # set audit log write path

Once you have this setup, you can run the following to start the development server.

cd internal/dev # switch to dev directory
go run . # in `internal/dev` directory

Once you have started the server, you can navigate to http://localhost:7009/v2/debug/ui/ in your browser to view the debug UI.

Click on kube-shell button to start a connection.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL