mirror of https://github.com/k3s-io/k3s
![]() 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 |
||
---|---|---|
.. | ||
apply | ||
apps | ||
categories | ||
cmd | ||
explain | ||
metricsutil | ||
plugins | ||
proxy | ||
resource | ||
scheme | ||
util | ||
validation | ||
.import-restrictions | ||
BUILD | ||
OWNERS | ||
apply.go | ||
autoscale.go | ||
autoscale_test.go | ||
bash_comp_utils.go | ||
clusterrolebinding.go | ||
clusterrolebinding_test.go | ||
conditions.go | ||
configmap.go | ||
configmap_test.go | ||
delete.go | ||
delete_test.go | ||
deployment.go | ||
deployment_test.go | ||
doc.go | ||
env_file.go | ||
env_file_test.go | ||
generate.go | ||
generate_test.go | ||
history.go | ||
history_test.go | ||
interfaces.go | ||
kubectl.go | ||
namespace.go | ||
namespace_test.go | ||
pdb.go | ||
pdb_test.go | ||
priorityclass.go | ||
priorityclass_test.go | ||
quota.go | ||
quota_test.go | ||
rolebinding.go | ||
rolebinding_test.go | ||
rollback.go | ||
rollback_test.go | ||
rolling_updater.go | ||
rolling_updater_test.go | ||
rollout_status.go | ||
rollout_status_test.go | ||
run.go | ||
run_test.go | ||
scale.go | ||
scale_test.go | ||
secret.go | ||
secret_for_docker_registry.go | ||
secret_for_docker_registry_test.go | ||
secret_for_tls.go | ||
secret_for_tls_test.go | ||
secret_test.go | ||
service.go | ||
service_basic.go | ||
service_basic_test.go | ||
service_test.go | ||
serviceaccount.go | ||
serviceaccount_test.go | ||
sorting_printer.go | ||
sorting_printer_test.go |