mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
generate: bump tools to their latest versions
Bump tools versions and re-auto-generate files.
This commit is contained in:
parent
65b7216313
commit
7e375ad1f0
8 changed files with 33 additions and 41 deletions
|
@ -2,18 +2,18 @@ ARG BUILDER_IMAGE
|
|||
FROM ${BUILDER_IMAGE} as builder
|
||||
|
||||
# Install tools
|
||||
RUN go install github.com/vektra/mockery/v2@v2.25.1 && \
|
||||
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.11.3 && \
|
||||
git clone https://github.com/kubernetes/code-generator -b v0.27.1 --depth 1 && \
|
||||
go install k8s.io/code-generator/cmd/go-to-protobuf/...@v0.27.1 && \
|
||||
go install golang.org/x/tools/cmd/goimports@v0.8.0 && \
|
||||
RUN go install github.com/vektra/mockery/v2@v2.32.0 && \
|
||||
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.12.1 && \
|
||||
git clone https://github.com/kubernetes/code-generator -b v0.27.4 --depth 1 && \
|
||||
go install k8s.io/code-generator/cmd/go-to-protobuf/...@v0.27.4 && \
|
||||
go install golang.org/x/tools/cmd/goimports@v0.11.0 && \
|
||||
go install github.com/golang/protobuf/protoc-gen-go@v1.4.3
|
||||
|
||||
RUN apt-get update && apt-get install unzip
|
||||
|
||||
RUN curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protoc-22.3-linux-x86_64.zip && \
|
||||
unzip protoc-22.3-linux-x86_64.zip -d /usr/local && \
|
||||
rm protoc-22.3-linux-x86_64.zip && \
|
||||
RUN curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v23.4/protoc-23.4-linux-x86_64.zip && \
|
||||
unzip protoc-23.4-linux-x86_64.zip -d /usr/local && \
|
||||
rm protoc-23.4-linux-x86_64.zip && \
|
||||
chmod a+x /usr/local/bin/protoc && \
|
||||
find /usr/local -type d | xargs chmod 755 && \
|
||||
find /usr/local -type f | xargs chmod a+r
|
||||
|
|
|
@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
|||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.11.3
|
||||
creationTimestamp: null
|
||||
controller-gen.kubebuilder.io/version: v0.12.1
|
||||
name: nodefeatures.nfd.k8s-sigs.io
|
||||
spec:
|
||||
group: nfd.k8s-sigs.io
|
||||
|
@ -114,8 +113,7 @@ apiVersion: apiextensions.k8s.io/v1
|
|||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.11.3
|
||||
creationTimestamp: null
|
||||
controller-gen.kubebuilder.io/version: v0.12.1
|
||||
name: nodefeaturerules.nfd.k8s-sigs.io
|
||||
spec:
|
||||
group: nfd.k8s-sigs.io
|
||||
|
|
|
@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
|||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.11.3
|
||||
creationTimestamp: null
|
||||
controller-gen.kubebuilder.io/version: v0.12.1
|
||||
name: nodefeatures.nfd.k8s-sigs.io
|
||||
spec:
|
||||
group: nfd.k8s-sigs.io
|
||||
|
@ -114,8 +113,7 @@ apiVersion: apiextensions.k8s.io/v1
|
|||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.11.3
|
||||
creationTimestamp: null
|
||||
controller-gen.kubebuilder.io/version: v0.12.1
|
||||
name: nodefeaturerules.nfd.k8s-sigs.io
|
||||
spec:
|
||||
group: nfd.k8s-sigs.io
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.25.1. DO NOT EDIT.
|
||||
// Code generated by mockery v2.32.0. DO NOT EDIT.
|
||||
|
||||
package apihelper
|
||||
|
||||
|
@ -188,13 +188,12 @@ func (_m *MockAPIHelpers) UpdateNode(_a0 *kubernetes.Clientset, _a1 *v1.Node) er
|
|||
return r0
|
||||
}
|
||||
|
||||
type mockConstructorTestingTNewMockAPIHelpers interface {
|
||||
// NewMockAPIHelpers creates a new instance of MockAPIHelpers. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewMockAPIHelpers(t interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}
|
||||
|
||||
// NewMockAPIHelpers creates a new instance of MockAPIHelpers. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewMockAPIHelpers(t mockConstructorTestingTNewMockAPIHelpers) *MockAPIHelpers {
|
||||
}) *MockAPIHelpers {
|
||||
mock := &MockAPIHelpers{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.23.0
|
||||
// protoc v4.22.3
|
||||
// protoc v4.23.4
|
||||
// source: labeler.proto
|
||||
|
||||
package labeler
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.25.1. DO NOT EDIT.
|
||||
// Code generated by mockery v2.32.0. DO NOT EDIT.
|
||||
|
||||
package labeler
|
||||
|
||||
|
@ -48,13 +48,12 @@ func (_m *MockLabelerClient) SetLabels(ctx context.Context, in *SetLabelsRequest
|
|||
return r0, r1
|
||||
}
|
||||
|
||||
type mockConstructorTestingTNewMockLabelerClient interface {
|
||||
// NewMockLabelerClient creates a new instance of MockLabelerClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewMockLabelerClient(t interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}
|
||||
|
||||
// NewMockLabelerClient creates a new instance of MockLabelerClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewMockLabelerClient(t mockConstructorTestingTNewMockLabelerClient) *MockLabelerClient {
|
||||
}) *MockLabelerClient {
|
||||
mock := &MockLabelerClient{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.25.1. DO NOT EDIT.
|
||||
// Code generated by mockery v2.32.0. DO NOT EDIT.
|
||||
|
||||
package mocks
|
||||
|
||||
|
@ -116,13 +116,12 @@ func (_m *PodResourcesListerClient) List(ctx context.Context, in *v1.ListPodReso
|
|||
return r0, r1
|
||||
}
|
||||
|
||||
type mockConstructorTestingTNewPodResourcesListerClient interface {
|
||||
// NewPodResourcesListerClient creates a new instance of PodResourcesListerClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewPodResourcesListerClient(t interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}
|
||||
|
||||
// NewPodResourcesListerClient creates a new instance of PodResourcesListerClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewPodResourcesListerClient(t mockConstructorTestingTNewPodResourcesListerClient) *PodResourcesListerClient {
|
||||
}) *PodResourcesListerClient {
|
||||
mock := &PodResourcesListerClient{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.25.1. DO NOT EDIT.
|
||||
// Code generated by mockery v2.32.0. DO NOT EDIT.
|
||||
|
||||
package source
|
||||
|
||||
|
@ -63,13 +63,12 @@ func (_m *MockLabelSource) Priority() int {
|
|||
return r0
|
||||
}
|
||||
|
||||
type mockConstructorTestingTNewMockLabelSource interface {
|
||||
// NewMockLabelSource creates a new instance of MockLabelSource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewMockLabelSource(t interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}
|
||||
|
||||
// NewMockLabelSource creates a new instance of MockLabelSource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewMockLabelSource(t mockConstructorTestingTNewMockLabelSource) *MockLabelSource {
|
||||
}) *MockLabelSource {
|
||||
mock := &MockLabelSource{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
|
Loading…
Reference in a new issue