Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Extract SSL configuration handling to a separate class #123

Merged
merged 2 commits into from
Feb 24, 2017

Conversation

mccheah
Copy link

@mccheah mccheah commented Feb 16, 2017

More or less a drag-and-drop of all the SSL related logic.

Part of #109

@mccheah
Copy link
Author

mccheah commented Feb 16, 2017

Soft dependency on #122 to fix merge conflicts as the refactors are done in a chain.

@mccheah mccheah changed the base branch from refactor-submit-cleanup to k8s-support-alternate-incremental February 23, 2017 22:52
@mccheah
Copy link
Author

mccheah commented Feb 23, 2017

@ash211 @foxish @iyanuobidele this had a soft dependency on #122 which is now merged - can we look to review and merge this one now?

@iyanuobidele
Copy link

LGTM

@@ -688,8 +563,8 @@ private[spark] class Client(
private def buildDriverSubmissionClient(
kubernetesClient: KubernetesClient,
service: Service,
driverSubmitSslOptions: SSLOptions): KubernetesSparkRestApi = {
val urlScheme = if (driverSubmitSslOptions.enabled) {
kubernetesSslConfiguration: KubernetesSslConfiguration): KubernetesSparkRestApi = {
Copy link
Member

Choose a reason for hiding this comment

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

nit: can we just call it SSLConfiguration? The prefix Kubernetes seems to be everywhere.

Copy link
Author

Choose a reason for hiding this comment

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

Done

val keyStoreURI = Utils.resolveURI(keyStore)
val isProvidedKeyStoreLocal = keyStoreURI.getScheme match {
case "file" | null => true
case "container" => false
Copy link

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Done - changed to local

Copy link

@ash211 ash211 left a comment

Choose a reason for hiding this comment

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

LGTM let's merge when the build is green

@ash211 ash211 merged commit 1f8fca0 into k8s-support-alternate-incremental Feb 24, 2017
ash211 pushed a commit that referenced this pull request Mar 8, 2017
* Extract SSL configuration to a separate class

* KubernetesSsl -> Ssl, container -> local
foxish pushed a commit that referenced this pull request Jul 24, 2017
* Extract SSL configuration to a separate class

* KubernetesSsl -> Ssl, container -> local
ifilonenko pushed a commit to ifilonenko/spark that referenced this pull request Feb 25, 2019
…on-k8s#123)

* Extract SSL configuration to a separate class

* KubernetesSsl -> Ssl, container -> local

(cherry picked from commit 1f8fca0)
puneetloya pushed a commit to puneetloya/spark that referenced this pull request Mar 11, 2019
…on-k8s#123)

* Extract SSL configuration to a separate class

* KubernetesSsl -> Ssl, container -> local
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants