Skip to content

Add ability to pass 'dnsConfig' and 'securityContext' attributes in the 'operator' deployment resource.#2069

Open
mihkelparna1 wants to merge 1 commit intoNVIDIA:mainfrom
mihkelparna1:OperatorAdditionalFields
Open

Add ability to pass 'dnsConfig' and 'securityContext' attributes in the 'operator' deployment resource.#2069
mihkelparna1 wants to merge 1 commit intoNVIDIA:mainfrom
mihkelparna1:OperatorAdditionalFields

Conversation

@mihkelparna1
Copy link

Description

  • Add ability to pass 'dnsConfig' and 'securityContext' attributes in the 'operator' deployment resource.

Checklist

  • No secrets, sensitive information, or unrelated changes
  • Lint checks passing (make lint)
  • Generated assets in-sync (make validate-generated-assets)
  • Go mod artifacts in-sync (make validate-modules)
  • Test cases are added for new code paths

Testing

Tested out by rendering out all options ( Fields set, fields unset, rendering both options )

@copy-pr-bot
Copy link

copy-pr-bot bot commented Jan 26, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

…he 'operator' deployment resource.

Signed-off-by: Mihkel Pärna <mihkel.parna@wise.com>
Signed-off-by: Mihkel Pärna <mihkel.parna@transferwise.com>
ports:
- name: metrics
containerPort: 8080
{{- with .Values.operator.dnsConfig}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you also add these keys (with empty values) to values.yaml for discoverability?

@rajathagasthya
Copy link
Contributor

/ok-to-test 62fc72b

- name: metrics
containerPort: 8080
{{- with .Values.operator.dnsConfig}}
dnsPolicy: "None"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is setting dnsPolicy: "None" overly restrictive? Afaik, you can specify dnsConfig and use a different dnsPolicy, which will merge both the settings. I think dnsPolicy should be configurable as well.

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.

2 participants