Skip to content

Commit

Permalink
Review some codes
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Jun 5, 2024
1 parent bfd742a commit 975d20e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions controllers/validation_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (r *RpaasValidationReconciler) Reconcile(ctx context.Context, req ctrl.Requ

validationMergedWithFlavors, err := r.mergeWithFlavors(ctx, validation.DeepCopy())
if err != nil {
return reconcile.Result{}, nil
return reconcile.Result{}, err
}

if validationMergedWithFlavors.Spec.PlanTemplate != nil {
Expand All @@ -95,7 +95,7 @@ func (r *RpaasValidationReconciler) Reconcile(ctx context.Context, req ctrl.Requ

existingPod, err := r.getPod(ctx, pod.Namespace, pod.Name)
if err != nil && !k8sErrors.IsNotFound(err) {
return ctrl.Result{}, nil
return ctrl.Result{}, err
}

if existingPod != nil {
Expand Down Expand Up @@ -294,8 +294,6 @@ func (r *RpaasValidationReconciler) renderTemplate(ctx context.Context, validati
}

func newValidationConfigMap(validation *v1alpha1.RpaasValidation, renderedTemplate string) *corev1.ConfigMap {
//hash := fmt.Sprintf("%x", sha256.Sum256([]byte(renderedTemplate)))

return &corev1.ConfigMap{
TypeMeta: metav1.TypeMeta{
Kind: "ConfigMap",
Expand Down

0 comments on commit 975d20e

Please sign in to comment.