File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
pkg/comp-functions/functions/common/maintenance Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,11 @@ func (m *Maintenance) Run(ctx context.Context) *xfnproto.Result {
160160 // Handle initial maintenance job
161161 // Keep the job in desired state until 30 minutes after completion
162162 if ! m .resource .GetInitialMaintenanceRan () {
163+ if m .resource .GetName () == "" {
164+ log .Info ("Composite resource not yet fully populated, deferring initial maintenance job" )
165+ return runtime .NewNormalResult ("Composite resource not yet fully populated, deferring initial maintenance job" )
166+ }
167+
163168 // Job hasn't been created yet, create it
164169 if err := m .createInitialMaintenanceJob (ctx ); err != nil {
165170 log .Error (err , "Failed to create initial maintenance job" )
You can’t perform that action at this time.
0 commit comments