Users
Couples a username, which can be referenced in other resource files, to one or multiple accounts used by said users.
Currently, a user’s name can only be coupled to their GitLab account through a GitLab ID.
There can only be a single Users
resource specified in Frigg.
Schema
UsersResource
property | type | description |
---|---|---|
version | string, required | Version of Frigg to use. Should be 1 . |
kind | Users , required | Kind of resource you want to specify |
spec | UserSpec array, required | State you want the resource to have |
UserSpec
property | type | description |
---|---|---|
name | string, required | Name you can use in other resources to reference this user |
gitlabId | string, required | Numerical ID of the user’s GitLab account |
Example
The following resource file allows Frigg to link the provided names to the user’s GitLab account for internal logic:
version: '1'
kind: Users
spec:
- name: john.doe
gitlabId: 02345678
- name: alice.johnson
gitlabId: 12345678
- name: erik.klein
gitlabId: 22345678