-
Notifications
You must be signed in to change notification settings - Fork 522
Fix broken kubepkg deb build test #1379
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
Conversation
This fixes the failing `kubepkg debs` test which was failing because of the shelling-out `mv` command which resulted in a permission denied error. We fixed that by using the golang ioutils to copy the file around. Signed-off-by: Sascha Grunert <[email protected]>
FYI @hwdef (from your Slack DM) |
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.
The deb/rpm specs for kubernetes-cni need to be restored, as well as the comment below.
@@ -587,6 +599,7 @@ func GetDependencies(packageDef *PackageDefinition) (map[string]string, error) { | |||
deps["kubelet"] = minimumKubernetesVersion | |||
deps["kubectl"] = minimumKubernetesVersion | |||
deps["cri-tools"] = minimumCRIToolsVersion | |||
deps["kubernetes-cni"] = MinimumCNIVersion // deb based kubeadm still requires kubernetes-cni |
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.
You'll need to restore variable references in the package templates as well. They should roughly match what was removed in #1330.
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.
Hm, when I'm now thinking about this: the kubelet
package already provides kubernetes-cni so we may remove it completely from the deb specs. I'll change the PR to propose this approach.
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.
The packages should exactly match what's defined in packages/.
Let's just fix the tests here. No spec refactors.
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.
Okay I reverted my previous change 👍
You'll need to restore variable references in the package templates as well. They should roughly match what was removed in #1330.
Which references do you mean? I'm not sure which paths needs further adaptions. 🤔
kubernetes-cni is now provided by the kubelet package so we can remove it from the spec. Signed-off-by: Sascha Grunert <[email protected]>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justaugustus, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@justaugustus @saschagrunert |
What type of PR is this?
/kind failing-test
What this PR does / why we need it:
Two distinct issues have been fixed with this PR
Fix failing kubepkg debs test
This fixes the failing
kubepkg debs
test which was failing because ofthe shelling-out
mv
command which resulted in a permission deniederror. We fixed that by using the golang ioutils to copy the file
around.
Fixed deb package def replacement for kubernetes-cni:
kubernetes-cni is now provided by the kubelet package so we can remove
it from the spec.
Which issue(s) this PR fixes:
Fixes kubernetes/kubernetes#88408
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?