-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
anyway_kubectl exec via docker compose
- Loading branch information
Showing
3 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import subprocess | ||
|
||
from .config import ANYWAY_KUBECTL_NAMESPACE | ||
from .config import ANYWAY_MAIN_CONTAINER_NAME | ||
|
||
|
||
def check_call(*args): | ||
subprocess.check_call(['kubectl', '-n', ANYWAY_KUBECTL_NAMESPACE, 'exec', 'deployment/anyway-main', '--', *args]) | ||
subprocess.check_call([ | ||
'docker', 'exec', ANYWAY_MAIN_CONTAINER_NAME, *args | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters