Skip to content

feat: Allow configuration for resources and SecurityContext for all containers and pods - #63

Merged
vaibhavtiwari33 merged 2 commits into
numaproj:mainfrom
mdwarne1:issue-61-configurable-resources-and-sc
Oct 2, 2026
Merged

vaibhavtiwari33 merged 2 commits into
numaproj:mainfrom
mdwarne1:issue-61-configurable-resources-and-sc

Conversation

@mdwarne1

@mdwarne1 mdwarne1 commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #62

This allows setting resources and securityContext for all containers and pods. This allows for explicit compliance with ResourceQuotas and Pod Security Admission rules without requiring other mutating webhook to add these. The default behavior and settings should be preserved.

Additionally, because it's something that's helped us with some internal naming in multi-use namespaces, I added ability to also customize service and deployment names with tpl support (so I can use stuff like .Release.Name) . Again, default names are all preserved.

Dev note: Since i'm not bumping a numaflow version, I wasn't sure how well to follow the Maintainers steps as the sync-mirrored-files doesn't work for v1.8.4->v1.8.4. So I'm unclear if there's some quirk that this might break in the automation process if there are assumptions it has about diffs.

@mdwarne1
mdwarne1 force-pushed the issue-61-configurable-resources-and-sc branch 2 times, most recently from 7b900ac to 89c8f0c Compare September 27, 2026 21:34
@mdwarne1
mdwarne1 force-pushed the issue-61-configurable-resources-and-sc branch from 89c8f0c to 412d5bf Compare September 29, 2026 01:28
Comment thread charts/numaflow/values.yaml Outdated
Comment thread charts/numaflow/values.yaml Outdated
Comment thread charts/numaflow/templates/deployments/numaflow-webhook.yaml Outdated
Comment thread charts/numaflow/templates/deployments/numaflow-server.yaml
Comment thread charts/numaflow/values.yaml Outdated
@mdwarne1
mdwarne1 force-pushed the issue-61-configurable-resources-and-sc branch from 412d5bf to 5381644 Compare September 29, 2026 03:18
@vaibhavtiwari33

vaibhavtiwari33 commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

The CI seems to be failing, could you take a look?

@mdwarne1
mdwarne1 force-pushed the issue-61-configurable-resources-and-sc branch from 5381644 to cc01a5c Compare September 29, 2026 21:29
@magelisk

Copy link
Copy Markdown

The CI seems to be failing, could you take a look?

I did see I had a security context for it where there wasn't one before. Removed so possibly will actually be functionally identical to how it was before.

I'll try to test on a more bare bones setup when I get home tonight - all our clusters in office do some auto injection of basic securityContext stuff which actually causes other breakages if I don't explicitly set the full thing. Very awkward but also why this was something we needed to be able to expose.

@mdwarne1
mdwarne1 force-pushed the issue-61-configurable-resources-and-sc branch 5 times, most recently from a42dc9a to dd07d89 Compare September 30, 2026 18:11
Comment thread charts/numaflow/Chart.yaml Outdated
name: numaflow
type: application
version: 0.5.5
version: 0.5.6

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was re-updated now so hopefully linting is good. Got reverted as I tried to verify no functional changes last night.

@vaibhavtiwari33 vaibhavtiwari33 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: Could we also update the readme (charts/numaflow/README.md) with the new values?

Comment thread charts/numaflow/Chart.yaml Outdated
name: numaflow
type: application
version: 0.5.5
version: 0.5.6

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would need to be changed to 0.5.7

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh! I see, will do. Should tlhe front-page readme be updated as well with the helm listing? I'm not clear if it auto updates but looking at current I'm guessing it does not?

…ontainers and pods.

Also allow for customizing pod and service names with templating

Signed-off-by: Matt Warner <matthew.d.warner@lmco.com>
@mdwarne1
mdwarne1 force-pushed the issue-61-configurable-resources-and-sc branch from dd07d89 to 0db3088 Compare October 2, 2026 00:19
@mdwarne1

mdwarne1 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

README.md) with the new values?

Update made, seemed to fit with current style of simple availabilty and example, but let me know if you think something different is needed

@vaibhavtiwari33
vaibhavtiwari33 merged commit bfd36e2 into numaproj:main Oct 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to configure container resources and SecurityContext

3 participants