mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-16 21:38:23 +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
|
FROM ${BUILDER_IMAGE} as builder
|
||||||
|
|
||||||
# Install tools
|
# Install tools
|
||||||
RUN go install github.com/vektra/mockery/v2@v2.25.1 && \
|
RUN go install github.com/vektra/mockery/v2@v2.32.0 && \
|
||||||
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.11.3 && \
|
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.12.1 && \
|
||||||
git clone https://github.com/kubernetes/code-generator -b v0.27.1 --depth 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.1 && \
|
go install k8s.io/code-generator/cmd/go-to-protobuf/...@v0.27.4 && \
|
||||||
go install golang.org/x/tools/cmd/goimports@v0.8.0 && \
|
go install golang.org/x/tools/cmd/goimports@v0.11.0 && \
|
||||||
go install github.com/golang/protobuf/protoc-gen-go@v1.4.3
|
go install github.com/golang/protobuf/protoc-gen-go@v1.4.3
|
||||||
|
|
||||||
RUN apt-get update && apt-get install unzip
|
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 && \
|
RUN curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v23.4/protoc-23.4-linux-x86_64.zip && \
|
||||||
unzip protoc-22.3-linux-x86_64.zip -d /usr/local && \
|
unzip protoc-23.4-linux-x86_64.zip -d /usr/local && \
|
||||||
rm protoc-22.3-linux-x86_64.zip && \
|
rm protoc-23.4-linux-x86_64.zip && \
|
||||||
chmod a+x /usr/local/bin/protoc && \
|
chmod a+x /usr/local/bin/protoc && \
|
||||||
find /usr/local -type d | xargs chmod 755 && \
|
find /usr/local -type d | xargs chmod 755 && \
|
||||||
find /usr/local -type f | xargs chmod a+r
|
find /usr/local -type f | xargs chmod a+r
|
||||||
|
|
|
@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.11.3
|
controller-gen.kubebuilder.io/version: v0.12.1
|
||||||
creationTimestamp: null
|
|
||||||
name: nodefeatures.nfd.k8s-sigs.io
|
name: nodefeatures.nfd.k8s-sigs.io
|
||||||
spec:
|
spec:
|
||||||
group: nfd.k8s-sigs.io
|
group: nfd.k8s-sigs.io
|
||||||
|
@ -114,8 +113,7 @@ apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.11.3
|
controller-gen.kubebuilder.io/version: v0.12.1
|
||||||
creationTimestamp: null
|
|
||||||
name: nodefeaturerules.nfd.k8s-sigs.io
|
name: nodefeaturerules.nfd.k8s-sigs.io
|
||||||
spec:
|
spec:
|
||||||
group: nfd.k8s-sigs.io
|
group: nfd.k8s-sigs.io
|
||||||
|
|
|
@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.11.3
|
controller-gen.kubebuilder.io/version: v0.12.1
|
||||||
creationTimestamp: null
|
|
||||||
name: nodefeatures.nfd.k8s-sigs.io
|
name: nodefeatures.nfd.k8s-sigs.io
|
||||||
spec:
|
spec:
|
||||||
group: nfd.k8s-sigs.io
|
group: nfd.k8s-sigs.io
|
||||||
|
@ -114,8 +113,7 @@ apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.11.3
|
controller-gen.kubebuilder.io/version: v0.12.1
|
||||||
creationTimestamp: null
|
|
||||||
name: nodefeaturerules.nfd.k8s-sigs.io
|
name: nodefeaturerules.nfd.k8s-sigs.io
|
||||||
spec:
|
spec:
|
||||||
group: nfd.k8s-sigs.io
|
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
|
package apihelper
|
||||||
|
|
||||||
|
@ -188,13 +188,12 @@ func (_m *MockAPIHelpers) UpdateNode(_a0 *kubernetes.Clientset, _a1 *v1.Node) er
|
||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *MockAPIHelpers {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &MockAPIHelpers{}
|
mock := &MockAPIHelpers{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.23.0
|
// protoc-gen-go v1.23.0
|
||||||
// protoc v4.22.3
|
// protoc v4.23.4
|
||||||
// source: labeler.proto
|
// source: labeler.proto
|
||||||
|
|
||||||
package labeler
|
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
|
package labeler
|
||||||
|
|
||||||
|
@ -48,13 +48,12 @@ func (_m *MockLabelerClient) SetLabels(ctx context.Context, in *SetLabelsRequest
|
||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *MockLabelerClient {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &MockLabelerClient{}
|
mock := &MockLabelerClient{}
|
||||||
mock.Mock.Test(t)
|
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
|
package mocks
|
||||||
|
|
||||||
|
@ -116,13 +116,12 @@ func (_m *PodResourcesListerClient) List(ctx context.Context, in *v1.ListPodReso
|
||||||
return r0, r1
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *PodResourcesListerClient {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &PodResourcesListerClient{}
|
mock := &PodResourcesListerClient{}
|
||||||
mock.Mock.Test(t)
|
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
|
package source
|
||||||
|
|
||||||
|
@ -63,13 +63,12 @@ func (_m *MockLabelSource) Priority() int {
|
||||||
return r0
|
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
|
mock.TestingT
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
}
|
}) *MockLabelSource {
|
||||||
|
|
||||||
// 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 {
|
|
||||||
mock := &MockLabelSource{}
|
mock := &MockLabelSource{}
|
||||||
mock.Mock.Test(t)
|
mock.Mock.Test(t)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue