Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add constraints #77

Merged
merged 9 commits into from
Mar 13, 2023
Merged

feat: add constraints #77

merged 9 commits into from
Mar 13, 2023

Conversation

RealAnna
Copy link
Contributor

this pr adds topology constraints node selector and tolerations templates

@RealAnna RealAnna force-pushed the feat/add_constraints branch from 4915534 to 5a604fe Compare February 20, 2023 10:12
@RealAnna RealAnna changed the title Feat: add constraints feat: add constraints Feb 20, 2023
@RealAnna RealAnna marked this pull request as draft February 21, 2023 14:32
@RealAnna RealAnna marked this pull request as ready for review February 21, 2023 15:25
Signed-off-by: RealAnna <anna.reale@dynatrace.com>

feat:  added  constraints

Signed-off-by: RealAnna <anna.reale@dynatrace.com>

feat: introduce topologyConstraints, node selectors and tolerations

Signed-off-by: RealAnna <anna.reale@dynatrace.com>

feat: added node selector and tolerations

Signed-off-by: RealAnna <anna.reale@dynatrace.com>

feat: added node selector and tolerations

Signed-off-by: RealAnna <anna.reale@dynatrace.com>

feat: added topologyConstraint

Signed-off-by: RealAnna <anna.reale@dynatrace.com>

feat: introduce topologyConstraints

Signed-off-by: RealAnna <anna.reale@dynatrace.com>
Signed-off-by: RealAnna <anna.reale@dynatrace.com>
Signed-off-by: RealAnna <anna.reale@dynatrace.com>
Signed-off-by: RealAnna <anna.reale@dynatrace.com>
Signed-off-by: RealAnna <anna.reale@dynatrace.com>
Signed-off-by: RealAnna <anna.reale@dynatrace.com>
Signed-off-by: RealAnna <anna.reale@dynatrace.com>
@RealAnna RealAnna force-pushed the feat/add_constraints branch from c892ec8 to 0dee285 Compare March 13, 2023 08:55
examples/operator/templates/deployment.yaml Outdated Show resolved Hide resolved
pkg/processor/constraints/constraint.go Outdated Show resolved Hide resolved
Signed-off-by: RealAnna <anna.reale@dynatrace.com>
Signed-off-by: RealAnna <anna.reale@dynatrace.com>
@arttor arttor merged commit 0294e6b into arttor:main Mar 13, 2023
secretName: {{ include "operator.fullname" . }}-secret-ca
{{- if .Values.topologySpreadConstraints }}
topologySpreadConstraints: {{- include "tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" $) | nindent 8 }}
Copy link
Owner

Choose a reason for hiding this comment

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

There are 2 topologySpreadConstraints. Here and on line 107

Copy link
Owner

Choose a reason for hiding this comment

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

Sorry @RealAnna i had to revert constraints feature in this commit because of duplicates in specs. Commit also contains a template for nodeSelector which can be used as an example for other specs.

@mowies mowies deleted the feat/add_constraints branch March 13, 2023 11:33
@luisdavim
Copy link

will this be added back?

@arttor
Copy link
Owner

arttor commented Jun 6, 2023

@luisdavim i suggest creating a new issue and listing specs to be templated.

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