Skip to content

Commit

Permalink
sidecarset forbid updating of sidecar container name (openkruise#937)
Browse files Browse the repository at this point in the history
Signed-off-by: xiehui <[email protected]>
Signed-off-by: Liu Zhenwei <[email protected]>
  • Loading branch information
adairxie authored and diannaowa committed Sep 14, 2022
1 parent b18144f commit 4ef089c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ func validateSidecarContainerConflict(newContainers, oldContainers []appsv1alpha
allErrs = append(allErrs, field.Invalid(fldPath.Child("upgradeStrategy").Child("upgradeType"),
container.Name, fmt.Sprintf("container %v upgradeType is immutable", container.Name)))
}
} else {
allErrs = append(allErrs, field.Invalid(fldPath.Child("name"),
container.Name, fmt.Sprintf("container %v is not found", container.Name)))
}
}

Expand Down

0 comments on commit 4ef089c

Please sign in to comment.