ssa_client

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldManager = client.FieldOwner("trust-manager")
)

Variables

This section is empty.

Functions

func GenerateBundleStatusPatch

func GenerateBundleStatusPatch(
	name string,
	status *trustapi.BundleStatus,
) (*trustapi.Bundle, client.Patch, error)

func ManagedFieldEntries added in v0.13.0

func ManagedFieldEntries(fields []string, dataFields []string) []metav1.ManagedFieldsEntry

ManagedFieldEntries is a test utility function creating managed field entries for testing target configmaps and secrets.

func MigrateToApply added in v0.13.0

func MigrateToApply(ctx context.Context, c client.Client, obj client.Object, opts ...csaupgrade.Option) (bool, error)

/ MIGRATION: This is a migration function that migrates the ownership of fields from the Update operation to the Apply operation. This is required to ensure that the apply operations will also remove fields that were created by the Update operation.

Types

type ApplyPatch added in v0.14.0

type ApplyPatch struct {
	Patch []byte
}

func (ApplyPatch) Data added in v0.14.0

func (p ApplyPatch) Data(_ client.Object) ([]byte, error)

func (ApplyPatch) Type added in v0.14.0

func (p ApplyPatch) Type() types.PatchType

Jump to

Keyboard shortcuts

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