Apps
What an app is, how plain YAML, Kustomize and Helm apps render, how values combine, what every render guarantees, and how one deployment holds several apps.
An app is the definition of something you run: a source (a repository and a directory, or a chart) plus a render type that says how the files there become Kubernetes objects. An app does not run anywhere by itself. A deployment puts an app on a cluster or an environment, in a namespace, and decides how new versions arrive. Keeping the two apart is what lets one app run in staging and production with different values, and lets a deployment hold several apps. Sources and apps explains the model; this page is the how-to and the rules.
Read Connect a source first if Wardn cannot yet reach your repository. Deploy your first app shows an app in use.
Create an app
Open /apps/new (from an empty Deployments page, choose New app). The form has two sections.
Source says where the manifests live. Choose an existing source, or A new repository and fill in Kind, Repository URL (or OCI reference), Path, Credentials and Source name. The source is created together with the app.
App has:
| Field | Meaning |
|---|---|
| Name | 1 to 63 characters. Also the Helm release name for a Helm app. |
| Description | Up to 500 characters. |
| Rendered with | Helm, Kustomize or Plain manifests. The form starts on Helm. |
| Services | Ports the app listens on (name, port, protocol), used for links and health. Up to 50. |
Create app opens the app's page: its source, its services and the deployments that run it, with New deployment and Delete.
Request an app
A member of a team who cannot create apps across the organization (an Owner or Admin can) opens New app and fills in the repository, branch and path, a name and the owner team. The button reads Request app. Wardn looks at the repository when the request is made: whether it can be reached, which renderer the folder is, whether the name is free and whether the team exists. The results are kept with the request.
An admin of the owner team, or an organization Owner or Admin, is notified and finds the request under Approvals › App requests. Approve creates the app for the team with the requester as its owner. Decline needs a reason, which the requester is sent. Both decisions are recorded in Activity, and nobody decides their own request.
Prop
Type
Render types
Rendering happens on the Wardn server, in a sandbox, at the moment a snapshot is made. It reads files from your source at one commit, produces Kubernetes objects and stores them. Nothing is rendered in your cluster.
plain | kustomize | helm | |
|---|---|---|---|
| Path points to | A directory of manifests | A directory with a kustomization.yaml (also kustomization.yml or Kustomization) | A chart directory with Chart.yaml. An OCI chart source exists but is not rendered yet, see Helm charts |
| What is read | .yaml, .yml and .json files directly in that directory, not in subdirectories | The whole repository, so an overlay can refer to bases beside it | The chart directory |
| Values apply | No | No | Yes |
| Detail | Below | Kustomize | Helm charts |
Plain manifests
Every file with a .yaml, .yml or .json extension in the source directory is read, in file-name order. A file may hold several documents separated by ---, and a List object is unpacked into its items. Subdirectories are skipped on purpose, so a repository's other files do not become objects. Put each app's manifests in a directory of its own.
A plain app that finds no manifests renders nothing. Wardn does not fail that render: it makes a snapshot with no objects and holds it for review, which tells you more than an error would. A directory that disappears in a commit (git keeps no empty directories) is handled the same way.
Values
Values are the settings a Helm render starts from. They come from three places, later ones on top:
- the chart's own
values.yaml; - the app's default values;
- the values of the app in a deployment, set per deployment.
Maps merge key by key; anything else, including lists, replaces what is below it. So an app default of {"image": {"repository": "shop/web", "tag": "1.4.2"}} and a production override of {"image": {"tag": "1.5.0"}} give repository from the default and tag from the override. The values used are recorded in the snapshot, with a digest of them, so two renders of the same commit and values are known to be the same snapshot. Helm charts shows the per-deployment calls.
Values are plain data, not files: a second values-prod.yaml in the chart is not read. Put what
differs between deployments in the deployment's values, or give each environment its own app and
directory.
What every render guarantees
| Guarantee | What it means for you |
|---|---|
| Same input, same snapshot | The same commit and values always give the same objects, which is what lets a snapshot be promoted as it is instead of rendered again. A Helm chart that renders differently each time (random or time functions) is refused. |
| Images are pinned | Every container image with a tag is looked up in its registry and rewritten to carry its digest: web:1.2 becomes web:1.2@sha256:.... The tag stays for people to read; the digest is what runs. An image that already has a digest is kept. |
| Nothing is fetched while rendering | A chart's dependencies must be in the chart, and a Kustomize base must be in the repository. The sandbox has no network and no access to files outside the source. |
| Bounded | A render stops at 60 seconds of wall time, 60 seconds of CPU or 2 GiB of memory, and is refused above 5,000 objects, 32 MiB of output or 64 MiB of input. |
| Ordered | Objects are sorted into a stable order, so a snapshot's content does not depend on file order. |
Images are looked up anonymously, except that an image in the same registry as an OCI chart source uses that source's credentials. An image that needs a login in some other registry cannot be pinned, and the render fails with The image ... could not be resolved to a digest. A restore checks again that each pinned image still exists (Restore and rollback).
When a render fails
A failed render makes no snapshot. The deployment keeps running its last one, and the app in the deployment reports renderStatus: pending while a newer commit is waiting for a good render. A render that fails for a reason that will not change (a template error, a missing file) is not retried for the same commit; one that fails because a service was unreachable is retried.
| Message begins | Cause |
|---|---|
The chart does not render | A Helm template error, with Helm's message. |
The chart renders differently each time | The chart uses random or time functions. |
The chart's dependencies are not in its charts/ directory | Vendor the dependencies into the chart. |
Kustomize cannot build the directory | A kustomization error, with Kustomize's message. |
... remote bases are not allowed or ... runs programs or fetches charts | The kustomization reaches outside the source. See Kustomize. |
The image ... could not be resolved to a digest | The tag does not exist, or the registry needs a login. |
... is rendered by both ... Two apps of a deployment cannot hold the same object. | Two apps in one deployment produce the same kind, namespace and name. |
the render produced more than ... | A limit above was hit. |
Several apps in one deployment
A deployment holds at least one app and at most 20. It renders them together, so one snapshot covers all of them and they are applied, rolled back and promoted as a unit. Each app keeps its own branch and its own values inside the deployment:
# Add an app. A deployment that tracks a branch watches this app's branch from now on.
api -X POST "$WARDN_API_URL/api/v1/deployments/$DEPLOYMENT_ID/apps" \
-d '{"appId": "'"$WORKER_APP_ID"'", "branch": "release/1.5", "values": {"replicaCount": 4}}'
# Change an app's branch and values here. This replaces both.
api -X PUT "$WARDN_API_URL/api/v1/deployments/$DEPLOYMENT_ID/apps/$WORKER_APP_ID" \
-d '{"branch": "main", "values": {"replicaCount": 6}}'
# Take an app out. The next snapshot lacks its objects, and a prune removes them.
api -X DELETE "$WARDN_API_URL/api/v1/deployments/$DEPLOYMENT_ID/apps/$WORKER_APP_ID"Rules:
- An app's own
branchonly applies to a deployment that tracks branches; empty follows the deployment's branch. A push to a branch any of its apps tracks renders the deployment once, with that app at the pushed commit and the others where the deployment already has them. - The last app cannot be removed; delete the deployment instead.
- A deployment that takes its snapshots from another, or that others take snapshots from, must hold the same apps as they do, so adding or removing an app on one of them is refused.
- All three calls need
deployment:manage, and adding needs read access to the app. The web app creates a deployment with one app; use the API for more.
Delete an app
An app that a deployment still runs cannot be deleted. Remove it from its deployments (or delete them) first. Deleting an app keeps its source. In the web app, use Delete on the app's page; with the API, DELETE /api/v1/apps/{appId}.
Permissions
| To | You need |
|---|---|
| See an app, its source, and its deployments | app:read (members of the owning team have it) |
| Create an app or a source | app:create |
| Change or delete an app | app:manage |
| Put an app in a deployment | deployment:manage on the deployment and read access to the app |
Next
Helm charts
Chart directories, values per deployment and what Helm features apply.
Kustomize
Overlays, one path per deployment, and what is refused.
Deployment settings
Where an app runs and how new snapshots arrive.
Related: Sources and apps, Snapshots, Access model, Secret references.
Adopt from Argo CD and Flux
Find the apps Argo CD and Flux deploy on a cluster, import them as deployments that only observe, review what Wardn would do differently, and cut each one over with nothing restarted and nothing deleted.
Helm charts
Deploy a Helm chart from a git directory, give each deployment its own values, and know exactly how Wardn renders a chart and which Helm features apply.