Documentation
¶
Index ¶
- Constants
- func GenerateBundleStatusPatch(name string, status *trustapi.BundleStatus) (*trustapi.Bundle, client.Patch, error)
- func ManagedFieldEntries(fields []string, dataFields []string) []metav1.ManagedFieldsEntry
- func MigrateToApply(ctx context.Context, c client.Client, obj client.Object, ...) (bool, error)
- type ApplyPatch
Constants ¶
View Source
const (
FieldManager = client.FieldOwner("trust-manager")
)
Variables ¶
This section is empty.
Functions ¶
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) Type ¶ added in v0.14.0
func (p ApplyPatch) Type() types.PatchType
Click to show internal directories.
Click to hide internal directories.