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

fix: run the GitLab Runner deregistration process at shutdown #1034

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

kayman-mk
Copy link
Collaborator

Description

We have a script which removes the GitLab Runner from GitLab in case it is shutdown. This script wasn't run automatically. This PR adds a Systemd service which starts the removal script at shutdown automatically.

Closes #1014

Migrations required

No

Verification

Verified manually that the Runner is removed from GitLab at shutdown.

@kayman-mk kayman-mk requested a review from npalm as a code owner November 9, 2023 09:02
Copy link
Contributor

github-actions bot commented Nov 9, 2023

Hey @kayman-mk! 👋

Thank you for your contribution to the project. Please refer to the contribution rules for a quick overview of the process.

Make sure that this PR clearly explains:

  • the problem being solved
  • the best way a reviewer and you can test your changes

With submitting this PR you confirm that you hold the rights of the code added and agree that it will published under this LICENSE.

The following ChatOps commands are supported:

  • /help: notifies a maintainer to help you out

Simply add a comment with the command in the first line. If you need to pass more information, separate it with a blank line from the command.

This message was generated automatically. You are welcome to improve it.

@kayman-mk
Copy link
Collaborator Author

I didn't figure out why the script wasn't running using chkconfig. My AWS contact advised me to use a Systemd service as mentioned in #1014.

@kayman-mk kayman-mk merged commit 68884fd into cattle-ops:main Nov 9, 2023
17 checks passed
kayman-mk pushed a commit that referenced this pull request Nov 11, 2023
🤖 I have created a release *beep* *boop*
---


##
[7.2.1](7.2.0...7.2.1)
(2023-11-10)


### Bug Fixes

* delete the 'runner_config_toml_rendereded' output variable
([#1019](#1019))
([3f7eaea](3f7eaea))
* run the GitLab Runner deregistration process at shutdown
([#1034](#1034))
([68884fd](68884fd))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Signed-off-by: Niek Palm <dev.npalm@gmail.com>
Co-authored-by: cattle-ops-releaser-2[bot] <134548870+cattle-ops-releaser-2[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[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.

remove_gitlab_registration script doesnt run on termination of instance
1 participant