Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename imagePullSecret to match image.pullPolicy
  • Loading branch information
andrusha committed Apr 3, 2018
commit 4173977e0435a2e7d62f03af79f15c90a1b0689e
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private[spark] object Config extends Logging {
.createWithDefault("IfNotPresent")

val IMAGE_PULL_SECRET =
ConfigBuilder("spark.kubernetes.imagePullSecret")
ConfigBuilder("spark.kubernetes.container.image.pullSecret")
Copy link
Contributor

Choose a reason for hiding this comment

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

Based on a conversation with the node team, this is meant to be an array of possibly many secret names; since one could have multiple secrets specified for different registries and spread across multiple k8s secrets.

So, I'd suggest we implement the full API - this should be capable of accepting a comma separated list of one or more secret names.

Copy link
Contributor

@foxish foxish Apr 3, 2018

Choose a reason for hiding this comment

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

Also should be named ...image.pullSecrets to stay consistent with the field we're setting on the pods.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@foxish done

.doc("Specifies the Kubernetes secret used to access private image registry.")
.stringConf
.createOptional
Expand Down