k8s

package
v0.79.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNginxDeploymentManifest

func NewNginxDeploymentManifest(namespace string, nginxPort int, 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, nginxPort int) *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 WithConfigMap added in v0.75.0

func WithConfigMap() DeploymentModifier

WithConfigMap adds a ConfigMap volume and volume mount to the nginx container.

func WithImagePullSecrets added in v0.79.0

func WithImagePullSecrets(imagePullSecrets corev1.LocalObjectReferenceArray) DeploymentModifier

WithImagePullSecrets sets the pod spec's ImagePullSecrets (e.g. for private registries).

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