- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for parseDryTemplate (6.1 sec)
-
pkg/kube/inject/inject.go
// default case when injected pod has explicit status var iStatus SidecarInjectionStatus if err := json.Unmarshal(statusBytes, &iStatus); err != nil { return nil } return &iStatus } func parseDryTemplate(tmplStr string, funcMap map[string]any) (*template.Template, error) { temp := template.New("inject") t, err := temp.Funcs(sprig.TxtFuncMap()).Funcs(funcMap).Parse(tmplStr) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 20:35:11 UTC 2024 - 28.8K bytes - Viewed (1) -
pkg/kube/inject/webhook.go
} func ParseTemplates(tmpls RawTemplates) (Templates, error) { ret := make(Templates, len(tmpls)) for k, t := range tmpls { p, err := parseDryTemplate(t, InjectionFuncmap) if err != nil { return nil, err } ret[k] = p } return ret, nil } type ValuesConfig struct { raw string asStruct *opconfig.Values
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 17:59:39 UTC 2024 - 42.2K bytes - Viewed (0)