Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - type APIServerProvider
 - func (r *APIServerProvider) GetAPIServerHandlerForType(ctx context.Context, t openmcpv1alpha1.APIServerType, ...) (apiserverhandler.APIServerHandler, error)
 - func (r *APIServerProvider) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
 - func (r *APIServerProvider) SetupWithManager(mgr ctrl.Manager) error
 
- type AccessRequestMutator
 - type ClusterRequestMutator
 
Constants ¶
      View Source
      
  
const ControllerName = "APIServer"
    Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServerProvider ¶
type APIServerProvider struct {
	apiserverconfig.CompletedAPIServerProviderConfiguration
	// CrateClient is the registration cluster client.
	CrateClient client.Client
	// PlatformClient is the platform cluster client.
	PlatformClient client.Client
	// FakeHandler is a fake APIServerHandler for testing purposes.
	// It should only be non-nil in tests.
	FakeHandler apiserverhandler.APIServerHandler
}
    APIServerProvider reconciles a ManagedControlPlane object
func NewAPIServerProvider ¶
func NewAPIServerProvider(ctx context.Context, crateClient, platformClient client.Client, cfg *apiserverconfig.APIServerProviderConfiguration) (*APIServerProvider, error)
func (*APIServerProvider) GetAPIServerHandlerForType ¶
func (r *APIServerProvider) GetAPIServerHandlerForType(ctx context.Context, t openmcpv1alpha1.APIServerType, cfg apiserverconfig.CompletedAPIServerProviderConfiguration) (apiserverhandler.APIServerHandler, error)
func (*APIServerProvider) SetupWithManager ¶
func (r *APIServerProvider) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type AccessRequestMutator ¶ added in v0.33.0
type AccessRequestMutator struct {
	// contains filtered or unexported fields
}
    func NewAccessRequestMutator ¶ added in v0.33.0
func NewAccessRequestMutator(name, namespace, refName, refNamespace string, isClusterRef bool, permissions []clustersv1alpha1.PermissionsRequest) *AccessRequestMutator
func (*AccessRequestMutator) Empty ¶ added in v0.33.0
func (m *AccessRequestMutator) Empty() *clustersv1alpha1.AccessRequest
Empty implements resources.Mutator.
func (*AccessRequestMutator) MetadataMutator ¶ added in v0.33.0
func (m *AccessRequestMutator) MetadataMutator() resources.MetadataMutator
MetadataMutator implements resources.Mutator.
func (*AccessRequestMutator) Mutate ¶ added in v0.33.0
func (m *AccessRequestMutator) Mutate(r *clustersv1alpha1.AccessRequest) error
Mutate implements resources.Mutator.
func (*AccessRequestMutator) String ¶ added in v0.33.0
func (m *AccessRequestMutator) String() string
String implements resources.Mutator.
type ClusterRequestMutator ¶ added in v0.33.0
type ClusterRequestMutator struct {
	// contains filtered or unexported fields
}
    func NewClusterRequestMutator ¶ added in v0.33.0
func NewClusterRequestMutator(name, namespace, purpose string) *ClusterRequestMutator
func (*ClusterRequestMutator) Empty ¶ added in v0.33.0
func (m *ClusterRequestMutator) Empty() *clustersv1alpha1.ClusterRequest
Empty implements resources.Mutator.
func (*ClusterRequestMutator) MetadataMutator ¶ added in v0.33.0
func (m *ClusterRequestMutator) MetadataMutator() resources.MetadataMutator
MetadataMutator implements resources.Mutator.
func (*ClusterRequestMutator) Mutate ¶ added in v0.33.0
func (m *ClusterRequestMutator) Mutate(r *clustersv1alpha1.ClusterRequest) error
Mutate implements resources.Mutator.
func (*ClusterRequestMutator) String ¶ added in v0.33.0
func (m *ClusterRequestMutator) String() string
String implements resources.Mutator.
 Click to show internal directories. 
   Click to hide internal directories.