util

package
v2.17.4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(ctx context.Context, c client.Client, obj client.Object, finalizerID string) error

func CompareYAMLs

func CompareYAMLs(left, right []byte) (dyff.Report, error)

func ContainsString

func ContainsString(slice []string, s string) bool

func DyffReportMultilineDiffOutput added in v2.12.0

func DyffReportMultilineDiffOutput(report dyff.Report, out io.Writer) error

func IgnoreK8sStorageError added in v2.11.7

func IgnoreK8sStorageError(err error) error

func ProtoFieldToStriMap

func ProtoFieldToStriMap(protoField proto.Message, striMap *helm.Strimap) error

func RemoveFinalizer

func RemoveFinalizer(ctx context.Context, c client.Client, obj client.Object, finalizerID string, onDeleteOnly bool) error

func RemoveString

func RemoveString(slice []string, s string) (result []string)

func TransformStructToStriMapWithTemplate

func TransformStructToStriMapWithTemplate(data interface{}, filesystem fs.FS, templateFileName string) (helm.Strimap, error)

Types

type CalculateOption

type CalculateOption = patch.CalculateOption

func IgnoreMetadataAnnotations

func IgnoreMetadataAnnotations(prefixes ...string) CalculateOption

func IgnoreWebhookFailurePolicy

func IgnoreWebhookFailurePolicy() CalculateOption

type ClusterTypeChangePredicate

type ClusterTypeChangePredicate struct{}

func (ClusterTypeChangePredicate) Create

func (ClusterTypeChangePredicate) Delete

func (ClusterTypeChangePredicate) Generic

func (ClusterTypeChangePredicate) Update

type ICPInjectorChangePredicate

type ICPInjectorChangePredicate struct {
	predicate.Funcs
}

func (ICPInjectorChangePredicate) Create

func (ICPInjectorChangePredicate) Delete

func (ICPInjectorChangePredicate) Generic

func (ICPInjectorChangePredicate) Update

type IMGWAddressChangePredicate

type IMGWAddressChangePredicate struct{}

func (IMGWAddressChangePredicate) Create

func (IMGWAddressChangePredicate) Delete

func (IMGWAddressChangePredicate) Generic

func (IMGWAddressChangePredicate) Update

type NamespaceRevisionLabelChange

type NamespaceRevisionLabelChange struct{}

func (NamespaceRevisionLabelChange) Create

func (NamespaceRevisionLabelChange) Delete

func (NamespaceRevisionLabelChange) Generic

func (NamespaceRevisionLabelChange) Update

type ObjectChangePredicate

type ObjectChangePredicate struct {
	predicate.Funcs
	CalculateOptions []CalculateOption
	Logger           logger.Logger
}

func (ObjectChangePredicate) Update

type PICPStatusChangePredicate

type PICPStatusChangePredicate struct{}

func (PICPStatusChangePredicate) Create

func (PICPStatusChangePredicate) Delete

func (PICPStatusChangePredicate) Generic

func (PICPStatusChangePredicate) Update

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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