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

Revert https://github.com/lablabs/ansible-role-rke2/pull/273 #278

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

Raboo
Copy link
Contributor

@Raboo Raboo commented Nov 27, 2024

Revert #273. It actually does the opposite of what it says it's trying to achieve

Description

This achieved the opposite. A brand new cluster gets node.cloudprovider.kubernetes.io/uninitialized taint with default settings.

You should remember that rke2_disable_cloud_controller is a negative, i.e. when false it enables the RKE2 cloud controller. When true it disables RKE2 cloud controller.

So the code before #273 PR was correct.

{% if (rke2_disable_cloud_controller | bool ) %}
disable-cloud-controller: true
cloud-provider-name: "{{ rke2_cloud_provider_name }}"
{% endif %}

vs

{% if (rke2_disable_cloud_controller | bool ) %}
disable-cloud-controller: true
{% endif %}
{% if not (rke2_disable_cloud_controller | bool ) %}
cloud-provider-name: "{{ rke2_cloud_provider_name }}"
{% endif %}

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Small minor change not affecting the Ansible Role code (GitHub Actions Workflow, Documentation etc.)

How Has This Been Tested?

Locally on 3 brand new nodes.

Revert lablabs#273.
It actually does the opposite of what it says it's trying to achieve
@edward2a
Copy link
Contributor

@Raboo please check comments on #273

when disable-cloud-controller is true.
@MonolithProjects MonolithProjects added the bug Something isn't working label Nov 28, 2024
Copy link
Collaborator

@MonolithProjects MonolithProjects left a comment

Choose a reason for hiding this comment

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

LGTM

@MonolithProjects MonolithProjects merged commit a8e8651 into lablabs:main Nov 28, 2024
6 checks passed
@Raboo Raboo deleted the patch-1 branch November 28, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants