WowKubernetesExtension

abstract class WowKubernetesExtension

The service's Kubernetes manifests, wow { kubernetes { … } }: what generateWowKubernetes renders the wow-service chart (the plugin's own, at its version) with, into a Kustomize base of plain YAML, build/wow/k8s/, which a deployment overlays with kubectl apply -k without running Helm.

wow {
kubernetes {
values.from(rootProject.file("deploy/eshop-basket/values.yaml"))
namespace = "eshop"
}
}

Naming values puts generateWowKubernetes in assemble. Every value that feeds a derivation of the chart (the namespace, the peers' namespaces, partOf, the gateway rule, the monitors, the autoscaler, the shutdown bounds) is a value here, checked by the chart's schema when the build renders; anything else (the image, the replicas, the resources, extra environment, labels) an overlay patches.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val namespace: Property<String>

The namespace the service is deployed to. The chart derives from it (whether a peer is in another namespace, the autoscaler's default query), so it is required, and the generated kustomization.yaml carries it: an overlay must not move the base to another namespace, which would leave those derivations wrong.

Link copied to clipboard
abstract val values: ConfigurableFileCollection

The deployment's values files, passed to the chart in order after the values the build generates (generateWowHelmValues), so they override them. A build that names none renders nothing in assemble.