kubernetes-sigs/zeitgeist
About
Zeitgeist: the language-agnostic dependency checker
Other ProjectsMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalZeitgeist
(/ˈzaɪtɡaɪst/) is a language-agnostic dependency checker that keeps track of external dependencies across your project and ensure they're up-to-date.
- Rationale
- What is Zeitgeist
- Installation
- Supported upstreams
- Supported version schemes
- When is Zeitgeist not suggested
- Naming
- Releasing
- Credit
- To do
- Community, discussion, contribution, and support
Rationale
More and more projects nowadays have external dependencies, and the best way to ensure stability and reproducibility is to pin these dependencies to a specific version.
However, this leads to a new problem: the world changes around us, and new versions of these dependencies are released all the time.
For a simple project with a couple of dependencies, a team can usually keep up to speed by following mailing lists or Slack channels, but for larger projects this becomes a daunting task.
This problem is pretty much solved by package managers in specific programming languages (see When is Zeitgeist not suggested below), but it remains a big issue when:
- Your project relies on packages outside your programming language of choice
- You declare infrastructure-as-code, where the "build step" is usually bespoke and dependencies are managed manually
- Dependencies do not belong in a classical "package manager" (e.g. AMI images)
What is Zeitgeist
Zeitgeist is a tool that takes a configuration file with a list of dependencies, and ensures that:
- These dependencies versions are consistent within your project
- These dependencies are up-to-date
A Zeitgeist configuration file (usually dependencies.yaml) is a list of dependencies, referenced in files, which may or may not have an upstream:
dependencies:
- name: terraform
version: 0.12.3
upstream:
flavour: github
url: hashicorp/terraform
refPaths:
- path: helper-image/Dockerfile
match: TERRAFORM_VERSION
- path: .github/actions/run.yaml
match: terraform
- name: aws-eks-ami
version: ami-09bbefc07310f7914
scheme: random
upstream:
flavour: ami
owner: amazon
name: "amazon-eks-node-1.21-*"
refPaths:
- path: clusters.yaml
match: workers_ami
Use zeitgeist validate to verify that the dependency version is correct in all files referenced in refPaths, and whether any newer version is available upstream:

You can also use zeitgeist upgrade to go ahead and upgrade your dependencies to the latest versions detected by Zeitgeist.
Installation
Pre-compiled binaries are available on the Releases page.
⚠️ You probably will want to use the zeitgeist-remote binary to get all functionalities. The zeitgeist binary only supports local checking of dependencies.
To build zeitgeist from source:
git clone https://github.com/kubernetes-sigs/zeitgeist.git
cd zeitgeist/
make build
Supported upstreams
Github
The Github upstream looks at releases from a Github repository.
Example:
dependencies:
- name: terraform
version: 0.15.3
upstream:
flavour: github
url: hashicorp/terraform
refPaths:
- path: testdata/zeitgeist-example/a-config-file.yaml
match: terraform_version
For API access, you will need to set the following env var:
export GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>
Helm
The Helm upstream looks at chart versions from a Helm repository.
Example:
dependencies:
- name: linkerd
version: 2.10.0
upstream:
flavour: helm
repo: https://helm.linkerd.io/stable
chart: linkerd2
refPaths:
- path: testdata/zeitgeist-example/a-config-file.yaml
match: linkerd-
Gitlab
The Gitlab upstream looks at releases from a Gitlab repository.
Example:
dependencies:
- name: gitlab-agent
version: v14.0.1
upstream:
flavour: gitlab
url: gitlab-org/cluster-integration/gitlab-agent
refPaths:
- path: testdata/zeitgeist-example/a-config-file.yaml
match: GL_VERSION
The Gitlab API requires authentication, so you will need to set an Access Token.
When using the public GitLab instance at https://gitlab.com/ :
export GITLAB_TOKEN=<YOUR_GITLAB_TOKEN>
When using a self-hosted GitLab instance, ie. https://my-gitlab.company.com/ :
export GITLAB_PRIVATE_TOKEN=<YOUR_GITLAB_PRIVATE_TOKEN>
You can use in the dependencies.yaml both public and private GitLab instances. The only limitation today is that you can only use one private GitLab at the moment.
AMI
The AMI upstream looks at Amazon Machine Images from AWS.
Example:
dependencies:
- name: aws-eks-ami
version: ami-09bbefc07310f7914
scheme: random
upstream:
flavour: ami
owner: amazon
name: "amazon-eks-node-1.21-*"
refPaths:
- path: testdata/zeitgeist-example/a-config-file.yaml
match: zeitgeist:aws-eks-ami
It uses the standard go AWS SDK authentication methods for authentication and authorization, so it can be used for both public & private AMIs.
SSM
The SSM upstream looks at AWS Systems Manager Parameter Store from AWS.
AWS provides recommended parameters in SSM, for example for EKS recommended AMIs.
Example:
dependencies:
- name: aws-eks-ami-from-ssm
version: ami-0dafeb02304897431
scheme: random
upstream:
flavour: ssm
path: "/aws/service/eks/optimized-ami/1.35/amazon-linux-2023/x86_64/standard/recommended/image_id"
refPaths:
- path: testdata/zeitgeist-example/a-config-file.yaml
match: zeitgeist:aws-eks-ami
Container
The container upstream talks to OCI container registries, such as Docker registries.
Example:
dependencies:
- name: docker-in-docker
version: 19.03.15
upstream:
flavour: container
registry: hub.docker.io/docker
refPaths:
- path: testdata/zeitgeist-example/a-config-file.yaml
match: docker-dind
If you're connecting to a private registry, you will need to set the following env vars:
export REGISTRY_USERNAME=<YOUR_REGISTRY_USERNAME>
export REGISTRY_USER_PASSWORD=<YOUR_REGISTRY_TOKEN_PASSWORD>
EKS
The EKS checks for updates to Elastic Kubernetes Service, Amazon's managed Kubernetes offering.
Example:
dependencies:
- name: eks
version: 1.13.0
upstream:
flavour: eks
refPaths:
- path: testdata/zeitgeist-example/a-config-file.yaml
match: eks
EKS Add-ons
The EKS Add-ons upstream checks for updates to EKS add-ons (e.g. vpc-cni, coredns, kube-proxy, aws-ebs-csi-driver), via the Amazon EKS API.
By default, only the "current" version of the add-on (AWS's recommended version for the given kubernetesVersion) is considered. Set latest: true to allow upgrading to the highest available version instead.
Example:
dependencies:
- name: vpc-cni
version: v1.15.1-eksbuild.1
upstream:
flavour: eks-addon
addonName: vpc-cni # matches the Amazon EKS API name, get all available addons with `aws eks describe-addon-versions --query 'addons[].addonName'`
latest: false # optional: set to true to track the highest available version. Default is to use AWS's "current" version
kubernetesVersion: "1.31" # optional: restrict to versions compatible with this Kubernetes version
# required to unambiguously resolve the "current" default version when latest=false
constraints: "< 1.16.0-0" # optional: semver constraints
# important note on constraints: add-ons are always versioned with a `-eksbuild.N` suffix, which makes them
# pre-releases from a semver point of view. For example, version `1.15.1-eksbuild.1` _would pass_
# `constraint: "<1.15.1"`. Instead, you will want to use a constraint that includes the pre-release, such as
# `constraint: "<1.15.1-0`.
refPaths:
- path: testdata/zeitgeist-example/a-config-file.yaml
match: vpc-cni
It uses the standard go AWS SDK authentication methods for authentication and authorization.
Supported version schemes
Zeitgeist supports several version schemes:
semver: SemVer v2, defaultalpha: alphanumeric ordering. A newer version is considered an update if it's alphanumerically higher, e.g. "release-d" is higher "release-c" but "release-b-update-1" wouldn't be higher than "release-c".random: any more recent version is considered an update. Useful for UUID or hash-based versioning.
Not all upstreams support all schemes! For example, AMIs have a very specific naming scheme of ami-$id where the id is random: they cannot be semver, and alpha doesn't make sense as the random id cannot be sorted.
github, gitlab and container upstreams fully support semver and alpha. github and gitlab also support random, using the most recently published release (tags alone are not enough, as they have no release date).
container cannot support random: the registry API doesn't expose image push dates that would allow us to get the latest release. Image creation dates are not reliable, as they're often made to a fixed date by reproducible builds.
helm only supports semver, as Helm requires chart versions to be semver. Short versions such as 1.2 or v1.2 are accepted.
Prereleases
Zeitgeist suggests "official" releases by default, and skips prereleases such as 1.2.0-beta or v1.2.0-rc.1.
The github upstream also skips releases marked as prereleases, and helm skips charts annotated with artifacthub.io/prerelease. The exception is eks-addon, whose -eksbuild.N suffix denotes stable builds.
If you do want to include prereleases, set prereleases: true on a github, gitlab, container or helm upstream (semver scheme only):
dependencies:
- name: metabase
version: v0.66.0-beta
upstream:
flavour: container
registry: metabase/metabase
prereleases: true
Filtering versions
With the alpha and random schemes, the github, gitlab and container upstreams accept an optional filter: a Go regular expression that release or tag names must match to be considered. The match is unanchored, so use ^ and $ to match whole names.
dependencies:
- name: my-app
version: release-2026-09-21
scheme: alpha
upstream:
flavour: github
url: my-org/my-app
filter: ^release-
filter is not supported with semver. Use constraints instead.
See the full documentation to see configuration options.
When is Zeitgeist not suggested
While Zeitgeist aims to be a great cross-language solution for tracking external dependencies, it won't be as well integrated as native package managers.
If your project is mainly written in one single language with a well-known and supported package manager (e.g. npm, maven, rubygems, pip, cargo...), you definitely should use your package manager rather than Zeitgeist.
Naming
Zeitgeist, a German compound word, can be translated as "spirit of the times" and refers to a schema of fashions or fads which prescribes what is considered to be acceptable or tasteful for an era.
Releasing
Releases are generated via Github Actions when a tag match v.* is pushed, see here.
git tag v0.0.0
git push --tags
Credit
Zeitgeist is inspired by Kubernetes' script to manage external dependencies and extended to include checking with upstream sources to ensure dependencies are up-to-date.
Community, discussion, contribution, and support
Learn how to engage with the Kubernetes community on the community page.
You can reach the maintainers of this project at:
#release-managementchannel on Kubernetes Slack- Mailing List
Code of conduct
Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.
Explore related projects
Loading…