Documentation ¶
Index ¶
- func IsAPINamespaced(obj runtime.Object, scheme *runtime.Scheme, restmapper apimeta.RESTMapper) (bool, error)
- func IsAPINamespacedWithGVK(gk schema.GroupVersionKind, restmapper apimeta.RESTMapper) (bool, error)
- func OrderedValuesChecksum(values chartutil.Values) string
- func ReleaseRevision(rel *release.Release) int
- func SortMapSlice(ms goyaml.MapSlice)
- func ValuesChecksum(values chartutil.Values) string
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
OrderedValuesChecksum sort the chartutil.Values then calculates and returns the SHA1 checksum for the sorted values.
func ReleaseRevision ¶
ReleaseRevision returns the revision of the given release.Release.
func SortMapSlice ¶ added in v0.33.0
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 ¶
ValuesChecksum calculates and returns the SHA1 checksum for the given chartutil.Values.
Types ¶
This section is empty.