Skip to content

Commit

Permalink
deploy: aa7452b
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] committed Oct 23, 2023
1 parent ab8e595 commit 7f46d5e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions api/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; URL=https://www.javadoc.io/doc/dev.hnaderi/scala-k8s-docs_2.12/0.15.0/">
<link rel="canonical" href="https://www.javadoc.io/doc/dev.hnaderi/scala-k8s-docs_2.12/0.15.0/">
<meta http-equiv="refresh" content="0; URL=https://www.javadoc.io/doc/dev.hnaderi/scala-k8s-docs_2.12/0.15.1/">
<link rel="canonical" href="https://www.javadoc.io/doc/dev.hnaderi/scala-k8s-docs_2.12/0.15.1/">
42 changes: 21 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

<div class="row links">

<a class="icon-link svg-link" href="https://www.javadoc.io/doc/dev.hnaderi/scala-k8s-docs_2.12/0.15.0/"><span class="api" title="API"><svg class="svg-icon" width="100%" height="100%" viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<a class="icon-link svg-link" href="https://www.javadoc.io/doc/dev.hnaderi/scala-k8s-docs_2.12/0.15.1/"><span class="api" title="API"><svg class="svg-icon" width="100%" height="100%" viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<g class="svg-shape">
<path d="M75,47.5c13.246,0 24,10.754 24,24c0,13.246 -10.754,24 -24,24c-13.246,0 -24,-10.754 -24,-24c0,-13.246 10.754,-24 24,-24Zm-50,-0c13.246,-0 24,10.754 24,24c0,13.246 -10.754,24 -24,24c-13.246,-0 -24,-10.754 -24,-24c0,-13.246 10.754,-24 24,-24Zm2.705,16.735l7.239,0l0.622,-4.904l-21.833,0l-0,4.904l7.589,0l0,22.067l6.383,0l-0,-22.067Zm58.076,7.265c-0,-8.757 -3.698,-14.166 -10.781,-14.166c-7.083,-0 -10.781,5.604 -10.781,14.166c0,8.757 3.698,14.166 10.781,14.166c7.083,0 10.781,-5.604 10.781,-14.166Zm-6.539,0c0,6.538 -1.128,9.496 -4.242,9.496c-2.997,0 -4.242,-2.88 -4.242,-9.496c-0,-6.616 1.206,-9.496 4.242,-9.496c3.036,-0 4.242,2.88 4.242,9.496Zm-29.242,-67c13.246,0 24,10.754 24,24c0,13.246 -10.754,24 -24,24c-13.246,0 -24,-10.754 -24,-24c0,-13.246 10.754,-24 24,-24Zm0.512,9.834c-7.122,-0 -12.609,5.098 -12.609,14.127c-0,9.263 5.215,14.205 12.532,14.205c4.164,0 7.083,-1.634 9.068,-3.658l-2.88,-3.697c-1.518,1.206 -3.153,2.413 -5.838,2.413c-3.697,-0 -6.266,-2.763 -6.266,-9.263c-0,-6.616 2.724,-9.379 6.149,-9.379c2.102,-0 3.892,0.778 5.371,1.984l3.113,-3.775c-2.257,-1.868 -4.748,-2.957 -8.64,-2.957Z"/>
</g>
Expand All @@ -66,7 +66,7 @@

<div class="row">

<a class="icon-link svg-link" href="https://www.javadoc.io/doc/dev.hnaderi/scala-k8s-docs_2.12/0.15.0/"><span class="api" title="API"><svg class="svg-icon" width="100%" height="100%" viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<a class="icon-link svg-link" href="https://www.javadoc.io/doc/dev.hnaderi/scala-k8s-docs_2.12/0.15.1/"><span class="api" title="API"><svg class="svg-icon" width="100%" height="100%" viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<g class="svg-shape">
<path d="M75,47.5c13.246,0 24,10.754 24,24c0,13.246 -10.754,24 -24,24c-13.246,0 -24,-10.754 -24,-24c0,-13.246 10.754,-24 24,-24Zm-50,-0c13.246,-0 24,10.754 24,24c0,13.246 -10.754,24 -24,24c-13.246,-0 -24,-10.754 -24,-24c0,-13.246 10.754,-24 24,-24Zm2.705,16.735l7.239,0l0.622,-4.904l-21.833,0l-0,4.904l7.589,0l0,22.067l6.383,0l-0,-22.067Zm58.076,7.265c-0,-8.757 -3.698,-14.166 -10.781,-14.166c-7.083,-0 -10.781,5.604 -10.781,14.166c0,8.757 3.698,14.166 10.781,14.166c7.083,0 10.781,-5.604 10.781,-14.166Zm-6.539,0c0,6.538 -1.128,9.496 -4.242,9.496c-2.997,0 -4.242,-2.88 -4.242,-9.496c-0,-6.616 1.206,-9.496 4.242,-9.496c3.036,-0 4.242,2.88 4.242,9.496Zm-29.242,-67c13.246,0 24,10.754 24,24c0,13.246 -10.754,24 -24,24c-13.246,0 -24,-10.754 -24,-24c0,-13.246 10.754,-24 24,-24Zm0.512,9.834c-7.122,-0 -12.609,5.098 -12.609,14.127c-0,9.263 5.215,14.205 12.532,14.205c4.164,0 7.083,-1.634 9.068,-3.658l-2.88,-3.697c-1.518,1.206 -3.153,2.413 -5.838,2.413c-3.697,-0 -6.266,-2.763 -6.266,-9.263c-0,-6.616 2.724,-9.379 6.149,-9.379c2.102,-0 3.892,0.778 5.371,1.984l3.113,-3.775c-2.257,-1.868 -4.748,-2.957 -8.64,-2.957Z"/>
</g>
Expand Down Expand Up @@ -142,26 +142,26 @@ <h2 id="usage" class="section"><a class="anchor-link left" href="#usage"><i clas
<li><code>client</code> raw kubernetes client and requests, requests can also be extended in user land easily!</li>
</ul>
<pre class="keep-together pdf epub"><code class="nohighlight"><span class="identifier">libraryDependencies</span><span> ++= </span><span class="type-name">Seq</span><span>(
</span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-objects&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; raw k8s objects
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-client&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; k8s client kernel and requests
</span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-objects&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; raw k8s objects
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-client&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; k8s client kernel and requests
</span><span> )</span></code></pre>
<p>The following integrations are currently available:</p>
<pre><code class="nohighlight"><span class="identifier">libraryDependencies</span><span> ++= </span><span class="type-name">Seq</span><span>(
</span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-http4s-ember&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; http4s ember client integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-http4s-netty&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM ; http4s netty client integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-http4s-blaze&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM; http4s blaze client integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-http4s-jdk&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM; http4s jdk-client integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-http4s&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; http4s core and fs2 integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-zio&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM ; ZIO native integration using zio-http and zio-json
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-sttp&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; sttp integration using jawn parser
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-circe&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM, JS ; circe integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-json4s&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM, JS, Native; json4s integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-spray-json&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM ; spray-json integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-play-json&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM ; play-json integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-zio-json&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM, JS ; zio-json integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-jawn&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; jawn integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-manifests&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; yaml manifest reading and generation
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-scalacheck&quot;</span><span> % </span><span class="string-literal">&quot;0.15.0&quot;</span><span> </span><span class="comment">// JVM, JS, Native; scalacheck instances
</span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-http4s-ember&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; http4s ember client integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-http4s-netty&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM ; http4s netty client integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-http4s-blaze&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM; http4s blaze client integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-http4s-jdk&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM; http4s jdk-client integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-http4s&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; http4s core and fs2 integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-zio&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM ; ZIO native integration using zio-http and zio-json
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-sttp&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; sttp integration using jawn parser
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-circe&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM, JS ; circe integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-json4s&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM, JS, Native; json4s integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-spray-json&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM ; spray-json integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-play-json&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM ; play-json integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-zio-json&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM, JS ; zio-json integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-jawn&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; jawn integration
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-manifests&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span>, </span><span class="comment">// JVM, JS, Native ; yaml manifest reading and generation
</span><span> </span><span class="string-literal">&quot;dev.hnaderi&quot;</span><span> %% </span><span class="string-literal">&quot;scala-k8s-scalacheck&quot;</span><span> % </span><span class="string-literal">&quot;0.15.1&quot;</span><span> </span><span class="comment">// JVM, JS, Native; scalacheck instances
</span><span>)</span></code></pre>

<h1 id="manifest-and-object-generation" class="section"><a class="anchor-link left" href="#manifest-and-object-generation"><i class="icofont-laika link">&#xef71;</i></a>Manifest and object generation</h1>
Expand Down Expand Up @@ -326,7 +326,7 @@ <h2 id="http4s-based-client" class="section"><a class="anchor-link left" href="#
</span><span class="keyword">import</span><span> </span><span class="identifier">org</span><span>.</span><span class="identifier">http4s</span><span>.</span><span class="identifier">circe</span><span>.</span><span class="identifier">_</span><span>

</span><span class="keyword">val</span><span> </span><span class="identifier">buildClient</span><span> = </span><span class="type-name">EmberKubernetesClient</span><span>[</span><span class="type-name">IO</span><span>].</span><span class="identifier">defaultConfig</span><span>[</span><span class="type-name">Json</span><span>]
</span><span class="comment">// buildClient: Resource[IO, http4s.package.KClient[IO]] = Bind(Bind(Bind(Pure(()),cats.effect.kernel.Resource$$Lambda$10363/0x0000000802eb1040@e447e50),cats.effect.kernel.Resource$$Lambda$10364/0x0000000802eb1840@7fa93bdf),cats.effect.kernel.Resource$$Lambda$10365/0x0000000802eb2840@6f2b46c)
</span><span class="comment">// buildClient: Resource[IO, http4s.package.KClient[IO]] = Bind(Bind(Bind(Pure(()),cats.effect.kernel.Resource$$Lambda$10352/0x0000000802f0b840@1c704b3e),cats.effect.kernel.Resource$$Lambda$10353/0x0000000802f18840@2f74c603),cats.effect.kernel.Resource$$Lambda$10354/0x0000000802f19040@7f452e3a)
</span><span>
</span><span class="keyword">val</span><span> </span><span class="identifier">getNodes</span><span> = </span><span class="identifier">buildClient</span><span>.</span><span class="identifier">use</span><span>(</span><span class="type-name">APIs</span><span>.</span><span class="identifier">nodes</span><span>.</span><span class="identifier">list</span><span>().</span><span class="identifier">send</span><span>)
</span><span class="comment">// getNodes: IO[io.k8s.api.core.v1.NodeList] = IO(...)
Expand Down Expand Up @@ -400,7 +400,7 @@ <h2 id="advanced-requests" class="section"><a class="anchor-link left" href="#ad
.</span><span class="identifier">move</span><span>(</span><span class="identifier">_</span><span>.</span><span class="identifier">metadata</span><span>.</span><span class="identifier">labels</span><span>.</span><span class="identifier">at</span><span>(</span><span class="string-literal">&quot;a&quot;</span><span>), </span><span class="identifier">_</span><span>.</span><span class="identifier">metadata</span><span>.</span><span class="identifier">labels</span><span>.</span><span class="identifier">at</span><span>(</span><span class="string-literal">&quot;b&quot;</span><span>))
.</span><span class="identifier">remove</span><span>(</span><span class="identifier">_</span><span>.</span><span class="identifier">data</span><span>.</span><span class="identifier">at</span><span>(</span><span class="string-literal">&quot;to-delete&quot;</span><span>))
)
</span><span class="comment">// patch2: apis.corev1.ConfigMapAPI.GenericPatch[JsonPatch[ConfigMap, io.k8s.api.core.v1.ConfigMapPointer]] = GenericPatch(test,default,dev.hnaderi.k8s.client.JsonPatch@2bfb2e8c,JsonPatch,None,None,None,None)</span></code></pre>
</span><span class="comment">// patch2: apis.corev1.ConfigMapAPI.GenericPatch[JsonPatch[ConfigMap, io.k8s.api.core.v1.ConfigMapPointer]] = GenericPatch(test,default,dev.hnaderi.k8s.client.JsonPatch@36c4c48f,JsonPatch,None,None,None,None)</span></code></pre>
<p>Server side apply:</p>
<pre class="keep-together pdf epub"><code class="nohighlight"><span class="keyword">val</span><span> </span><span class="identifier">patch3</span><span> = </span><span class="type-name">APIs</span><span>
.</span><span class="identifier">namespace</span><span>(</span><span class="string-literal">&quot;default&quot;</span><span>)
Expand Down

0 comments on commit 7f46d5e

Please sign in to comment.