How to create GitLab group using Frigg
This guide shows you how to create a group with name Test sub-group inside of an already present group named Test group
- Create a new branch with a name like
create-test-sub-group-in-test-group - Navigate to the directory of the repository in which the Test group resource is defined
- Create a new
.yamlfile in this directory - Add a new Frigg group resource in this file. For example:
version: '2'
kind: GitlabGroup
metadata:
name: test-sub-group
configDefaults: GitlabDefaults
spec:
name: Test sub-group
groupNamespace: test-group
config:
shareWithGroupLock: true
requireTwoFactorAuthentication: false
projectCreationLevel: developer
subgroupCreationLevel: maintainer
members: []
sharedWithGroups: []ℹ️ For more information about the group resource, please take a look at the GitLabGroup resource
- Create a merge request with the new group resource
- Wait for the dry run to finish and check if the changelist contains the expected changes

- After making sure the changes are correct, have someone check and approve your merge request and start the deployment by clicking on the play button of the deploy job

- When the deploy job has finished successfully, the merge request will automatically be merged.