mirror of
https://github.com/stakater/Reloader.git
synced 2026-08-23 22:16:45 +00:00
build: update build configuration to use internal metadata package and improve ldflags injection, fix defer resp.Body.Close() usage, replace os.Setenv with t.Setenv in tests, correct error message casing, and adjust Dockerfile and Makefile for cmd/reloader structure
This commit is contained in:
@@ -73,7 +73,7 @@ func (r *Registry) FromObject(obj client.Object) (WorkloadAccessor, error) {
|
||||
return NewCronJobWorkload(o), nil
|
||||
case *argorolloutv1alpha1.Rollout:
|
||||
if !r.argoRolloutsEnabled {
|
||||
return nil, fmt.Errorf("Argo Rollouts support is not enabled")
|
||||
return nil, fmt.Errorf("argo Rollouts support is not enabled")
|
||||
}
|
||||
return NewRolloutWorkload(o), nil
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user