Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

fix: ensure there's a token to refresh #267

Conversation

sethp-nr
Copy link
Contributor

@sethp-nr sethp-nr commented Oct 3, 2019

For init configurations or non-BootstrapToken discovery mechanisms, we
shouldn't be trying to refresh tokens.

What this PR does / why we need it:

Fixes a panic reconciling kubeadm configs for a control plane init before the control plane is marked as "ready"

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

For init configurations or non-BootstrapToken discovery mechanisms, we
shouldn't be trying to refresh tokens.
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 3, 2019
@detiber
Copy link
Contributor

detiber commented Oct 3, 2019

/lgtm
/assign @chuckha

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 3, 2019
@chuckha
Copy link
Contributor

chuckha commented Oct 3, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chuckha, sethp-nr

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 Oct 3, 2019
@k8s-ci-robot k8s-ci-robot merged commit cbf3778 into kubernetes-retired:master Oct 3, 2019
@sethp-nr sethp-nr deleted the fix/refresh-token-nil-dereference branch October 3, 2019 17:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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 Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nil pointer dereference reconciling InitConfiguration
4 participants