Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Fix panics #91

Merged
merged 1 commit into from
Jul 17, 2019
Merged

Fix panics #91

merged 1 commit into from
Jul 17, 2019

Conversation

chuckha
Copy link
Contributor

@chuckha chuckha commented Jul 17, 2019

Signed-off-by: Chuck Ha chuckh@vmware.com

What this PR does / why we need it:
This PR removes the panic calls from capdctl

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 #86

Special notes for your reviewer:
This also deletes some unused code simplifying

/assign @ashish-amarnath

NONE

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 17, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chuckha

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 Jul 17, 2019
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 17, 2019
Copy link

@vincepri vincepri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, there is a lot of repetition in switch os.Args[1] {, but I guess that's needed for now?

makeManagementCluster(*managementClusterName, *version, *capdImage, *capiImage)
if err := setup.Parse(os.Args[2:]); err != nil {
fmt.Printf("%+v\n", err)
os.Exit(1)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

klog.Fatal?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm not actually sure why klog is in this file. If we need a logger we will use klogr. I'm going to play around with ripping out klog here and see why it exists in the first place.

@chuckha
Copy link
Contributor Author

chuckha commented Jul 17, 2019

@vincepri ah ha, i found a few more panics and set up a klogr to pass through the code and use it as a setup logger.

Signed-off-by: Chuck Ha <chuckh@vmware.com>
@chuckha
Copy link
Contributor Author

chuckha commented Jul 17, 2019

yeah lots of repetition right now, if it becomes a problem we can solve it later

@vincepri
Copy link

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 17, 2019
@k8s-ci-robot k8s-ci-robot merged commit 8678464 into kubernetes-retired:master Jul 17, 2019
@chuckha chuckha deleted the panic-fix branch August 16, 2019 02:29
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants