Skip to content

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 sepulworld and twonds 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

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.

4 participants