kubectlk8s.io/kubectl/pkg/util/hash Index | Files

package hash

import "k8s.io/kubectl/pkg/util/hash"

Index

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 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.

Source Files

hash.go

Version
v0.32.3 (latest)
Published
Mar 12, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
6 days ago

Tools for package owners.