Skip to content

Commit

Permalink
Ship images for cert-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
eg-ayoub committed Aug 30, 2024
1 parent 38f2d80 commit c663e93
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions buildchain/buildchain/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
PROMETHEUS_OPERATOR_REPOSITORY: str = "quay.io/prometheus-operator"
PROMETHEUS_REPOSITORY: str = "quay.io/prometheus"
THANOS_REPOSITORY: str = "quay.io/thanos"
CERT_MANAGER_REPOSITORY: str = "quay.io/jetstack"

# Paths {{{

Expand Down
7 changes: 7 additions & 0 deletions buildchain/buildchain/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ def _local_image(name: str, **kwargs: Any) -> targets.LocalImage:
constants.THANOS_REPOSITORY: [
"thanos",
],
constants.CERT_MANAGER_REPOSITORY: [
"cert-manager-controller",
"cert-manager-webhook",
"cert-manager-cainjector",
"cert-manager-acmesolver",
"cert-manager-startupapicheck",
],
}

REMOTE_NAMES: Dict[str, str] = {
Expand Down
26 changes: 26 additions & 0 deletions buildchain/buildchain/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def load_version_information() -> None:
NGINX_IMAGE_VERSION: str = "1.27.0-alpine"
NODEJS_IMAGE_VERSION: str = "16.14.0"
KEEPALIVED_VERSION: str = "2.3.1"
CERT_MANAGER_VERSION: str = "1.15.3"

# Current build IDs, to be augmented whenever we rebuild the corresponding
# image, e.g. because the `Dockerfile` is changed, or one of the dependencies
Expand Down Expand Up @@ -271,6 +272,31 @@ def _version_prefix(version: str, prefix: str = "v") -> str:
version="2.2.2",
digest="sha256:bc89a87cc9cd40c320644835b83170f49819dc3ea447e38c71dde27a181e7a9b",
),
Image(
name="cert-manager-controller",
version=_version_prefix(CERT_MANAGER_VERSION),
digest="sha256:eee34b3de2dd63f7e5ac459fc2d407662d433fd267d574557b76ee3c7d4bc44f",
),
Image(
name="cert-manager-webhook",
version=_version_prefix(CERT_MANAGER_VERSION),
digest="sha256:fdcb9ac4963fa1bb0c9d7cad38f0ba2c65328aa436f8653c998594d936a96488",
),
Image(
name="cert-manager-cainjector",
version=_version_prefix(CERT_MANAGER_VERSION),
digest="sha256:e0ce8ae280c8d7263663b6a6d3ea5e122632936cde9bdd5321cf7109199f51aa",
),
Image(
name="cert-manager-acmesolver",
version=_version_prefix(CERT_MANAGER_VERSION),
digest="sha256:71468feed486c4cf3ca431d93f996771531ab2e68f261f1a15be845720802a8a",
),
Image(
name="cert-manager-startupapicheck",
version=_version_prefix(CERT_MANAGER_VERSION),
digest="sha256:4cbc1b022a2385ce98d454dfc206834a26a3bb07d1d0b581cdc50c34a6bf927d",
),
)

CONTAINER_IMAGES_MAP = {image.name: image for image in CONTAINER_IMAGES}
Expand Down

0 comments on commit c663e93

Please sign in to comment.