Documentation ¶
Index ¶
- func NewDeployment(name, namespace string, opts ...Opt) *kappsv1.Deployment
- type Opt
- func WithContainers(containers []kcorev1.Container) Opt
- func WithLabels(labels map[string]string) Opt
- func WithOwnerReferences(ownerReferences []kmetav1.OwnerReference) Opt
- func WithPriorityClassName(name string) Opt
- func WithReplicas(replicas int32) Opt
- func WithRestartPolicyAlways() Opt
- func WithSecurityContext(securityContext *kcorev1.PodSecurityContext) Opt
- func WithSelectorLabels(labels map[string]string) Opt
- func WithTerminationGracePeriodSeconds(terminationGracePeriodSeconds int64) Opt
- func WithVolumeMountedSecret(secretName string) Opt
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 WithLabels ¶
func WithOwnerReferences ¶
func WithOwnerReferences(ownerReferences []kmetav1.OwnerReference) Opt
func WithPriorityClassName ¶
func WithReplicas ¶
func WithRestartPolicyAlways ¶
func WithRestartPolicyAlways() Opt
func WithSecurityContext ¶
func WithSecurityContext(securityContext *kcorev1.PodSecurityContext) Opt
func WithSelectorLabels ¶
func WithVolumeMountedSecret ¶
Click to show internal directories.
Click to hide internal directories.