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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<a href="https://typelevel.org/cats/"><img src="https://typelevel.org/cats/img/cats-badge.svg" height="40px" align="right" alt="Cats friendly" /></a>

![Kubernetes version](https://img.shields.io/badge/Kubernetes-v1.34.3-blue?style=flat-square&logo=kubernetes&logoColor=white)
![Kubernetes version](https://img.shields.io/badge/Kubernetes-v1.35.0-blue?style=flat-square&logo=kubernetes&logoColor=white)
[![scala-k8s-objects Scala version support](https://index.scala-lang.org/hnaderi/scala-k8s/scala-k8s-objects/latest-by-scala-version.svg?style=flat-square)](https://index.scala-lang.org/hnaderi/scala-k8s/scala-k8s-objects)
[![javadoc](https://javadoc.io/badge2/dev.hnaderi/scala-k8s-docs_3/scaladoc.svg?style=flat-square)](https://javadoc.io/doc/dev.hnaderi/scala-k8s-docs_3)
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/hnaderi/scala-k8s/ci.yml?style=flat-square">
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import dev.hnaderi.k8s.generator.KubernetesJsonPointerGeneratorPlugin
import dev.hnaderi.k8s.generator.KubernetesScalacheckGeneratorPlugin
import sbtcrossproject.CrossProject

ThisBuild / tlBaseVersion := "0.26"
ThisBuild / tlBaseVersion := "0.27"

ThisBuild / organization := "dev.hnaderi"
ThisBuild / organizationName := "Hossein Naderi"
Expand Down Expand Up @@ -40,7 +40,7 @@ ThisBuild / githubWorkflowAddedJobs += WorkflowJob(
scalas = Nil,
javas = Nil
)
ThisBuild / kubernetesVersion := "1.34.3"
ThisBuild / kubernetesVersion := "1.35.0"
ThisBuild / jsEnv := {
import org.scalajs.jsenv.nodejs.NodeJSEnv
new NodeJSEnv(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Copyright 2022 Hossein Naderi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.k8s.api.scheduling.v1alpha1

import dev.hnaderi.k8s.utils._

/** BasicSchedulingPolicy indicates that standard Kubernetes scheduling behavior
* should be used.
*/
final case class BasicSchedulingPolicy()
object BasicSchedulingPolicy {
implicit val encoder: Encoder[BasicSchedulingPolicy] = Encoder.emptyObj
implicit val decoder: Decoder[BasicSchedulingPolicy] =
Decoder.const(BasicSchedulingPolicy())
}
6 changes: 6 additions & 0 deletions modules/scalacheck/src/main/scala/PrimitiveGenerators.scala
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ private[scalacheck] trait PrimitiveGenerators { self: NonPrimitiveGenerators =>
: Arbitrary[io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1] =
Arbitrary(Gen.const(io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1()))

implicit lazy val arbitrary_io_k8s_api_scheduling_v1alpha1_BasicSchedulingPolicy
: Arbitrary[io.k8s.api.scheduling.v1alpha1.BasicSchedulingPolicy] =
Arbitrary(
Gen.const(io.k8s.api.scheduling.v1alpha1.BasicSchedulingPolicy())
)

private def genJSONSchemaPropsOrArray(
jsp: JSONSchemaProps
): Gen[JSONSchemaPropsOrArray] =
Expand Down