Skip to content

Commit

Permalink
Added log when skipping the creation of installer pod
Browse files Browse the repository at this point in the history
Signed-off-by: jubittajohn <jujohn@redhat.com>
  • Loading branch information
jubittajohn committed Jul 9, 2024
1 parent ca01d15 commit a73116f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ func getInstallerPodName(ns *operatorv1.NodeStatus) string {
}

// ensureInstallerPod creates the installer pod with the secrets required to if it does not exist already
// returns whether or not requeue and if an error happened while creating installer pod
// returns whether or not to requeue and if an error happened while ensuring the installer pod
func (c *InstallerController) ensureInstallerPod(ctx context.Context, operatorSpec *operatorv1.StaticPodOperatorSpec, ns *operatorv1.NodeStatus) (bool, error) {
// checks if a new installer pod should be created based on the preconditions being met
// preconditions are only evaluated when the installer pod isn't already present
Expand All @@ -879,6 +879,7 @@ func (c *InstallerController) ensureInstallerPod(ctx context.Context, operatorSp
return true, err
}
if !shouldInstall {
klog.Infof("Preconditions not met, skipping the creation of installer pod %s", installerPodName)
return true, nil
}
}
Expand Down

0 comments on commit a73116f

Please sign in to comment.