Skip to content

[Experimental] Justfile for custom commands & scripts#9289

Merged
rasswanth-s merged 19 commits intodevfrom
yash/justfile
Sep 19, 2024
Merged

[Experimental] Justfile for custom commands & scripts#9289
rasswanth-s merged 19 commits intodevfrom
yash/justfile

Conversation

@yashgorana
Copy link
Contributor

@yashgorana yashgorana commented Sep 12, 2024

Description

Use justfile for common k8s commands. Lighter than tox. Better arg support. Need to be a bit thoughtful when setting up commands. >>Can chain high-level commands (as long as we don't parameters it)<<

Setup

  • brew install just fzf

Examples:

  • just or just --list show everything
  • just start-high create high side cluster
  • just stop-high delete high side cluster
  • just reset-high run scripts/reset_k8s.sh for high side cluster
  • just cleanup-high delete "syft" namespace for high side cluster
  • ^^same for -low and -gw^^
  • just tracing=false deploy-high deploy with tracing=false
  • just profiles="bigquery-scenario-tests,tracing" deploy-low

Chaining examples:

Commands are run sequentially

Setup signoz cluster, high side datasite & run k9s on it

$ just start-signoz start-high deploy-high k9s-high

Multi-cluster deployment:

$ just start-high deploy-high start-low deploy-low

Single cluster mutliple namespace deployment:

$ just start-shared deploy-ns-high deploy-ns-low deploy-ns-gw

need to expose services for each namespace to appropriate ports.

Notes

  • Not tested on windows
  • python3 command may fail if it's not available
  • core recipes are private to keep things simple

Affected Dependencies

List any dependencies that are required for this change.

How has this been tested?

  • Describe the tests that you ran to verify your changes.
  • Provide instructions so we can reproduce.
  • List any relevant details for your test configuration.

Checklist

@yashgorana yashgorana self-assigned this Sep 12, 2024
@yashgorana yashgorana changed the title [WIP] [Experimental] Justfile for local k8s [WIP] [Experimental] Justfile for custom commands & scripts Sep 18, 2024
@yashgorana yashgorana changed the title [WIP] [Experimental] Justfile for custom commands & scripts [Experimental] Justfile for custom commands & scripts Sep 18, 2024
Copy link
Collaborator

@rasswanth-s rasswanth-s left a comment

Choose a reason for hiding this comment

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

Well done @yashgorana

@rasswanth-s rasswanth-s merged commit 8604131 into dev Sep 19, 2024
@rasswanth-s rasswanth-s deleted the yash/justfile branch September 19, 2024 12:37
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.

2 participants