Skip to content

Render resources specified in the EGW CR#4427

Merged
sridhartigera merged 3 commits intotigera:masterfrom
sridhartigera:render-egw-resources
Feb 12, 2026
Merged

Render resources specified in the EGW CR#4427
sridhartigera merged 3 commits intotigera:masterfrom
sridhartigera:render-egw-resources

Conversation

@sridhartigera
Copy link
Contributor

@sridhartigera sridhartigera commented Feb 11, 2026

Description

Resource limits and requests specified in the EGW custom resource must be rendered in the EGW deployment.

Release Note

Fixed rendering resource limits and requests for Egress Gateway.

For PR author

  • Tests for change.
  • If changing pkg/apis/, run make gen-files
  • If changing versions, run make gen-versions

For PR reviewers

A note for code reviewers - all pull requests must have the following:

  • Milestone set according to targeted release.
  • Appropriate labels:
    • kind/bug if this is a bugfix.
    • kind/enhancement if this is a a new feature.
    • enterprise if this PR applies to Calico Enterprise only.

}

func (c *component) getResources() corev1.ResourceRequirements {
resourceRequirements := corev1.ResourceRequirements{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should need to do this explicitly here. We have an "Overrides" mechanism that is meant to handle this automatically -

if overrides := c.config.EgressGW; overrides != nil {
rcomp.ApplyDeploymentOverrides(&d, overrides)
}

rcomp.ApplyDeploymentOverrides(&d, overrides)
}

c.addAWSResources(&d)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth a comment explaining we do this here after applying overrides to ensure they don't get overwritten if a user provides their own values.

Copy link
Member

@caseydavenport caseydavenport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment about a comment, but otherwise LGTM

@sridhartigera sridhartigera merged commit c79ee84 into tigera:master Feb 12, 2026
6 checks passed
@sridhartigera sridhartigera deleted the render-egw-resources branch February 12, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants