github-ldap-user-group-creator

command
v0.0.0-...-bd9e115 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

README

github-ldap-user-group-creator

What it does

github-ldap-user-group-creator is a tool to maintain the groups on CI clusters.

Why it exists

The groups are used

  • by ci-operator which promotes the group to the admins of the namespace created for the test.
  • in the manifests of CI clusters in the release repo.

How it works

github-ldap-user-group-creator reads

  • the mapping files generated by sync-rover-groups that stores the mapping from github-id to its Red Hat kerberos-id and for each github-id, creates a group github-id-group on each cluster.

  • the groups file generated by sync-rover-groups that stores the group names and their members from the Red Hat LDAP server and for each group creates a group on each cluster.

Deleting users

This tool is also responsible for deleting the users and their identities on all clusters when they no longer exist in Rover.

Note
Users that are not part of any group or don't have their github account linked in their Rover profile are deleted as well.

How is it deployed

The periodic job periodic-github-ldap-user-group-creator (definition) uses github-ldap-user-group-creator to create the groups. The service account RBACs are defined in admin_github-ldap-user-group-creator_rbac.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL