Skip to main content

Function: registerCustomCreateProject()

function registerCustomCreateProject(customCreateProject: CustomCreateProject): void

Register a new way to create Headlamp 'Projects'

Parameters

ParameterTypeDescription
customCreateProjectCustomCreateProjectDefinition for custom creator

Returns

void

Example

registerCustomCreateProject({
id: "custom-create",
name: "Create Helm Project",
description: "Create new project from Helm chart",
Component: ({onBack}) => <div>
Create project
<input name="helm-chart-id" />
<button>Create</button>
<button onClick={onBack}>Back</button>
</div>,
})

Defined in

src/plugin/registry.tsx:1066