Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions core/invoker/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,5 @@ whisk {
invoker {
protocol: http
}
runtime.delete.timeout = "30 seconds"
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class KubernetesContainerFactory(
logging.info(this, "Cleaning up function runtimes")
val labels = Map("invoker" -> label, "release" -> KubernetesContainerFactoryProvider.release)
val cleaning = kubernetes.rm(labels, true)(TransactionId.invokerNanny)
Await.ready(cleaning, 30.seconds)
Await.ready(cleaning, KubernetesContainerFactoryProvider.runtimeDeleteTimeout)
}

override def createContainer(tid: TransactionId,
Expand All @@ -90,6 +90,7 @@ class KubernetesContainerFactory(
object KubernetesContainerFactoryProvider extends ContainerFactoryProvider {

val release = loadConfigOrThrow[String]("whisk.helm.release")
val runtimeDeleteTimeout = loadConfigOrThrow[FiniteDuration]("whisk.runtime.delete.timeout")

override def instance(actorSystem: ActorSystem,
logging: Logging,
Expand Down
1 change: 1 addition & 0 deletions core/standalone/src/main/resources/standalone-kcf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ whisk {
port-forwarding-enabled = true
}
helm.release = "release"
runtime.delete.timeout = "30 seconds"
}
1 change: 1 addition & 0 deletions tests/src/test/resources/application.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ whisk {
}

helm.release = "release"
runtime.delete.timeout = "30 seconds"
}

#test-only overrides so that tests can override defaults in application.conf (todo: move all defaults to reference.conf)
Expand Down