+
Skip to content

Conversation

maximerihouey
Copy link
Contributor

When copy pasting the example in a scala console we get the following error:

scala> val k8s = k8sInit()
<console>:23: error: overloaded method value k8sInit with alternatives:
  (config: skuber.api.Configuration,appConfig: com.typesafe.config.Config)(implicit actorSystem: akka.actor.ActorSystem, implicit materializer: akka.stream.Materializer)skuber.api.client.KubernetesClient <and>
  (appConfig: com.typesafe.config.Config)(implicit actorSystem: akka.actor.ActorSystem, implicit materializer: akka.stream.Materializer)skuber.api.client.KubernetesClient <and>
  (config: skuber.api.Configuration)(implicit actorSystem: akka.actor.ActorSystem, implicit materializer: akka.stream.Materializer)skuber.api.client.KubernetesClient <and>
  (implicit actorSystem: akka.actor.ActorSystem,implicit materializer: akka.stream.Materializer)skuber.api.client.KubernetesClient
 cannot be applied to ()
       val k8s = k8sInit()
                 ^

Removing the parenthesis runs smoothly.

When copy pasting the example in a scala console we get the following error:
```
scala> val k8s = k8sInit()
<console>:23: error: overloaded method value k8sInit with alternatives:
  (config: skuber.api.Configuration,appConfig: com.typesafe.config.Config)(implicit actorSystem: akka.actor.ActorSystem, implicit materializer: akka.stream.Materializer)skuber.api.client.KubernetesClient <and>
  (appConfig: com.typesafe.config.Config)(implicit actorSystem: akka.actor.ActorSystem, implicit materializer: akka.stream.Materializer)skuber.api.client.KubernetesClient <and>
  (config: skuber.api.Configuration)(implicit actorSystem: akka.actor.ActorSystem, implicit materializer: akka.stream.Materializer)skuber.api.client.KubernetesClient <and>
  (implicit actorSystem: akka.actor.ActorSystem,implicit materializer: akka.stream.Materializer)skuber.api.client.KubernetesClient
 cannot be applied to ()
       val k8s = k8sInit()
                 ^
```
Removing the parenthesis runs smoothly.
@doriordan
Copy link
Owner

Good spot, thanks.

@doriordan doriordan merged commit 485be9e into doriordan:master Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载