Skip to content

Conversation

@ThoSap
Copy link
Contributor

@ThoSap ThoSap commented Jan 29, 2026

This is required so we can configure the Operator Pod to not run on the DOKS default node.

image image

@ThoSap ThoSap requested a review from Copilot January 29, 2026 09:17
@ThoSap ThoSap self-assigned this Jan 29, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for Kubernetes Pod affinity configuration to control Pod scheduling, enabling the operator to avoid running on DOKS default nodes.

Changes:

  • Added affinity configuration support in the application configuration with both property-based and expression-based definitions
  • Created a Kubernetes deployment manifest template with an empty affinity configuration

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
operator/src/main/resources/application.yml Added affinity configuration property and Helm template expression for Pod scheduling
operator/src/main/kubernetes/kubernetes.yml Created deployment manifest template with affinity placeholder

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +125 to +127
affinity:
expression: "{{- toYaml (.Values.app.affinity | default dict) | nindent 8 }}"
path: (kind == Deployment).spec.template.spec.affinity
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

The affinity configuration is defined twice: once as a property (lines 107-111) and once as an expression (lines 125-127). This duplication could lead to confusion about which configuration takes precedence or how they interact. Consider documenting the relationship between these two definitions or consolidating them if they serve the same purpose.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need both, one for the default value and description in the generated README.md, the other for the newline and indentation of the affinity block.

https://docs.quarkiverse.io/quarkus-helm/dev/

@ThoSap ThoSap requested a review from alexlanz January 29, 2026 09:22
Copy link
Member

Choose a reason for hiding this comment

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

I asked already about the license in another PR. What type of license is this? And why is not our general license enough on the project?

Copy link
Contributor Author

@ThoSap ThoSap Jan 29, 2026

Choose a reason for hiding this comment

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

I accidentally committed the LICENSE file on the other PR branch and reverted it again.

As mentioned in my other comment #13 (comment), the LICENSE file is MIT and has been added to this folder, as the Quarkus Helm extension will package it with the automatically built *.tgz Helm chart archive.

I wanted the LICENSE to be also present there.

I copied it from https://github.com/aboutbits/react-ui/blob/main/license.md

All our projects are MIT.

@ThoSap ThoSap requested a review from alexlanz January 29, 2026 10:32
@ThoSap ThoSap merged commit 70231be into main Jan 29, 2026
4 checks passed
@ThoSap ThoSap deleted the support-k8s-pod-affinity branch January 29, 2026 10:40
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.

3 participants