renamed pod to application in the templates directory.

This commit is contained in:
Erik Brakkee 2025-01-19 19:02:36 +01:00
parent c696c24e31
commit b41c92112e
3 changed files with 2 additions and 2 deletions

View File

@ -120,11 +120,11 @@ func (t *PolicyTemplates) NamespaceTemplates(policyType string, capabilities []s
} }
func (t *PolicyTemplates) ApplicationTemplate(policyType string) *template.Template { func (t *PolicyTemplates) ApplicationTemplate(policyType string) *template.Template {
tmpl := t.templates.Lookup(fmt.Sprintf("templates/%s/pod/pod.yaml", policyType)) tmpl := t.templates.Lookup(fmt.Sprintf("templates/%s/application/pod.yaml", policyType))
return tmpl return tmpl
} }
func (t *PolicyTemplates) PredefineApplicationPolicyTemplate(policyType string, predefined string) *template.Template { func (t *PolicyTemplates) PredefineApplicationPolicyTemplate(policyType string, predefined string) *template.Template {
tmpl := t.templates.Lookup(fmt.Sprintf("templates/%s/pod/%s.yaml", policyType, predefined)) tmpl := t.templates.Lookup(fmt.Sprintf("templates/%s/application/%s.yaml", policyType, predefined))
return tmpl return tmpl
} }