Skip to content

Commit

Permalink
using the robusta-api project for playbook building and removing robu…
Browse files Browse the repository at this point in the history
…sta-cli build

This does not remove the old cli code - it will in another pr
  • Loading branch information
Sheeproid committed Jun 3, 2024
1 parent 98a9b1a commit 254beea
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 18 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,3 @@ jobs:
- name: Upload helm chart
run: |
cd helm && ./upload_chart.sh
- name: Release Docker CLI only on formal releases
if: "!github.event.release.prerelease"
run: |-
docker buildx build \
--platform linux/arm64,linux/amd64 \
--tag us-central1-docker.pkg.dev/genuine-flight-317411/devel/robusta-cli:${{env.RELEASE_VER}} \
--tag us-central1-docker.pkg.dev/genuine-flight-317411/devel/robusta-cli \
--push \
--file cli.Dockerfile \
.
4 changes: 2 additions & 2 deletions docs/_static/robusta
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ fi
if [[ "upgrade-cli" == "$COMMANDS" ]]; then
docker pull us-central1-docker.pkg.dev/genuine-flight-317411/devel/robusta-cli > /dev/null 2>&1 & spinner
echo 'Upgrade complete'
docker run -it --rm --net host -v ~/.aws:/root/.aws -v ~/.config/gcloud:/root/.config/gcloud -v ${PWD}:/workingdir -w=/workingdir -v ~/.kube:/root/.kube us-central1-docker.pkg.dev/genuine-flight-317411/devel/robusta-cli robusta version
docker run -it --rm --net host -v ~/.aws:/root/.aws -v ~/.config/gcloud:/root/.config/gcloud -v ${PWD}:/workingdir -w=/workingdir -v ~/.kube:/root/.kube us-central1-docker.pkg.dev/genuine-flight-317411/devel/robusta-cli version
exit 0
fi

docker run -it --rm --net host -v ~/.aws:/root/.aws -v ~/.config/gcloud:/root/.config/gcloud -v ${PWD}:/workingdir -w=/workingdir -v ~/.kube:/root/.kube us-central1-docker.pkg.dev/genuine-flight-317411/devel/robusta-cli robusta $COMMANDS
docker run -it --rm --net host -v ~/.aws:/root/.aws -v ~/.config/gcloud:/root/.config/gcloud -v ${PWD}:/workingdir -w=/workingdir -v ~/.kube:/root/.kube us-central1-docker.pkg.dev/genuine-flight-317411/devel/robusta-cli $COMMANDS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Playbook API Changes

This page documents breaking changes to the Robusta API, and how to update custom playbook actions between versions.

Using new 'robusta-api' package from Robusta version 0.14
===============================================

Old versions used the ``robusta-cli`` package for the api headers. Please use the new ``robusta-api`` package.

Updating Custom Playbooks to Robusta 0.10.17
===============================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ The Basics
Setting up a development environment
--------------------------------------

Install the ``robusta-cli`` package locally, so you have autocompletion in your IDE. This is really important, at the playbooks API is not yet fully documented online.
Install the ``robusta-api`` package locally, so you have autocompletion in your IDE. This is really important, at the playbooks API is not yet fully documented online.

.. note::

Older versions used the ``robusta-cli`` package for the api headers. Please use the new ``robusta-api`` package.

Implementing your first playbook
-------------------------------------------------------------
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poetry]
name = "robusta-cli"
name = "robusta-api"
version = "0.0.0"
description = ""
authors = ["Natan Yellin <[email protected]>"]
Expand All @@ -16,9 +16,6 @@ line_length = 120
multi_line_output = 3
include_trailing_comma = true

[tool.poetry.scripts]
robusta = "robusta.cli.main:app"


[tool.poetry.dependencies]
# Robusta CLI should work on 3.8, but the core code requires 3.9+. Both
Expand Down

0 comments on commit 254beea

Please sign in to comment.