Skip to content

fix: use drasi apply instead of kubectl apply for Drasi resources (#85)#86

Open
sahajdeepsingh651 wants to merge 2 commits into
drasi-project:mainfrom
sahajdeepsingh651:fix/drasi-apply-command
Open

fix: use drasi apply instead of kubectl apply for Drasi resources (#85)#86
sahajdeepsingh651 wants to merge 2 commits into
drasi-project:mainfrom
sahajdeepsingh651:fix/drasi-apply-command

Conversation

@sahajdeepsingh651

Copy link
Copy Markdown

Problem

The Dapr + Drasi tutorial instructs users to apply Drasi resources using kubectl apply.
This fails because Drasi resources (Source, ContinuousQuery, Reaction) are not Kubernetes CRDs and must be applied using the drasi apply command.

This issue appears in multiple files:

  • tutorial/dapr/README.md
  • tutorial/dapr/scripts/setup-tutorial.sh
  • tutorial/dapr/scripts/setup-tutorial.ps1
  • .devcontainer/dapr/post-create.sh

Solution

Updated all instructions to use drasi apply -f <dir>/* instead of kubectl apply -f <dir>/.

Verification

After applying the changes:

  1. drasi apply -f drasi/sources/* works without errors
  2. drasi apply -f drasi/queries/* works without errors
  3. drasi apply -f drasi/reactions/* works without errors

This ensures the tutorial works as expected and Drasi-powered services run correctly.

Fixes #85

…asi-project#85)

Signed-off-by: Sahaj.Singh <sahajdeepsingh100@gmail.com>
Copilot AI review requested due to automatic review settings July 17, 2026 21:11
@ruokun-niu
ruokun-niu requested a deployment to tutorial-evaluation July 17, 2026 21:12 — with GitHub Actions Waiting
@ruokun-niu
ruokun-niu requested a deployment to tutorial-evaluation July 17, 2026 21:12 — with GitHub Actions Waiting
@ruokun-niu
ruokun-niu requested a deployment to tutorial-evaluation July 17, 2026 21:12 — with GitHub Actions Waiting
@ruokun-niu
ruokun-niu requested a deployment to tutorial-evaluation July 17, 2026 21:12 — with GitHub Actions Waiting
@ruokun-niu
ruokun-niu requested a deployment to tutorial-evaluation July 17, 2026 21:12 — with GitHub Actions Waiting

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the Dapr + Drasi tutorial and related setup scripts by updating the deployment instructions to use drasi apply (instead of kubectl apply) for Drasi resources, aligning the docs with how Drasi resources must be applied.

Changes:

  • Replaced kubectl apply -f drasi/<dir>/ with drasi apply -f drasi/<dir>/* in the Dapr tutorial README.
  • Updated both Bash and PowerShell tutorial setup scripts to print the corrected drasi apply commands.
  • Updated the devcontainer post-create output instructions to match the new drasi apply workflow.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tutorial/dapr/scripts/setup-tutorial.sh Updates printed deployment instructions to use drasi apply for Drasi resources.
tutorial/dapr/scripts/setup-tutorial.ps1 Updates printed deployment instructions to use drasi apply for Drasi resources (PowerShell).
tutorial/dapr/README.md Corrects tutorial steps to apply Drasi resources via drasi apply instead of kubectl apply.
.devcontainer/dapr/post-create.sh Updates post-create instructions to use drasi apply for Drasi resources.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix: Use drasi apply instead of kubectl apply in Dapr + darsi tutorial

5 participants