deployment

package
v0.0.0-...-0585a07 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeployment

func NewDeployment(name, namespace string, opts ...Opt) *kappsv1.Deployment

Types

type Opt

type Opt func(deployment *kappsv1.Deployment)

func WithContainers

func WithContainers(containers []kcorev1.Container) Opt

func WithLabels

func WithLabels(labels map[string]string) Opt

func WithOwnerReferences

func WithOwnerReferences(ownerReferences []kmetav1.OwnerReference) Opt

func WithPriorityClassName

func WithPriorityClassName(name string) Opt

func WithReplicas

func WithReplicas(replicas int32) Opt

func WithRestartPolicyAlways

func WithRestartPolicyAlways() Opt

func WithSecurityContext

func WithSecurityContext(securityContext *kcorev1.PodSecurityContext) Opt

func WithSelectorLabels

func WithSelectorLabels(labels map[string]string) Opt

func WithTerminationGracePeriodSeconds

func WithTerminationGracePeriodSeconds(terminationGracePeriodSeconds int64) Opt

func WithVolumeMountedSecret

func WithVolumeMountedSecret(secretName string) Opt

Jump to

Keyboard shortcuts

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