Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow spacectl usage in hooks #286

Conversation

sephriot
Copy link
Contributor

@sephriot sephriot commented Jan 31, 2025

Confirmed it works on preprod using custom worker:
Hooks:

  • echo "Testing whether machine api token works" > xyz
  • spacectl stack environment mount --id tofuone file_from_ansible_hook xyz
    image

Signed-off-by: Jakub <jakub.wojtowicz@sephcode.pl>
@sephriot sephriot requested a review from tomasmik January 31, 2025 11:03
@Clickup-user
Copy link

@sephriot sephriot requested a review from michalg9 January 31, 2025 11:03
Copy link
Contributor

@tomasmik tomasmik left a comment

Choose a reason for hiding this comment

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

If this works, then it's a very cool solution.

@sephriot sephriot merged commit 82b9af7 into main Jan 31, 2025
9 checks passed
@sephriot sephriot deleted the CU-8697guxx8_API-token-in-a-stack-is-not-permissive-enough-for-spacectl-to-run-in-a-hook_Jakub-Wjtowicz branch January 31, 2025 13:50
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.

3 participants