A starting point for creating a new UDS Package on UDS Core.
Tip
Found an issue with the template or want to contribute? See Contributing.
The canonical guide for turning this scaffolding into a working package is Create a UDS Package. It walks through the placeholder substitution, Zarf and chart configuration, the Package CR, and the dev/test bundle.
After working through that guide, finish the template-specific cleanup below.
The dev/test bundle.
Use UDS CLI v0.40.0 or newer. The tasks enable Next through NEXT_MODE=true.
These items are specific to this template repo and aren't covered in the canonical doc:
- Replace
#TEMPLATE_COPYRIGHT_YEAR#throughout the package with the current UTC year (date -u +%Y) if your scaffolding tool has not already filled it in. - Replace the application placeholders in
bundle/*.hclalong with the YAML and other template files. - Rename
bundle/values/application.yamltobundle/values/<application-name>.yaml. Updatevalues_filesinbundle/bundle.uds.hcland any remaining references intasks.yaml. If Go templating in the renamed file causes YAML lint errors, add its path to theignorelist in.yamllint. - Review
excludePathsincommon/zarf.yamlagainst the chosen application chart. Protect chart-specific image references, pull secrets, security settings, CRD installation, and settings controlled by UDS integration. - Generate and review
zarf-values.schema.jsonafter selecting the chart and replacing placeholders. The bootstrap schema intentionally rejects package values until generation. Runuds run lint:values-generate --with flavor=upstream, thenuds run lint:values-check --with flavor=upstream. Repeat for any additional flavors and review differences before publishing. After committing the generated schema, setvalues-check: truein the lint workflow. - Customize
docs/configuration.mdwith supported application settings and deployment examples. - Remove the
ci-setuptask fromtasks.yaml. It exists only so this template's own CI can validate the scaffolding using podinfo. To remove:- Delete the block between the two
#### Template CI: Remove ... ####comment markers, including the markers. - Delete the
- task: ci-setupcall undertest-install.
- Delete the block between the two
-
mv README-template.md README.mdand customize for your package. - Update
CODEOWNERSfollowing the guidance inCODEOWNERS-template.md, thenrm CODEOWNERS-template.md. - If your application has a UI, rename
tests/template-application-name.test.tstotests/<app-name>.test.tsand customize it for your app. If your application has no UI, deletetests/template-application-name.test.ts,tests/auth.setup.ts, and theuitask intasks/test.yaml. - When ready to publish your first release, uncomment
releaser.yamland set the version. Update the verification example inREADME.mdto match. Addregistry1/unicornentries if you've added those flavors.
See Playwright testing for browser test configuration.
These files are specific to Defense Unicorns infrastructure and may not apply to your situation:
releaser.yamlrenovate.json.github/workflows— the workflows are reusable, but runners, tokens, and secrets need to be updated to match your environment.
Note
As a template repository, the CONTRIBUTING.md file is part of the template — not the contributing guidelines for this repository itself.
This template repository is part of Defense Unicorns' Unified Defense Stack and follows the contributing guidelines in uds-common/CONTRIBUTING.md.
Open an issue for defects or feature requests.