Skip to content

Commit

Permalink
update to v1alpha3
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Cho <[email protected]>
  • Loading branch information
jcho02 committed Feb 6, 2025
1 parent 96436ac commit 02e170a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/power-dra-kubeletplugin/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"math/rand"
"os"

resourceapi "k8s.io/api/resource/v1beta1"
resourceapi "k8s.io/api/resource/v1alpha3"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/utils/ptr"

Expand Down
2 changes: 1 addition & 1 deletion cmd/power-dra-kubeletplugin/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"k8s.io/dynamic-resource-allocation/kubeletplugin"
"k8s.io/klog/v2"

drapbv1 "k8s.io/kubelet/pkg/apis/dra/v1beta1"
drapbv1 "k8s.io/kubelet/pkg/apis/dra/v1alpha3"

Check failure on line 28 in cmd/power-dra-kubeletplugin/driver.go

View workflow job for this annotation

GitHub Actions / build

cannot find module providing package k8s.io/kubelet/pkg/apis/dra/v1alpha3: import lookup disabled by -mod=vendor
)

var _ drapbv1.DRAPluginServer = &driver{}
Expand Down
4 changes: 2 additions & 2 deletions cmd/power-dra-kubeletplugin/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"slices"
"sync"

resourceapi "k8s.io/api/resource/v1beta1"
resourceapi "k8s.io/api/resource/v1alpha3"
"k8s.io/apimachinery/pkg/runtime"
drapbv1 "k8s.io/kubelet/pkg/apis/dra/v1beta1"
drapbv1 "k8s.io/kubelet/pkg/apis/dra/v1alpha3"
"k8s.io/kubernetes/pkg/kubelet/checkpointmanager"

configapi "github.com/IBM/power-dra-driver/api/powervs-openshift-ipi.cis.ibm.net/resource/gpu/v1alpha1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
matchConstraints:
resourceRules:
- apiGroups: ["resource.k8s.io"]
apiVersions: ["v1beta1"]
apiVersions: ["v1alpha3"]
operations: ["CREATE", "UPDATE", "DELETE"]
resources: ["resourceslices"]
matchConditions:
Expand Down

0 comments on commit 02e170a

Please sign in to comment.