Documentation
¶
Overview ¶
Package mask hides the values of Kubernetes Secrets in the objects that Timoni prints, so that rendered manifests can be shared without exposing credentials.
Index ¶
Constants ¶
View Source
const Value = "***"
Value replaces the values of the Secret data and stringData entries.
Variables ¶
This section is empty.
Functions ¶
func SecretData ¶
func SecretData(obj *unstructured.Unstructured) *unstructured.Unstructured
SecretData returns a copy of the object with every entry under the Secret data and stringData fields replaced by the mask, along with the kubectl last-applied-configuration annotation. A data or stringData field that is not a map is replaced by the mask as a whole. Objects that are not Secrets are returned unchanged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.