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 Sep 23, 2024
1 parent 0b85f69 commit fb5bdb4
Show file tree
Hide file tree
Showing 3 changed files with 28 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
6 changes: 6 additions & 0 deletions buildchain/buildchain/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ 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",
],
}

REMOTE_NAMES: Dict[str, str] = {
Expand Down
21 changes: 21 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,26 @@ def _version_prefix(version: str, prefix: str = "v") -> str:
version="3.1.7",
digest="a93d6119f67f804843f6d4d97dd8448389abed7e821e7513c5b8f387e57edfb9",
),
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",
),
)

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

0 comments on commit fb5bdb4

Please sign in to comment.