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: remove the null resource #441

Merged
merged 3 commits into from
Feb 27, 2022

Conversation

kayman-mk
Copy link
Collaborator

Description

Removes the null_resource to remove the Gitlab runner from the Gitlab instance. Sometimes the null_resource was triggered due to changes in Terraform code and your runner was removed from Gitlab causing outages of your pipelines. Unfortunately there is no Terraform resource available indicating that a module was completely removed.

In case you want to get rid of this module, don't forget to remove the runner from your Gitlab instance manually.

Closes #426

Migrations required

The null_resource is completely removed. Please make sure to delete it from the statefile manually to avoid the runners being removed from the Gitlab instance.

  • terraform state list will show you everything in the state, you need to look for the "remove_runner" null_resource.
  • terraform state rm module.<runners-module-name>.null_resource.remove_runner

Verification

No verifications done as the resource was removed.

Documentation

We use pre-commit to update the Terraform inputs and outputs in the documentation via terraform-docs. Ensure you have installed those components.

@kayman-mk kayman-mk marked this pull request as ready for review February 11, 2022 07:59
@kayman-mk kayman-mk changed the title remove the null resource fix: remove the null resource Feb 11, 2022
@npalm npalm self-requested a review February 24, 2022 22:38
@npalm
Copy link
Collaborator

npalm commented Feb 25, 2022

@kayman-mk looks good! can you rebase, and resolve the conflicts please?

@kayman-mk
Copy link
Collaborator Author

rebased

@npalm npalm merged commit 3037c54 into cattle-ops:develop Feb 27, 2022
semantic-releaser bot pushed a commit that referenced this pull request Mar 7, 2022
### [4.41.1](4.41.0...4.41.1) (2022-03-07)

### Bug Fixes

* remove the null resource ([#441](#441)) ([3037c54](3037c54))
* Replace default GitLab version and fix for docker-machine download url. ([#458](#458)) ([c8113bb](c8113bb)), closes [#457](#457) [#456](#456)
@semantic-releaser
Copy link
Contributor

🎉 This PR is included in version 4.41.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

npalm pushed a commit that referenced this pull request Mar 7, 2022
* remove the null resource

* amend the docs to not forget to remove the runner manually
npalm added a commit that referenced this pull request May 17, 2022
* remove the null resource

* amend the docs to not forget to remove the runner manually
npalm pushed a commit that referenced this pull request May 17, 2022
* remove the null resource

* amend the docs to not forget to remove the runner manually
npalm added a commit that referenced this pull request May 19, 2022
* remove the null resource

* amend the docs to not forget to remove the runner manually
npalm added a commit that referenced this pull request May 19, 2022
* remove the null resource

* amend the docs to not forget to remove the runner manually
npalm added a commit that referenced this pull request May 19, 2022
* remove the null resource

* amend the docs to not forget to remove the runner manually
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrading the module causes problem with null_resource (Missing map element)
2 participants