fix static check violations
This commit is contained in:
parent
0f1e19625e
commit
b79ee0db6f
|
|
@ -542,8 +542,8 @@ func (c *Cluster) syncLogicalBackupJob() error {
|
|||
if job, err = c.KubeClient.CronJobsGetter.CronJobs(c.Namespace).Get(c.logicalBackupJob.Name, metav1.GetOptions{}); err == nil {
|
||||
|
||||
desiredJob, err = c.generateLogicalBackupJob()
|
||||
if err = c.updateCronJob(desiredJob); err != nil {
|
||||
return fmt.Errorf("could not generate the desired job state: %v", err)
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not generate the desired cron job state: %v", err)
|
||||
}
|
||||
if match, reason := k8sutil.SameCronJob(job, desiredJob); !match {
|
||||
c.logCronJobChanges(job, desiredJob, false, reason)
|
||||
|
|
@ -567,7 +567,7 @@ func (c *Cluster) syncLogicalBackupJob() error {
|
|||
return fmt.Errorf("could not create missing logical backup job: %v", err)
|
||||
}
|
||||
c.logger.Infof("logical backup job %q already exists", util.NameFromMeta(job.ObjectMeta))
|
||||
if job, err = c.KubeClient.CronJobsGetter.CronJobs(c.Namespace).Get(c.logicalBackupJob.Name, metav1.GetOptions{}); err != nil {
|
||||
if _, err = c.KubeClient.CronJobsGetter.CronJobs(c.Namespace).Get(c.logicalBackupJob.Name, metav1.GetOptions{}); err != nil {
|
||||
return fmt.Errorf("could not fetch existing logical backup job: %v", err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ function main(){
|
|||
clean_up
|
||||
start_minikube
|
||||
start_operator
|
||||
submit_postgresql_manifest
|
||||
# submit_postgresql_manifest
|
||||
forward_ports
|
||||
check_health
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue