Repository navigation
feat: agent.egressPolicyRefs picks the namespace's EgressPolicies - #104
Merged
Merged
Conversation
Published Helm chart
|
| Chart | agent |
| Version | 2.2.9-r7812d4fet20261022120017hba32f8a |
| OCI reference | oci://gsoci.azurecr.io/charts/giantswarm/agent:2.2.9-r7812d4fet20261022120017hba32f8a |
| Digest | sha256:9a7843841014ab6dfef0b7d34485e5fec54d7413af540a0214c7695a319bdd50 |
| Registry | public — gsoci.azurecr.io |
| Git catalog | giantswarm-test-catalog (index) |
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/agent --version 2.2.9-r7812d4fet20261022120017hba32f8aPosted by architect-orb · build 1344 · commit ba32f8a · updated in place on every push
This was referenced Oct 22, 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.
Problem
An agent can pick kagent's namespaced
EgressPolicyobjects throughAgent.spec.egressPolicyRefs, but the agent chart has no value for the refs, and a kubectl edit is dropped by the next upgrade of the agent's release. Part of giantswarm/giantswarm#38744 (agent chart; agent-manager and the Dev Portal follow).Proposed solution
agent.egressPolicyRefs(a list of names, empty by default) renders into the Agent'sspec.egressPolicyRefsas{name}entries besidespec.egress. The chart copies none of a policy's rules.Acceptance criteria
helm unittest helm/agent: 115 passed.kagent(toolset: [preset:none]), next to anEgressPolicyeg38744-examplegrantinghttps://example.com:agent.egressPolicyRefs: [eg38744-example]was Ready on thekagentHarness, withspec.egressPolicyRefs: [{name: eg38744-example}]. In a turn, itsbashtool's wget gothttps://example.com/200, whilehttps://proxy.golang.org/got 403actor egress policy denied … not in this agent's egress policy;https://proxy.golang.orgwas added to the policy, with no Helm upgrade (the Agent's generation stayed 1). The Agent recompiled, and a new Session's probe gothttps://proxy.golang.org/200;ResolvedRefs=False(resolve EgressPolicy "kagent/eg38744-absent": not found) and was never Ready. The README says so.