Skip to content

Commit

Permalink
fix: spelling of PodDisruptionBudget
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Augustin <dom.augustin@gmx.at>
  • Loading branch information
yeahservice committed Apr 2, 2023
1 parent f6974d0 commit ceff008
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/analyzer/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type PreAnalysis struct {
Endpoint v1.Endpoints
Ingress networkingv1.Ingress
HorizontalPodAutoscalers autoscalingv1.HorizontalPodAutoscaler
PodDiscruptionBudget policyv1.PodDisruptionBudget
PodDisruptionBudget policyv1.PodDisruptionBudget
}

type Analysis struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/analyzer/pdbAnalyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func AnalyzePdb(ctx context.Context, config *AnalysisConfiguration, client *kube

if len(failures) > 0 {
preAnalysis[fmt.Sprintf("%s/%s", pdb.Namespace, pdb.Name)] = PreAnalysis{
PodDiscruptionBudget: pdb,
FailureDetails: failures,
PodDisruptionBudget: pdb,
FailureDetails: failures,
}
}
}
Expand All @@ -55,7 +55,7 @@ func AnalyzePdb(ctx context.Context, config *AnalysisConfiguration, client *kube
Error: value.FailureDetails,
}

parent, _ := util.GetParent(client, value.PodDiscruptionBudget.ObjectMeta)
parent, _ := util.GetParent(client, value.PodDisruptionBudget.ObjectMeta)
currentAnalysis.ParentObject = parent
*analysisResults = append(*analysisResults, currentAnalysis)
}
Expand Down

0 comments on commit ceff008

Please sign in to comment.