diff --git a/go.mod b/go.mod index 7799bd991172..316613d157dc 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/PuerkitoBio/goquery v1.8.1 github.com/avast/retry-go v3.0.0+incompatible github.com/aws/aws-sdk-go v1.44.328 - github.com/aws/karpenter-core v0.30.0-rc.0.0.20230821212413-c6431d9170fd + github.com/aws/karpenter-core v0.30.0-rc.0.0.20230822175121-c71cf73b5a52 github.com/go-playground/validator/v10 v10.15.1 github.com/imdario/mergo v0.3.16 github.com/mitchellh/hashstructure/v2 v2.0.2 diff --git a/go.sum b/go.sum index d1797233d921..4e38df401706 100644 --- a/go.sum +++ b/go.sum @@ -53,8 +53,8 @@ github.com/avast/retry-go v3.0.0+incompatible h1:4SOWQ7Qs+oroOTQOYnAHqelpCO0biHS github.com/avast/retry-go v3.0.0+incompatible/go.mod h1:XtSnn+n/sHqQIpZ10K1qAevBhOOCWBLXXy3hyiqqBrY= github.com/aws/aws-sdk-go v1.44.328 h1:WBwlf8ym9SDQ/GTIBO9eXyvwappKJyOetWJKl4mT7ZU= github.com/aws/aws-sdk-go v1.44.328/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= -github.com/aws/karpenter-core v0.30.0-rc.0.0.20230821212413-c6431d9170fd h1:aukJqwqzn2psok14fFYkeyT/1xvbK3loMhzXSfyVjkk= -github.com/aws/karpenter-core v0.30.0-rc.0.0.20230821212413-c6431d9170fd/go.mod h1:AQl8m8OtgO2N8IlZlzAU6MTrJTJSbe6K4GwdRUNSJVc= +github.com/aws/karpenter-core v0.30.0-rc.0.0.20230822175121-c71cf73b5a52 h1:vjppWOFi+YWrtNE3KhKka/2YLMet9obGiq/dsikxDJQ= +github.com/aws/karpenter-core v0.30.0-rc.0.0.20230822175121-c71cf73b5a52/go.mod h1:AQl8m8OtgO2N8IlZlzAU6MTrJTJSbe6K4GwdRUNSJVc= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= diff --git a/hack/docs/metrics_gen_docs.go b/hack/docs/metrics_gen_docs.go index 5d6030fe592d..5069e71c08a1 100644 --- a/hack/docs/metrics_gen_docs.go +++ b/hack/docs/metrics_gen_docs.go @@ -267,7 +267,7 @@ func getIdentMapping(identName string) (string, error) { "metrics.Namespace": metrics.Namespace, "Namespace": metrics.Namespace, - "nodeSubsystem": "nodes", + "NodeSubsystem": "nodes", "machineSubsystem": "machines", "nodeClaimSubsystem": "nodeclaims", "interruptionSubsystem": "interruption", diff --git a/test/pkg/environment/common/expectations.go b/test/pkg/environment/common/expectations.go index 409cdb3bb804..e0683d04a7eb 100644 --- a/test/pkg/environment/common/expectations.go +++ b/test/pkg/environment/common/expectations.go @@ -43,6 +43,7 @@ import ( pscheduling "github.com/aws/karpenter-core/pkg/controllers/provisioning/scheduling" "github.com/aws/karpenter-core/pkg/scheduling" "github.com/aws/karpenter-core/pkg/test" + nodepoolutil "github.com/aws/karpenter-core/pkg/utils/nodepool" ) func (env *Environment) ExpectCreatedWithOffset(offset int, objects ...client.Object) { @@ -572,8 +573,8 @@ func (env *Environment) GetDaemonSetCount(prov *v1alpha5.Provisioner) int { return lo.CountBy(daemonSetList.Items, func(d appsv1.DaemonSet) bool { p := &v1.Pod{Spec: d.Spec.Template.Spec} - nodeTemplate := pscheduling.NewMachineTemplate(prov) - if err := nodeTemplate.Taints.Tolerates(p); err != nil { + nodeTemplate := pscheduling.NewNodeClaimTemplate(nodepoolutil.New(prov)) + if err := scheduling.Taints(nodeTemplate.Spec.Taints).Tolerates(p); err != nil { return false } if err := nodeTemplate.Requirements.Compatible(scheduling.NewPodRequirements(p)); err != nil {