Initialize a catalog application
Overview
Adding a new application to a catalog repository involves generating the required files (metadata, Kustomize config, HelmRelease manifests) and customizing them for the application.
Steps
-
Generate the application scaffold:
nkp generate catalog-repository --apps=<app-name>=<version>This creates
applications/<app-name>/<version>/with template files. -
Edit
metadata.yaml— Fill in the required fields:displayName,description,category,licensing,scopeoverview(Markdown),supportLink,icondependenciesandrequiredDependenciesallowMultipleInstances,type- Set
scopetoworkspaceunless a project-only requirement is explicitly defined. - Provide an application
icon(required for submission review).
-
Configure the HelmRelease — In
helmrelease/helmrelease.yaml:- Set the
OCIRepositoryURL to point to your chart's OCI registry location - Set
targetNamespaceto the application's dedicated namespace - Configure
install.createNamespace: true
- Set the
-
Set default values — Edit
helmrelease/cm.yamlto provide default Helm values for the application. -
Add optional files as needed:
- Per-app
.bloodhound.yamlfor validation overrides - Additional ConfigMaps for UI dashboard integration
- Per-app
-
Validate the repository:
nkp validate catalog-repository --repo-dir=. -
Build:
nkp create catalog-bundle --collection-tag <tag>
Key conventions
- Use Flux substitution variables (
${releaseName},${releaseNamespace}) instead of hardcoded values. - Every YAML document must end with
---on its own line.