io.burkard.cdk.services.eks.KubernetesPatch.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.eks
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object KubernetesPatch {
def apply(
internalResourceId: String,
applyPatch: Map[String, _],
resourceName: String,
cluster: software.amazon.awscdk.services.eks.ICluster,
restorePatch: Map[String, _],
patchType: Option[software.amazon.awscdk.services.eks.PatchType] = None,
resourceNamespace: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.eks.KubernetesPatch =
software.amazon.awscdk.services.eks.KubernetesPatch.Builder
.create(stackCtx, internalResourceId)
.applyPatch(applyPatch.asJava)
.resourceName(resourceName)
.cluster(cluster)
.restorePatch(restorePatch.asJava)
.patchType(patchType.orNull)
.resourceNamespace(resourceNamespace.orNull)
.build()
}