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: add secret not created yet error response #3586

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

akijakya
Copy link
Contributor

In case of a PKE cluster on AWS during creation time.

Q A
Bug fix? no
New feature? yes
API breaks? no
Deprecations? no
Related tickets -
License Apache 2.0

What's in this PR?

The API now responds with a 409 status code getting a PKE cluster on AWS if there was an error getting the cluster secret during creation time.

Why?

For PKE (AWS) clusters the cluster creation immediately starts but the secret creation happens later and until the cluster secret is created, the cluster GET response was always going to run into error, resulting in a not too telling 500 Internal server error response a couple of times if the cluster creation was initiated from the banzai cli with the -w flag.

Checklist

  • Implementation tested (with at least one cloud provider)
  • Code meets the Developer Guide
  • [] OpenAPI and Postman files updated (if needed)
  • [] User guide and development docs updated (if needed)
  • [] Related Helm chart(s) updated (if needed)

@akijakya akijakya added area/secret distribution/pke Pipeline Kubernetes Engine labels Oct 21, 2021
@akijakya akijakya requested a review from pregnor October 21, 2021 14:08
@akijakya akijakya self-assigned this Oct 21, 2021
src/api/cluster_get.go Outdated Show resolved Hide resolved
src/api/cluster_get.go Outdated Show resolved Hide resolved
In case of a PKE cluster on AWS during creation time.
@akijakya akijakya force-pushed the pke-secret-not-created-yet-response branch from 8c24299 to 4d3abac Compare October 21, 2021 16:22
@akijakya akijakya merged commit 4423902 into master Oct 22, 2021
@akijakya akijakya deleted the pke-secret-not-created-yet-response branch October 22, 2021 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/secret distribution/pke Pipeline Kubernetes Engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants