Skip to content

Conversation

fanminshi
Copy link
Contributor

@fanminshi fanminshi commented Aug 31, 2018

Implement and test the case where none of the CA and application TLS assets are found. In this case, GenerateCert should simply generate both and put them into the k8s cluster.

@fanminshi fanminshi mentioned this pull request Aug 31, 2018
10 tasks
@fanminshi fanminshi changed the title [WIP] pkg/tlsutil: impl none of the CA and App TLS assets are found pkg/tlsutil: impl none of the CA and App TLS assets are found Aug 31, 2018
@fanminshi
Copy link
Contributor Author

cc/ @hasbro17 @shawn-hurley

}

// use Pod as a dummy runtime object for the CR input of GenerateCert().
func toDummyCR(namespace string) runtime.Object {
Copy link
Contributor

Choose a reason for hiding this comment

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

Rename this to newDummyCR() since we're not really converting anything to use toDummyCR().
Also change the comment format to be Go style: newDummyCR returns a dummy runtime object ....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, that's right.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

}
}

func toAppSvc(namespace string) *v1.Service {
Copy link
Contributor

Choose a reason for hiding this comment

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

newAppSvc()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@hasbro17
Copy link
Contributor

LGTM

@fanminshi fanminshi merged commit 0f60da8 into operator-framework:master Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants