Skip to content

fix: Set pull_policy instead of allowed_pull_policies #557

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

Merged
merged 1 commit into from
Nov 27, 2022

Conversation

cinacio
Copy link
Contributor

@cinacio cinacio commented Oct 25, 2022

Description

Since #544 was merged in, runners_pull_policies is used to set the runner's allowed_pull_policies instead of pull_policy. That is confusing, and it changes the behaviour of the directive and prevents setting the default pull policy for the runner.

This change switches back to using runners_pull_policies to set the runner's pull_policy, while still allowing for multiple policies to be defined.

Migrations required

NO

Verification

I have verified that the correct pull_policy directive is now set on the runners.

@gmeligio
Copy link
Contributor

gmeligio commented Nov 4, 2022

Thank you @cinacio. Looks good to me.

@kayman-mk
Copy link
Collaborator

Looks good to me as well. Supporting the allowed_pull_policies needs a new variable. The variable description of runners_pull_policy also indicates that pull_policy should be used in the config.toml.

@npalm npalm merged commit a67b87b 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.

4 participants