Documentation ¶
Index ¶
- func LoadConfigFromCRDs(ldr ifc.Loader, paths []string) (*builtinconfig.TransformerConfig, error)
- type OpenAPIDefinition
- type ResAccumulator
- func (ra *ResAccumulator) AbsorbAll(resources resmap.ResMap) error
- func (ra *ResAccumulator) AppendAll(resources resmap.ResMap) error
- func (ra *ResAccumulator) FixBackReferences() (err error)
- func (ra *ResAccumulator) GetTransformerConfig() *builtinconfig.TransformerConfig
- func (ra *ResAccumulator) MergeAccumulator(other *ResAccumulator) (err error)
- func (ra *ResAccumulator) MergeConfig(tConfig *builtinconfig.TransformerConfig) (err error)
- func (ra *ResAccumulator) MergeVars(incoming []types.Var) error
- func (ra *ResAccumulator) ResMap() resmap.ResMap
- func (ra *ResAccumulator) ResolveVars() error
- func (ra *ResAccumulator) Transform(t resmap.Transformer) error
- func (ra *ResAccumulator) Vars() []types.Var
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFromCRDs ¶
func LoadConfigFromCRDs( ldr ifc.Loader, paths []string) (*builtinconfig.TransformerConfig, error)
LoadConfigFromCRDs parse CRD schemas from paths into a TransformerConfig
Types ¶
type OpenAPIDefinition ¶ added in v0.7.4
OpenAPIDefinition describes single type. Normally these definitions are auto-generated using gen-openapi. Same as in k8s.io / kube-openapi / pkg / common.
type ResAccumulator ¶
type ResAccumulator struct {
// contains filtered or unexported fields
}
ResAccumulator accumulates resources and the rules used to customize those resources. It's a ResMap plus stuff needed to modify the ResMap.
func MakeEmptyAccumulator ¶
func MakeEmptyAccumulator() *ResAccumulator
func (*ResAccumulator) AbsorbAll ¶
func (ra *ResAccumulator) AbsorbAll(resources resmap.ResMap) error
func (*ResAccumulator) AppendAll ¶
func (ra *ResAccumulator) AppendAll(resources resmap.ResMap) error
func (*ResAccumulator) FixBackReferences ¶
func (ra *ResAccumulator) FixBackReferences() (err error)
func (*ResAccumulator) GetTransformerConfig ¶
func (ra *ResAccumulator) GetTransformerConfig() *builtinconfig.TransformerConfig
func (*ResAccumulator) MergeAccumulator ¶
func (ra *ResAccumulator) MergeAccumulator(other *ResAccumulator) (err error)
func (*ResAccumulator) MergeConfig ¶
func (ra *ResAccumulator) MergeConfig( tConfig *builtinconfig.TransformerConfig) (err error)
func (*ResAccumulator) MergeVars ¶
func (ra *ResAccumulator) MergeVars(incoming []types.Var) error
MergeVars accumulates vars into ResAccumulator. A Var is a tuple of name, object reference and field reference. This func takes a list of vars from the current kustomization file and annotates the accumulated resources with the names of the vars that match those resources. E.g. if there's a var named "sam" that wants to get its data from a ConfigMap named "james", and the resource list contains a ConfigMap named "james", then that ConfigMap will be annotated with the var name "sam". Later this annotation is used to find the data for "sam" by digging into a particular fieldpath of "james".
func (*ResAccumulator) ResMap ¶
func (ra *ResAccumulator) ResMap() resmap.ResMap
ResMap returns a copy of the internal resMap.
func (*ResAccumulator) ResolveVars ¶
func (ra *ResAccumulator) ResolveVars() error
func (*ResAccumulator) Transform ¶
func (ra *ResAccumulator) Transform(t resmap.Transformer) error
func (*ResAccumulator) Vars ¶
func (ra *ResAccumulator) Vars() []types.Var
Vars returns a copy of underlying vars.