Documentation
¶
Overview ¶
Package kustomizeinput classifies Kustomize's direct file and configuration inputs.
Index ¶
- func Kustomization(k *types.Kustomization) iter.Seq[Reference]
- func Local(root, dir, raw string) (string, bool)
- func MappingValue(node *yaml.Node, key string) *yaml.Node
- func MetadataOnly(doc *yaml.Node) bool
- func PreservesOperands(k *types.Kustomization) bool
- func Resources(body []byte) ([]*resource.Resource, error)
- type GitBase
- type HTTPPrefix
- type Reference
- type Role
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Kustomization ¶
func Kustomization(k *types.Kustomization) iter.Seq[Reference]
Kustomization returns direct inputs without mutating the typed document.
func MappingValue ¶
MappingValue follows upstream's case-insensitive JSON field precedence.
func MetadataOnly ¶
MetadataOnly reports whether a plugin can only change configuration metadata.
func PreservesOperands ¶
func PreservesOperands(k *types.Kustomization) bool
PreservesOperands proves the narrow metadata-only configuration wrapper case.
Types ¶
type GitBase ¶
type GitBase struct {
RepoURL string
SubPath string
Ref string
Timeout time.Duration
Submodules bool
}
GitBase carries the effective repository, root and command policy of a remote operand.
func ParseGitBase ¶
ParseGitBase follows kustomize/api v0.21.2 internal/git.NewRepoSpecFromURL; Go's internal visibility requires adapting its grammar at this seam.
type HTTPPrefix ¶
type HTTPPrefix struct{ Scheme, Rest string }
HTTPPrefix keeps the matched scheme separate from its remaining operand.
func CutHTTPScheme ¶
func CutHTTPScheme(s string) (HTTPPrefix, bool)
CutHTTPScheme splits the HTTP scheme used by file acquisition.
type Reference ¶
type Reference struct {
Node *yaml.Node
Path string
Field string
Role Role
Inline bool
Resources []*resource.Resource
Indices [2]int
// contains filtered or unexported fields
}
Reference retains an operand's immutable classification and its rewrite location.
func (*Reference) Bind ¶
Bind attaches an input to a private render tree so rewrites retain comments.
type Role ¶
type Role uint8
Role distinguishes terminal inputs from accumulated resources and configurations.
const ( // Resource is an accumulated resource file or directory. Resource Role = iota // Component is an accumulated component directory. Component // Configuration is a plugin configuration file, directory or inline resource. Configuration // File is a terminal input, never a resource to admit. File )