Kubernetes Submit Queue
c46738a3f0
Merge pull request #60073 from justaugustus/int-to-int32ptr
Automatic merge from submit-queue. 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>.
Use `pkg/util/pointer` functions instead of self-written versions
**What this PR does / why we need it**:
Replaces instances of module-written `int(32|64)? --> *int(32|64)?` functions with functions from k8s.io/kubernetes/pkg/util/pointer
**Special notes for your reviewer**:
Here's the grep used, based on the comments in:
* https://github.com/kubernetes/kubernetes/pull/59924#issuecomment-366119396
* https://github.com/kubernetes/kubernetes/issues/59971#issue-297766556
```bash
$ git grep -E 'func\ [^ (]+\([^ ]+\ int(32|64)?\)\ \*int(32|64)?' !(vendor|staging) | grep -v pkg/util/pointer
pkg/apis/apps/v1/defaults_test.go:func newInt32(val int32) *int32 {
pkg/apis/apps/v1beta1/defaults_test.go:func newInt32(val int32) *int32 {
pkg/apis/apps/v1beta2/defaults_test.go:func newInt32(val int32) *int32 {
pkg/apis/autoscaling/v1/defaults_test.go:func newInt32(val int32) *int32 {
pkg/apis/autoscaling/v2beta1/defaults_test.go:func newInt32(val int32) *int32 {
pkg/apis/autoscaling/validation/validation_test.go:func newInt32(val int32) *int32 {
pkg/apis/batch/v1/defaults_test.go:func newInt32(val int32) *int32 {
pkg/apis/batch/v1beta1/defaults_test.go:func newInt32(val int32) *int32 {
pkg/apis/core/v1/defaults_test.go:func newInt(val int32) *int32 {
pkg/apis/core/validation/validation_test.go:func newInt32(val int) *int32 {
pkg/apis/extensions/v1beta1/defaults_test.go:func newInt32(val int32) *int32 {
pkg/controller/deployment/sync_test.go:func intOrStrP(val int) *intstr.IntOrString {
pkg/kubectl/autoscale_test.go:func newInt32(value int) *int32 {
plugin/pkg/admission/security/podsecuritypolicy/admission_test.go:func userIDPtr(i int) *int64 {
plugin/pkg/admission/security/podsecuritypolicy/admission_test.go:func groupIDPtr(i int) *int64 {
test/e2e/apps/deployment.go:func intOrStrP(num int) *intstr.IntOrString {
test/e2e/auth/pod_security_policy.go:func intPtr(i int64) *int64 {
test/integration/deployment/util.go:func intOrStrP(num int) *intstr.IntOrString {
```
**Release note**:
```release-note
NONE
```
/kind cleanup
/cc @php-coder
/assign @tallclair
2018-04-02 16:22:28 -07:00
..
2018-03-30 11:53:07 -07:00
2018-02-16 13:43:01 -08:00
2018-02-16 13:43:01 -08:00
2018-04-01 20:07:56 -07:00
2018-03-23 12:59:50 +08:00
2018-01-22 21:45:06 +01:00
2018-02-16 13:43:01 -08:00
2018-02-16 13:43:01 -08:00
2018-03-27 04:08:15 -07:00
2018-02-21 15:20:20 -05:00
2018-03-13 22:08:06 -04:00
2018-02-16 13:43:01 -08:00
2018-01-05 15:05:01 -08:00
2017-12-11 13:49:39 +05:30
2018-03-27 10:30:01 -04:00
2017-11-20 14:12:20 +08:00
2018-03-27 09:54:04 -05:00
2017-08-28 15:13:15 +08:00
2017-08-28 15:13:15 +08:00
2018-02-21 13:08:11 +01:00
2018-01-23 07:28:34 -05:00
2018-01-23 07:28:34 -05:00
2018-03-28 08:25:21 -04:00
2018-03-28 08:25:21 -04:00
2017-08-22 11:10:21 +08:00
2017-07-31 12:26:17 -07:00
2017-06-23 09:49:30 -07:00
2017-06-23 09:49:30 -07:00
2018-02-11 11:04:14 +08:00
2017-08-03 21:34:03 +08:00
2017-08-03 21:34:03 +08:00
2017-11-09 08:11:19 +00:00
2018-02-23 08:06:42 -08:00
2018-03-14 16:02:51 -07:00
2018-01-15 16:02:35 +08:00
2017-10-25 20:26:11 +08:00
2017-11-01 10:36:17 +01:00
2017-11-01 10:36:17 +01:00
2017-11-07 15:03:01 +08:00
2017-11-07 15:03:01 +08:00
2017-10-27 18:31:42 -07:00
2017-10-27 18:31:42 -07:00
2017-10-27 18:31:42 -07:00
2017-10-27 18:31:42 -07:00
2017-11-19 17:46:57 +00:00
2018-02-23 08:06:42 -08:00
2018-01-15 16:02:35 +08:00
2018-03-26 19:33:42 +02:00
2017-11-08 18:27:45 +01:00
2017-11-22 21:18:14 +08:00
2017-09-03 11:17:33 +02:00
2017-11-11 12:44:30 -08:00
2018-03-28 08:25:21 -04:00
2018-03-28 08:25:21 -04:00
2017-12-20 12:37:40 -05:00
2018-03-21 11:13:11 -04:00
2017-10-27 18:31:42 -07:00
2017-10-27 18:31:42 -07:00
2017-10-27 18:31:42 -07:00
2017-10-27 18:31:42 -07:00
2017-11-13 20:46:05 +08:00
2017-11-13 20:46:05 +08:00
2017-10-31 15:35:36 +08:00
2017-10-31 15:35:36 +08:00
2017-10-27 18:31:42 -07:00
2017-10-27 18:31:42 -07:00
2017-10-18 17:23:55 +02:00
2017-08-17 11:24:28 +02:00