Documentation ¶
Index ¶
- func GetUpdatedAllocation(resp *allocpb.Response, prefixKind ipamv1alpha1.PrefixKind) (*kyaml.RNode, error)
- func ResourcesToPackageBuffer(resources map[string]string) (*kio.PackageBuffer, error)
- func SetFieldValue(options *types.FieldOptions, targetField *kyaml.RNode, value *kyaml.RNode) error
- func Setup(mgr ctrl.Manager, options *shared.Options) error
- func UpdateValue(fp string, target, value *kyaml.RNode) error
- type IpamAllocation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUpdatedAllocation ¶
func GetUpdatedAllocation(resp *allocpb.Response, prefixKind ipamv1alpha1.PrefixKind) (*kyaml.RNode, error)
func ResourcesToPackageBuffer ¶
func ResourcesToPackageBuffer(resources map[string]string) (*kio.PackageBuffer, error)
Code adapted from Porch internal cmdrpkgpull and cmdrpkgpush
func SetFieldValue ¶
Types ¶
type IpamAllocation ¶ added in v0.0.2
type IpamAllocation struct {
Obj fn.KubeObject
}
func (*IpamAllocation) GetSpec ¶ added in v0.0.2
func (r *IpamAllocation) GetSpec() (*ipamv1alpha1.IPAllocationSpec, error)
Click to show internal directories.
Click to hide internal directories.