Skip to content

Commit

Permalink
Merge pull request #1 from extole/ignore_extended_resources
Browse files Browse the repository at this point in the history
ignore extended resources
  • Loading branch information
sergeykranga authored Oct 3, 2024
2 parents 38b4c32 + ada9500 commit 239f4b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/utils/resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package resources

import (
"strings"
"github.com/samber/lo"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
Expand Down Expand Up @@ -226,6 +227,10 @@ func Fits(candidate, total v1.ResourceList) bool {
}
}
for resourceName, quantity := range candidate {
// https://github.com/kubernetes-sigs/karpenter/pull/603/files
if strings.Contains(resourceName.String(), "pepperdata") {
continue
}
if Cmp(quantity, total[resourceName]) > 0 {
return false
}
Expand Down

0 comments on commit 239f4b3

Please sign in to comment.