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

Stop core service from being deployed a priority resource #735

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

beckygowland
Copy link
Contributor

What are you trying to accomplish with this PR?
closes #728
Creating a custom resource def that has the same kind type as a core type can cause deploying a core type to be considered a priority resource.

How is this accomplished?
We should also consider group when deciding if resources are crd's. The predeploy_sequence array list was converted to a hash keyed by kind

What could go wrong?
Could this mess up priority decision logic for other resources? Tests don't seem to be broken for crs so 👍 sign

@beckygowland beckygowland requested a review from a team July 27, 2020 20:16
@beckygowland beckygowland requested a review from a team as a code owner July 27, 2020 20:16
@timothysmith0609 timothysmith0609 self-requested a review July 27, 2020 23:00
Copy link
Contributor

@timothysmith0609 timothysmith0609 left a comment

Choose a reason for hiding this comment

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

Approach makes sense, but I have a few implementation questions

lib/krane/deploy_task.rb Show resolved Hide resolved
lib/krane/deploy_task.rb Outdated Show resolved Hide resolved
lib/krane/kubernetes_resource.rb Outdated Show resolved Hide resolved
lib/krane/deploy_task.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@kddnewton kddnewton left a comment

Choose a reason for hiding this comment

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

Looks good!

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.

Service deployed in priority resources phase
5 participants