Kubernetes resource spec
Base file name for resource spec
Convert a Kubernetes resource spec into a stable string suitable for writing to a file or comparisons.
Options for serializing the resource spec
Stable string representation of the resource spec
Parses content of string as Kubernetes JSON or YAML specs. It parses the file as YAML, since JSON is valid YAML, and returns an array of [[k8s.KubernetesObject]]s, since a YAML file can contain multiple documents. It validates that each document parsed looks something like a Kubernetes spec. If it does not, it is filtered out of the returned specs.
String representation of Kubernetes spec(s)
Parsed and filtered Kubernetes spec objects
Return unique string for spec.
Convert spec to string and shorten it if necessary.
Return beginning snippet from spec string.
Generated using TypeDoc
Create a suitable basename for the spec file for
resource
. The form of the file name is "NN-NAMESPACE-NAME-KIND", where "NN" is a numeric prefix so the resources are created in the proper order, "NAMESPACE-" is omitted if resource is not namespaced, the kind is converted from PascalCase to kebab-case, and the whole name is lowercased.