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

added serverless function and kubectl hyperkube command to remove pem… #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

swarupdonepudi
Copy link
Contributor

What: new endpoint to request to remove pem for a given cluster
Why: Pipeline is currenltly not cleaning up pem files from hyperkube when a cluster is deleted.

@swarupdonepudi swarupdonepudi requested review from twonds and sepulworld and removed request for twonds March 4, 2020 20:21
headers=ctx.obj['headers']
)
if r.status_code == 404:
sys.exit(1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this fail with a message?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, Why would it return a 404? It seems to only return a 200 or 500.

except ClientError as e:

Copy link
Contributor

Choose a reason for hiding this comment

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

500 makes sense

@@ -110,6 +110,13 @@ functions:
path: clusters/get-pem
method: get
private: true
remove_pem:
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like a test should be added for adding and removing pems.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good!! Now that the Moto framework in place should be no problem

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.

None yet

3 participants