Skip to content

Commit 277d232

Browse files
Merge pull request #53850 from dougm/api-fixed-int
Automatic merge from submit-queue (batch tested with PRs 54005, 55127, 53850, 55486, 53440). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Enforce use of fixed size int types in the API Changes 'int' to 'int32', enforced by import_known_versions_test Follow up to PR #53402 **What this PR does / why we need it**: This PR changes a few fields within the API from 'int' to 'int32' and is now enforced by import_known_versions_test. We need this so integer fields are the same size regardless of $GOARCH. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note ``` Kubernetes-commit: 2fc108b8b258092d75a8da25a693644154d48699
2 parents 099c9b5 + 81dcac3 commit 277d232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/v1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4924,7 +4924,7 @@ const (
49244924
// corresponding to every RequiredDuringScheduling affinity rule.
49254925
// When the --hard-pod-affinity-weight scheduler flag is not specified,
49264926
// DefaultHardPodAffinityWeight defines the weight of the implicit PreferredDuringScheduling affinity rule.
4927-
DefaultHardPodAffinitySymmetricWeight int = 1
4927+
DefaultHardPodAffinitySymmetricWeight int32 = 1
49284928
)
49294929

49304930
// Sysctl defines a kernel parameter to be set

0 commit comments

Comments
 (0)