Skip to content

feat: add affinity, toleration, and nodeSelector for operator deployment#353

Closed
a1994sc wants to merge 1 commit into
ceph:mainfrom
a1994sc:main
Closed

feat: add affinity, toleration, and nodeSelector for operator deployment#353
a1994sc wants to merge 1 commit into
ceph:mainfrom
a1994sc:main

Conversation

@a1994sc

@a1994sc a1994sc commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

Describe what this PR does

Adds affinity, toleration, and nodeSelector values for operator deployment

Fixes: #issue_number

Future concerns

List items that are not part of the PR and do not impact it's
functionality, but are work items that can be taken up subsequently.

Checklist:

  • Commit Message Formatting: Commit titles and messages follow
    guidelines in the developer
    guide
    .
  • Reviewed the developer guide on Submitting a Pull
    Request
  • Pending release
    notes

    updated with breaking and/or notable changes for the next major release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

Signed-off-by: Allen Conlon <software@conlon.dev>
@Madhu-1

Madhu-1 commented Nov 4, 2025

Copy link
Copy Markdown
Collaborator

@a1994sc Ci is failing due to checks, the helm chart is auto generated using helmify, please check if we have option in helmify to set these values or else we need to add these to the manager https://github.com/ceph/ceph-csi-operator/blob/main/config/manager/manager.yaml to get it auto generated as well

@a1994sc

a1994sc commented Nov 4, 2025

Copy link
Copy Markdown
Contributor Author

@Madhu-1 gotcha, I will check and report back

@github-actions

github-actions Bot commented Dec 4, 2025

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the stale label Dec 4, 2025
@a1994sc

a1994sc commented Dec 8, 2025

Copy link
Copy Markdown
Contributor Author

Sorry got a bit swamped with other matters, but still trying to look into this... I thought that upgrading to v0.4.19 of helmify might habd helped, but it looks like it does not respect having multiple service accounts, so may need to address that before upgrading... May take a bit longer to address this PR then I thought

@github-actions github-actions Bot removed the stale label Dec 8, 2025
@JPaja

JPaja commented Jan 4, 2026

Copy link
Copy Markdown

I had luck with nodeSelector field by adding empty nodeSelector to BUILD_INSTALLER_OVERLAY

    - op: add
      path: /spec/template/spec/nodeSelector
      value: {}

Sadly this doesn't work for toleration and affinity

Full BUILD_INSTALLER_OVERLAY

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: $(NAMESPACE)
namePrefix: $(NAME_PREFIX)
patches:
- patch: |-
    - op: add
      path: /spec/template/spec/containers/0/env/-
      value:
        name: CSI_SERVICE_ACCOUNT_PREFIX
        value: $(NAME_PREFIX)
    - op: add
      path: /spec/template/spec/containers/0/env/-
      value:
        name: WATCH_NAMESPACE
        value: $(WATCH_NAMESPACE)
    - op: add
      path: /spec/template/spec/nodeSelector
      value: {}
  target:
    kind: Deployment
    name: controller-manager
images:
- name: controller
  newName: ${IMG}

@JPaja

JPaja commented Jan 4, 2026

Copy link
Copy Markdown

Okay so toleration defaults was added 2 months ago
arttor/helmify#175

And now I created helmify pr to add support for affinity
arttor/helmify#189

@github-actions

github-actions Bot commented Feb 3, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the stale label Feb 3, 2026
@a1994sc

a1994sc commented Feb 3, 2026

Copy link
Copy Markdown
Contributor Author

@JPaja thank you so much for taking up the torch on this, please let me know if you need any support

@JPaja

JPaja commented Feb 3, 2026

Copy link
Copy Markdown

@JPaja thank you so much for taking up the torch on this, please let me know if you need any support

Sadly no one is reviewing pr that adds affinity. I guess this or should drop affinity for now

@github-actions github-actions Bot removed the stale label Feb 4, 2026
@Madhu-1

Madhu-1 commented Feb 11, 2026

Copy link
Copy Markdown
Collaborator

@JPaja please feel free to ping the maintainer of the project for review :)

@Madhu-1

Madhu-1 commented Feb 11, 2026

Copy link
Copy Markdown
Collaborator

@a1994sc lets split this PR into multiple to add the available functionality?

@mohazza00

Copy link
Copy Markdown

Any updates on this PR?

@Madhu-1

Madhu-1 commented Mar 17, 2026

Copy link
Copy Markdown
Collaborator

@JPaja, any plan to take this to completion?

@JPaja

JPaja commented Mar 17, 2026

Copy link
Copy Markdown

@JPaja, any plan to take this to completion?

Yeah, will pick it up during the weekend

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the stale label Apr 16, 2026
@JPaja

JPaja commented Apr 20, 2026

Copy link
Copy Markdown

Pr is finally merged, now we need to wait for new helmify release

@github-actions github-actions Bot removed the stale label Apr 20, 2026
@Madhu-1

Madhu-1 commented May 7, 2026

Copy link
Copy Markdown
Collaborator

@a1994sc @JPaja As we have new helmify release, its the time to update this PR? let me know if you are busy i will do the required changes

@JPaja

JPaja commented May 7, 2026

Copy link
Copy Markdown

@a1994sc @JPaja As we have new helmify release, its the time to update this PR? let me know if you are busy i will do the required changes

I don't think i can modify this branch

@a1994sc

a1994sc commented May 7, 2026

Copy link
Copy Markdown
Contributor Author

@a1994sc @JPaja As we have new helmify release, its the time to update this PR? let me know if you are busy i will do the required changes

I can close this and allow @JPaja to recreate this pr... sorry been bouncing between things

@Madhu-1

Madhu-1 commented May 7, 2026

Copy link
Copy Markdown
Collaborator

taking care of this at #321

@Madhu-1

Madhu-1 commented May 7, 2026

Copy link
Copy Markdown
Collaborator

suppressed by #321

@Madhu-1 Madhu-1 closed this May 7, 2026
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.

4 participants