Skip to content

Commit

Permalink
fix sidecar
Browse files Browse the repository at this point in the history
  • Loading branch information
Romero027 committed Oct 24, 2024
1 parent 81e0afc commit b573de1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compiler
Submodule compiler updated 348 files
4 changes: 2 additions & 2 deletions internal/controller/appnetconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (r *AppNetConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request

l.Info("All elements compiled successfully - deploying to envoy")

attach_cmd := exec.Command("bash", strings.ReplaceAll(filepath.Join(compilerDir, "graph/generated/APP-deploy/sidecar-ambient-attach/attach.sh"), "APP", app_name))
attach_cmd := exec.Command("bash", strings.ReplaceAll(filepath.Join(compilerDir, "graph/generated/sidecar-ambient-attach/attach.sh"), "APP", app_name))
attach_output, attach_err := attach_cmd.CombinedOutput()

// Check if there was an error running the command
Expand All @@ -135,7 +135,7 @@ func (r *AppNetConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request
return ctrl.Result{}, client.IgnoreNotFound(err)
}

kubectl_cmd := exec.Command("kubectl", "apply", "-f", strings.ReplaceAll(filepath.Join(compilerDir, "graph/generated/APP-deploy/install.yml"), "APP", app_name))
kubectl_cmd := exec.Command("kubectl", "apply", "-Rf", strings.ReplaceAll(filepath.Join(compilerDir, "graph/generated/APP-deploy"), "APP", app_name))
kubectl_output, kubectl_err := kubectl_cmd.CombinedOutput()

// Check if there was an error running the command
Expand Down

0 comments on commit b573de1

Please sign in to comment.