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

[Bug Fix] predeploy_sequence is wrong when there are conflicts between built-ins and CRDs #774

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

dturn
Copy link
Contributor

@dturn dturn commented Dec 16, 2020

What are you trying to accomplish with this PR?
E.g. If a CRD defines a Kind that is also in our hard coded predeploy_sequence, but with a different group, only one will be pre-deployed. That's a bug.

Fix: #773

How is this accomplished?
The predeploy sequence now supports multiple groups per Kind.

This needs some tests too

What could go wrong?
This actually isn't the fix, it has a sublte bug where we'll always deploy something with that name ...

Or that this code is ugly and we really need an object instead of a hash...

@@ -3,7 +3,7 @@
module Krane
class DaemonSet < PodSetBase
TIMEOUT = 5.minutes
SYNC_DEPENDENCIES = %w(Pod)
SYNC_DEPENDENCIES = %w(Pod.apps)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Having to add a group here sucks. I'm need to look at the behavior for kubectl and see what group it picks if there are multiple for a kind 🤞 its not the one a crd defines...

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.

NetworkPolicy resources are not predeployed when using calico as the network provider
1 participant