Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental Helm Application container #491

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions src/bci_build/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -2401,6 +2401,38 @@ def _create_php_bci(
for os_version in ALL_NONBASE_OS_VERSIONS
]

HELM_CONTAINERS = [
ApplicationStackContainer(
name="helm",
pretty_name="Kubernetes Package Manager",
package_name="helm-image",
from_image=f"{_build_tag_prefix(os_version)}/bci-micro:{OsContainer.version_to_container_os_version(os_version)}",
os_version=os_version,
is_latest=os_version in CAN_BE_LATEST_OS_VERSION,
version="%%helm_version%%",
version_in_uid=False,
replacements_via_service=[
Replacement(
regex_in_build_description="%%helm_version%%",
package_name="helm",
parse_version="minor",
)
],
license="Apache-2.0",
package_list=[
Package(name, pkg_type=PackageType.BOOTSTRAP)
for name in (
"ca-certificates-mozilla",
"helm",
)
],
entrypoint=["/usr/bin/helm"],
cmd=["help"],
build_recipe_type=BuildType.KIWI,
)
for os_version in ALL_NONBASE_OS_VERSIONS
]

ALL_CONTAINER_IMAGE_NAMES: Dict[str, BaseContainerImage] = {
f"{bci.uid}-{bci.os_version.pretty_print.lower()}": bci
for bci in (
Expand All @@ -2412,6 +2444,7 @@ def _create_php_bci(
*NGINX_CONTAINERS,
*PCP_CONTAINERS,
*REGISTRY_CONTAINERS,
*HELM_CONTAINERS,
*RMT_CONTAINERS,
*RUST_CONTAINERS,
*GOLANG_IMAGES,
Expand Down
Loading