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

Modularize the controller and node services #30

Merged
merged 3 commits into from
Jun 23, 2023

Conversation

hughdanliu
Copy link
Contributor

@hughdanliu hughdanliu commented Jun 16, 2023

Is this a bug fix or adding new feature?
Refactor for future features. Allows us to add flags to the controller/node services and adds support for JSON logging.
What is this PR about? / Why do we need it?
Modularizes the controller and node services. This refactor will allow us to support node start-up taints, driver service deployment options, and makes our implementation consistent with EBS/FSx for Lustre.
Also configures JSON logging and text (default) logging options for the CSI driver.

What testing is done?
Ran unit tests via make test and ran sanity tests via make test-sanity
Performed various rounds of manual testing to ensure functionality was kept intact.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jun 16, 2023
@hughdanliu hughdanliu force-pushed the modularize-services branch 3 times, most recently from 2bd8af2 to c7e5b91 Compare June 20, 2023 21:48
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 20, 2023
@hughdanliu hughdanliu force-pushed the modularize-services branch from c7e5b91 to 47269af Compare June 21, 2023 13:30
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 21, 2023
@hughdanliu hughdanliu force-pushed the modularize-services branch from 47269af to 2a6ac81 Compare June 21, 2023 13:56
func main() {
fs := flag.NewFlagSet("aws-fsx-csi-driver", flag.ExitOnError)

if err := logsapi.RegisterLogFormat(logsapi.JSONLogFormat, json.Factory{}, logsapi.LoggingBetaOptions); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

let's remove this and add make it a separate commit supporting json, like this one: kubernetes-sigs/aws-fsx-csi-driver@e86f25e and also come of the changes in here:
kubernetes-sigs/aws-fsx-csi-driver@770a2c6

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@hughdanliu hughdanliu force-pushed the modularize-services branch from 2a6ac81 to 9ba0a59 Compare June 22, 2023 18:59
@hughdanliu hughdanliu force-pushed the modularize-services branch from 9ba0a59 to a3bd097 Compare June 22, 2023 19:00
@hughdanliu hughdanliu force-pushed the modularize-services branch from 33427e6 to cc7f631 Compare June 22, 2023 19:14
@jacobwolfaws
Copy link
Contributor

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 23, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hughdanliu, jacobwolfaws

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 23, 2023
@k8s-ci-robot k8s-ci-robot merged commit 386b610 into kubernetes-sigs:main Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants