Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default values only once #66

Merged
merged 1 commit into from
May 21, 2019

Conversation

vincepri
Copy link
Member

@vincepri vincepri commented May 21, 2019

Signed-off-by: Vince Prignano vincepri@vmware.com

What this PR does / why we need it:
This PR fixes an issue where InitFlags would overwrite values with defaults if called more than once. Props to @liggitt for the sync.Once idea kubernetes/kubernetes#77562 (comment)

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Related to

Special notes for your reviewer:
Test is very simple, I can add more extensive ones if needed.

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:


Signed-off-by: Vince Prignano <vincepri@vmware.com>
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 21, 2019
@vincepri
Copy link
Member Author

/assign @dims @liggitt @mtaufen

@liggitt
Copy link
Member

liggitt commented May 21, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 21, 2019
@dims
Copy link
Member

dims commented May 21, 2019

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims, liggitt, vincepri

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 21, 2019
@k8s-ci-robot k8s-ci-robot merged commit 89e63fd into kubernetes:master May 21, 2019
@mtaufen
Copy link

mtaufen commented May 22, 2019

Thanks @vincepri!

mtaufen added a commit to mtaufen/kubernetes that referenced this pull request May 22, 2019
Includes recent fixes, notably kubernetes/klog#66
k8s-publishing-bot pushed a commit to kubernetes/code-generator that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/code-generator that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/apimachinery that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/apimachinery that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/api that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/api that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/client-go that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/client-go that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/component-base that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/component-base that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/apiserver that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/apiserver that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/apiextensions-apiserver that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/apiextensions-apiserver that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/metrics that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/metrics that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/cli-runtime that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/cli-runtime that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/sample-cli-plugin that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/sample-cli-plugin that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/kube-proxy that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/kube-proxy that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/kubelet that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/kubelet that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/kube-scheduler that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/kube-scheduler that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/kube-controller-manager that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/kube-controller-manager that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/cluster-bootstrap that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/cluster-bootstrap that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/cloud-provider that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/cloud-provider that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/csi-translation-lib that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/csi-translation-lib that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/legacy-cloud-providers that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/legacy-cloud-providers that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/node-api that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
k8s-publishing-bot pushed a commit to kubernetes/node-api that referenced this pull request May 28, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
superlime pushed a commit to superlime/kubernetes that referenced this pull request Jun 3, 2019
Includes recent fixes, notably kubernetes/klog#66
nikhita pushed a commit to nikhita/kubernetes that referenced this pull request Jun 13, 2019
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc5
tamalsaha pushed a commit to kmodules/shared-informer that referenced this pull request Aug 13, 2020
Includes recent fixes, notably kubernetes/klog#66

Kubernetes-commit: ee7bcc53a206f669b057e38a477b51b3477aab23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants