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

MAISTRA-2023 Add support for specifying kiali resource and scheduling constraints #696

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

luksa
Copy link
Contributor

@luksa luksa commented Apr 2, 2021

No description provided.

@luksa luksa force-pushed the MAISTRA-2023 branch 3 times, most recently from 50ff6ec to 2f3ffe9 Compare April 2, 2021 10:47
if nodeSelector != nil {
if values, err := toValues(nodeSelector); err == nil {
if len(values) > 0 {
if err := setHelmValue(kialiValues, "deployment.nodeSelector", values); err != nil {
Copy link

Choose a reason for hiding this comment

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

@luksa should this not be node_selector? See

  {% if kiali_vars.deployment.node_selector|length > 0 %}
        nodeSelector:
              {{ kiali_vars.deployment.node_selector | to_nice_yaml(indent=0) | trim | indent(8) }}
  {% else %}
        nodeSelector: null
  {% endif %}

Copy link

Choose a reason for hiding this comment

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

never mind, I see we have used nodeSelector in our template but are setting node_selector

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, unfortunately, Kiali uses the node_selector notation for its values, whereas SMCP uses nodeSelector. It was hard for me to decide where to perform the switch, but the existing code in conversion/kiali.go already used the latter format, so I kept things consistent.

@maistra-bot maistra-bot merged commit 6a2661e into maistra:maistra-2.0 Apr 12, 2021
luksa added a commit to luksa/istio-operator that referenced this pull request Aug 30, 2021
maistra-bot pushed a commit that referenced this pull request Sep 1, 2021
mtturcsik pushed a commit to mtturcsik/istio-operator that referenced this pull request Dec 20, 2021
@luksa luksa deleted the MAISTRA-2023 branch November 13, 2023 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants