Documentation
¶
Index ¶
- func Apply(ctx context.Context, api client.Client, obj client.Object) error
- func CreateClient() (client.Client, error)
- func CreateDynamicClient() (client.WithWatch, error)
- func CreateRESTClient() (rest.Interface, error)
- func CreateUpdatedResources(origResources map[string]string, pb *kio.PackageBuffer) (map[string]string, error)
- func ResourcesToPackageBuffer(resources map[string]string) (*kio.PackageBuffer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClient ¶
func CreateDynamicClient ¶
func CreateRESTClient ¶
controller-runtime does not support subresources so we use REST client directly. TODO: Separate Porch clientset into its own module (similar to k8s clientsets) to use it without causing circular reference.
func CreateUpdatedResources ¶
func ResourcesToPackageBuffer ¶
func ResourcesToPackageBuffer(resources map[string]string) (*kio.PackageBuffer, error)
Code adapted from Porch internal cmdrpkgpull and cmdrpkgpush
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.