ack

package
v0.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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)

func ResourceHookCode added in v0.0.7

func ResourceHookCode(
	templateBasePaths []string,
	r *ackmodel.CRD,
	hookID string,
	vars interface{},
	funcMap ttpl.FuncMap,
) (string, error)

ResourceHookCode returns a string with custom callback code for a resource and hook identifier

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL