Skip to content

Commit

Permalink
chore: port #249 into v1beta2 controller
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Apr 5, 2024
1 parent 812c208 commit 9dfae27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions controllers/v1beta2/build_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ type LagoonBuildReconciler struct {
LagoonFeatureFlags map[string]string
LagoonAPIConfiguration helpers.LagoonAPIConfiguration
ProxyConfig ProxyConfig
UnauthenticatedRegistry string
}

// BackupConfig holds all the backup configuration settings
Expand Down
2 changes: 1 addition & 1 deletion controllers/v1beta2/build_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ func (r *LagoonBuildReconciler) processBuild(ctx context.Context, opLog logr.Log
})
podEnvs = append(podEnvs, corev1.EnvVar{
Name: "REGISTRY",
Value: lagoonBuild.Spec.Project.Registry,
Value: r.UnauthenticatedRegistry,
})
// this is enabled by default for now
// eventually will be disabled by default because support for the generation/modification of this will
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,7 @@ func main() {
HTTPSProxy: httpsProxy,
NoProxy: noProxy,
},
UnauthenticatedRegistry: unauthenticatedRegistry,
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "LagoonBuild")
os.Exit(1)
Expand Down

0 comments on commit 9dfae27

Please sign in to comment.