Http4sKubernetesClient

dev.hnaderi.k8s.client.Http4sKubernetesClient

Attributes

Source:
Http4sKubernetesClient.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Type members

Types

final type KClient[F[_]] = HttpClient[F] & StreamingClient[[_] =>> Stream[F, _$2]]

Value members

Abstract methods

protected def buildClient[F[_] : Async]: Resource[F, Client[F]]

Build kubernetes client using the certificate files.

Build kubernetes client using the certificate files.

Attributes

authentication

Authentication parameters

ca

certificate authority file

clientCert

client certificate file

clientKey

client key file

clientKeyPassword

password for client key if any

server

Server address

Source:
Http4sKubernetesClient.scala

Build kubernetes client from Config data structure

Build kubernetes client from Config data structure

Attributes

config

Config to use

context

If provided, overrides the config's current context

Source:
Http4sKubernetesClient.scala

Concrete methods

final def defaultConfig[F[_], T](implicit F: Async[F], enc: EntityEncoder[F, T], dec: EntityDecoder[F, T], builder: Builder[T], reader: Reader[T]): Resource[F, KClient[F]]

Build kubernetes client kubectl config file found from default locations. It tries:

Build kubernetes client kubectl config file found from default locations. It tries:

  • KUBECONFIG from env
  • ~/.kube/config
  • pod's service account in /var/run/secrets/kubernetes.io/serviceaccount

Attributes

Source:
Http4sKubernetesClient.scala
final def fromClient[F[_], T](baseUrl: String, client: Client[F])(implicit F: Concurrent[F], enc: EntityEncoder[F, T], dec: EntityDecoder[F, T], builder: Builder[T], reader: Reader[T]): KClient[F]
final def fromUrl[F[_], T](baseUrl: String)(implicit F: Async[F], enc: EntityEncoder[F, T], dec: EntityDecoder[F, T], builder: Builder[T], reader: Reader[T]): Resource[F, KClient[F]]
final def load[F[_], T](config: Path, context: Option[String])(implicit F: Async[F], enc: EntityEncoder[F, T], dec: EntityDecoder[F, T], builder: Builder[T], reader: Reader[T]): Resource[F, KClient[F]]

Build kubernetes client from kubectl config file

Build kubernetes client from kubectl config file

Attributes

config

Path to kubeconfig file

context

If provided, overrides the config's current context

Source:
Http4sKubernetesClient.scala
final def loadFile[F[_], T](configFile: String, context: Option[String])(implicit F: Async[F], enc: EntityEncoder[F, T], dec: EntityDecoder[F, T], builder: Builder[T], reader: Reader[T]): Resource[F, KClient[F]]

Build kubernetes client from kubectl config file

Build kubernetes client from kubectl config file

Attributes

config

Path to kubeconfig file

context

If provided, overrides the config's current context

Source:
Http4sKubernetesClient.scala