porch

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2022 License: Apache-2.0 Imports: 21 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(ctx context.Context, api client.Client, obj client.Object) error

func CreateClient

func CreateClient() (client.Client, error)

func CreateDynamicClient

func CreateDynamicClient() (client.WithWatch, error)

func CreateRESTClient

func CreateRESTClient() (rest.Interface, error)

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 CreateUpdatedResources(origResources map[string]string, pb *kio.PackageBuffer) (map[string]string, error)

func ResourcesToPackageBuffer

func ResourcesToPackageBuffer(resources map[string]string) (*kio.PackageBuffer, error)

Code adapted from Porch internal cmdrpkgpull and cmdrpkgpush

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL