Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomResource ¶
type CustomResource struct {
Resource *unstructured.Unstructured // represents the resource from kubernetes
}
CustomResource provides some helper methods for interacting with the kubernetes custom resource inside the templates.
func (CustomResource) GetField ¶
func (cr CustomResource) GetField(fields ...string) string
GetField will traverse all the fields to return the string value of the requested field. If the field is not found it will return an empty string
func (CustomResource) Name ¶
func (cr CustomResource) Name() string
Name will return the Name from the custom resource
Click to show internal directories.
Click to hide internal directories.