kubevirt / csi-driver

KubeVirt CSI driver
Other
39 stars 27 forks source link

Support kustomize during deployment #74

Closed awels closed 1 year ago

awels commented 1 year ago

Signed-off-by: Alexander Wels awels@redhat.com

What this PR does / why we need it: there are 3 directories:

The following environment variables allow you to modify behavior of the deployment:

REGISTRY/TARGETNAME:TAG is used by make to build the image and push it to the registry as well. This should allow one to build and generate the appropriate overlay for an external registry and cluster.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes #

Special notes for your reviewer: I think this will completely break the bin_data integration since I moved around all the files.

Also I noticed that the config map is deployed to tenant in split mode, and I don't think the nodes actually care about the config map so I see no reason to deploy the config map, just wanted to verify this is an accurate observation.

Release note:

Deployment supports kustomize
awels commented 1 year ago

/test pull-csi-driver-split-k8s-suite-k8s-1.23

awels commented 1 year ago

So I went back and forth on this, even going as far as to create a make generate-dev-overlay locally that essentially just generates the overlay yamls but doesn't apply it. The reason I eventually rejected this is because I am not guaranteed that all the information is static in the dev environment. It would be nice to haven an overlay example (which is generated on the fly) already in the overlay directory, so that people can then create their own overlay for whatever environment they have.

I was hoping a make cluster-sync would be able to generate the overlay for any cluster, but I am not sure how feasible this is.

I am using only the most basic kustomize stuff, no generators or transformers, which might be better, so we can get some of the logic out of the bash scripts and into there. But I wanted to start simple, and make it more complicated from there.

awels commented 1 year ago

Yes, good point also give me an opportunity to give some examples of the overlays. Let me update the PR to include this.

awels commented 1 year ago

@davidvossel I updated the README, hopefully it is understandable on what to do.

kubevirt-bot commented 1 year ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: davidvossel

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: - ~~[OWNERS](https://github.com/kubevirt/csi-driver/blob/main/OWNERS)~~ [davidvossel] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment