-
Notifications
You must be signed in to change notification settings - Fork 116
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
Remove kubernetes-deploy* #622
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
36ed126
to
0f0406c
Compare
22fa9d1
to
a785a88
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing in the diff looks off to me, but I'm less sure if there are things that are still left to be deleted, so I defer to Danny for that. Otherwise, yay 🔥
- Removed `KubernetesDeploy#*`: use the appropriate `Krane::*` class instead. | ||
- Removed `template_dir` from `DeployTask#initialize`: use `template_paths` instead. | ||
- Removed `template_dir` from `RenderTask#initialize` and `only_filenames` from `RenderTask#run`: use `template_paths` instead. | ||
- Removed `allow_globals` from `DeployTask`: use `GlobalDeployTask` instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⛏ I think this would be more readable in a table format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I'll update that after this PR is merged, as part of #619.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a big PR. Still digging but I wanted to add that comment for now.
def deploy_global_crd_fixtures(subset:, prune: true, clean_up: true, &block) | ||
deploy_global_fixtures("crd", subset: subset, selector: 'app=krane', clean_up: clean_up, prune: prune, | ||
namespaced: false, &block) | ||
def deploy_global_fixtures_non_namespaced(fixture, subset:, prune: true, clean_up: true, &block) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We talked IRL, might be nice to normalize the way we deploy global fixtures in our test suite cc @dirceu 👍 Perhaps we should cut an issue for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebase and boat!
@kubectl = kubectl_instance | ||
@max_watch_seconds = max_watch_seconds | ||
@selector = selector | ||
@protected_namespaces = protected_namespaces || PROTECTED_NAMESPACES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should PROTECTED_NAMESPACES
be the default in the function signature instead of nil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing that doesn't work for some reason; a bunch of tests break. I'll check the other things and update this last if I can.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out this is because we explicitly pass nil
from deploy_fixtures
ea15360
to
2ef0c4b
Compare
75c9136
to
efb9349
Compare
efb9349
to
9145332
Compare
72bb902
to
011f4a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small issues I'm going to push the fixes.
What are you trying to accomplish with this PR?
kubernetes-*
executable files and their related classes.Krane::DeprecatedDeployTask
toKrane::DeployTask
template_dir
fromKrane::DeployTask
template_dir
andonly_filenames
fromKrane::RenderTask
Note for reviewers
You can see the most important code changes in the following commits:
I'll squash the commits (or at least rewrite history to make things clearer) after getting the necessary approvals.