Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMapHash

func ConfigMapHash(cm *v1.ConfigMap) (string, error)

ConfigMapHash returns a hash of the ConfigMap. The Data, Kind, and Name are taken into account.

func NewNameHashTransformer

func NewNameHashTransformer() transformers.Transformer

NewNameHashTransformer construct a nameHashTransformer.

func SecretHash

func SecretHash(sec *v1.Secret) (string, error)

SecretHash returns a hash of the Secret. The Data, Kind, Name, and Type are taken into account.

Types

type KustHash

type KustHash struct{}

KustHash compute hash for unstructured objects

func NewKustHash

func NewKustHash() *KustHash

NewKustHash returns a KustHash object

func (*KustHash) Hash

func (h *KustHash) Hash(m map[string]interface{}) (string, error)

Hash returns a hash of either a ConfigMap or a Secret