Working With Freight
Freight is an important Kargo concept. A single "piece of freight" is a set of references to one or more versioned artifacts, which may include one or more:
-
Container images (from image repositories)
-
Kubernetes manifests (from Git repositories)
-
Helm charts (from chart repositories)
Freight can therefore be thought of as a sort of meta-artifact. Freight is what Kargo seeks to progress from one stage to another.
To learn the fundamentals of freight and the warehouses that produce freight, visit the concepts doc.
The remainder of this page describes features of freight that will enable you to work more effectively.
Names
Like all Kubernetes resources, Kargo Freight
resources have a metadata.name
field, which uniquely identifies each resource of that type within a given Kargo
project (a specially labeled Kubernetes namespace). When a Warehouse
produces
a new Freight
resource, it will compute a canonical representation of the
artifacts referenced by that resource and use that, in turn, to compute a SHA-1
hash. This becomes the value of the metadata.name
field. The deterministic
method of computing this value makes it a unique "fingerprint" of the
collection of artifacts referenced by the Freight
resource.