Commit cab1d3d
feat: Set node selector for ORC components (#206)
* feat: Set node selector for ORC components
Signed-off-by: Dong Ma <[email protected]>
* update patch with kustomization
Signed-off-by: Dong Ma <[email protected]>
* refactor: Use kustomize module and strategic merge patch for node selector
Replace shell command with vexxhost.kubernetes.kustomize module for better
change detection and idempotency. Switch from JSON patch to strategic merge
patch, which is the idiomatic kustomize approach for modifying Kubernetes
resources.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Mohammed Naser <[email protected]>
* refactor: Remove unnecessary metadata.name from patch
Since we're using a target selector, the metadata.name field is not needed
in the strategic merge patch.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Mohammed Naser <[email protected]>
* fix: Add placeholder name to strategic merge patch
Kustomize requires a metadata.name field in strategic merge patches to properly
recognize the patch format, even when using target selectors.
Tested: Verified that nodeSelector is correctly applied to Deployment resources.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Mohammed Naser <[email protected]>
* refactor: Move patches key outside conditional block
Move the patches: key outside the if block to allow for adding
other patches in the future while still conditionally including
the node selector patch only when needed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Mohammed Naser <[email protected]>
---------
Signed-off-by: Dong Ma <[email protected]>
Signed-off-by: Mohammed Naser <[email protected]>
Co-authored-by: Mohammed Naser <[email protected]>
Co-authored-by: Claude <[email protected]>1 parent 26eaa1e commit cab1d3d
File tree
2 files changed
+18
-0
lines changed- roles/openstack_resource_controller
- defaults
- templates
2 files changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments