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: ensure a complete config.toml before starting the GitLab Agent #574

Merged
merged 2 commits into from
Nov 27, 2022

Conversation

kayman-mk
Copy link
Collaborator

@kayman-mk kayman-mk commented Nov 17, 2022

Description

This PR ensures that the config.toml is complete before its first usage by the GitLab Agent.

Remark: You will still see an initialization error of the Runners first, but this heals some seconds later without doing anything.

NAME                                                         ACTIVE   DRIVER      STATE   URL   SWARM   DOCKER    ERRORS
runner-b8pa-z3w-G-E-TEST-eu-central-1c-2338672298-9deafea1   -        amazonec2   Error                 Unknown   MissingParameter: The request must contain the parameter InstanceId

Closes #450

Migrations required

No

Verification

Created 3 new agents with the default Hapag-Lloyd setup and the current version of the module --> dangling machines were created.
Created 3 new agents with the default Hapag-Lloyd setup and this version --> there are no dangling machines. Jobs were processed.

@kayman-mk kayman-mk marked this pull request as ready for review November 17, 2022 08:13
@kayman-mk kayman-mk changed the title fix: fetch GitLab token as early as possible fix: ensure a complete config.toml before starting anything Nov 17, 2022
@kayman-mk kayman-mk changed the title fix: ensure a complete config.toml before starting anything fix: ensure a complete config.toml before starting the GitLab Agent Nov 17, 2022
Copy link
Collaborator

@npalm npalm left a comment

Choose a reason for hiding this comment

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

All good

@npalm npalm merged commit e32f3bc into cattle-ops:develop Nov 27, 2022
semantic-releaser bot pushed a commit that referenced this pull request Nov 27, 2022
## [5.5.0](5.4.1...5.5.0) (2022-11-27)

### Features

* Support volume type configuration ([#579](#579)) ([b7dd834](b7dd834))

### Bug Fixes

* Compress (zip) user_data to avoid max size ([#565](#565)) ([64b8594](64b8594))
* ensure a complete `config.toml` before starting the GitLab Agent ([#574](#574)) ([e32f3bc](e32f3bc))
* Use runners_pull_policies to set pull_policy instead of allowed_pull_policies ([#557](#557)) ([a67b87b](a67b87b))
@semantic-releaser
Copy link
Contributor

🎉 This PR is included in version 5.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

npalm pushed a commit to npalm/test-repo that referenced this pull request Dec 8, 2022
## [5.5.0](cattle-ops/terraform-aws-gitlab-runner@5.4.1...5.5.0) (2022-11-27)

### Features

* Support volume type configuration ([#579](cattle-ops/terraform-aws-gitlab-runner#579)) ([b7dd834](cattle-ops/terraform-aws-gitlab-runner@b7dd834))

### Bug Fixes

* Compress (zip) user_data to avoid max size ([#565](cattle-ops/terraform-aws-gitlab-runner#565)) ([64b8594](cattle-ops/terraform-aws-gitlab-runner@64b8594))
* ensure a complete `config.toml` before starting the GitLab Agent ([#574](cattle-ops/terraform-aws-gitlab-runner#574)) ([e32f3bc](cattle-ops/terraform-aws-gitlab-runner@e32f3bc))
* Use runners_pull_policies to set pull_policy instead of allowed_pull_policies ([#557](cattle-ops/terraform-aws-gitlab-runner#557)) ([a67b87b](cattle-ops/terraform-aws-gitlab-runner@a67b87b))
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.

Duplicate runners are being created
2 participants