-
Notifications
You must be signed in to change notification settings - Fork 40
Kubernetes integration for Nelson #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,28 +16,29 @@ | |
//: ---------------------------------------------------------------------------- | ||
package nelson | ||
|
||
import scalaz.{Order, ValidationNel, ~>} | ||
import scalaz.std.string._ | ||
import scalaz.syntax.monoid._ | ||
import scalaz.std.set._ | ||
import scalaz.syntax.std.option._ | ||
import scalaz.syntax.foldable._ | ||
import scalaz.concurrent.Task | ||
import java.net.URI | ||
import java.time.Instant | ||
import scala.concurrent.duration.FiniteDuration | ||
|
||
import com.amazonaws.regions.Region | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems errant? I don't think this type is used anywhere There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This happened since I was moving around/sorting the imports, my PR specifically does not use it but it's being used somewhere else in the file. |
||
import concurrent.duration._ | ||
import helm.ConsulOp | ||
import health.HealthCheckOp | ||
import storage.StoreOp | ||
import scheduler.SchedulerOp | ||
import Workflow.WorkflowOp | ||
import docker.DockerOp | ||
import helm.ConsulOp | ||
import loadbalancers.LoadbalancerOp | ||
import logging.LoggingOp | ||
import org.http4s.Uri | ||
import scalaz.concurrent.Task | ||
import scalaz.std.set._ | ||
import scalaz.std.string._ | ||
import scalaz.syntax.foldable._ | ||
import scalaz.syntax.monoid._ | ||
import scalaz.syntax.std.option._ | ||
import scalaz.{Order, ValidationNel, ~>} | ||
import scheduler.SchedulerOp | ||
import storage.StoreOp | ||
import vault.Vault | ||
import loadbalancers.LoadbalancerOp | ||
import com.amazonaws.regions.Region | ||
import Workflow.WorkflowOp | ||
|
||
|
||
object Infrastructure { | ||
|
@@ -61,7 +62,7 @@ object Infrastructure { | |
) | ||
|
||
final case class Nomad( | ||
endpoint: org.http4s.Uri, | ||
endpoint: Uri, | ||
timeout: Duration, | ||
dockerRepoUser: String, | ||
dockerRepoPassword: String, | ||
|
@@ -71,6 +72,11 @@ object Infrastructure { | |
splunk: Option[SplunkConfig] | ||
) | ||
|
||
final case class Kubernetes( | ||
endpoint: Uri, | ||
timeout: Duration | ||
) | ||
|
||
final case class SplunkConfig( | ||
splunkUrl: String, | ||
splunkToken: String | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this make a new secure random for every request? It's not clear if this code block is called frequently or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appears so yeah, but it should only be called once on startup I think since (currently) it's only being used to create the K8s scheduler interpreter. I could move it out but I'm not sure what the security or mutability ramifications of that are.