resources

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultProbeInitialDelay     = 5
	DefaultProbePeriod           = 10
	DefaultProbeTimeout          = 10
	DefaultProbeFailureThreshold = 10
	DefaultProbeSuccessThreshold = 1
)

Variables

This section is empty.

Functions

func Annotations

func Annotations(target *unstructured.Unstructured, annotations map[string]string)

func Decode

func Decode(decoder runtime.Decoder, content []byte) ([]unstructured.Unstructured, error)

func Label

func Label(target *unstructured.Unstructured, key string) string

func Labels

func Labels(target *unstructured.Unstructured, labels map[string]string)

func OwnerReference

func OwnerReference(owner client.Object) metav1.OwnerReference

func OwnerReferences

func OwnerReferences(owner client.Object) []metav1.OwnerReference

func Ref

func Ref(obj client.Object) string

func ToUnstructured

func ToUnstructured(s *runtime.Scheme, obj runtime.Object) (*unstructured.Unstructured, error)

func UnstructuredFor

func UnstructuredFor(group string, version string, kind string) *unstructured.Unstructured

func WithEnv

func WithEnv(name string, value string) *corev1ac.EnvVarApplyConfiguration

func WithEnvFromField

func WithEnvFromField(name string, value string) *corev1ac.EnvVarApplyConfiguration

func WithHTTPProbe

func WithHTTPProbe(path string, port int32) *corev1ac.ProbeApplyConfiguration

Types

This section is empty.

Jump to

Keyboard shortcuts

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