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

Add scan for running control nodes when choosing primary control node #219

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

paradon
Copy link
Contributor

@paradon paradon commented Jan 7, 2024

Add scan for running existing control nodes when choosing primary control node

Summary

Current behaviour in cluster deployment is to choose the first listed control node as the 'primary',
which runs the cluster initialization.

If the first listed node is new to an existing cluster (or is being reinstalled), current behaviour will
cause this node to initialize a new cluster instead of joining the existing cluster.

This PR adds a check for any control nodes currently running the API service, and if so, it will
chose the first of these as the primary control node.

Fixes #210

Signed-off-by: Thomas Matysik <thomas@matysik.co.nz>
@onedr0p onedr0p merged commit 19c24bd into PyratLabs:main Jan 26, 2024
10 checks passed
nrdufour added a commit to nrdufour/home-ops that referenced this pull request Jan 27, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [xanmanning.k3s](https://github.com/PyratLabs/ansible-role-k3s) | role | patch | `v3.4.3` -> `v3.4.4` |

---

### Release Notes

<details>
<summary>PyratLabs/ansible-role-k3s (xanmanning.k3s)</summary>

### [`v3.4.4`](https://github.com/PyratLabs/ansible-role-k3s/releases/tag/v3.4.4)

[Compare Source](PyratLabs/ansible-role-k3s@v3.4.3...v3.4.4)

#### What's Changed

-   Containerd registries config not live by [@&#8203;sm-gravid-day](https://github.com/sm-gravid-day) in PyratLabs/ansible-role-k3s#222
-   kubectl commands on node must use short name by [@&#8203;fragpit](https://github.com/fragpit) in PyratLabs/ansible-role-k3s#220
-   Add scan for running control nodes when choosing primary control node by [@&#8203;paradon](https://github.com/paradon) in PyratLabs/ansible-role-k3s#219

#### New Contributors

-   [@&#8203;sm-gravid-day](https://github.com/sm-gravid-day) made their first contribution in PyratLabs/ansible-role-k3s#222
-   [@&#8203;paradon](https://github.com/paradon) made their first contribution in PyratLabs/ansible-role-k3s#219

**Full Changelog**: PyratLabs/ansible-role-k3s@v3.4.3...v3.4.4

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTIuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE1Mi4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: https://git.home/nrdufour/home-ops/pulls/341
Co-authored-by: Renovate <renovate@ptinem.io>
Co-committed-by: Renovate <renovate@ptinem.io>
coolguy1771 pushed a commit to coolguy1771/home-ops that referenced this pull request Jan 27, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [xanmanning.k3s](https://togithub.com/PyratLabs/ansible-role-k3s) |
role | patch | `v3.4.3` -> `v3.4.4` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>PyratLabs/ansible-role-k3s (xanmanning.k3s)</summary>

###
[`v3.4.4`](https://togithub.com/PyratLabs/ansible-role-k3s/releases/tag/v3.4.4)

[Compare
Source](https://togithub.com/PyratLabs/ansible-role-k3s/compare/v3.4.3...v3.4.4)

#### What's Changed

- Containerd registries config not live by
[@&#8203;sm-gravid-day](https://togithub.com/sm-gravid-day) in
[PyratLabs/ansible-role-k3s#222
- kubectl commands on node must use short name by
[@&#8203;fragpit](https://togithub.com/fragpit) in
[PyratLabs/ansible-role-k3s#220
- Add scan for running control nodes when choosing primary control node
by [@&#8203;paradon](https://togithub.com/paradon) in
[PyratLabs/ansible-role-k3s#219

#### New Contributors

- [@&#8203;sm-gravid-day](https://togithub.com/sm-gravid-day) made their
first contribution in
[PyratLabs/ansible-role-k3s#222
- [@&#8203;paradon](https://togithub.com/paradon) made their first
contribution in
[PyratLabs/ansible-role-k3s#219

**Full Changelog**:
PyratLabs/ansible-role-k3s@v3.4.3...v3.4.4

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTIuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE1Mi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: lumiere-bot[bot] <98047013+lumiere-bot[bot]@users.noreply.github.com>
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.

Shrinking and extending does not work with first node
2 participants