Update go dependencies for kubernetes 1.16.0
This commit is contained in:
parent
280920980d
commit
d7b530cb0a
510 changed files with 107206 additions and 52551 deletions
8
vendor/k8s.io/apimachinery/pkg/util/version/version.go
generated
vendored
8
vendor/k8s.io/apimachinery/pkg/util/version/version.go
generated
vendored
|
|
@ -183,6 +183,14 @@ func (v *Version) WithPreRelease(preRelease string) *Version {
|
|||
return &result
|
||||
}
|
||||
|
||||
// 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
|
||||
return &result
|
||||
}
|
||||
|
||||
// String converts a Version back to a string; note that for versions parsed with
|
||||
// ParseGeneric, this will not include the trailing uninterpreted portion of the version
|
||||
// number.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue