controller

package
v0.0.0-...-8864ed4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const GITHUB_ORG_LABEL_ADD_ORG_OWNER = "repo-guard.cloudoperators.dev/addOrganizationOwner"
View Source
const GITHUB_ORG_LABEL_ADD_REMOVE_ORG_OWNER_ENABLED_VALUE = "true"
View Source
const GITHUB_ORG_LABEL_ADD_REMOVE_REPOSITORY_TEAM_ENABLED_VALUE = "true"
View Source
const GITHUB_ORG_LABEL_ADD_REMOVE_TEAM_ENABLED_VALUE = "true"
View Source
const GITHUB_ORG_LABEL_ADD_REPOSITORY_TEAM = "repo-guard.cloudoperators.dev/addRepositoryTeam"
View Source
const GITHUB_ORG_LABEL_ADD_TEAM = "repo-guard.cloudoperators.dev/addTeam"
View Source
const GITHUB_ORG_LABEL_CLEAN_OPERATIONS = "repo-guard.cloudoperators.dev/cleanOperations"
View Source
const GITHUB_ORG_LABEL_CLEAN_OPERATIONS_COMPLETE = "complete"
View Source
const GITHUB_ORG_LABEL_CLEAN_OPERATIONS_FAILED = "failed"
View Source
const GITHUB_ORG_LABEL_COMPLETED_TTL = "repo-guard.cloudoperators.dev/completedTTL"
View Source
const GITHUB_ORG_LABEL_DRY_RUN = "repo-guard.cloudoperators.dev/dryRun"
View Source
const GITHUB_ORG_LABEL_DRY_RUN_ENABLED_VALUE = "true"
View Source
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

View Source
const GITHUB_ORG_LABEL_REMOVE_ORG_OWNER = "repo-guard.cloudoperators.dev/removeOrganizationOwner"
View Source
const GITHUB_ORG_LABEL_REMOVE_REPOSITORY_TEAM = "repo-guard.cloudoperators.dev/removeRepositoryTeam"
View Source
const GITHUB_ORG_LABEL_REMOVE_TEAM = "repo-guard.cloudoperators.dev/removeTeam"
View Source
const GITHUB_TEAMS_LABEL_ADD_REMOVE_USER_ENABLED_VALUE = "true"
View Source
const GITHUB_TEAMS_LABEL_ADD_USER = "repo-guard.cloudoperators.dev/addUser"
View Source
const GITHUB_TEAMS_LABEL_DISABLE_INTERNAL_USERNAMES = "repo-guard.cloudoperators.dev/disableInternalUsernames"
View Source
const GITHUB_TEAMS_LABEL_DISABLE_INTERNAL_USERNAMES_VALUE = "true"
View Source
const GITHUB_TEAMS_LABEL_DRY_RUN = "repo-guard.cloudoperators.dev/dryRun"
View Source
const GITHUB_TEAMS_LABEL_DRY_RUN_ENABLED_VALUE = "true"
View Source
const GITHUB_TEAMS_LABEL_ORPHANED = "repo-guard.cloudoperators.dev/orphaned"
View Source
const GITHUB_TEAMS_LABEL_REMOVE_USER = "repo-guard.cloudoperators.dev/removeUser"
View Source
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.

View Source
const GITHUB_TEAM_LABEL_COMPLETED_TTL = "repo-guard.cloudoperators.dev/completedTTL"
View Source
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

View Source
const GITHUB_TEAM_LABEL_NOTFOUND_TTL = "repo-guard.cloudoperators.dev/notfoundTTL"
View Source
const GITHUB_TEAM_LABEL_SKIPPED_TTL = "repo-guard.cloudoperators.dev/skippedTTL"

Variables

View Source
var (
	LDAPGroupProviders   sync.Map
	GenericHTTPProviders sync.Map
	StaticProviders      sync.Map
)
View Source
var GithubClients map[string]githubapp.ClientCreator
View Source
var OperatorNamespace = "repo-guard-greenhouse-system"

Functions

func LabelSelectorPredicate

func LabelSelectorPredicate(s metav1.LabelSelector) predicate.Predicate

func SetupFieldIndexes

func SetupFieldIndexes(mgr ctrl.Manager) error

SetupFieldIndexes sets up field indexes for the manager.

Types

type ClusterGenericExternalMemberProviderReconciler

type ClusterGenericExternalMemberProviderReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*ClusterGenericExternalMemberProviderReconciler) Reconcile

func (*ClusterGenericExternalMemberProviderReconciler) SetupWithManager

type ClusterLDAPGroupProviderReconciler

type ClusterLDAPGroupProviderReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ClusterLDAPGroupProviderReconciler reconciles a ClusterLDAPGroupProvider object

func (*ClusterLDAPGroupProviderReconciler) Reconcile

func (r *ClusterLDAPGroupProviderReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

func (*ClusterLDAPGroupProviderReconciler) SetupWithManager

func (r *ClusterLDAPGroupProviderReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ClusterStaticMemberProviderReconciler

type ClusterStaticMemberProviderReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*ClusterStaticMemberProviderReconciler) Reconcile

func (*ClusterStaticMemberProviderReconciler) SetupWithManager

func (r *ClusterStaticMemberProviderReconciler) SetupWithManager(mgr ctrl.Manager) error

type GenericExternalMemberProviderReconciler

type GenericExternalMemberProviderReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*GenericExternalMemberProviderReconciler) Reconcile

func (*GenericExternalMemberProviderReconciler) SetupWithManager

func (r *GenericExternalMemberProviderReconciler) SetupWithManager(mgr ctrl.Manager) error

type GithubAccountLinkReconciler

type GithubAccountLinkReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

GithubAccountLinkReconciler reconciles a GithubAccountLink object

func (*GithubAccountLinkReconciler) Reconcile

func (r *GithubAccountLinkReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

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) Reconcile

func (r *GithubOrganizationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

func (*GithubOrganizationReconciler) SetupWithManager

func (r *GithubOrganizationReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type GithubReconciler

type GithubReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

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

type LDAPGroupProviderReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

LDAPGroupProviderReconciler reconciles a LDAPGroupProvider object

func (*LDAPGroupProviderReconciler) Reconcile

func (r *LDAPGroupProviderReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

func (*LDAPGroupProviderReconciler) SetupWithManager

func (r *LDAPGroupProviderReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type StaticMemberProviderReconciler

type StaticMemberProviderReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*StaticMemberProviderReconciler) Reconcile

func (r *StaticMemberProviderReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

func (*StaticMemberProviderReconciler) SetupWithManager

func (r *StaticMemberProviderReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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