Repository navigation
feat(k8s): apply the Application path builds in deploy-stack - #6713
Merged
Merged
Conversation
Owner
Author
|
Review points for the owner (no person steps):
|
dan-petty
force-pushed
the
feat/6681-deploy-stack-application-manifests
branch
3 times, most recently
from
November 22, 2026 02:44
97f2a83 to
4298c34
Compare
Owner
Author
Review points for the owner (the merge confirms them)
|
…#6681) Kustomize fetches a remote base or component and has no option that refuses it, so the dry runs of deploy-stack and teardown-stack read the kustomization fields first. A folder that reaches a URL or a git repository gets no build, and details.kustomize_fetches lists its remote targets. The teardown tests cover the order of the deletes and a failed build. The design gives the objects as strings and the build site.
) A parser of the loader rule of Kustomize missed remote loads. A review sent HTTP requests in dry runs through the path of a PatchTransformer, a file of a ConfigMapGenerator and an env file whose URL holds `=`. So the parser goes. The stack dry runs now start kubectl kustomize with the proxy keys at the closed port 127.0.0.1:9, an empty NO_PROXY, GIT_ALLOW_PROTOCOL=file and GIT_SSH_COMMAND=false. The env guard accepts the two git keys with these values only. Go sends each request to a host that is not a loopback address to the proxy, and git refuses each transport but file, so a remote target fails the build at once. A failed dry-run build gives the first line of the kubectl error in details.kustomize_fetches, and the dry run goes on. The real run does not change.
Go sends an http or https request to a loopback address with no proxy, and no environment key changes this. So the dry-run builds download such a URL, also of a remote base, which Kustomize first loads as a file. The request can reach a kubectl port-forward to a cluster, so it is not a local read. The spec, the design, the proposal, k8s/README.md, the docstrings and the --dry-run help now state this. A git remote at a loopback address still fails, and a live case shows it. A path source whose path goes out of the folder of its repository now raises ApplicationSourceError, as argocd_gate refuses it, so no build reads a folder outside the checkout. details.kustomize_fetches gives the error of kubectl as one line, from its prefix to its end. The error of a builtin transformer holds its config on lines of its own and gives the cause last. A live case adds the path of an entry of patches. An object with no namespace in the build shows as `<kind> <name>`. The documents no longer call each such object one of the cluster scope.
dan-petty
force-pushed
the
feat/6681-deploy-stack-application-manifests
branch
from
November 22, 2026 02:56
4298c34 to
d8dd318
Compare
dan-petty
marked this pull request as ready for review
November 22, 2026 03:04
dan-petty
pushed a commit
that referenced
this pull request
Nov 22, 2026
🤖 I have created a release *beep* *boop* --- ## [0.192.0](v0.191.1...v0.192.0) (2026-11-22) ### Features * **k8s:** apply the Application path builds in deploy-stack ([#6713](#6713)) ([d905dbd](d905dbd)) * **k8s:** render a credential-free planner ConfigMap ([#6723](#6723)) ([745108e](745108e)) ### Bug Fixes * **k8s:** split the network policies whose egress skips their ingress ([#6721](#6721)) ([235fea0](235fea0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
devops k8s deploy-stackbuilds the path sources of the Argo CDApplications of
APPLICATIONS_BY_STACKwith Kustomize, as Argo CD does,and applies each build with
kubectl apply -f -before the charts. Itstops when the cluster refuses a build.
teardown-stackdeletes eachbuild. A source of another repository is fetched at its
targetRevision, and a path out of its repository stops the command. Arow of
MANIFESTS_BY_STACKstays only where the build of itsApplication holds more objects.
The dry runs list the objects in
details.path_sources(deploy) and indetails.path_source_deletes(teardown, in the order of the deletes).kubectl kustomizegets the proxy127.0.0.1:9andGIT_ALLOW_PROTOCOL=file, so a remote target fails at once, anddetails.kustomize_fetchesgives the error. Go still downloads an httpor https URL of a loopback address, which can be a port-forward to a
cluster. The owner decides this exception.
Closes #6681
Change:
openspec/changes/archive/2026-11-22-6681-deploy-stack-application-manifests/