templates

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAnnotations

func DefaultAnnotations(version string) map[string]string

DefaultAnnotations are the default annotations for deployments

func DefaultContainerPort

func DefaultContainerPort(name string, containerPort int, protocol apiv1.Protocol) apiv1.ContainerPort

DefaultContainerPort returns the default values for the containerPort

func DefaultLivenessProbe

func DefaultLivenessProbe(path string, port, initialDelaySeconds, timeoutSeconds int) *apiv1.Probe

DefaultLivenessProbe returns the default liveness probe values

func DefaultReadinessProbe

func DefaultReadinessProbe(path string, port, initialDelaySeconds, timeoutSeconds int) *apiv1.Probe

DefaultReadinessProbe returns the default readiness probe values

func DefaultRollingUpdateStrategy

func DefaultRollingUpdateStrategy() appsv1.DeploymentStrategy

DefaultRollingUpdateStrategy defines the default rolling update strategy

func DefaultServicePort

func DefaultServicePort(name string, port, targetPort int) apiv1.ServicePort

DefaultServicePort returns the default values for the servicePort

func GetResourcesRequirementsOrDefault

func GetResourcesRequirementsOrDefault(requirements *apiv1.ResourceRequirements, defaults *apiv1.ResourceRequirements) apiv1.ResourceRequirements

GetResourcesRequirementsOrDefault sets the new resources constraints or use the defaults

func ObjectMeta

func ObjectMeta(name string, labels map[string]string, config runtime.Object) metav1.ObjectMeta

ObjectMeta .

func ObjectMetaClusterScope

func ObjectMetaClusterScope(name string, labels map[string]string, config runtime.Object) metav1.ObjectMeta

ObjectMetaClusterScope .

func ObjectMetaNamespace

func ObjectMetaNamespace(name, namespace string, labels map[string]string, config runtime.Object) metav1.ObjectMeta

ObjectMetaNamespace .

func ObjectMetaWithAnnotations

func ObjectMetaWithAnnotations(name string, labels map[string]string, annotations map[string]string, config runtime.Object) metav1.ObjectMeta

ObjectMetaWithAnnotations .

func ObjectMetaWithRevision added in v0.0.2

func ObjectMetaWithRevision(name string, labels map[string]string, config *v1alpha1.Pinot) metav1.ObjectMeta

Types

This section is empty.

Jump to

Keyboard shortcuts

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