@@ -160,13 +160,13 @@ func (i InNamespace) ApplyToConfigMapRepository(settings *ConfigMapRepositorySet
160160 settings .namespace = string (i )
161161}
162162
163- // preflightChecks a wrapper around the preflight checks.
164- func (p * PhaseReconciler ) preflightChecks (ctx context.Context ) (* Result , error ) {
163+ // PreflightChecks a wrapper around the preflight checks.
164+ func (p * PhaseReconciler ) PreflightChecks (ctx context.Context ) (* Result , error ) {
165165 return & Result {}, preflightChecks (ctx , p .ctrlClient , p .provider , p .providerList )
166166}
167167
168- // initializePhaseReconciler initializes phase reconciler.
169- func (p * PhaseReconciler ) initializePhaseReconciler (ctx context.Context ) (* Result , error ) {
168+ // InitializePhaseReconciler initializes phase reconciler.
169+ func (p * PhaseReconciler ) InitializePhaseReconciler (ctx context.Context ) (* Result , error ) {
170170 path := configPath
171171 if _ , err := os .Stat (configPath ); os .IsNotExist (err ) {
172172 path = ""
@@ -227,8 +227,8 @@ func (p *PhaseReconciler) initializePhaseReconciler(ctx context.Context) (*Resul
227227 return & Result {}, nil
228228}
229229
230- // load provider specific configuration into phaseReconciler object.
231- func (p * PhaseReconciler ) load (ctx context.Context ) (* Result , error ) {
230+ // Load provider specific configuration into phaseReconciler object.
231+ func (p * PhaseReconciler ) Load (ctx context.Context ) (* Result , error ) {
232232 log := ctrl .LoggerFrom (ctx )
233233
234234 log .Info ("Loading provider" )
@@ -511,8 +511,8 @@ func (p *PhaseReconciler) validateRepoCAPIVersion(ctx context.Context) error {
511511 return nil
512512}
513513
514- // fetch fetches the provider components from the repository and processes all yaml manifests.
515- func (p * PhaseReconciler ) fetch (ctx context.Context ) (* Result , error ) {
514+ // Fetch fetches the provider components from the repository and processes all yaml manifests.
515+ func (p * PhaseReconciler ) Fetch (ctx context.Context ) (* Result , error ) {
516516 log := ctrl .LoggerFrom (ctx )
517517 log .Info ("Fetching provider" )
518518
@@ -559,9 +559,9 @@ func (p *PhaseReconciler) fetch(ctx context.Context) (*Result, error) {
559559 return & Result {}, nil
560560}
561561
562- // upgrade ensure all the clusterctl CRDs are available before installing the provider,
562+ // Upgrade ensure all the clusterctl CRDs are available before installing the provider,
563563// and update existing components if required.
564- func (p * PhaseReconciler ) upgrade (ctx context.Context ) (* Result , error ) {
564+ func (p * PhaseReconciler ) Upgrade (ctx context.Context ) (* Result , error ) {
565565 log := ctrl .LoggerFrom (ctx )
566566
567567 // Nothing to do if it's a fresh installation.
@@ -589,8 +589,8 @@ func (p *PhaseReconciler) upgrade(ctx context.Context) (*Result, error) {
589589 return & Result {}, nil
590590}
591591
592- // install installs the provider components using clusterctl library.
593- func (p * PhaseReconciler ) install (ctx context.Context ) (* Result , error ) {
592+ // Install installs the provider components using clusterctl library.
593+ func (p * PhaseReconciler ) Install (ctx context.Context ) (* Result , error ) {
594594 log := ctrl .LoggerFrom (ctx )
595595
596596 // Provider was upgraded, nothing to do
@@ -617,7 +617,7 @@ func (p *PhaseReconciler) install(ctx context.Context) (*Result, error) {
617617 return & Result {}, nil
618618}
619619
620- func (p * PhaseReconciler ) reportStatus (_ context.Context ) (* Result , error ) {
620+ func (p * PhaseReconciler ) ReportStatus (_ context.Context ) (* Result , error ) {
621621 status := p .provider .GetStatus ()
622622 status .Contract = & p .contract
623623 installedVersion := p .components .Version ()
@@ -665,8 +665,8 @@ func loadCustomProviders(providers []operatorv1.GenericProvider, reader configcl
665665 return mr , nil
666666}
667667
668- // delete deletes the provider components using clusterctl library.
669- func (p * PhaseReconciler ) delete (ctx context.Context ) (* Result , error ) {
668+ // Delete deletes the provider components using clusterctl library.
669+ func (p * PhaseReconciler ) Delete (ctx context.Context ) (* Result , error ) {
670670 log := ctrl .LoggerFrom (ctx )
671671 log .Info ("Deleting provider" )
672672
0 commit comments