mirror of https://github.com/k3s-io/k3s
Remove SupportsOwnershipManagement volume attribute
parent
4ac151321a
commit
7767698459
|
@ -222,10 +222,9 @@ var _ volume.Builder = &awsElasticBlockStoreBuilder{}
|
|||
|
||||
func (b *awsElasticBlockStoreBuilder) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: !b.readOnly,
|
||||
SupportsOwnershipManagement: true,
|
||||
SupportsSELinux: true,
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: !b.readOnly,
|
||||
SupportsSELinux: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -155,10 +155,9 @@ var _ volume.Builder = &cephfsBuilder{}
|
|||
|
||||
func (cephfsVolume *cephfsBuilder) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: cephfsVolume.readonly,
|
||||
Managed: false,
|
||||
SupportsOwnershipManagement: false,
|
||||
SupportsSELinux: false,
|
||||
ReadOnly: cephfsVolume.readonly,
|
||||
Managed: false,
|
||||
SupportsSELinux: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -216,10 +216,9 @@ func detachDiskLogError(cd *cinderVolume) {
|
|||
|
||||
func (b *cinderVolumeBuilder) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: !b.readOnly,
|
||||
SupportsOwnershipManagement: true,
|
||||
SupportsSELinux: true,
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: !b.readOnly,
|
||||
SupportsSELinux: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -112,10 +112,9 @@ var _ volume.Builder = &downwardAPIVolumeBuilder{}
|
|||
// downward API volumes are always ReadOnlyManaged
|
||||
func (d *downwardAPIVolume) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: true,
|
||||
Managed: true,
|
||||
SupportsOwnershipManagement: true,
|
||||
SupportsSELinux: true,
|
||||
ReadOnly: true,
|
||||
Managed: true,
|
||||
SupportsSELinux: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -142,10 +142,9 @@ type emptyDir struct {
|
|||
|
||||
func (ed *emptyDir) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: false,
|
||||
Managed: true,
|
||||
SupportsOwnershipManagement: true,
|
||||
SupportsSELinux: true,
|
||||
ReadOnly: false,
|
||||
Managed: true,
|
||||
SupportsSELinux: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -170,10 +170,9 @@ var _ volume.Builder = &fcDiskBuilder{}
|
|||
|
||||
func (b *fcDiskBuilder) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: !b.readOnly,
|
||||
SupportsOwnershipManagement: true,
|
||||
SupportsSELinux: true,
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: !b.readOnly,
|
||||
SupportsSELinux: true,
|
||||
}
|
||||
}
|
||||
func (b *fcDiskBuilder) SetUp(fsGroup *int64) error {
|
||||
|
|
|
@ -231,10 +231,9 @@ func (f *flexVolumeBuilder) SetUp(fsGroup *int64) error {
|
|||
// using plugin callout after we finalize the callout syntax.
|
||||
func (f flexVolumeBuilder) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: f.readOnly,
|
||||
Managed: false,
|
||||
SupportsOwnershipManagement: false,
|
||||
SupportsSELinux: false,
|
||||
ReadOnly: f.readOnly,
|
||||
Managed: false,
|
||||
SupportsSELinux: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -117,10 +117,9 @@ type flockerBuilder struct {
|
|||
|
||||
func (b flockerBuilder) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: false,
|
||||
SupportsOwnershipManagement: false,
|
||||
SupportsSELinux: false,
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: false,
|
||||
SupportsSELinux: false,
|
||||
}
|
||||
}
|
||||
func (b flockerBuilder) GetPath() string {
|
||||
|
|
|
@ -211,10 +211,9 @@ var _ volume.Builder = &gcePersistentDiskBuilder{}
|
|||
|
||||
func (b *gcePersistentDiskBuilder) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: !b.readOnly,
|
||||
SupportsOwnershipManagement: true,
|
||||
SupportsSELinux: true,
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: !b.readOnly,
|
||||
SupportsSELinux: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -116,10 +116,9 @@ var _ volume.Builder = &gitRepoVolumeBuilder{}
|
|||
|
||||
func (b *gitRepoVolumeBuilder) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: false,
|
||||
Managed: true,
|
||||
SupportsOwnershipManagement: false,
|
||||
SupportsSELinux: true, // xattr change should be okay, TODO: double check
|
||||
ReadOnly: false,
|
||||
Managed: true,
|
||||
SupportsSELinux: true, // xattr change should be okay, TODO: double check
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -158,10 +158,9 @@ var _ volume.Builder = &glusterfsBuilder{}
|
|||
|
||||
func (b *glusterfsBuilder) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: false,
|
||||
SupportsOwnershipManagement: false,
|
||||
SupportsSELinux: false,
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: false,
|
||||
SupportsSELinux: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -178,10 +178,9 @@ var _ volume.Builder = &hostPathBuilder{}
|
|||
|
||||
func (b *hostPathBuilder) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: false,
|
||||
SupportsOwnershipManagement: false,
|
||||
SupportsSELinux: false,
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: false,
|
||||
SupportsSELinux: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -168,10 +168,9 @@ var _ volume.Builder = &iscsiDiskBuilder{}
|
|||
|
||||
func (b *iscsiDiskBuilder) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: !b.readOnly,
|
||||
SupportsOwnershipManagement: true,
|
||||
SupportsSELinux: true,
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: !b.readOnly,
|
||||
SupportsSELinux: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -151,10 +151,9 @@ var _ volume.Builder = &nfsBuilder{}
|
|||
|
||||
func (b *nfsBuilder) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: false,
|
||||
SupportsOwnershipManagement: false,
|
||||
SupportsSELinux: false,
|
||||
ReadOnly: b.readOnly,
|
||||
Managed: false,
|
||||
SupportsSELinux: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -196,10 +196,9 @@ var _ volume.Builder = &rbdBuilder{}
|
|||
|
||||
func (b *rbd) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: b.ReadOnly,
|
||||
Managed: !b.ReadOnly,
|
||||
SupportsOwnershipManagement: true,
|
||||
SupportsSELinux: true,
|
||||
ReadOnly: b.ReadOnly,
|
||||
Managed: !b.ReadOnly,
|
||||
SupportsSELinux: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -101,10 +101,9 @@ var _ volume.Builder = &secretVolumeBuilder{}
|
|||
|
||||
func (sv *secretVolume) GetAttributes() volume.Attributes {
|
||||
return volume.Attributes{
|
||||
ReadOnly: true,
|
||||
Managed: true,
|
||||
SupportsOwnershipManagement: true,
|
||||
SupportsSELinux: true,
|
||||
ReadOnly: true,
|
||||
Managed: true,
|
||||
SupportsSELinux: true,
|
||||
}
|
||||
}
|
||||
func (b *secretVolumeBuilder) SetUp(fsGroup *int64) error {
|
||||
|
|
|
@ -176,10 +176,9 @@ type FakeVolume struct {
|
|||
|
||||
func (_ *FakeVolume) GetAttributes() Attributes {
|
||||
return Attributes{
|
||||
ReadOnly: false,
|
||||
Managed: true,
|
||||
SupportsOwnershipManagement: true,
|
||||
SupportsSELinux: true,
|
||||
ReadOnly: false,
|
||||
Managed: true,
|
||||
SupportsSELinux: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -60,10 +60,9 @@ type Metrics struct {
|
|||
|
||||
// Attributes represents the attributes of this builder.
|
||||
type Attributes struct {
|
||||
ReadOnly bool
|
||||
Managed bool
|
||||
SupportsOwnershipManagement bool
|
||||
SupportsSELinux bool
|
||||
ReadOnly bool
|
||||
Managed bool
|
||||
SupportsSELinux bool
|
||||
}
|
||||
|
||||
// Builder interface provides methods to set up/mount the volume.
|
||||
|
|
Loading…
Reference in New Issue