Skip to content
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

Correct example listing pods on Readme (removing parenthesis on k8sInit) #253

Merged
merged 1 commit into from
Feb 22, 2019

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