Documentation
¶
Index ¶
- func BuildOwnerReferences(obj client.Object) (refs []metav1.OwnerReference)
- func BuildOwnerReferencesWithParents(obj client.Object) (refs []metav1.OwnerReference)
- func CheckRule(aclRules string) error
- func CheckUserRuleUpdate(ruleSource string) error
- func ConvertMemoryUnit(p string) (string, error)
- func GenerateObjectSig(data any, salt string) (string, error)
- func GetContainerByName(pod *corev1.PodSpec, name string) *corev1.Container
- func GetServicePortByName(svc *corev1.Service, name string) *corev1.ServicePort
- func GetVolumeByName(vols []corev1.Volume, name string) *corev1.Volume
- func GetVolumeClaimTemplatesByName(vols []corev1.PersistentVolumeClaim, name string) *corev1.PersistentVolumeClaim
- func IsPodTemplasteChanged(newTplSpec, oldTplSpec *corev1.PodTemplateSpec, logger logr.Logger) bool
- func IsStatefulsetChanged(newSts, sts *appsv1.StatefulSet, logger logr.Logger) bool
- func LoadCertConfigFromSecret(secret *corev1.Secret) (*tls.Config, error)
- func ObjectKey(namespace, name string) client.ObjectKey
- func RetryOnTimeout(f func() error, step int) error
- func UnifyValueUnit(v string) string
- type AuthConfig
- type SignaturableObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOwnerReferences ¶
func BuildOwnerReferences(obj client.Object) (refs []metav1.OwnerReference)
func BuildOwnerReferencesWithParents ¶
func BuildOwnerReferencesWithParents(obj client.Object) (refs []metav1.OwnerReference)
func CheckUserRuleUpdate ¶
func GetContainerByName ¶
GetContainerByName
func GetServicePortByName ¶
func GetServicePortByName(svc *corev1.Service, name string) *corev1.ServicePort
func GetVolumeByName ¶
GetVolumes
func GetVolumeClaimTemplatesByName ¶
func GetVolumeClaimTemplatesByName(vols []corev1.PersistentVolumeClaim, name string) *corev1.PersistentVolumeClaim
GetVolumeClaimTemplatesByName
func IsPodTemplasteChanged ¶
func IsPodTemplasteChanged(newTplSpec, oldTplSpec *corev1.PodTemplateSpec, logger logr.Logger) bool
func IsStatefulsetChanged ¶
func IsStatefulsetChanged(newSts, sts *appsv1.StatefulSet, logger logr.Logger) bool
IsStatefulsetChanged
func RetryOnTimeout ¶
func UnifyValueUnit ¶
UnifyValueUnit value convert, not care the config itself
Types ¶
type AuthConfig ¶
type SignaturableObject ¶
Click to show internal directories.
Click to hide internal directories.