client

package
v0.0.0-...-889b5f9 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 3

README

README

These files were copied from

https://github.com/GoogleContainerTools/kpt/tree/main/internal/util/porch

with some small modifications. They should be removed once that code is removed from internal, updated with those changes, and made available for use.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToScheme

func AddToScheme(scheme *runtime.Scheme) error

func CreateClient

func CreateClient(config *rest.Config) (client.Client, error)

func CreateRESTClient

func CreateRESTClient(config *rest.Config) (rest.Interface, error)

controller-runtime does not support sub-resources so we use REST client directly. TODO: Separate Porch client set into its own module (similar to k8s client sets) to use it without causing circular reference.

func UpdatePackageRevisionApproval

func UpdatePackageRevisionApproval(ctx context.Context, client rest.Interface, key client.ObjectKey, new v1alpha1.PackageRevisionLifecycle) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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