-
-
Notifications
You must be signed in to change notification settings - Fork 337
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: always add the cache policy #528
Conversation
🎉 This PR is included in version 5.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
I think this MR introduces an issue with this configuration:
(use case: S3 cache created outside of this module, because it's shared with other runner types) When applying this, I get the error:
since the |
Had the same problem an hour ago, but no time to create the issue. 100% correct. Do you have a use case for a Runner without a cache? |
We do use a cache, but it's created outside of this module (I don't wish this module to create it for me). That's because we run several Gitlab runner types (Kubernetes and docker-machine), and they should all share the same cache. So it's simpler to create the S3 resources in a separate module, then pass them to the various modules that deploy the runners. So
|
@Neki It would be wonderful if you could have a quick look at my PR mentioned above. Just did the the |
Description
As described in #298 the cache module has to be applied separately before creating the Runners. Terraform complains about
This PR always adds the policy to get rid of the error message during
apply
. As far as we know there is no use cases deploying this module without a cache. Thus we can always add the cache policy to the role.Closes #298
Migrations required
No
Verification
apply
apply
shows no error.