Documentation
¶
Overview ¶
Package builders owns BuildDeployment and BuildService — pure functions that translate a DeploymentIntent and a single ServiceUnitIntent into Kubernetes object literals. No client, no side effects: both the imperative path (pkg/apis/deployment/api.K8SProvider, which applies these objects live) and the GitOps path (pkg/apis/deployment/api.KustomizeStrategyProvider, which renders them into committed manifests) share this same construction logic, so the two paths can't silently drift apart on what a ServiceUnit's Kubernetes objects look like.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDeployment ¶
func BuildDeployment( intent *intent.DeploymentIntent, su *serviceunitIntent.ServiceUnitIntent, ) *appsv1.Deployment
BuildDeployment renders su's Kubernetes Deployment object literal within intent. Pure — no client, no side effects.
func BuildService ¶
func BuildService( intent *intent.DeploymentIntent, su *serviceunitIntent.ServiceUnitIntent, ) *corev1.Service
BuildService renders su's Kubernetes Service object literal within intent. Pure — no client, no side effects.
Types ¶
This section is empty.