Documentation
¶
Index ¶
- Variables
- func BuildTargetClusterConfigFromTyped(ctx context.Context, clusterAccess v1alpha1.ClusterAccess, ...) (*rest.Config, string, error)
- func NewClusterAccessReconciler(ctx context.Context, appCfg config.Config, opts reconciler.ReconcilerOpts, ...) (reconciler.CustomReconciler, error)
- func NewGenerateSchemaSubroutineForTesting(reconciler *ClusterAccessReconciler) *generateSchemaSubroutine
- func NewReconciler(opts reconciler.ReconcilerOpts, ioHandler workspacefile.IOHandler, ...) (reconciler.CustomReconciler, error)
- type CRDStatus
- type ClusterAccessReconciler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCRDNotRegistered = errors.New("ClusterAccess CRD not registered") ErrCRDCheckFailed = errors.New("failed to check ClusterAccess CRD status") )
Functions ¶
func BuildTargetClusterConfigFromTyped ¶
func BuildTargetClusterConfigFromTyped(ctx context.Context, clusterAccess v1alpha1.ClusterAccess, k8sClient client.Client) (*rest.Config, string, error)
BuildTargetClusterConfigFromTyped extracts connection info from ClusterAccess and builds rest.Config
func NewClusterAccessReconciler ¶
func NewClusterAccessReconciler( ctx context.Context, appCfg config.Config, opts reconciler.ReconcilerOpts, ioHandler workspacefile.IOHandler, schemaResolver apischema.Resolver, log *logger.Logger, ) (reconciler.CustomReconciler, error)
func NewGenerateSchemaSubroutineForTesting ¶
func NewGenerateSchemaSubroutineForTesting(reconciler *ClusterAccessReconciler) *generateSchemaSubroutine
NewGenerateSchemaSubroutineForTesting creates a generateSchemaSubroutine for testing
func NewReconciler ¶
func NewReconciler( opts reconciler.ReconcilerOpts, ioHandler workspacefile.IOHandler, schemaResolver apischema.Resolver, log *logger.Logger, ) (reconciler.CustomReconciler, error)
Types ¶
type ClusterAccessReconciler ¶
type ClusterAccessReconciler struct {
// contains filtered or unexported fields
}
ClusterAccessReconciler handles reconciliation for ClusterAccess resources
func (*ClusterAccessReconciler) GetManager ¶
func (r *ClusterAccessReconciler) GetManager() ctrl.Manager
func (*ClusterAccessReconciler) SetupWithManager ¶
func (r *ClusterAccessReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.