mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Correct func name WithBuildMetadata
This commit is contained in:
parent
533daf6624
commit
8efa1c2a8f
@ -196,9 +196,9 @@ func TestEnforceVersionPolicies(t *testing.T) {
|
||||
vg: &fakeVersionGetter{
|
||||
clusterVersion: constants.MinimumControlPlaneVersion.String(),
|
||||
kubeletVersion: constants.MinimumControlPlaneVersion.String(),
|
||||
kubeadmVersion: constants.MinimumControlPlaneVersion.WithBuildeMetadata("build").String(),
|
||||
kubeadmVersion: constants.MinimumControlPlaneVersion.WithBuildMetadata("build").String(),
|
||||
},
|
||||
newK8sVersion: constants.MinimumControlPlaneVersion.WithBuildeMetadata("build").String(),
|
||||
newK8sVersion: constants.MinimumControlPlaneVersion.WithBuildMetadata("build").String(),
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -183,8 +183,8 @@ func (v *Version) WithPreRelease(preRelease string) *Version {
|
||||
return &result
|
||||
}
|
||||
|
||||
// WithBuildeMetadata returns copy of the version object with requested buildMetadata
|
||||
func (v *Version) WithBuildeMetadata(buildMetadata string) *Version {
|
||||
// WithBuildMetadata returns copy of the version object with requested buildMetadata
|
||||
func (v *Version) WithBuildMetadata(buildMetadata string) *Version {
|
||||
result := *v
|
||||
result.components = []uint{v.Major(), v.Minor(), v.Patch()}
|
||||
result.buildMetadata = buildMetadata
|
||||
|
Loading…
Reference in New Issue
Block a user