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

Conversation

@mccheah
Copy link

@mccheah mccheah commented May 18, 2017

Allows users to provide separate settings for contacting the resource staging server from within the init-container vs. from the submission client. One example use case for this is that the resource staging server might be running inside the cluster, and exposed to the submission client through an Ingress or some other front door URI. In this case, the resource staging server should be accessed from the submission client via the Ingress URI, but the init-containers that are running inside the cluster should access the resource staging server through the pod IP or service IP. The certificate that has to be presented when contacting over the external URI may also differ from the certificate that needs to be used when contacting through the internal URI.

Copy link

Choose a reason for hiding this comment

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

with a scheme like file:// or without?

Copy link
Author

Choose a reason for hiding this comment

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

"Strictly a path" I think implies no scheme.

Copy link

Choose a reason for hiding this comment

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

file -> file://

Copy link

Choose a reason for hiding this comment

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

what scheme?

Copy link
Author

Choose a reason for hiding this comment

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

"Strictly be a path" denotes no scheme.

Copy link

Choose a reason for hiding this comment

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

this .orElse isn't aligned with the others

Copy link

Choose a reason for hiding this comment

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

can you not use the requireNand from elsewhere here?

Copy link

Choose a reason for hiding this comment

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

file:// and local://

Copy link

Choose a reason for hiding this comment

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

file:// and local://

Copy link

Choose a reason for hiding this comment

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

was this not being used before? I'm surprised checkstyle or something didn't alert that there was an unused identifier

Copy link
Author

Choose a reason for hiding this comment

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

Yeah unfortunately this slipped under the radar somehow. Are the SBT tests running now? Maybe SBT would have caught it and Maven doesn't?

Copy link

Choose a reason for hiding this comment

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

they're not running right now, but I can temporarily re-enable, you push a commit, and we watch them run to see if they would've caught this

Copy link
Author

Choose a reason for hiding this comment

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

No need specifically but I suppose it's all the more reason to look into getting our SBT builds online.

Copy link

Choose a reason for hiding this comment

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

where is this called from?

Copy link
Author

Choose a reason for hiding this comment

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

I think this was an original idea I had but abandoned it later, forgot to remove the class.

@mccheah
Copy link
Author

mccheah commented May 18, 2017

Requires rebasing onto allow-client-cert-pem

@mccheah mccheah force-pushed the external-vs-internal-uri-tls branch from 39e4394 to 377ef96 Compare May 18, 2017 22:13
@mccheah
Copy link
Author

mccheah commented May 18, 2017

Finished rebasing here for now.

@mccheah mccheah force-pushed the external-vs-internal-uri-tls branch from 377ef96 to b5733f7 Compare May 19, 2017 19:34
@mccheah mccheah changed the base branch from allow-client-cert-pem to branch-2.1-kubernetes May 19, 2017 19:35
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, planning to merge when this integration test passes

val resolvedPath = Option(uri.getScheme).getOrElse("file") match {
case "file" => s"$secretsVolumeMountPath/$secretKey"
case "local" => uri.getPath
case invalid => throw new SparkException(s"$uriType has invalid scheme $invalid must be" +
Copy link

Choose a reason for hiding this comment

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

maybe in a fixup commit after this merges can add "has invalid scheme for secret" to give end user just a bit more context

@ash211 ash211 merged commit 8f6f0a0 into branch-2.1-kubernetes May 19, 2017
puneetloya pushed a commit to puneetloya/spark that referenced this pull request Mar 11, 2019
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.

3 participants