move recorder to interface
All checks were successful
Build and Publish / check-chart (push) Successful in 36s
Build and Publish / helm-release (push) Has been skipped
Build and Publish / release (push) Successful in 3m8s

This commit is contained in:
2025-03-21 15:54:28 -04:00
parent e9b70fe6e0
commit a5abbbec1f
12 changed files with 256 additions and 120 deletions

17
pkg/util/util.go Normal file
View File

@ -0,0 +1,17 @@
package util
import "k8s.io/utils/ptr"
func DerefStr(s *string) string {
if s == nil {
return ""
}
return *s
}
func Int32ptr(i *int) *int32 {
if i == nil {
return nil
}
return ptr.To(int32(*i))
}