mirror of https://github.com/kubernetes/kops.git
Merge pull request #15575 from hakman/automated-cherry-pick-of-#15573-upstream-release-1.26
Automated cherry pick of #15573: aws: Avoid spurious changes in EBSVolume for KmsKeyId
This commit is contained in:
commit
7d83895444
|
|
@ -90,8 +90,10 @@ func (e *EBSVolume) Find(context *fi.CloudupContext) (*EBSVolume, error) {
|
|||
|
||||
// Avoid spurious changes
|
||||
actual.Lifecycle = e.Lifecycle
|
||||
|
||||
e.ID = actual.ID
|
||||
if fi.ValueOf(e.Encrypted) && e.KmsKeyId == nil {
|
||||
e.KmsKeyId = actual.KmsKeyId
|
||||
}
|
||||
|
||||
return actual, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue