Documentation ¶
Index ¶
- Variables
- func APIs(m *ackmodel.Model, templateBasePaths []string) (*templateset.TemplateSet, error)
- func Controller(m *ackmodel.Model, templateBasePaths []string, serviceAccountName string) (*templateset.TemplateSet, error)
- func Release(m *ackmodel.Model, metadata *ackmetadata.ServiceMetadata, ...) (*templateset.TemplateSet, error)
- func ResourceHookCode(templateBasePaths []string, r *ackmodel.CRD, hookID string, vars interface{}, ...) (string, error)
- type ImageReleaseVars
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = config.Config{ PrefixConfig: config.PrefixConfig{ SpecField: ".Spec", StatusField: ".Status", }, IncludeACKMetadata: true, SetManyOutputNotFoundErrReturn: "return nil, ackerr.NotFound", }
DefaultConfig is the default configuration for generating ACK code
Functions ¶
func APIs ¶
func APIs( m *ackmodel.Model, templateBasePaths []string, ) (*templateset.TemplateSet, error)
APIs returns a pointer to a TemplateSet containing all the templates for generating ACK service controller's apis/ contents
func Controller ¶
func Controller( m *ackmodel.Model, templateBasePaths []string, serviceAccountName string, ) (*templateset.TemplateSet, error)
Controller returns a pointer to a TemplateSet containing all the templates for generating ACK service controller implementations
func Release ¶
func Release( m *ackmodel.Model, metadata *ackmetadata.ServiceMetadata, templateBasePaths []string, releaseVersion string, imageRepository string, serviceAccountName string, ) (*templateset.TemplateSet, error)
Release returns a pointer to a TemplateSet containing all the templates for generating an ACK service controller release (Helm artifacts, etc)
Types ¶
type ImageReleaseVars ¶ added in v0.16.4
type ImageReleaseVars struct { // ReleaseVersion is the semver release tag (or Git SHA1 commit) that is // used for the binary image artifacts and Helm release version ReleaseVersion string // ImageRepository is the Docker image repository to inject into the Helm // values template ImageRepository string }
Click to show internal directories.
Click to hide internal directories.