Add volumeattachment status subresource

This commit is contained in:
Michelle Au
2018-11-14 14:01:16 +01:00
committed by Hemant Kumar
parent e95b188656
commit 498cd61f41
13 changed files with 4736 additions and 370 deletions

View File

@@ -218,6 +218,7 @@ func ValidateVolumeAttachmentUpdate(new, old *storage.VolumeAttachment) field.Er
allErrs := ValidateVolumeAttachment(new)
// Spec is read-only
// If this ever relaxes in the future, make sure to increment the Generation number in PrepareForUpdate
if !apiequality.Semantic.DeepEqual(old.Spec, new.Spec) {
allErrs = append(allErrs, field.Invalid(field.NewPath("spec"), new.Spec, "field is immutable"))
}