From b41c92112ee74e76aa55df21e6b98670c763adfa Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Sun, 19 Jan 2025 19:02:36 +0100 Subject: [PATCH] renamed pod to application in the templates directory. --- cmd/policygen/templates.go | 4 ++-- .../templates/netpol/{pod => application}/apiserver.yaml | 0 cmd/policygen/templates/netpol/{pod => application}/pod.yaml | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename cmd/policygen/templates/netpol/{pod => application}/apiserver.yaml (100%) rename cmd/policygen/templates/netpol/{pod => application}/pod.yaml (100%) diff --git a/cmd/policygen/templates.go b/cmd/policygen/templates.go index fbbe716..a492f5f 100644 --- a/cmd/policygen/templates.go +++ b/cmd/policygen/templates.go @@ -120,11 +120,11 @@ func (t *PolicyTemplates) NamespaceTemplates(policyType string, capabilities []s } 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 } 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 } diff --git a/cmd/policygen/templates/netpol/pod/apiserver.yaml b/cmd/policygen/templates/netpol/application/apiserver.yaml similarity index 100% rename from cmd/policygen/templates/netpol/pod/apiserver.yaml rename to cmd/policygen/templates/netpol/application/apiserver.yaml diff --git a/cmd/policygen/templates/netpol/pod/pod.yaml b/cmd/policygen/templates/netpol/application/pod.yaml similarity index 100% rename from cmd/policygen/templates/netpol/pod/pod.yaml rename to cmd/policygen/templates/netpol/application/pod.yaml