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

exec: retrive log files from api_server minio address #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

3pointer
Copy link

@3pointer 3pointer commented Nov 3, 2020

  1. retrive cluster log from api_server minio address
  2. fix addv bug

@@ -31,18 +32,34 @@ def __init__(self, config: Config):
access_key=config.s3_access_key,
secret_key=config.s3_secret_key,
secure=False)

def get_artifacts_dir_of(self, cluster_id: int) -> Object:
self._api_server_client = Minio(api_server_minio, secure=False)
Copy link
Owner

Choose a reason for hiding this comment

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

Seems access_key and secret_key are forgotten here.

BTW, I will prefer to extract them to another config entry (like artifacts_s3_endpoint, etc..), and fully ignore this config s3_endpoint here.

Copy link
Author

Choose a reason for hiding this comment

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

It seems this minio address is fixed, and doesn't need access_key.

ctl/lib/get_file.py Outdated Show resolved Hide resolved
@YuJuncen
Copy link
Owner

YuJuncen commented Nov 3, 2020

LGTM

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