Documentation ¶
Index ¶
- func GenerateAddon(addons embed.FS, provider, addon, dest string, addonConfig AddonConfig, ...) error
- func GetAddonPath(addons embed.FS, provider, addon string) (string, error)
- func PromptAddon(addons embed.FS, provider string) (string, error)
- func PromptAddonValues(dest string, addonConfig *AddonConfig) error
- type AddonConfig
- type Reference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAddon ¶
func GenerateAddon(addons embed.FS, provider, addon, dest string, addonConfig AddonConfig, templateWriter templatewriter.TemplateWriter) error
func PromptAddonValues ¶
func PromptAddonValues(dest string, addonConfig *AddonConfig) error
Types ¶
type AddonConfig ¶
type AddonConfig struct { *config.DraftConfig `yaml:",inline"` ReferenceComponents map[string][]referenceResource `yaml:"references"` // contains filtered or unexported fields }
AddonConfig is a struct that extends the base DraftConfig to allow for the Referencing previously generated k8s objects. This allows an addon creator to reference pre-entered data from the deployment files.
func GetAddonConfig ¶
func GetAddonConfig(addons embed.FS, provider, addon string) (AddonConfig, error)
func (*AddonConfig) GetAddonDestPath ¶
func (ac *AddonConfig) GetAddonDestPath(dest string) (string, error)
func (*AddonConfig) GetReferenceValueMap ¶
func (ac *AddonConfig) GetReferenceValueMap(dest string) (map[string]string, error)
GetReferenceValueMap extracts k8s object values into a mapping of template strings to k8s object value.
Click to show internal directories.
Click to hide internal directories.