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

propertytypedescription
versionstring, requiredVersion of Frigg to use. Should be 1.
kindUsers, requiredKind of resource you want to specify
specUserSpec array, requiredState you want the resource to have

UserSpec

propertytypedescription
namestring, requiredName you can use in other resources to reference this user
gitlabIdstring, requiredNumerical 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