[werf] Sync packages-proxies.tmpl with upstream Deckhouse#70
Merged
Conversation
Sync the local packages-proxies.tmpl with the upstream Deckhouse copy: https://github.com/deckhouse/deckhouse/blob/main/.werf/defines/packages-proxies.tmpl Only the templates this module actually includes are kept (alt packages proxy and alpine packages proxy).
fastrapier
approved these changes
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Sync
.werf/defines/packages-proxies.tmplwith the canonical Deckhouse template so thatalt packages proxyandalpine packages proxyare no longer empty stubs.Source: https://github.com/deckhouse/deckhouse/blob/main/.werf/defines/packages-proxies.tmpl
Only the templates that this module actually
includes are kept (alt packages proxyandalpine packages proxy); other distros from upstream (debian/ubuntu/node/yarn3/pypi) are not used here and were intentionally omitted.Why do we need it, and what problem does it solve?
The local
packages-proxies.tmpldefined both helpers as empty{{- define ... }}{{- end }}, so:DISTRO_PACKAGES_PROXYis set in the build environment, the package mirrors were not being rewritten to the internal proxy, even thoughwerf-giterminism.yamlalready allows theDISTRO_PACKAGES_PROXYenv / secret. This made builds slower and dependent on upstream repo availability instead of using the configured proxy.apt-get update/apk updatewere not encapsulated in the helper, while in the upstream Deckhouse contract they are.This PR aligns the module with the rest of the Deckhouse codebase so that the
DISTRO_PACKAGES_PROXYcontract works here the same way.What is the expected result?
DISTRO_PACKAGES_PROXYis set, ALT Linux apt sources and Alpine apk repositories are rewritten to the internal proxy beforeapt-get update/apk updateruns.apt-get update -y/apk updateis now executed from inside the helper as well (matching upstream Deckhouse).Checklist