util

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAPINamespaced added in v0.31.0

func IsAPINamespaced(obj runtime.Object, scheme *runtime.Scheme, restmapper apimeta.RESTMapper) (bool, error)

IsAPINamespaced returns true if the object is namespace scoped. For unstructured objects the gvk is found from the object itself.

func IsAPINamespacedWithGVK added in v0.31.0

func IsAPINamespacedWithGVK(gk schema.GroupVersionKind, restmapper apimeta.RESTMapper) (bool, error)

IsAPINamespacedWithGVK returns true if the object having the provided GVK is namespace scoped.

func OrderedValuesChecksum added in v0.33.0

func OrderedValuesChecksum(values chartutil.Values) string

OrderedValuesChecksum sort the chartutil.Values then calculates and returns the SHA1 checksum for the sorted values.

func ReleaseRevision

func ReleaseRevision(rel *release.Release) int

ReleaseRevision returns the revision of the given release.Release.

func SortMapSlice added in v0.33.0

func SortMapSlice(ms goyaml.MapSlice)

SortMapSlice recursively sorts the given goyaml.MapSlice by key. This is used to ensure that the values checksum is the same regardless of the order of the keys in the values file.

func ValuesChecksum

func ValuesChecksum(values chartutil.Values) string

ValuesChecksum calculates and returns the SHA1 checksum for the given chartutil.Values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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