Your Repository's Files
Every repository that receives managed upgrades has the same few files, whether you connected it or Tetrate provisioned it. This page shows each one and how to read it. You rarely edit them by hand: the console generates them, and upgrades keep them current.
The Layout
Everything Patch Service reads lives under .tetrate/, with one directory per product and one envs/<environment>/ directory per environment. A repository starts with a single environment called default.
.tetrate/
├── patch-service.yaml the manifest
├── README.md a short description of this directory
├── patch-service-agent/ the agent
│ ├── values-customer.yaml the agent's settings
│ └── envs/default/
│ └── values-versions.yaml
└── teg/ one directory per product
└── envs/default/
└── values-versions.yaml
.github/workflows/tetrate-upgrades.yaml the upgrade workflow
The agent is laid out like a product, so its upgrades arrive the same way. Depending on how you deploy, a few more files sit next to these: an Argo CD Application, a Flux HelmRelease, or a Terraform module for the agent, for example. The pages for Argo CD, Flux and Terraform cover them.
The Manifest
.tetrate/patch-service.yaml tells Patch Service and the upgrade workflow what the repository deploys. Here is one for an Argo CD repository that deploys Tetrate Enterprise Gateway (TEG):
version: 1
customer: acme
products:
agent:
chart:
component: patch-service-agent
file: .tetrate/patch-service-agent/envs/{environment}/application.yaml
paths:
- '.spec.sources[0].targetRevision'
environments:
default:
versions: .tetrate/patch-service-agent/envs/default/values-versions.yaml
teg:
environments:
default:
versions: .tetrate/teg/envs/default/values-versions.yaml
chart:
component: teg-control-plane
file: clusters/prod/apps/teg.yaml
paths:
- '.spec.sources[0].targetRevision'
| Field | What it means |
|---|---|
customer | Your Patch Service account. This is how Patch Service knows the repository is yours: only someone who can push to it can write this line. |
products | The products the repository deploys. agent is always there. |
environments.<name>.versions | The versions file of that environment. |
chart | Where the product's chart version is written, so upgrades can move it too: the file, and the paths of the fields holding the version in it. {environment} in file stands for each environment's name. component is the Tetrate release the chart follows. Without a chart entry, upgrades move only the images. |
upgrades | Which upgrade requests the product's environments get: patch, minor, or both. Optional, on a product or on one environment. See Choosing Patch or Minor Upgrades. |
The file the console generates also carries commented-out examples of more environments, and of upgrades.
Versions Files
A versions file pins the exact images one environment runs. Your deploy tool passes it to the product's Helm chart as a values file, listed after your own values files so its pins win. The chart reads it like any other values file.
It has two parts. The first, under images:, is the pins. Upgrades rewrite this part and nothing else:
images:
teg-control-plane:
release-version: "1.9.3"
track: teg-control-plane/teg
repository: &teg-control-plane-repository docker.io/tetrate/teg-envoy-gateway
tag: &teg-control-plane-tag "v1.9.3"
ref: &teg-control-plane-ref docker.io/tetrate/teg-envoy-gateway:v1.9.3
| Field | What it means |
|---|---|
release-version | The Tetrate release this image comes from. The workflow compares it with the latest release. |
track | What the image follows in the release catalog, as <component>/<image>: the Tetrate release, and which of its images, such as a distroless or fips build. An image without a track is never upgraded. |
repository, tag, ref | The image itself, written three ways: its repository, its tag, and both together. |
The second part, below the pins, tells the chart where to use each image. It is written in the chart's own values keys:
deployment:
tegEnvoyGateway:
image:
repository: *teg-control-plane-repository
tag: *teg-control-plane-tag
The key of each pin, teg-control-plane here, is only a name for it. Several pins can track images of the same release, as a product released as several images does, and they always move together: when one of them cannot be upgraded, none is, so an environment never runs half of a release. The request, or the workflow run when there is no request, says what held them back.
variant was replaced by trackVersions files written before November 13, 2026 name the image a pin follows with variant, such as variant: teg, and the release with the pin's own key. The upgrade workflow now skips any pin that still carries variant, and says so in its run. Replace each variant: <image> with track: <pin key>/<image>: for example, under teg-control-plane:, variant: teg becomes track: teg-control-plane/teg.
The & and * are standard YAML. &teg-control-plane-tag names a value, and *teg-control-plane-tag reuses it. So the chart's deployment.tegEnvoyGateway.image.tag is always whatever the pin's tag says. When an upgrade changes a pin, every place that uses it follows. Some chart keys take the repository and tag separately and others the whole reference, which is why each pin has all three.
You never need to edit either part to receive upgrades. The second part changes only if you want an image used somewhere new.
Your Own Settings
Keep your own configuration for the product, such as resources, replicas or gateway settings, where it is today: in your own values files, listed before the versions file. Nothing Patch Service does ever changes them.
Where the Chart Version Lives
A chart version is not in the versions file. It stays where your deploy tool reads it, and the manifest's chart entry points at it. The upgrade moves it in the same pull request as the images:
| Deploy tool | Where the chart version is |
|---|---|
| Argo CD | The Application's targetRevision |
| Flux | The HelmRelease's spec.chart.spec.version, or the OCIRepository's tag |
| Terraform | chart-version.json, next to the versions file, which your helm_release reads |
Choosing Patch or Minor Upgrades
Each environment can receive two kinds of upgrade request, each on a branch of its own:
- Patch requests move each image to the newest release on the line it is on:
1.9.3moves to1.9.4, even after1.10.0is out. They are on by default, and are what keeps an environment patched without changing what it runs. - Minor requests move each image whose latest release is on a newer line straight to it,
1.9.3to1.10.0, a new major version included. They are off by default. When patch requests are also on, a minor request carries the patches of the other images too, so merging it alone brings the environment fully up to date.
Turn minor requests on for a product, or for one environment, in the manifest:
products:
teg:
upgrades:
minor: true # every environment of teg
environments:
prod:
versions: .tetrate/teg/envs/prod/values-versions.yaml
upgrades:
minor: false # except prod
An environment's own upgrades overrides the product's, key by key. Turning a kind off closes its open request at the next run. While minor requests are off, the workflow run's summary notes each image with a release on a newer line, so staying behind is never silent.
A version number that does not follow major.minor, such as a date-based one, has no line: its upgrades always arrive in the patch request.
Adding an Environment
Each environment gets its own versions file, so that it can be upgraded on its own:
- Copy
envs/default/toenvs/<environment>/, for exampleenvs/prod/. - Add the environment to the product in the manifest, as the commented example there shows.
- Point that environment's deploy file at the new versions file, and set its
patch.tetrate.io/environmentlabel to the new name.
From then on, each environment receives its own upgrade pull requests.
Holding an Upgrade Back
- One request: leave it unmerged, or close it. A closed request is opened again at the next run if the upgrade is still pending.
- One image: remove its
trackin the versions file. The image is then never upgraded in that environment, until you put thetrackback. Images tracking the same release move together, so removing thetrackof one of them leaves the others to move without it. - New lines: leave minor requests off, the default, to stay on the line each image is on. See Choosing Patch or Minor Upgrades.
- One environment's chart: add
chart: {hold: true}to the environment in the manifest. Its images still upgrade.
Next Steps
- Receive and view upgrades to see what an upgrade pull request looks like.
- Connect your own repository to have the console generate these files for you.
- Read Managed Upgrades for how the pieces fit together.