@@ -160,13 +160,13 @@ func (i InNamespace) ApplyToConfigMapRepository(settings *ConfigMapRepositorySet
160
160
settings .namespace = string (i )
161
161
}
162
162
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 ) {
165
165
return & Result {}, preflightChecks (ctx , p .ctrlClient , p .provider , p .providerList )
166
166
}
167
167
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 ) {
170
170
path := configPath
171
171
if _ , err := os .Stat (configPath ); os .IsNotExist (err ) {
172
172
path = ""
@@ -227,8 +227,8 @@ func (p *PhaseReconciler) initializePhaseReconciler(ctx context.Context) (*Resul
227
227
return & Result {}, nil
228
228
}
229
229
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 ) {
232
232
log := ctrl .LoggerFrom (ctx )
233
233
234
234
log .Info ("Loading provider" )
@@ -511,8 +511,8 @@ func (p *PhaseReconciler) validateRepoCAPIVersion(ctx context.Context) error {
511
511
return nil
512
512
}
513
513
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 ) {
516
516
log := ctrl .LoggerFrom (ctx )
517
517
log .Info ("Fetching provider" )
518
518
@@ -559,9 +559,9 @@ func (p *PhaseReconciler) fetch(ctx context.Context) (*Result, error) {
559
559
return & Result {}, nil
560
560
}
561
561
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,
563
563
// 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 ) {
565
565
log := ctrl .LoggerFrom (ctx )
566
566
567
567
// Nothing to do if it's a fresh installation.
@@ -589,8 +589,8 @@ func (p *PhaseReconciler) upgrade(ctx context.Context) (*Result, error) {
589
589
return & Result {}, nil
590
590
}
591
591
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 ) {
594
594
log := ctrl .LoggerFrom (ctx )
595
595
596
596
// Provider was upgraded, nothing to do
@@ -617,7 +617,7 @@ func (p *PhaseReconciler) install(ctx context.Context) (*Result, error) {
617
617
return & Result {}, nil
618
618
}
619
619
620
- func (p * PhaseReconciler ) reportStatus (_ context.Context ) (* Result , error ) {
620
+ func (p * PhaseReconciler ) ReportStatus (_ context.Context ) (* Result , error ) {
621
621
status := p .provider .GetStatus ()
622
622
status .Contract = & p .contract
623
623
installedVersion := p .components .Version ()
@@ -665,8 +665,8 @@ func loadCustomProviders(providers []operatorv1.GenericProvider, reader configcl
665
665
return mr , nil
666
666
}
667
667
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 ) {
670
670
log := ctrl .LoggerFrom (ctx )
671
671
log .Info ("Deleting provider" )
672
672
0 commit comments