Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
britaniar committed Jan 22, 2025
1 parent cede198 commit 470d4bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controllers/work/apply_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1421,6 +1421,7 @@ func TestTrackResourceAvailability(t *testing.T) {
err: nil,
},
}

for name, tt := range tests {
t.Run(name, func(t *testing.T) {
action, err := trackResourceAvailability(tt.gvr, tt.obj)
Expand Down
1 change: 1 addition & 0 deletions pkg/controllers/workapplier/availability_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ func trackCRDAvailability(inMemberClusterObj *unstructured.Unstructured) (Manife
return ManifestProcessingAvailabilityResultTypeNotYetAvailable, nil
}

// trackPDBAvailability tracks the availability of a pod disruption budget in the member cluster
func trackPDBAvailability(curObj *unstructured.Unstructured) (ManifestProcessingAvailabilityResultType, error) {
var pdb policyv1.PodDisruptionBudget
if err := runtime.DefaultUnstructuredConverter.FromUnstructured(curObj.Object, &pdb); err != nil {
Expand Down

0 comments on commit 470d4bb

Please sign in to comment.