-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Replace kubernetes mount code with utils #8056
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justinsb 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 |
f138687
to
aa0b0df
Compare
aa0b0df
to
d5dcbb1
Compare
None of us love k/k deps, but right now, someone else is theoretically taking care of this for us. Are we gaining anything other than a somewhat smaller binary? |
/test pull-kops-verify-staticcheck |
@geojaz you're quite right - I should have pointed out the big problem. It was removed from k/k in kubernetes/kubernetes#81843 . It's also vastly overcomplicated for what we're actually using it for, so I think it's a net win for us, even if our hand is being forced. |
d5dcbb1
to
3d0bae4
Compare
I see Protokube is using kops/nodeup/pkg/model/protokube.go Lines 226 to 228 in 0b52b99
|
3d0bae4
to
fd8786c
Compare
@hakman that is interesting ... and maybe we can simplify things further. If I recall correctly, the complexities are whether the filesystem namespace is the same and whether there are helpers we need to run (e.g. mkfs.ext4). As it stands, this should be mostly importing just the bits of the k/k code we need (I think), and then maybe we can try to simplify it? I think protokube isn't actually doing much with mounting any more (for users that are running recent k8s), because most of the mounting is now done in etcd-manager. etcd-manager actually has an easier problem because we don't need the volume to be visible outside the pod because it runs etcd in the same pod (though that does have its own challenges, like having to ship multiple etcd versions). So it would be good to look into simplifying this code! |
fd8786c
to
c9c9430
Compare
c9c9430
to
28f4942
Compare
This will remove one of the main dependencies on the kubernetes/kubernetes repo.
28f4942
to
fc21f42
Compare
/lgtm |
This will remove one of the main dependencies on the kubernetes/kubernetes repo.