k8s

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNginxDeploymentManifest

func NewNginxDeploymentManifest(namespace string, mods ...DeploymentModifier) (*appsv1.DeploymentArgs, error)

NewNginxDeploymentManifest creates a new deployment manifest for Nginx server

func NewNginxQueryDeploymentManifest

func NewNginxQueryDeploymentManifest(namespace string, mods ...DeploymentModifier) (*appsv1.DeploymentArgs, error)

NewNginxQueryDeploymentManifest creates a new deployment manifest for Nginx query app

func NewNginxServiceManifest

func NewNginxServiceManifest(namespace string) *corev1.ServiceArgs

NewNginxServiceManifest creates a new service manifest for the Nginx deployment

Types

type DeploymentModifier

type DeploymentModifier func(args *appsv1.DeploymentArgs) error

DeploymentModifier is a function that operates on a DeploymentArgs struct

func WithAnnotations

func WithAnnotations(annotations map[string]string) DeploymentModifier

WithAnnotations appends/ovewrites a Deployment template's annotations

func WithLabels

func WithLabels(labels map[string]string) DeploymentModifier

WithLabels appends/ovewrites a Deployment template's labels

func WithRuntimeClass

func WithRuntimeClass(rtc string) DeploymentModifier

WithRuntimeClass sets a deployment's RuntimeClassName

func WithServiceAccount

func WithServiceAccount(serviceAccount *corev1.ServiceAccount) DeploymentModifier

WithServiceAccount sets a deployment's ServiceAccount

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL