Skip to content

Commit

Permalink
fix error messages
Browse files Browse the repository at this point in the history
Signed-off-by: keithfz <kzeto4@gmail.com>
  • Loading branch information
keithfz committed Dec 12, 2024
1 parent 7791e94 commit 64904cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha1/kubernetes_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (hpa *KubernetesHorizontalPodAutoscalerSpec) ApplyMergePatch(old *autoscali
// Serialize the current HPA to JSON
originalJSON, err := json.Marshal(old)
if err != nil {
return nil, fmt.Errorf("error marshaling original deployment: %w", err)
return nil, fmt.Errorf("error marshaling original HorizontalPodAutoscaler: %w", err)
}

switch {
Expand Down Expand Up @@ -314,7 +314,7 @@ func (pdb *KubernetesPodDisruptionBudgetSpec) ApplyMergePatch(old *policyv1.PodD
// Serialize the PDB deployment to JSON
originalJSON, err := json.Marshal(old)
if err != nil {
return nil, fmt.Errorf("error marshaling original deployment: %w", err)
return nil, fmt.Errorf("error marshaling original PodDisruptionBudget: %w", err)
}

switch {
Expand Down

0 comments on commit 64904cf

Please sign in to comment.