Documentation ¶
Index ¶
- Constants
- Variables
- func HashID(pid float64) (string, error)
- func LookupOrDefaultValues(ctx context.Context, r client.Client, key string, defaultVal string) string
- func ToYaml(v interface{}) string
- func TxtFuncMap() template.FuncMap
- func Vault(token string, path string, key string) (secret string)
- type Templates
Constants ¶
View Source
const (
FileNameValues string = "values.yaml"
)
Variables ¶
View Source
var ( ValueLog = ctrl.Log.WithValues("package", "values") Alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" )
View Source
var HelmValuesTemplate = `` /* 1904-byte string literal not displayed */
HelmValuesTemplate is the yaml template for helm command. render values.yaml according to the play resource contain
Functions ¶
func LookupOrDefaultValues ¶ added in v0.5.0
func TxtFuncMap ¶
TxtFuncMap returns a template FuncMap with HashID and ToYaml functions
Types ¶
type Templates ¶
type Templates struct { Client client.Client Play *ci.Play Spec ci.PlaySpec Internal map[string]interface{} Values map[string]interface{} }
Templates structure with methods for templating - values.yaml - values.mongodb.yaml - values.postgre.yaml - .s3cfg
Click to show internal directories.
Click to hide internal directories.