Documentation ¶
Overview ¶
Package initialize provides functions to initialize some common fields and types.
Index ¶
- func Annotations(object metav1.Object)
- func Bool(v bool) *bool
- func ByteMap(m *map[string][]byte)
- func Int32(v int32) *int32
- func Int64(v int64) *int64
- func IntOrString(ios intstr.IntOrString) *intstr.IntOrString
- func IntOrStringInt32(i int32) *intstr.IntOrString
- func IntOrStringString(s string) *intstr.IntOrString
- func Labels(object metav1.Object)
- func RestrictedPodSecurityContext() *corev1.PodSecurityContext
- func RestrictedSecurityContext() *corev1.SecurityContext
- func String(v string) *string
- func StringMap(m *map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Annotations ¶
Annotations initializes the Annotations of object when they are nil.
func IntOrString ¶
func IntOrString(ios intstr.IntOrString) *intstr.IntOrString
IntOrString returns a pointer to the provided IntOrString
func IntOrStringInt32 ¶
func IntOrStringInt32(i int32) *intstr.IntOrString
IntOrStringInt32 returns an *intstr.IntOrString containing i.
func IntOrStringString ¶
func IntOrStringString(s string) *intstr.IntOrString
IntOrStringString returns an *intstr.IntOrString containing s.
func RestrictedPodSecurityContext ¶
func RestrictedPodSecurityContext() *corev1.PodSecurityContext
RestrictedPodSecurityContext returns a v1.PodSecurityContext with safe defaults. See https://docs.k8s.io/concepts/security/pod-security-standards/
func RestrictedSecurityContext ¶
func RestrictedSecurityContext() *corev1.SecurityContext
RestrictedSecurityContext returns a v1.SecurityContext with safe defaults. See https://docs.k8s.io/concepts/security/pod-security-standards/
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.