Merge pull request #99643 from pohly/generic-ephemeral-volume-beta

generic ephemeral volume beta

Kubernetes-commit: 410d092d8a13cc78ee9044e0aad194abbba1952b
This commit is contained in:
Kubernetes Publisher 2021-03-09 17:39:26 -08:00
commit d6fad70fcf
4 changed files with 8 additions and 17 deletions

4
Godeps/Godeps.json generated
View File

@ -476,11 +476,11 @@
},
{
"ImportPath": "k8s.io/api",
"Rev": "f1e2e30ecadb"
"Rev": "c0951d6190d9"
},
{
"ImportPath": "k8s.io/apimachinery",
"Rev": "98d3ae9509fd"
"Rev": "1f1bc58a1c79"
},
{
"ImportPath": "k8s.io/gengo",

View File

@ -22,7 +22,6 @@ package v1
// with apply.
type EphemeralVolumeSourceApplyConfiguration struct {
VolumeClaimTemplate *PersistentVolumeClaimTemplateApplyConfiguration `json:"volumeClaimTemplate,omitempty"`
ReadOnly *bool `json:"readOnly,omitempty"`
}
// EphemeralVolumeSourceApplyConfiguration constructs an declarative configuration of the EphemeralVolumeSource type for use with
@ -38,11 +37,3 @@ func (b *EphemeralVolumeSourceApplyConfiguration) WithVolumeClaimTemplate(value
b.VolumeClaimTemplate = value
return b
}
// WithReadOnly sets the ReadOnly field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadOnly field is set to the value of the last call.
func (b *EphemeralVolumeSourceApplyConfiguration) WithReadOnly(value bool) *EphemeralVolumeSourceApplyConfiguration {
b.ReadOnly = &value
return b
}

8
go.mod
View File

@ -27,14 +27,14 @@ require (
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba
k8s.io/api v0.0.0-20210309224354-f1e2e30ecadb
k8s.io/apimachinery v0.0.0-20210309143504-98d3ae9509fd
k8s.io/api v0.0.0-20210310024203-c0951d6190d9
k8s.io/apimachinery v0.0.0-20210310024006-1f1bc58a1c79
k8s.io/klog/v2 v2.5.0
k8s.io/utils v0.0.0-20201110183641-67b214c5f920
sigs.k8s.io/yaml v1.2.0
)
replace (
k8s.io/api => k8s.io/api v0.0.0-20210309224354-f1e2e30ecadb
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20210309143504-98d3ae9509fd
k8s.io/api => k8s.io/api v0.0.0-20210310024203-c0951d6190d9
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20210310024006-1f1bc58a1c79
)

4
go.sum
View File

@ -431,8 +431,8 @@ honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWh
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
k8s.io/api v0.0.0-20210309224354-f1e2e30ecadb/go.mod h1:GaQBrNBX/kVemZnEjirdvAMBUP37vK/+KKDue5z5bps=
k8s.io/apimachinery v0.0.0-20210309143504-98d3ae9509fd/go.mod h1:ZaN7d/yx5I8h2mk8Nu08sdLigsmkt4flkTxCTc9LElI=
k8s.io/api v0.0.0-20210310024203-c0951d6190d9/go.mod h1:UcwB/khK7+6ncamcrywf/wLj2kG6tWdIi0/lYMN2hj0=
k8s.io/apimachinery v0.0.0-20210310024006-1f1bc58a1c79/go.mod h1:ZaN7d/yx5I8h2mk8Nu08sdLigsmkt4flkTxCTc9LElI=
k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE=
k8s.io/klog/v2 v2.5.0 h1:8mOnjf1RmUPW6KRqQCfYSZq/K20Unmp3IhuZUhxl8KI=