Documentation ¶
Index ¶
Constants ¶
View Source
const ( // IndexKeyInternalWorkspaceDisplayName key for InternalWorkspace's indexer on field DisplayName IndexKeyInternalWorkspaceDisplayName string = "display-name" // IndexKeyInternalWorkspaceVisibility key for InternalWorkspace's indexer on field Visibility IndexKeyInternalWorkspaceVisibility string = "visibility" // IndexKeyInternalWorkspaceOwnerUsername key for InternalWorkspace's indexer on field for Owner's Username IndexKeyInternalWorkspaceOwnerUsername string = "owner.username" // IndexKeyInternalWorkspaceOwnerEmail key for InternalWorkspace's indexer on field for Owner's Email IndexKeyInternalWorkspaceOwnerEmail string = "owner.email" // IndexKeyInternalWorkspaceOwnerSub key for InternalWorkspace's indexer on field for Owner's Sub IndexKeyInternalWorkspaceOwnerSub string = "owner.sub" // IndexKeyInternalWorkspaceSpaceName key for InternalWorkspace's indexer on field for Space's name IndexKeyInternalWorkspaceSpaceName string = "space.name" // IndexKeyUserComplaintName key for InternalWorkspace's indexer on field for UserSignup's ComplaintName IndexKeyUserComplaintName string = "status.complaintName" )
Variables ¶
View Source
var InternalWorkspacesIndexers = map[string]client.IndexerFunc{ IndexKeyInternalWorkspaceDisplayName: newSingleFieldIndexer(func(w *workspacesv1alpha1.InternalWorkspace) string { return w.Spec.DisplayName }), IndexKeyInternalWorkspaceVisibility: newSingleFieldIndexer(func(w *workspacesv1alpha1.InternalWorkspace) string { return string(w.Spec.Visibility) }), IndexKeyInternalWorkspaceOwnerUsername: newSingleFieldIndexer(func(w *workspacesv1alpha1.InternalWorkspace) string { return w.Status.Owner.Username }), IndexKeyInternalWorkspaceSpaceName: newSingleFieldIndexer(func(w *workspacesv1alpha1.InternalWorkspace) string { return w.Status.Space.Name }), IndexKeyInternalWorkspaceOwnerEmail: newSingleFieldIndexer(func(w *workspacesv1alpha1.InternalWorkspace) string { return w.Spec.Owner.JwtInfo.Email }), IndexKeyInternalWorkspaceOwnerSub: newSingleFieldIndexer(func(w *workspacesv1alpha1.InternalWorkspace) string { return w.Spec.Owner.JwtInfo.Sub }), }
View Source
var UserSignupIndexers = map[string]client.IndexerFunc{ IndexKeyUserComplaintName: newSingleFieldIndexer(func(u *toolchainv1alpha1.UserSignup) string { return u.Status.CompliantUsername }), }
Functions ¶
func NewCache ¶
func NewCache(ctx context.Context, cfg *rest.Config, workspacesNamespace, kubesawNamespace string) (cache.Cache, error)
NewCache creates a controller-runtime cache.Cache instance configured to monitor spacebindings.toolchain.dev.openshift.com and workspaces.workspaces.io. IMPORTANT: returned cache needs to be started and initialized.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.