-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
provider/gitlab: Add gitlab_group
resource
#14490
Conversation
TODO
|
3ad566b
to
828a390
Compare
I'm working on a patch to add EditGroup to go-gitlab but until I've proposed that I can't speak to the cadence of getting that integrated neatly; in the interim I'm fairly comfortable with the implementation of |
gitlab_group
resourcegitlab_group
resource
Hah. In the time since thinking about this, the go-gitlab project has gained UpdateGroup; so hold on this; I need to bump the vendoring and then rework in terms of the new API; shouldn't be much work |
gitlab_group
resourcegitlab_group
resource
Update go-gitlab to master@e6c11e. This brings in UpdateGroup in addition to fuller management of other attributes.
828a390
to
4a48ea3
Compare
gitlab_group
resourcegitlab_group
resource
Once again should be good to go. |
This adds a gitlab_group resource. This combined with hashicorp#14483 will allow you to create projects in a group.
4a48ea3
to
292c9a3
Compare
It doesn't, I imagine that this will be used in conjunction with the addition of namespace_id in #14483, but it's not superceding that change. Having said that it might make sense, with @hauleth's blessings, to combine that PR into this one as it'll allow for fairly simple acceptance tests to be added for gitlab_group#namepsace_id in terms of gitlab_group.foo.id |
Ok, I can merge them both locally and test them :) Thanks for the feedback |
This part LGTM!
Will test the other PR as well now |
One thing. AFAIK new versions of GitLab allows to namespacing groups as well. |
@hauleth that's not reflected in the v3 api that I can see. Do you have api reference I should look at for a future enhancement? |
@richardc I see it is named differently here, so maybe you've already support it: https://docs.gitlab.com/ee/api/groups.html#new-group as |
@hauleth no, that's the v4 api, so it's not currently supported. I'll make an issue later to track things that will need to be revisited once go-gitlab supports the v4 api and put that on there. You can't have it before then |
@richardc ok |
Meta-ticket for v4 upgrades created as #14823 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This adds a gitlab_group resource, as suggested in #14471
This combined with #14483 should allow you to create projects in a
group (untested)
The implementation of this is a little ugly as go-gitlab doesn't have a
function already present for EditGroup, so we hack it into being as part
of the implementation of resourceGitlabGroupUpdate