diff --git a/config/internal/common/default/mariadb-access-policy.yaml.tmpl b/config/internal/mariadb/default/networkpolicy.yaml.tmpl similarity index 100% rename from config/internal/common/default/mariadb-access-policy.yaml.tmpl rename to config/internal/mariadb/default/networkpolicy.yaml.tmpl diff --git a/controllers/database.go b/controllers/database.go index 7820d004d..b8cd81db7 100644 --- a/controllers/database.go +++ b/controllers/database.go @@ -43,6 +43,7 @@ var mariadbTemplates = []string{ "mariadb/default/pvc.yaml.tmpl", "mariadb/default/service.yaml.tmpl", "mariadb/default/mariadb-sa.yaml.tmpl", + "mariadb/default/networkpolicy.yaml.tmpl", } func tLSClientConfig(pems [][]byte) (*cryptoTls.Config, error) {