Documentation
¶
Index ¶
- Constants
- Variables
- func LabelSelectorPredicate(s metav1.LabelSelector) predicate.Predicate
- func SetupFieldIndexes(mgr ctrl.Manager) error
- type ClusterGenericExternalMemberProviderReconciler
- type ClusterLDAPGroupProviderReconciler
- type ClusterStaticMemberProviderReconciler
- type GenericExternalMemberProviderReconciler
- type GithubAccountLinkReconciler
- type GithubOrganizationReconciler
- func (r *GithubOrganizationReconciler) GithubTeamRepositoryListByOrganization(ctx context.Context, github, organization string) ([]v1.GithubTeamRepository, error)
- func (r *GithubOrganizationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)
- func (r *GithubOrganizationReconciler) SetupWithManager(mgr ctrl.Manager) error
- type GithubReconciler
- type GithubTeamReconciler
- type LDAPGroupProviderReconciler
- type StaticMemberProviderReconciler
Constants ¶
const GITHUB_ORG_LABEL_ADD_ORG_OWNER = "repo-guard.cloudoperators.dev/addOrganizationOwner"
const GITHUB_ORG_LABEL_ADD_REMOVE_ORG_OWNER_ENABLED_VALUE = "true"
const GITHUB_ORG_LABEL_ADD_REMOVE_REPOSITORY_TEAM_ENABLED_VALUE = "true"
const GITHUB_ORG_LABEL_ADD_REMOVE_TEAM_ENABLED_VALUE = "true"
const GITHUB_ORG_LABEL_ADD_REPOSITORY_TEAM = "repo-guard.cloudoperators.dev/addRepositoryTeam"
const GITHUB_ORG_LABEL_ADD_TEAM = "repo-guard.cloudoperators.dev/addTeam"
const GITHUB_ORG_LABEL_CLEAN_OPERATIONS = "repo-guard.cloudoperators.dev/cleanOperations"
const GITHUB_ORG_LABEL_CLEAN_OPERATIONS_COMPLETE = "complete"
const GITHUB_ORG_LABEL_CLEAN_OPERATIONS_FAILED = "failed"
const GITHUB_ORG_LABEL_COMPLETED_TTL = "repo-guard.cloudoperators.dev/completedTTL"
const GITHUB_ORG_LABEL_DRY_RUN = "repo-guard.cloudoperators.dev/dryRun"
const GITHUB_ORG_LABEL_DRY_RUN_ENABLED_VALUE = "true"
const GITHUB_ORG_LABEL_FAILED_TTL = "repo-guard.cloudoperators.dev/failedTTL"
TTL labels for automatic cleanup When present on GithubOrganization, failedTTL clears failed operations and org failed status completedTTL clears completed operations to avoid status bloat
const GITHUB_ORG_LABEL_REMOVE_ORG_OWNER = "repo-guard.cloudoperators.dev/removeOrganizationOwner"
const GITHUB_ORG_LABEL_REMOVE_REPOSITORY_TEAM = "repo-guard.cloudoperators.dev/removeRepositoryTeam"
const GITHUB_ORG_LABEL_REMOVE_TEAM = "repo-guard.cloudoperators.dev/removeTeam"
const GITHUB_TEAMS_LABEL_ADD_REMOVE_USER_ENABLED_VALUE = "true"
const GITHUB_TEAMS_LABEL_ADD_USER = "repo-guard.cloudoperators.dev/addUser"
const GITHUB_TEAMS_LABEL_DISABLE_INTERNAL_USERNAMES = "repo-guard.cloudoperators.dev/disableInternalUsernames"
const GITHUB_TEAMS_LABEL_DISABLE_INTERNAL_USERNAMES_VALUE = "true"
const GITHUB_TEAMS_LABEL_DRY_RUN = "repo-guard.cloudoperators.dev/dryRun"
const GITHUB_TEAMS_LABEL_DRY_RUN_ENABLED_VALUE = "true"
const GITHUB_TEAMS_LABEL_ORPHANED = "repo-guard.cloudoperators.dev/orphaned"
const GITHUB_TEAMS_LABEL_REMOVE_USER = "repo-guard.cloudoperators.dev/removeUser"
const GITHUB_TEAMS_LABEL_REQUIRE_VERIFIED_DOMAIN_EMAIL = "repo-guard.cloudoperators.dev/require-verified-domain-email"
domain-valued label on GithubTeam. When set, the controller will consider only GithubAccountLinks that report verified=true for this team's organization and this domain in their results annotation.
const GITHUB_TEAM_LABEL_COMPLETED_TTL = "repo-guard.cloudoperators.dev/completedTTL"
const GITHUB_TEAM_LABEL_FAILED_TTL = "repo-guard.cloudoperators.dev/failedTTL"
TTL labels for automatic cleanup on GithubTeam When present on GithubTeam, failedTTL clears failed user operations and team failed status completedTTL clears completed user operations to avoid status bloat notfoundTTL clears notfound user operations to allow retry after some time skippedTTL clears skipped user operations to allow retry/cleanup of skipped state after some time
const GITHUB_TEAM_LABEL_NOTFOUND_TTL = "repo-guard.cloudoperators.dev/notfoundTTL"
const GITHUB_TEAM_LABEL_SKIPPED_TTL = "repo-guard.cloudoperators.dev/skippedTTL"
Variables ¶
var ( LDAPGroupProviders sync.Map GenericHTTPProviders sync.Map StaticProviders sync.Map )
var GithubClients map[string]githubapp.ClientCreator
var OperatorNamespace = "repo-guard-greenhouse-system"
Functions ¶
func LabelSelectorPredicate ¶
func LabelSelectorPredicate(s metav1.LabelSelector) predicate.Predicate
func SetupFieldIndexes ¶
SetupFieldIndexes sets up field indexes for the manager.
Types ¶
type ClusterGenericExternalMemberProviderReconciler ¶
func (*ClusterGenericExternalMemberProviderReconciler) SetupWithManager ¶
func (r *ClusterGenericExternalMemberProviderReconciler) SetupWithManager(mgr ctrl.Manager) error
type ClusterLDAPGroupProviderReconciler ¶
ClusterLDAPGroupProviderReconciler reconciles a ClusterLDAPGroupProvider object
func (*ClusterLDAPGroupProviderReconciler) SetupWithManager ¶
func (r *ClusterLDAPGroupProviderReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ClusterStaticMemberProviderReconciler ¶
func (*ClusterStaticMemberProviderReconciler) SetupWithManager ¶
func (r *ClusterStaticMemberProviderReconciler) SetupWithManager(mgr ctrl.Manager) error
type GenericExternalMemberProviderReconciler ¶
func (*GenericExternalMemberProviderReconciler) SetupWithManager ¶
func (r *GenericExternalMemberProviderReconciler) SetupWithManager(mgr ctrl.Manager) error
type GithubAccountLinkReconciler ¶
GithubAccountLinkReconciler reconciles a GithubAccountLink object
func (*GithubAccountLinkReconciler) SetupWithManager ¶
func (r *GithubAccountLinkReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type GithubOrganizationReconciler ¶
type GithubOrganizationReconciler struct {
client.Client
Scheme *runtime.Scheme
MaxConcurrentReconciles int
}
GithubOrganizationReconciler reconciles a GithubOrganization object
func (*GithubOrganizationReconciler) GithubTeamRepositoryListByOrganization ¶
func (r *GithubOrganizationReconciler) GithubTeamRepositoryListByOrganization(ctx context.Context, github, organization string) ([]v1.GithubTeamRepository, error)
func (*GithubOrganizationReconciler) SetupWithManager ¶
func (r *GithubOrganizationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type GithubReconciler ¶
GithubReconciler reconciles a Github object
func (*GithubReconciler) Reconcile ¶
func (r *GithubReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)
+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch
func (*GithubReconciler) SetupWithManager ¶
func (r *GithubReconciler) SetupWithManager(mgr ctrl.Manager) error
type GithubTeamReconciler ¶
type GithubTeamReconciler struct {
client.Client
Scheme *runtime.Scheme
MaxConcurrentReconciles int
}
GithubTeamReconciler reconciles a GithubTeam object
func (*GithubTeamReconciler) Reconcile ¶
func (r *GithubTeamReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)
+kubebuilder:rbac:groups=greenhouse.sap,resources=teams,verbs=get;list;watch
func (*GithubTeamReconciler) SetupWithManager ¶
func (r *GithubTeamReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type LDAPGroupProviderReconciler ¶
LDAPGroupProviderReconciler reconciles a LDAPGroupProvider object
func (*LDAPGroupProviderReconciler) SetupWithManager ¶
func (r *LDAPGroupProviderReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type StaticMemberProviderReconciler ¶
func (*StaticMemberProviderReconciler) SetupWithManager ¶
func (r *StaticMemberProviderReconciler) SetupWithManager(mgr ctrl.Manager) error