You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] Support Redis and Sentinel affinity configuration #85
Cozystack PR #2665 adds Redis.spec.affinity.redis and Redis.spec.affinity.sentinel, but the Terraform provider's typed resources and data sources do not expose these fields. Users cannot configure these Kubernetes scheduling rules through the provider.
Proposed Solution
Add optional affinity support to the Redis and Sentinel resource and data source schemas, models, and expand/flatten mappings. Preserve arbitrary Kubernetes Affinity fields and omit unset rules so existing scheduling behavior remains intact. Add round-trip and omission tests, update examples, and regenerate provider documentation. For Redis and Sentinel, configured affinity replaces the operator's default soft pod anti-affinity; document that users should include podAntiAffinity unless co-location is intended.
Alternatives Considered
Manage affinity outside the typed Terraform resources. This leaves scheduling configuration outside the provider's declared resource interface.
Activity