github.com/caos/orbos@v1.5.14-0.20221103111702-e6cd0cea7ad4/pkg/kubernetes/k8s/resources.go (about) 1 package k8s 2 3 import ( 4 corev1 "k8s.io/api/core/v1" 5 ) 6 7 type Resources corev1.ResourceRequirements 8 9 func (r *Resources) MarshalYAML() (interface{}, error) { 10 return MarshalYAML(r) 11 } 12 13 func (r *Resources) UnmarshalYAML(unmarshal func(interface{}) error) error { 14 return UnmarshalYAML(r, unmarshal) 15 }