Skip to content

Commit

Permalink
sidecarset forbid updating of sidecar container name (#937)
Browse files Browse the repository at this point in the history
Signed-off-by: xiehui <615810790@qq.com>
  • Loading branch information
adairxie authored May 26, 2022
1 parent 2dd93b6 commit 7d49a4e
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 7d49a4e

Please sign in to comment.