Skip to content

Commit f9bc9a7

Browse files
committed
Put Image at start of resources
When naiserator reconciles the application/naisjob, it is beneficial if it finds the recently created/updated Image resource. For that reason, we put it first so k8s has had a chance to save it before the application/naisjob shows up.
1 parent aa5131f commit f9bc9a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/deployclient/deployclient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func Prepare(ctx context.Context, cfg *Config) (*pb.DeploymentRequest, error) {
157157
if err != nil {
158158
return nil, ErrorWrap(ExitInternalError, fmt.Errorf("build image resource: %w", err))
159159
}
160-
resources = append(resources, resource)
160+
resources = append([]json.RawMessage{resource}, resources...)
161161
}
162162
}
163163

0 commit comments

Comments
 (0)