Skip to content

Commit

Permalink
fix: create and parse coredns template (kubeovn#4445)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Christescu <[email protected]>
Signed-off-by: liyh <[email protected]>
  • Loading branch information
bogdan-cehash authored and liyh-yusur committed Sep 10, 2024
1 parent 73002e1 commit 3a7d963
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/vpc_dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ func (c *Controller) createOrUpdateVpcDNSSlr(vpcDNS *kubeovnv1.VpcDns) error {
}

func (c *Controller) genVpcDNSDeployment(vpcDNS *kubeovnv1.VpcDns, oldDeploy *v1.Deployment) (*v1.Deployment, error) {
tmp, err := template.ParseGlob(corednsTemplateContent)
tmp := template.New("coredns")
tmp, err := tmp.Parse(corednsTemplateContent)
if err != nil {
klog.Errorf("failed to parse coredns template file, %v", err)
return nil, err
Expand Down

0 comments on commit 3a7d963

Please sign in to comment.